- // CADDoc.h : interface of the CCADDoc class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_CADDOC_H__A927CAC9_F538_4764_AE44_B55CBECE548D__INCLUDED_)
- #define AFX_CADDOC_H__A927CAC9_F538_4764_AE44_B55CBECE548D__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "LINE.h"
- #include "RECTANGE.h"
- #include "CIRCLE.h"
- #include "ELLIPS.h"
- #include "MULTILINE.h"
- #include "ARC.h"
- #include "LG_wELLIPS.h"
- #include "LG_wARC.h"
- #include "LG_wCIRCLE.h"
- #include "LG_wRECTANGE.h"
- #include "LG_wLINE.h"
- class CCADDoc : public CDocument
- {
- protected: // create from serialization only
- CCADDoc();
- DECLARE_DYNCREATE(CCADDoc)
- // Attributes
- public:
- int m_line_style;
- int m_line_width;
- COLORREF m_line_color;
- // Operations
- public:
- CLINE m_line;
- CRECTANGE m_rectange;
- CCIRCLE m_circle;
- CELLIPS m_ellips;
- CMULTILINE m_multline;
- CARC m_arc;
- public:
- bool m_mode_flage;
- public:
- int m_DrawType;
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CCADDoc)
- public:
- virtual BOOL OnNewDocument();
- virtual void Serialize(CArchive& ar);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CCADDoc();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CCADDoc)
- afx_msg void OnDrawLine();
- afx_msg void OnUpdateDrawLine(CCmdUI* pCmdUI);
- afx_msg void OnDrawCircle();
- afx_msg void OnUpdateDrawCircle(CCmdUI* pCmdUI);
- afx_msg void OnDrawEllips();
- afx_msg void OnUpdateDrawEllips(CCmdUI* pCmdUI);
- afx_msg void OnDrawMultline();
- afx_msg void OnUpdateDrawMultline(CCmdUI* pCmdUI);
- afx_msg void OnDrawRectange();
- afx_msg void OnUpdateDrawRectange(CCmdUI* pCmdUI);
- afx_msg void OnDrawText();
- afx_msg void OnUpdateDrawText(CCmdUI* pCmdUI);
- afx_msg void OnUpdateModeD(CCmdUI* pCmdUI);
- afx_msg void OnUpdateModeE(CCmdUI* pCmdUI);
- afx_msg void OnModeE();
- afx_msg void OnModeD();
- afx_msg void OnDrawArc();
- afx_msg void OnUpdateDrawArc(CCmdUI* pCmdUI);
- afx_msg void OnwARC();
- afx_msg void OnwCIRCLE();
- afx_msg void OnwELLIPS();
- afx_msg void OnwLINE();
- afx_msg void OnwRECTANGE();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_CADDOC_H__A927CAC9_F538_4764_AE44_B55CBECE548D__INCLUDED_)