-
Notifications
You must be signed in to change notification settings - Fork 1
/
mobymonDoc.h
58 lines (46 loc) · 1.29 KB
/
mobymonDoc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// mobymonDoc.h : interface of the CMobymonDoc class
//
/////////////////////////////////////////////////////////////////////////////
class CMobymonDoc : public CDocument
{
protected: // create from serialization only
CMobymonDoc();
DECLARE_DYNCREATE(CMobymonDoc)
// Scroll line below //
CSize m_sizeDoc;
// Attributes
public:
// Scroll line below //
CSize GetDocSize() {return m_sizeDoc;}
// Operations
public:
// Printer Lines below //
int NumLines() {return m_Contents.GetSize();}
const CString& Line(int n) {return m_Contents[n];}
protected:
CStringArray m_Contents;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMobymonDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMobymonDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CMobymonDoc)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////