wordpdoc.h
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:3k
- // wordpdoc.h : interface of the CWordPadDoc class
- //
- // This file is a part of the XTREME TOOLKIT PRO MFC class library.
- // (c)1998-2008 Codejock Software, All Rights Reserved.
- //
- // THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
- // RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN
- // CONSENT OF CODEJOCK SOFTWARE.
- //
- // THIS SOURCE CODE CAN ONLY BE USED UNDER THE TERMS AND CONDITIONS OUTLINED
- // IN THE XTREME TOOLKIT PRO LICENSE AGREEMENT. CODEJOCK SOFTWARE GRANTS TO
- // YOU (ONE SOFTWARE DEVELOPER) THE LIMITED RIGHT TO USE THIS SOFTWARE ON A
- // SINGLE COMPUTER.
- //
- // CONTACT INFORMATION:
- // support@codejock.com
- // http://www.codejock.com
- //
- /////////////////////////////////////////////////////////////////////////////
- class CFormatBar;
- class CWordPadSrvrItem;
- class CWordPadView;
- class CWordPadDoc : public CRichEditDoc
- {
- protected: // create from serialization only
- CWordPadDoc();
- DECLARE_DYNCREATE(CWordPadDoc)
- // Attributes
- public:
- int m_nDocType;
- int m_nNewDocType;
- void SetDocType(int nDocType, BOOL bNoOptionChange = FALSE);
- CWordPadView* GetView();
- CLSID GetClassID();
- LPCTSTR GetSection();
- // Operations
- public:
- void SaveState(int nType);
- void RestoreState(int nType);
- virtual CFile* GetFile(LPCTSTR pszPathName, UINT nOpenFlags,
- CFileException* pException);
- virtual BOOL DoSave(LPCTSTR pszPathName, BOOL bReplace = TRUE);
- int MapType(int nType);
- void ForceDelayed(CFrameWnd* pFrameWnd);
- // Overrides
- virtual CRichEditCntrItem* CreateClientItem(REOBJECT* preo) const;
- virtual void OnDeactivateUI(BOOL bUndoable);
- virtual void Serialize(CArchive& ar);
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CWordPadDoc)
- public:
- virtual BOOL OnNewDocument();
- virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
- virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
- virtual void OnCloseDocument();
- virtual void ReportSaveLoadException(LPCTSTR lpszPathName, CException* e, BOOL bSaving, UINT nIDPDefault);
- protected:
- virtual COleServerItem* OnGetEmbeddedItem();
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual void PreCloseFrame(CFrameWnd* pFrameArg);
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- // Generated message map functions
- protected:
- //{{AFX_MSG(CWordPadDoc)
- afx_msg void OnViewOptions();
- afx_msg void OnUpdateOleVerbPopup(CCmdUI* pCmdUI);
- afx_msg void OnFileSendMail();
- afx_msg void OnUpdateIfEmbedded(CCmdUI* pCmdUI);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////