Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.2 KiB

  1. // wordpdoc.h : interface of the CWordPadDoc class
  2. //
  3. // Copyright (C) 1992-1999 Microsoft Corporation
  4. // All rights reserved.
  5. class CFormatBar;
  6. class CWordPadSrvrItem;
  7. class CWordPadView;
  8. class CWordPadDoc : public CRichEdit2Doc
  9. {
  10. protected: // create from serialization only
  11. CWordPadDoc();
  12. DECLARE_DYNCREATE(CWordPadDoc)
  13. // Attributes
  14. public:
  15. int m_nDocType;
  16. int m_nNewDocType;
  17. LPTSTR m_short_filename;
  18. void SetDocType(int nDocType, BOOL bNoOptionChange = FALSE);
  19. CWordPadView* GetView();
  20. CLSID GetClassID();
  21. LPCTSTR GetSection();
  22. // Operations
  23. public:
  24. void SaveState(int nType);
  25. void RestoreState(int nType);
  26. virtual CFile* GetFile(LPCTSTR pszPathName, UINT nOpenFlags,
  27. CFileException* pException);
  28. virtual BOOL DoSave(LPCTSTR pszPathName, BOOL bReplace = TRUE);
  29. int MapType(int nType);
  30. void ForceDelayed(CFrameWnd* pFrameWnd);
  31. // Overrides
  32. virtual CRichEdit2CntrItem* CreateClientItem(REOBJECT* preo) const;
  33. virtual void OnDeactivateUI(BOOL bUndoable);
  34. virtual void Serialize(CArchive& ar);
  35. // ClassWizard generated virtual function overrides
  36. //{{AFX_VIRTUAL(CWordPadDoc)
  37. public:
  38. virtual BOOL OnNewDocument();
  39. virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
  40. BOOL OnOpenDocument2(LPCTSTR lpszPathName, bool defaultToText=true, BOOL* pbAccessDenied=NULL);
  41. virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
  42. virtual void OnCloseDocument();
  43. virtual void ReportSaveLoadException(LPCTSTR lpszPathName, CException* e, BOOL bSaving, UINT nIDPDefault);
  44. protected:
  45. virtual COleServerItem* OnGetEmbeddedItem();
  46. //}}AFX_VIRTUAL
  47. // Implementation
  48. public:
  49. virtual void PreCloseFrame(CFrameWnd* pFrameArg);
  50. #ifdef _DEBUG
  51. virtual void AssertValid() const;
  52. virtual void Dump(CDumpContext& dc) const;
  53. #endif
  54. // Generated message map functions
  55. protected:
  56. //{{AFX_MSG(CWordPadDoc)
  57. afx_msg void OnViewOptions();
  58. afx_msg void OnUpdateOleVerbPopup(CCmdUI* pCmdUI);
  59. afx_msg void OnFileSendMail();
  60. afx_msg void OnUpdateIfEmbedded(CCmdUI* pCmdUI);
  61. afx_msg void OnEditLinks();
  62. //}}AFX_MSG
  63. DECLARE_MESSAGE_MAP()
  64. };
  65. /////////////////////////////////////////////////////////////////////////////