Скачиваний:
11
Добавлен:
01.05.2014
Размер:
2.5 Кб
Скачать
// SketcherDoc.h : interface of the CSketcherDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SKETCHERDOC_H__623441AB_57EA_11D0_9257_00201834E2A3__INCLUDED_)
#define AFX_SKETCHERDOC_H__623441AB_57EA_11D0_9257_00201834E2A3__INCLUDED_
//////////////////////////////////////////////////////////////////////////
#include "ShapeContainer.h"
//////////////////////////////////////////////////////////////////////////

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

// Attributes
public:

protected:
	
    ShapeContainer* _shapeContainer;
    // Document size
	
	CSize m_DocSize;
// Operations
public:
    // Retrieve the document size
    
    CSize GetDocSize(){ return m_DocSize; }
	
    ShapeContainer* getShapeContainer() const { return _shapeContainer; }
protected:
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSketcherDoc)
	public:
	
	virtual BOOL OnNewDocument();
	
	virtual void Serialize(CArchive& ar);
	//}}AFX_VIRTUAL
// Implementation
public:
	
	virtual ~CSketcherDoc();
#ifdef _DEBUG
	
	virtual void AssertValid() const;
	
	virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
	//{{AFX_MSG(CSketcherDoc)
	
	afx_msg void OnColorBlack();
	
	afx_msg void OnColorRed();
	
	afx_msg void OnElementLine();
	
	afx_msg void OnElementRectangle();
	
	afx_msg void OnUpdateColorBlack(CCmdUI* pCmdUI);
	
	afx_msg void OnUpdateColorRed(CCmdUI* pCmdUI);
	
	afx_msg void OnUpdateElementLine(CCmdUI* pCmdUI);
	
	afx_msg void OnUpdateElementRectangle(CCmdUI* pCmdUI);
	
	afx_msg void OnElementOval();
	
	afx_msg void OnUpdateElementOval(CCmdUI* pCmdUI);
	
	afx_msg void OnUpdateElementText(CCmdUI* pCmdUI);
	
	afx_msg void OnElementText();
	
	afx_msg void OnElementTextInOval();
	
	afx_msg void OnUpdateElementTextInOval(CCmdUI* pCmdUI);
	
	afx_msg void OnElementRibble();
	
	afx_msg void OnUpdateElementRibble(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

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