| 1 | /* |
| 2 | * Descent 3 |
| 3 | * Copyright (C) 2024 Parallax Software |
| 4 | * |
| 5 | * This program is free software: you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation, either version 3 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | // editorDoc.h : interface of the CEditorDoc class |
| 20 | // |
| 21 | ///////////////////////////////////////////////////////////////////////////// |
| 22 | |
| 23 | class CEditorSrvrItem; |
| 24 | |
| 25 | class CEditorDoc : public COleServerDoc { |
| 26 | protected: // create from serialization only |
| 27 | CEditorDoc(); |
| 28 | DECLARE_DYNCREATE(CEditorDoc) |
| 29 | |
| 30 | // Attributes |
| 31 | public: |
| 32 | // ADDED BY SAMIR FOR OLE SUPPORT |
| 33 | CEditorSrvrItem *GetEmbeddedItem() { return (CEditorSrvrItem *)COleServerDoc::GetEmbeddedItem(); } |
| 34 | // ADDED BY SAMIR FOR OLE SUPPORT |
| 35 | |
| 36 | // Operations |
| 37 | public: |
| 38 | // Overrides |
| 39 | // ClassWizard generated virtual function overrides |
| 40 | //{{AFX_VIRTUAL(CEditorDoc) |
| 41 | protected: |
| 42 | virtual COleServerItem *OnGetEmbeddedItem(); |
| 43 | |
| 44 | public: |
| 45 | virtual BOOL OnNewDocument(); |
| 46 | virtual void Serialize(CArchive &ar); |
| 47 | virtual BOOL OnOpenDocument(LPCTSTR lpszPathName); |
| 48 | virtual BOOL OnSaveDocument(LPCTSTR lpszPathName); |
| 49 | virtual void OnCloseDocument(); |
| 50 | |
| 51 | protected: |
| 52 | virtual BOOL SaveModified(); |
| 53 | //}}AFX_VIRTUAL |
| 54 | |
| 55 | // Implementation |
| 56 | public: |
| 57 | virtual ~CEditorDoc(); |
| 58 | #ifdef _DEBUG |
| 59 | virtual void AssertValid() const; |
| 60 | virtual void Dump(CDumpContext &dc) const; |
| 61 | #endif |
| 62 | |
| 63 | protected: |
| 64 | // Generated message map functions |
| 65 | protected: |
| 66 | //{{AFX_MSG(CEditorDoc) |
| 67 | // NOTE - the ClassWizard will add and remove member functions here. |
| 68 | // DO NOT EDIT what you see in these blocks of generated code ! |
| 69 | //}}AFX_MSG |
| 70 | DECLARE_MESSAGE_MAP() |
| 71 | }; |
| 72 | |
| 73 | ///////////////////////////////////////////////////////////////////////////// |