| 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 | // SrvrItem.h : interface of the CEditorSrvrItem class |
| 20 | // |
| 21 | |
| 22 | #if !defined(AFX_SRVRITEM_H__949F57DC_189E_11D1_BD9B_00A0C96ED595__INCLUDED_) |
| 23 | #define AFX_SRVRITEM_H__949F57DC_189E_11D1_BD9B_00A0C96ED595__INCLUDED_ |
| 24 | |
| 25 | #if _MSC_VER >= 1000 |
| 26 | #pragma once |
| 27 | #endif // _MSC_VER >= 1000 |
| 28 | |
| 29 | class CEditorSrvrItem : public COleServerItem { |
| 30 | DECLARE_DYNAMIC(CEditorSrvrItem) |
| 31 | |
| 32 | // Constructors |
| 33 | public: |
| 34 | CEditorSrvrItem(CEditorDoc *pContainerDoc); |
| 35 | |
| 36 | // Attributes |
| 37 | CEditorDoc *GetDocument() const { return (CEditorDoc *)COleServerItem::GetDocument(); } |
| 38 | |
| 39 | // Overrides |
| 40 | // ClassWizard generated virtual function overrides |
| 41 | //{{AFX_VIRTUAL(CEditorSrvrItem) |
| 42 | public: |
| 43 | virtual BOOL OnDraw(CDC *pDC, CSize &rSize); |
| 44 | virtual BOOL OnGetExtent(DVASPECT dwDrawAspect, CSize &rSize); |
| 45 | //}}AFX_VIRTUAL |
| 46 | |
| 47 | // Implementation |
| 48 | public: |
| 49 | ~CEditorSrvrItem(); |
| 50 | #ifdef _DEBUG |
| 51 | virtual void AssertValid() const; |
| 52 | virtual void Dump(CDumpContext &dc) const; |
| 53 | #endif |
| 54 | |
| 55 | protected: |
| 56 | virtual void Serialize(CArchive &ar); // overridden for document i/o |
| 57 | }; |
| 58 | |
| 59 | ///////////////////////////////////////////////////////////////////////////// |
| 60 | |
| 61 | //{{AFX_INSERT_LOCATION}} |
| 62 | // Microsoft Developer Studio will insert additional declarations immediately before the previous line. |
| 63 | |
| 64 | #endif // !defined(AFX_SRVRITEM_H__949F57DC_189E_11D1_BD9B_00A0C96ED595__INCLUDED_) |