]> git.saurik.com Git - wxWidgets.git/blob - include/wx/docview.h
Nuke #pragma implementation/interface's
[wxWidgets.git] / include / wx / docview.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: docview.h
3 // Purpose: Doc/View classes
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_DOCH__
13 #define _WX_DOCH__
14
15 #include "wx/defs.h"
16
17 #if wxUSE_DOC_VIEW_ARCHITECTURE
18
19 #include "wx/list.h"
20 #include "wx/cmndata.h"
21 #include "wx/string.h"
22 #include "wx/frame.h"
23
24 #if wxUSE_PRINTING_ARCHITECTURE
25 #include "wx/print.h"
26 #endif
27
28 class WXDLLEXPORT wxWindow;
29 class WXDLLEXPORT wxDocument;
30 class WXDLLEXPORT wxView;
31 class WXDLLEXPORT wxDocTemplate;
32 class WXDLLEXPORT wxDocManager;
33 class WXDLLEXPORT wxPrintInfo;
34 class WXDLLEXPORT wxCommandProcessor;
35 class WXDLLEXPORT wxFileHistory;
36 class WXDLLEXPORT wxConfigBase;
37
38 #if wxUSE_STD_IOSTREAM
39 #include "wx/iosfwrap.h"
40 #else
41 #include "wx/stream.h"
42 #endif
43
44 // Document manager flags
45 enum
46 {
47 wxDOC_SDI = 1,
48 wxDOC_MDI,
49 wxDOC_NEW,
50 wxDOC_SILENT,
51 wxDEFAULT_DOCMAN_FLAGS = wxDOC_SDI
52 };
53
54 // Document template flags
55 enum
56 {
57 wxTEMPLATE_VISIBLE = 1,
58 wxTEMPLATE_INVISIBLE,
59 wxDEFAULT_TEMPLATE_FLAGS = wxTEMPLATE_VISIBLE
60 };
61
62 #define wxMAX_FILE_HISTORY 9
63
64 class WXDLLEXPORT wxDocument : public wxEvtHandler
65 {
66 public:
67 wxDocument(wxDocument *parent = (wxDocument *) NULL);
68 ~wxDocument();
69
70 // accessors
71 void SetFilename(const wxString& filename, bool notifyViews = false);
72 wxString GetFilename() const { return m_documentFile; }
73
74 void SetTitle(const wxString& title) { m_documentTitle = title; };
75 wxString GetTitle() const { return m_documentTitle; }
76
77 void SetDocumentName(const wxString& name) { m_documentTypeName = name; };
78 wxString GetDocumentName() const { return m_documentTypeName; }
79
80 bool GetDocumentSaved() const { return m_savedYet; }
81 void SetDocumentSaved(bool saved = true) { m_savedYet = saved; }
82
83 virtual bool Close();
84 virtual bool Save();
85 virtual bool SaveAs();
86 virtual bool Revert();
87
88 #if wxUSE_STD_IOSTREAM
89 virtual wxSTD ostream& SaveObject(wxSTD ostream& stream);
90 virtual wxSTD istream& LoadObject(wxSTD istream& stream);
91 #else
92 virtual wxOutputStream& SaveObject(wxOutputStream& stream);
93 virtual wxInputStream& LoadObject(wxInputStream& stream);
94 #endif
95
96 // Called by wxWidgets
97 virtual bool OnSaveDocument(const wxString& filename);
98 virtual bool OnOpenDocument(const wxString& filename);
99 virtual bool OnNewDocument();
100 virtual bool OnCloseDocument();
101
102 // Prompts for saving if about to close a modified document. Returns true
103 // if ok to close the document (may have saved in the meantime, or set
104 // modified to false)
105 virtual bool OnSaveModified();
106
107 // Called by framework if created automatically by the default document
108 // manager: gives document a chance to initialise and (usually) create a
109 // view
110 virtual bool OnCreate(const wxString& path, long flags);
111
112 // By default, creates a base wxCommandProcessor.
113 virtual wxCommandProcessor *OnCreateCommandProcessor();
114 virtual wxCommandProcessor *GetCommandProcessor() const { return m_commandProcessor; }
115 virtual void SetCommandProcessor(wxCommandProcessor *proc) { m_commandProcessor = proc; }
116
117 // Called after a view is added or removed. The default implementation
118 // deletes the document if this is there are no more views.
119 virtual void OnChangedViewList();
120
121 virtual bool DeleteContents();
122
123 virtual bool Draw(wxDC&);
124 virtual bool IsModified() const { return m_documentModified; }
125 virtual void Modify(bool mod) { m_documentModified = mod; }
126
127 virtual bool AddView(wxView *view);
128 virtual bool RemoveView(wxView *view);
129 wxList& GetViews() const { return (wxList&) m_documentViews; }
130 wxView *GetFirstView() const;
131
132 virtual void UpdateAllViews(wxView *sender = (wxView *) NULL, wxObject *hint = (wxObject *) NULL);
133 virtual void NotifyClosing();
134
135 // Remove all views (because we're closing the document)
136 virtual bool DeleteAllViews();
137
138 // Other stuff
139 virtual wxDocManager *GetDocumentManager() const;
140 virtual wxDocTemplate *GetDocumentTemplate() const { return m_documentTemplate; }
141 virtual void SetDocumentTemplate(wxDocTemplate *temp) { m_documentTemplate = temp; }
142
143 // Get title, or filename if no title, else [unnamed]
144 virtual bool GetPrintableName(wxString& buf) const;
145
146 // Returns a window that can be used as a parent for document-related
147 // dialogs. Override if necessary.
148 virtual wxWindow *GetDocumentWindow() const;
149
150 protected:
151 wxList m_documentViews;
152 wxString m_documentFile;
153 wxString m_documentTitle;
154 wxString m_documentTypeName;
155 wxDocTemplate* m_documentTemplate;
156 bool m_documentModified;
157 wxDocument* m_documentParent;
158 wxCommandProcessor* m_commandProcessor;
159 bool m_savedYet;
160
161 // Called by OnSaveDocument and OnOpenDocument to implement standard
162 // Save/Load behavior. Re-implement in derived class for custom
163 // behavior.
164 virtual bool DoSaveDocument(const wxString& file);
165 virtual bool DoOpenDocument(const wxString& file);
166
167 private:
168 DECLARE_ABSTRACT_CLASS(wxDocument)
169 DECLARE_NO_COPY_CLASS(wxDocument)
170 };
171
172 class WXDLLEXPORT wxView: public wxEvtHandler
173 {
174 public:
175 // wxView(wxDocument *doc = (wxDocument *) NULL);
176 wxView();
177 ~wxView();
178
179 wxDocument *GetDocument() const { return m_viewDocument; }
180 virtual void SetDocument(wxDocument *doc);
181
182 wxString GetViewName() const { return m_viewTypeName; }
183 void SetViewName(const wxString& name) { m_viewTypeName = name; };
184
185 wxWindow *GetFrame() const { return m_viewFrame ; }
186 void SetFrame(wxWindow *frame) { m_viewFrame = frame; }
187
188 virtual void OnActivateView(bool activate, wxView *activeView, wxView *deactiveView);
189 virtual void OnDraw(wxDC *dc) = 0;
190 virtual void OnPrint(wxDC *dc, wxObject *info);
191 virtual void OnUpdate(wxView *sender, wxObject *hint = (wxObject *) NULL);
192 virtual void OnClosingDocument() {}
193 virtual void OnChangeFilename();
194
195 // Called by framework if created automatically by the default document
196 // manager class: gives view a chance to initialise
197 virtual bool OnCreate(wxDocument *WXUNUSED(doc), long WXUNUSED(flags)) { return true; };
198
199 // Checks if the view is the last one for the document; if so, asks user
200 // to confirm save data (if modified). If ok, deletes itself and returns
201 // true.
202 virtual bool Close(bool deleteWindow = true);
203
204 // Override to do cleanup/veto close
205 virtual bool OnClose(bool deleteWindow);
206
207 // Extend event processing to search the document's event table
208 virtual bool ProcessEvent(wxEvent& event);
209
210 // A view's window can call this to notify the view it is (in)active.
211 // The function then notifies the document manager.
212 virtual void Activate(bool activate);
213
214 wxDocManager *GetDocumentManager() const
215 { return m_viewDocument->GetDocumentManager(); }
216
217 #if wxUSE_PRINTING_ARCHITECTURE
218 virtual wxPrintout *OnCreatePrintout();
219 #endif
220
221 protected:
222 wxDocument* m_viewDocument;
223 wxString m_viewTypeName;
224 wxWindow* m_viewFrame;
225
226 private:
227 DECLARE_ABSTRACT_CLASS(wxView)
228 DECLARE_NO_COPY_CLASS(wxView)
229 };
230
231 // Represents user interface (and other) properties of documents and views
232 class WXDLLEXPORT wxDocTemplate: public wxObject
233 {
234
235 friend class WXDLLEXPORT wxDocManager;
236
237 public:
238 // Associate document and view types. They're for identifying what view is
239 // associated with what template/document type
240 wxDocTemplate(wxDocManager *manager,
241 const wxString& descr,
242 const wxString& filter,
243 const wxString& dir,
244 const wxString& ext,
245 const wxString& docTypeName,
246 const wxString& viewTypeName,
247 wxClassInfo *docClassInfo = (wxClassInfo *) NULL,
248 wxClassInfo *viewClassInfo = (wxClassInfo *)NULL,
249 long flags = wxDEFAULT_TEMPLATE_FLAGS);
250
251 ~wxDocTemplate();
252
253 // By default, these two member functions dynamically creates document and
254 // view using dynamic instance construction. Override these if you need a
255 // different method of construction.
256 virtual wxDocument *CreateDocument(const wxString& path, long flags = 0);
257 virtual wxView *CreateView(wxDocument *doc, long flags = 0);
258
259 // Helper method for CreateDocument; also allows you to do your own document
260 // creation
261 virtual bool InitDocument(wxDocument* doc, const wxString& path, long flags = 0);
262
263 wxString GetDefaultExtension() const { return m_defaultExt; };
264 wxString GetDescription() const { return m_description; }
265 wxString GetDirectory() const { return m_directory; };
266 wxDocManager *GetDocumentManager() const { return m_documentManager; }
267 void SetDocumentManager(wxDocManager *manager) { m_documentManager = manager; }
268 wxString GetFileFilter() const { return m_fileFilter; };
269 long GetFlags() const { return m_flags; };
270 virtual wxString GetViewName() const { return m_viewTypeName; }
271 virtual wxString GetDocumentName() const { return m_docTypeName; }
272
273 void SetFileFilter(const wxString& filter) { m_fileFilter = filter; };
274 void SetDirectory(const wxString& dir) { m_directory = dir; };
275 void SetDescription(const wxString& descr) { m_description = descr; };
276 void SetDefaultExtension(const wxString& ext) { m_defaultExt = ext; };
277 void SetFlags(long flags) { m_flags = flags; };
278
279 bool IsVisible() const { return ((m_flags & wxTEMPLATE_VISIBLE) == wxTEMPLATE_VISIBLE); }
280
281 wxClassInfo* GetDocClassInfo() const { return m_docClassInfo; }
282 wxClassInfo* GetViewClassInfo() const { return m_viewClassInfo; }
283
284 virtual bool FileMatchesTemplate(const wxString& path);
285
286 protected:
287 long m_flags;
288 wxString m_fileFilter;
289 wxString m_directory;
290 wxString m_description;
291 wxString m_defaultExt;
292 wxString m_docTypeName;
293 wxString m_viewTypeName;
294 wxDocManager* m_documentManager;
295
296 // For dynamic creation of appropriate instances.
297 wxClassInfo* m_docClassInfo;
298 wxClassInfo* m_viewClassInfo;
299
300 // Called by CreateDocument and CreateView to create the actual document/view object.
301 // By default uses the ClassInfo provided to the constructor. Override these functions
302 // to provide a different method of creation.
303 virtual wxDocument *DoCreateDocument();
304 virtual wxView *DoCreateView();
305
306 private:
307 DECLARE_CLASS(wxDocTemplate)
308 DECLARE_NO_COPY_CLASS(wxDocTemplate)
309 };
310
311 // One object of this class may be created in an application, to manage all
312 // the templates and documents.
313 class WXDLLEXPORT wxDocManager: public wxEvtHandler
314 {
315 public:
316 wxDocManager(long flags = wxDEFAULT_DOCMAN_FLAGS, bool initialize = true);
317 ~wxDocManager();
318
319 virtual bool Initialize();
320
321 // Handlers for common user commands
322 void OnFileClose(wxCommandEvent& event);
323 void OnFileCloseAll(wxCommandEvent& event);
324 void OnFileNew(wxCommandEvent& event);
325 void OnFileOpen(wxCommandEvent& event);
326 void OnFileRevert(wxCommandEvent& event);
327 void OnFileSave(wxCommandEvent& event);
328 void OnFileSaveAs(wxCommandEvent& event);
329 void OnPrint(wxCommandEvent& event);
330 void OnPreview(wxCommandEvent& event);
331 void OnUndo(wxCommandEvent& event);
332 void OnRedo(wxCommandEvent& event);
333
334 // Handlers for UI update commands
335 void OnUpdateFileOpen(wxUpdateUIEvent& event);
336 void OnUpdateFileClose(wxUpdateUIEvent& event);
337 void OnUpdateFileRevert(wxUpdateUIEvent& event);
338 void OnUpdateFileNew(wxUpdateUIEvent& event);
339 void OnUpdateFileSave(wxUpdateUIEvent& event);
340 void OnUpdateFileSaveAs(wxUpdateUIEvent& event);
341 void OnUpdateUndo(wxUpdateUIEvent& event);
342 void OnUpdateRedo(wxUpdateUIEvent& event);
343
344 void OnUpdatePrint(wxUpdateUIEvent& event);
345 void OnUpdatePreview(wxUpdateUIEvent& event);
346
347 // Extend event processing to search the view's event table
348 virtual bool ProcessEvent(wxEvent& event);
349
350 // called when file format detection didn't work, can be overridden to do
351 // something in this case
352 virtual void OnOpenFileFailure() { }
353
354 virtual wxDocument *CreateDocument(const wxString& path, long flags = 0);
355 virtual wxView *CreateView(wxDocument *doc, long flags = 0);
356 virtual void DeleteTemplate(wxDocTemplate *temp, long flags = 0);
357 virtual bool FlushDoc(wxDocument *doc);
358 virtual wxDocTemplate *MatchTemplate(const wxString& path);
359 virtual wxDocTemplate *SelectDocumentPath(wxDocTemplate **templates,
360 int noTemplates, wxString& path, long flags, bool save = false);
361 virtual wxDocTemplate *SelectDocumentType(wxDocTemplate **templates,
362 int noTemplates, bool sort = false);
363 virtual wxDocTemplate *SelectViewType(wxDocTemplate **templates,
364 int noTemplates, bool sort = false);
365 virtual wxDocTemplate *FindTemplateForPath(const wxString& path);
366
367 void AssociateTemplate(wxDocTemplate *temp);
368 void DisassociateTemplate(wxDocTemplate *temp);
369
370 wxDocument *GetCurrentDocument() const;
371
372 void SetMaxDocsOpen(int n) { m_maxDocsOpen = n; }
373 int GetMaxDocsOpen() const { return m_maxDocsOpen; }
374
375 // Add and remove a document from the manager's list
376 void AddDocument(wxDocument *doc);
377 void RemoveDocument(wxDocument *doc);
378
379 // closes all currently open documents
380 bool CloseDocuments(bool force = true);
381
382 // closes the specified document
383 bool CloseDocument(wxDocument* doc, bool force = false);
384
385 // Clear remaining documents and templates
386 bool Clear(bool force = true);
387
388 // Views or windows should inform the document manager
389 // when a view is going in or out of focus
390 virtual void ActivateView(wxView *view, bool activate = true);
391 virtual wxView *GetCurrentView() const;
392
393 wxList& GetDocuments() { return m_docs; }
394 wxList& GetTemplates() { return m_templates; }
395
396 // Make a default document name
397 virtual bool MakeDefaultName(wxString& buf);
398
399 // Make a frame title (override this to do something different)
400 virtual wxString MakeFrameTitle(wxDocument* doc);
401
402 virtual wxFileHistory *OnCreateFileHistory();
403 virtual wxFileHistory *GetFileHistory() const { return m_fileHistory; }
404
405 // File history management
406 virtual void AddFileToHistory(const wxString& file);
407 virtual void RemoveFileFromHistory(size_t i);
408 virtual size_t GetHistoryFilesCount() const;
409 virtual wxString GetHistoryFile(size_t i) const;
410 virtual void FileHistoryUseMenu(wxMenu *menu);
411 virtual void FileHistoryRemoveMenu(wxMenu *menu);
412 #if wxUSE_CONFIG
413 virtual void FileHistoryLoad(wxConfigBase& config);
414 virtual void FileHistorySave(wxConfigBase& config);
415 #endif // wxUSE_CONFIG
416
417 virtual void FileHistoryAddFilesToMenu();
418 virtual void FileHistoryAddFilesToMenu(wxMenu* menu);
419
420 wxString GetLastDirectory() const { return m_lastDirectory; }
421 void SetLastDirectory(const wxString& dir) { m_lastDirectory = dir; }
422
423 // Get the current document manager
424 static wxDocManager* GetDocumentManager() { return sm_docManager; }
425
426 // deprecated, use GetHistoryFilesCount() instead
427 wxDEPRECATED( size_t GetNoHistoryFiles() const );
428
429 protected:
430 long m_flags;
431 int m_defaultDocumentNameCounter;
432 int m_maxDocsOpen;
433 wxList m_docs;
434 wxList m_templates;
435 wxView* m_currentView;
436 wxFileHistory* m_fileHistory;
437 wxString m_lastDirectory;
438 static wxDocManager* sm_docManager;
439
440 DECLARE_EVENT_TABLE()
441 DECLARE_DYNAMIC_CLASS(wxDocManager)
442 DECLARE_NO_COPY_CLASS(wxDocManager)
443 };
444
445 inline size_t wxDocManager::GetNoHistoryFiles() const
446 {
447 return GetHistoryFilesCount();
448 }
449
450 // ----------------------------------------------------------------------------
451 // A default child frame
452 // ----------------------------------------------------------------------------
453
454 class WXDLLEXPORT wxDocChildFrame : public wxFrame
455 {
456 public:
457 wxDocChildFrame(wxDocument *doc,
458 wxView *view,
459 wxFrame *frame,
460 wxWindowID id,
461 const wxString& title,
462 const wxPoint& pos = wxDefaultPosition,
463 const wxSize& size = wxDefaultSize,
464 long type = wxDEFAULT_FRAME_STYLE,
465 const wxString& name = wxT("frame"));
466 ~wxDocChildFrame(){}
467
468 // Extend event processing to search the view's event table
469 virtual bool ProcessEvent(wxEvent& event);
470
471 void OnActivate(wxActivateEvent& event);
472 void OnCloseWindow(wxCloseEvent& event);
473
474 wxDocument *GetDocument() const { return m_childDocument; }
475 wxView *GetView() const { return m_childView; }
476 void SetDocument(wxDocument *doc) { m_childDocument = doc; }
477 void SetView(wxView *view) { m_childView = view; }
478 bool Destroy() { m_childView = (wxView *)NULL; return wxFrame::Destroy(); }
479
480 protected:
481 wxDocument* m_childDocument;
482 wxView* m_childView;
483
484 private:
485 DECLARE_CLASS(wxDocChildFrame)
486 DECLARE_EVENT_TABLE()
487 DECLARE_NO_COPY_CLASS(wxDocChildFrame)
488 };
489
490 // ----------------------------------------------------------------------------
491 // A default parent frame
492 // ----------------------------------------------------------------------------
493
494 class WXDLLEXPORT wxDocParentFrame : public wxFrame
495 {
496 public:
497 wxDocParentFrame(wxDocManager *manager,
498 wxFrame *frame,
499 wxWindowID id,
500 const wxString& title,
501 const wxPoint& pos = wxDefaultPosition,
502 const wxSize& size = wxDefaultSize,
503 long type = wxDEFAULT_FRAME_STYLE,
504 const wxString& name = wxT("frame"));
505
506 // Extend event processing to search the document manager's event table
507 virtual bool ProcessEvent(wxEvent& event);
508
509 wxDocManager *GetDocumentManager() const { return m_docManager; }
510
511 void OnExit(wxCommandEvent& event);
512 void OnMRUFile(wxCommandEvent& event);
513 void OnCloseWindow(wxCloseEvent& event);
514
515 protected:
516 wxDocManager *m_docManager;
517
518 private:
519 DECLARE_CLASS(wxDocParentFrame)
520 DECLARE_EVENT_TABLE()
521 DECLARE_NO_COPY_CLASS(wxDocParentFrame)
522 };
523
524 // ----------------------------------------------------------------------------
525 // Provide simple default printing facilities
526 // ----------------------------------------------------------------------------
527
528 #if wxUSE_PRINTING_ARCHITECTURE
529 class WXDLLEXPORT wxDocPrintout : public wxPrintout
530 {
531 public:
532 wxDocPrintout(wxView *view = (wxView *) NULL, const wxString& title = wxT("Printout"));
533 bool OnPrintPage(int page);
534 bool HasPage(int page);
535 bool OnBeginDocument(int startPage, int endPage);
536 void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo);
537
538 virtual wxView *GetView() { return m_printoutView; }
539
540 protected:
541 wxView* m_printoutView;
542
543 private:
544 DECLARE_DYNAMIC_CLASS(wxDocPrintout)
545 DECLARE_NO_COPY_CLASS(wxDocPrintout)
546 };
547 #endif // wxUSE_PRINTING_ARCHITECTURE
548
549 // ----------------------------------------------------------------------------
550 // File history management
551 // ----------------------------------------------------------------------------
552
553 class WXDLLEXPORT wxFileHistory : public wxObject
554 {
555 public:
556 wxFileHistory(size_t maxFiles = 9, wxWindowID idBase = wxID_FILE1);
557 ~wxFileHistory();
558
559 // Operations
560 virtual void AddFileToHistory(const wxString& file);
561 virtual void RemoveFileFromHistory(size_t i);
562 virtual int GetMaxFiles() const { return (int)m_fileMaxFiles; }
563 virtual void UseMenu(wxMenu *menu);
564
565 // Remove menu from the list (MDI child may be closing)
566 virtual void RemoveMenu(wxMenu *menu);
567
568 #if wxUSE_CONFIG
569 virtual void Load(wxConfigBase& config);
570 virtual void Save(wxConfigBase& config);
571 #endif // wxUSE_CONFIG
572
573 virtual void AddFilesToMenu();
574 virtual void AddFilesToMenu(wxMenu* menu); // Single menu
575
576 // Accessors
577 virtual wxString GetHistoryFile(size_t i) const;
578 virtual size_t GetCount() const { return m_fileHistoryN; }
579
580 const wxList& GetMenus() const { return m_fileMenus; }
581
582 // deprecated, use GetCount() instead
583 wxDEPRECATED( size_t GetNoHistoryFiles() const );
584
585 protected:
586 // Last n files
587 wxChar** m_fileHistory;
588 // Number of files saved
589 size_t m_fileHistoryN;
590 // Menus to maintain (may need several for an MDI app)
591 wxList m_fileMenus;
592 // Max files to maintain
593 size_t m_fileMaxFiles;
594
595 private:
596 // The ID of the first history menu item (Doesn't have to be wxID_FILE1)
597 wxWindowID m_idBase;
598
599 DECLARE_DYNAMIC_CLASS(wxFileHistory)
600 DECLARE_NO_COPY_CLASS(wxFileHistory)
601 };
602
603 inline size_t wxFileHistory::GetNoHistoryFiles() const
604 {
605 return m_fileHistoryN;
606 }
607
608 #if wxUSE_STD_IOSTREAM
609 // For compatibility with existing file formats:
610 // converts from/to a stream to/from a temporary file.
611 bool WXDLLEXPORT wxTransferFileToStream(const wxString& filename, wxSTD ostream& stream);
612 bool WXDLLEXPORT wxTransferStreamToFile(wxSTD istream& stream, const wxString& filename);
613 #else
614 // For compatibility with existing file formats:
615 // converts from/to a stream to/from a temporary file.
616 bool WXDLLEXPORT wxTransferFileToStream(const wxString& filename, wxOutputStream& stream);
617 bool WXDLLEXPORT wxTransferStreamToFile(wxInputStream& stream, const wxString& filename);
618 #endif // wxUSE_STD_IOSTREAM
619
620 #endif // wxUSE_DOC_VIEW_ARCHITECTURE
621
622 #endif // _WX_DOCH__