]> icculus.org git repositories - taylor/freespace2.git/blob - include/helpeddoc.h
Initial revision
[taylor/freespace2.git] / include / helpeddoc.h
1 // HelpEdDoc.h : interface of the CHelpEdDoc class
2 //
3 /////////////////////////////////////////////////////////////////////////////
4
5 #if !defined(AFX_HELPEDDOC_H__159085CA_C1B5_11D2_9904_00A0CC39C0BE__INCLUDED_)
6 #define AFX_HELPEDDOC_H__159085CA_C1B5_11D2_9904_00A0CC39C0BE__INCLUDED_
7
8 #if _MSC_VER > 1000
9 #pragma once
10 #endif // _MSC_VER > 1000
11
12 #include "helpedline.h"
13
14 class CHelpEdDoc : public CDocument
15 {
16 protected: // create from serialization only
17         CHelpEdDoc();
18         DECLARE_DYNCREATE(CHelpEdDoc)
19
20 // Attributes
21 public:
22
23 // Operations
24 public:
25
26 // Overrides
27         // ClassWizard generated virtual function overrides
28         //{{AFX_VIRTUAL(CHelpEdDoc)
29         public:
30         virtual BOOL OnNewDocument();
31         virtual void Serialize(CArchive& ar);
32         //}}AFX_VIRTUAL
33
34 // Implementation
35 public:
36         int get_line_count();
37         HelpEdLine * AddLine(CPoint pointFrom, CPoint pointTo);
38         virtual ~CHelpEdDoc();
39 #ifdef _DEBUG
40         virtual void AssertValid() const;
41         virtual void Dump(CDumpContext& dc) const;
42 #endif
43
44 protected:
45
46 // Generated message map functions
47 protected:
48         //{{AFX_MSG(CHelpEdDoc)
49                 // NOTE - the ClassWizard will add and remove member functions here.
50                 //    DO NOT EDIT what you see in these blocks of generated code !
51         //}}AFX_MSG
52         DECLARE_MESSAGE_MAP()
53 private:
54         CObArray line_array;
55 };
56
57 /////////////////////////////////////////////////////////////////////////////
58
59 //{{AFX_INSERT_LOCATION}}
60 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
61
62 #endif // !defined(AFX_HELPEDDOC_H__159085CA_C1B5_11D2_9904_00A0CC39C0BE__INCLUDED_)
63