MiniCADDoc.h
上传用户:netltd
上传日期:2013-02-12
资源大小:7234k
文件大小:2k
- // MiniCADDoc.h : interface of the CMiniCADDoc class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MINICADDOC_H__7F09879E_D806_11D2_8830_E0646867975D__INCLUDED_)
- #define AFX_MINICADDOC_H__7F09879E_D806_11D2_8830_E0646867975D__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "MiniCAD.h"
- #include "MyManageGraphObj.h"
- class CMiniCADDoc : public CDocument
- {
- protected: // create from serialization only
- CMiniCADDoc();
- DECLARE_DYNCREATE(CMiniCADDoc)
- // Attributes
- protected:
- CMiniCADApp* pApp;
- public:
- BOOL DocumentReady; //文档准备就绪标志
- UINT CurrentCommand; //当前绘图命令
- public:
- CFileInfo FileInfo;
-
- public:
- CCommandStack m_CommandStack;
- CManageFileLayer m_ManageFileLayer;
- CManageGraphObject m_ManageGraphObject;
-
- // Operations
- public:
- BOOL SaveDocument();
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMiniCADDoc)
- public:
- virtual BOOL OnNewDocument();
- virtual void Serialize(CArchive& ar);
- virtual void OnCloseDocument();
- virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CMiniCADDoc();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMiniCADDoc)
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MINICADDOC_H__7F09879E_D806_11D2_8830_E0646867975D__INCLUDED_)