-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDRAWDOC.H
141 lines (101 loc) · 3.85 KB
/
DRAWDOC.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
// drawdoc.h : interface of the CDrawDoc class
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992-1993 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and Microsoft
// QuickHelp and/or WinHelp documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft Foundation Classes product.
class CBaseView;
class CPageView;
class CPageServer;
//class CDrawView;
//class CTabView;
class CDrawObj;
//class CDrawNode;
//class CKante;
class AFX_CLASS_EXPORT CDrawDoc : public COleDocument
{
protected: // create from serialization only
CDrawDoc();
DECLARE_DYNCREATE(CDrawDoc)
// Attributes
public:
// Operationen bezogen auf die neue Seitenverwaltung
void MakeChangesRegardingMe(CPageView* pView);
CPageServer* GetPageServer() { return &m_PageServer; }
void AddNewPage(CPageView* pView);
BOOL IsAnyPageLeft(CPageView* pView);
void DeletePage(CPageView* pView);
BOOL ExsistAnyPage(CPageView* pView);
void GetNextPage(CPageView* pView);
BOOL IsNextPageAvailable(CPageView* pView);
void GetPrevPage(CPageView* pView);
BOOL IsPrevPageAvailable(CPageView* pView);
void GetFirstPage(CPageView* pView);
void GetLastPage(CPageView* pView);
//--------------------------------------------------
CDrawObj* FindObject(WORD number);
CObList* GetDeletedObjects() { return &m_deletedobjects; }
void SelectFahrplan(CDrawObj* pObj);
const CSize& GetSize() const { return m_size; }
void ComputePageSize();
void ErrorMessage(LPCSTR msg);
int GetMapMode() const { return m_nMapMode; }
COLORREF GetPaperColor() const { return m_paperColor; }
void SetStandartFont(LOGFONT font) { m_LogfontStandart = font; }
LOGFONT GetStandartFont() { return m_LogfontStandart; }
// Operations
public:
CBaseView* FindView(CString Name);
CDrawObj* ObjectAt(const CPoint& point, CBaseView* pView);
void Draw(CDC* pDC, CBaseView* pView);
void Add(CDrawObj* pObj, CObList* pView);
void Add(CDrawObj* pObj, CBaseView* pView);
void AddHead(CDrawObj* pObj, CBaseView* pView);
void Remove(CDrawObj* pObj, CBaseView* pView);
// Overrides CDocument
BOOL OnOpenDocument(const char* pszPathName);
BOOL OnSaveDocument(const char* pszPathName);
public:
// Implementation
void UpdateIniFileWithDocPath(const char* pszPathName);
virtual ~CDrawDoc();
virtual void Serialize(CArchive& ar); // overridden for document i/o
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
virtual BOOL OnNewDocument();
CObList m_deletedobjects;
// Neue Seitenverwaltung
CPageServer m_PageServer;
// Für Netz:
// CObList m_objects;
// CObList m_bendefobjects;
// CObList m_tabellen;
int selectedtab;
// CObList m_kundenpages;
int m_ActualKunden;
// CObList m_FahrplanPages;
// CObList m_Fahrplaene;
// CDrawObj* m_pActiveFahrplan;
CSize m_size;
int m_nMapMode;
COLORREF m_paperColor;
// Standarts
LOGFONT m_LogfontStandart;
// Generated message map functions
protected:
//{{AFX_MSG(CDrawDoc)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
afx_msg void OnViewPaperColor();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////