Скачиваний:
10
Добавлен:
01.05.2014
Размер:
2.29 Кб
Скачать
// lab22Doc.h : interface of the CLab22Doc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_LAB22DOC_H__52CAD862_85EC_4B3D_9EDD_AB659F9F1488__INCLUDED_)
#define AFX_LAB22DOC_H__52CAD862_85EC_4B3D_9EDD_AB659F9F1488__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Shape.h"
#include "ArSet.h"
#include "ArSetIterator.h"

#include "TextEntity.h"
#include "TextTrapeziumEntity.h"
#include "TrapeziumEntity.h"
#include "TriangleEntity.h"

class CLab22Doc : public CDocument
{
protected: // create from serialization only
	CLab22Doc();
	DECLARE_DYNCREATE(CLab22Doc)

// Attributes
public:
	bool is_TextEnter;		//флаг ввода текста
	WORD c_TypeName;		//current type name
	ArSet<Shape*> set1;		//контейнер
	ArSet<Shape*> set2;		//контейнер
	ArSet<Shape*> set3;		//контейнер
	int index1;
	int index2;
// Operations
public:
	CSize m_DocSize;

	WORD GetElementType();		//текущий тип фигуры
	CSize GetDocSize();		
	Shape* CreateElemByType(int type);	//создание фигуры по номеру типа (для сериализации)
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLab22Doc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CLab22Doc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CLab22Doc)
	afx_msg void OnElementsText();
	afx_msg void OnUpdateElementsText(CCmdUI* pCmdUI);
	afx_msg void OnElementsTrapezium();
	afx_msg void OnUpdateElementsTrapezium(CCmdUI* pCmdUI);
	afx_msg void OnElementsTrapeziumwithtext();
	afx_msg void OnUpdateElementsTrapeziumwithtext(CCmdUI* pCmdUI);
	afx_msg void OnElementsTriangle();
	afx_msg void OnUpdateElementsTriangle(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_LAB22DOC_H__52CAD862_85EC_4B3D_9EDD_AB659F9F1488__INCLUDED_)
Соседние файлы в папке lab22