www.pudn.com > cad3d.zip > Cad3DDoc.h


// Cad3DDoc.h : interface of the CCad3DDoc class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_CAD3DDOC_H__3600FE50_5F37_11D4_9520_B4FBF86C1308__INCLUDED_) 
#define AFX_CAD3DDOC_H__3600FE50_5F37_11D4_9520_B4FBF86C1308__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "Modeling\Model.h" 
  
class CCad3DDoc :	public CDocument, 
					public CModel 
{ 
protected: 
	//undo/redo support 
	std::string					m_sUndoFileName; 
	std::string					m_sRedoFileName; 
	bool						m_bCanUndo; 
	bool						m_bCanRedo; 
 
protected: // create from serialization only 
	CCad3DDoc(); 
 
	DECLARE_DYNCREATE(CCad3DDoc) 
	 
	bool						OpenDocument(const char* pszFileName); 
	bool						SaveDocument(const char* pszFileName); 
// Attributes 
public: 
// Operations 
	void						SaveUndoInfo(); 
	//CCadModel overrides 
	virtual void				UpdateViews(); 
 
public: 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CCad3DDoc) 
	public: 
	virtual BOOL OnNewDocument(); 
	virtual void Serialize(CArchive& ar); 
	virtual void DeleteContents(); 
	virtual BOOL OnOpenDocument(LPCTSTR lpszPathName); 
	virtual BOOL OnSaveDocument(LPCTSTR lpszPathName); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual	~CCad3DDoc(); 
#ifdef _DEBUG 
	virtual void				AssertValid() const; 
	virtual void				Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CCad3DDoc) 
	afx_msg void OnEditUndo(); 
	afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI); 
	afx_msg void OnEditRedo(); 
	afx_msg void OnUpdateEditRedo(CCmdUI* pCmdUI); 
	afx_msg void OnFileImport(); 
//	afx_msg void OnFileExport(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_CAD3DDOC_H__3600FE50_5F37_11D4_9520_B4FBF86C1308__INCLUDED_)