1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Doc/View classes
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
17 #if wxUSE_DOC_VIEW_ARCHITECTURE
20 #include "wx/string.h"
23 #if wxUSE_PRINTING_ARCHITECTURE
27 class WXDLLIMPEXP_FWD_CORE wxWindow
;
28 class WXDLLIMPEXP_FWD_CORE wxDocument
;
29 class WXDLLIMPEXP_FWD_CORE wxView
;
30 class WXDLLIMPEXP_FWD_CORE wxDocTemplate
;
31 class WXDLLIMPEXP_FWD_CORE wxDocManager
;
32 class WXDLLIMPEXP_FWD_CORE wxPrintInfo
;
33 class WXDLLIMPEXP_FWD_CORE wxCommandProcessor
;
34 class WXDLLIMPEXP_FWD_CORE wxFileHistory
;
35 class WXDLLIMPEXP_FWD_BASE wxConfigBase
;
37 #if wxUSE_STD_IOSTREAM
38 #include "wx/iosfwrap.h"
40 #include "wx/stream.h"
43 // Flags for wxDocManager (can be combined).
50 // Document template flags
53 wxTEMPLATE_VISIBLE
= 1,
55 wxDEFAULT_TEMPLATE_FLAGS
= wxTEMPLATE_VISIBLE
58 #define wxMAX_FILE_HISTORY 9
60 class WXDLLIMPEXP_CORE wxDocument
: public wxEvtHandler
63 wxDocument(wxDocument
*parent
= NULL
);
64 virtual ~wxDocument();
67 void SetFilename(const wxString
& filename
, bool notifyViews
= false);
68 wxString
GetFilename() const { return m_documentFile
; }
70 void SetTitle(const wxString
& title
) { m_documentTitle
= title
; }
71 wxString
GetTitle() const { return m_documentTitle
; }
73 void SetDocumentName(const wxString
& name
) { m_documentTypeName
= name
; }
74 wxString
GetDocumentName() const { return m_documentTypeName
; }
76 bool GetDocumentSaved() const { return m_savedYet
; }
77 void SetDocumentSaved(bool saved
= true) { m_savedYet
= saved
; }
81 virtual bool SaveAs();
82 virtual bool Revert();
84 #if wxUSE_STD_IOSTREAM
85 virtual wxSTD ostream
& SaveObject(wxSTD ostream
& stream
);
86 virtual wxSTD istream
& LoadObject(wxSTD istream
& stream
);
88 virtual wxOutputStream
& SaveObject(wxOutputStream
& stream
);
89 virtual wxInputStream
& LoadObject(wxInputStream
& stream
);
92 // Called by wxWidgets
93 virtual bool OnSaveDocument(const wxString
& filename
);
94 virtual bool OnOpenDocument(const wxString
& filename
);
95 virtual bool OnNewDocument();
96 virtual bool OnCloseDocument();
98 // Prompts for saving if about to close a modified document. Returns true
99 // if ok to close the document (may have saved in the meantime, or set
100 // modified to false)
101 virtual bool OnSaveModified();
103 // Called by framework if created automatically by the default document
104 // manager: gives document a chance to initialise and (usually) create a
106 virtual bool OnCreate(const wxString
& path
, long flags
);
108 // By default, creates a base wxCommandProcessor.
109 virtual wxCommandProcessor
*OnCreateCommandProcessor();
110 virtual wxCommandProcessor
*GetCommandProcessor() const { return m_commandProcessor
; }
111 virtual void SetCommandProcessor(wxCommandProcessor
*proc
) { m_commandProcessor
= proc
; }
113 // Called after a view is added or removed. The default implementation
114 // deletes the document if this is there are no more views.
115 virtual void OnChangedViewList();
117 virtual bool DeleteContents();
119 virtual bool Draw(wxDC
&);
120 virtual bool IsModified() const { return m_documentModified
; }
121 virtual void Modify(bool mod
) { m_documentModified
= mod
; }
123 virtual bool AddView(wxView
*view
);
124 virtual bool RemoveView(wxView
*view
);
125 wxList
& GetViews() { return m_documentViews
; }
126 const wxList
& GetViews() const { return m_documentViews
; }
127 wxView
*GetFirstView() const;
129 virtual void UpdateAllViews(wxView
*sender
= NULL
, wxObject
*hint
= NULL
);
130 virtual void NotifyClosing();
132 // Remove all views (because we're closing the document)
133 virtual bool DeleteAllViews();
136 virtual wxDocManager
*GetDocumentManager() const;
137 virtual wxDocTemplate
*GetDocumentTemplate() const { return m_documentTemplate
; }
138 virtual void SetDocumentTemplate(wxDocTemplate
*temp
) { m_documentTemplate
= temp
; }
140 // Get the document name to be shown to the user: the title if there is
141 // any, otherwise the filename if the document was saved and, finally,
142 // "unnamed" otherwise
143 virtual wxString
GetUserReadableName() const;
145 #if WXWIN_COMPATIBILITY_2_8
146 // use GetUserReadableName() instead
147 wxDEPRECATED_BUT_USED_INTERNALLY(
148 virtual bool GetPrintableName(wxString
& buf
) const
150 #endif // WXWIN_COMPATIBILITY_2_8
152 // Returns a window that can be used as a parent for document-related
153 // dialogs. Override if necessary.
154 virtual wxWindow
*GetDocumentWindow() const;
157 wxList m_documentViews
;
158 wxString m_documentFile
;
159 wxString m_documentTitle
;
160 wxString m_documentTypeName
;
161 wxDocTemplate
* m_documentTemplate
;
162 bool m_documentModified
;
163 wxDocument
* m_documentParent
;
164 wxCommandProcessor
* m_commandProcessor
;
167 // Called by OnSaveDocument and OnOpenDocument to implement standard
168 // Save/Load behavior. Re-implement in derived class for custom
170 virtual bool DoSaveDocument(const wxString
& file
);
171 virtual bool DoOpenDocument(const wxString
& file
);
173 // the default implementation of GetUserReadableName()
174 wxString
DoGetUserReadableName() const;
177 DECLARE_ABSTRACT_CLASS(wxDocument
)
178 DECLARE_NO_COPY_CLASS(wxDocument
)
181 class WXDLLIMPEXP_CORE wxView
: public wxEvtHandler
187 wxDocument
*GetDocument() const { return m_viewDocument
; }
188 virtual void SetDocument(wxDocument
*doc
);
190 wxString
GetViewName() const { return m_viewTypeName
; }
191 void SetViewName(const wxString
& name
) { m_viewTypeName
= name
; }
193 wxWindow
*GetFrame() const { return m_viewFrame
; }
194 void SetFrame(wxWindow
*frame
) { m_viewFrame
= frame
; }
196 virtual void OnActivateView(bool activate
, wxView
*activeView
, wxView
*deactiveView
);
197 virtual void OnDraw(wxDC
*dc
) = 0;
198 virtual void OnPrint(wxDC
*dc
, wxObject
*info
);
199 virtual void OnUpdate(wxView
*sender
, wxObject
*hint
= NULL
);
200 virtual void OnClosingDocument() {}
201 virtual void OnChangeFilename();
203 // Called by framework if created automatically by the default document
204 // manager class: gives view a chance to initialise
205 virtual bool OnCreate(wxDocument
*WXUNUSED(doc
), long WXUNUSED(flags
))
208 // Checks if the view is the last one for the document; if so, asks user
209 // to confirm save data (if modified). If ok, deletes itself and returns
211 virtual bool Close(bool deleteWindow
= true);
213 // Override to do cleanup/veto close
214 virtual bool OnClose(bool deleteWindow
);
216 // Extend event processing to search the document's event table
217 virtual bool ProcessEvent(wxEvent
& event
);
219 // A view's window can call this to notify the view it is (in)active.
220 // The function then notifies the document manager.
221 virtual void Activate(bool activate
);
223 wxDocManager
*GetDocumentManager() const
224 { return m_viewDocument
->GetDocumentManager(); }
226 #if wxUSE_PRINTING_ARCHITECTURE
227 virtual wxPrintout
*OnCreatePrintout();
231 wxDocument
* m_viewDocument
;
232 wxString m_viewTypeName
;
233 wxWindow
* m_viewFrame
;
236 DECLARE_ABSTRACT_CLASS(wxView
)
237 DECLARE_NO_COPY_CLASS(wxView
)
240 // Represents user interface (and other) properties of documents and views
241 class WXDLLIMPEXP_CORE wxDocTemplate
: public wxObject
244 friend class WXDLLIMPEXP_FWD_CORE wxDocManager
;
247 // Associate document and view types. They're for identifying what view is
248 // associated with what template/document type
249 wxDocTemplate(wxDocManager
*manager
,
250 const wxString
& descr
,
251 const wxString
& filter
,
254 const wxString
& docTypeName
,
255 const wxString
& viewTypeName
,
256 wxClassInfo
*docClassInfo
= NULL
,
257 wxClassInfo
*viewClassInfo
= NULL
,
258 long flags
= wxDEFAULT_TEMPLATE_FLAGS
);
260 virtual ~wxDocTemplate();
262 // By default, these two member functions dynamically creates document and
263 // view using dynamic instance construction. Override these if you need a
264 // different method of construction.
265 virtual wxDocument
*CreateDocument(const wxString
& path
, long flags
= 0);
266 virtual wxView
*CreateView(wxDocument
*doc
, long flags
= 0);
268 // Helper method for CreateDocument; also allows you to do your own document
270 virtual bool InitDocument(wxDocument
* doc
, const wxString
& path
, long flags
= 0);
272 wxString
GetDefaultExtension() const { return m_defaultExt
; }
273 wxString
GetDescription() const { return m_description
; }
274 wxString
GetDirectory() const { return m_directory
; }
275 wxDocManager
*GetDocumentManager() const { return m_documentManager
; }
276 void SetDocumentManager(wxDocManager
*manager
) { m_documentManager
= manager
; }
277 wxString
GetFileFilter() const { return m_fileFilter
; }
278 long GetFlags() const { return m_flags
; }
279 virtual wxString
GetViewName() const { return m_viewTypeName
; }
280 virtual wxString
GetDocumentName() const { return m_docTypeName
; }
282 void SetFileFilter(const wxString
& filter
) { m_fileFilter
= filter
; }
283 void SetDirectory(const wxString
& dir
) { m_directory
= dir
; }
284 void SetDescription(const wxString
& descr
) { m_description
= descr
; }
285 void SetDefaultExtension(const wxString
& ext
) { m_defaultExt
= ext
; }
286 void SetFlags(long flags
) { m_flags
= flags
; }
288 bool IsVisible() const { return ((m_flags
& wxTEMPLATE_VISIBLE
) == wxTEMPLATE_VISIBLE
); }
290 wxClassInfo
* GetDocClassInfo() const { return m_docClassInfo
; }
291 wxClassInfo
* GetViewClassInfo() const { return m_viewClassInfo
; }
293 virtual bool FileMatchesTemplate(const wxString
& path
);
297 wxString m_fileFilter
;
298 wxString m_directory
;
299 wxString m_description
;
300 wxString m_defaultExt
;
301 wxString m_docTypeName
;
302 wxString m_viewTypeName
;
303 wxDocManager
* m_documentManager
;
305 // For dynamic creation of appropriate instances.
306 wxClassInfo
* m_docClassInfo
;
307 wxClassInfo
* m_viewClassInfo
;
309 // Called by CreateDocument and CreateView to create the actual document/view object.
310 // By default uses the ClassInfo provided to the constructor. Override these functions
311 // to provide a different method of creation.
312 virtual wxDocument
*DoCreateDocument();
313 virtual wxView
*DoCreateView();
316 DECLARE_CLASS(wxDocTemplate
)
317 DECLARE_NO_COPY_CLASS(wxDocTemplate
)
320 // One object of this class may be created in an application, to manage all
321 // the templates and documents.
322 class WXDLLIMPEXP_CORE wxDocManager
: public wxEvtHandler
325 // NB: flags are unused, don't pass wxDOC_XXX to this ctor
326 wxDocManager(long flags
= 0, bool initialize
= true);
327 virtual ~wxDocManager();
329 virtual bool Initialize();
331 // Handlers for common user commands
332 void OnFileClose(wxCommandEvent
& event
);
333 void OnFileCloseAll(wxCommandEvent
& event
);
334 void OnFileNew(wxCommandEvent
& event
);
335 void OnFileOpen(wxCommandEvent
& event
);
336 void OnFileRevert(wxCommandEvent
& event
);
337 void OnFileSave(wxCommandEvent
& event
);
338 void OnFileSaveAs(wxCommandEvent
& event
);
339 void OnPrint(wxCommandEvent
& event
);
340 void OnPreview(wxCommandEvent
& event
);
341 void OnUndo(wxCommandEvent
& event
);
342 void OnRedo(wxCommandEvent
& event
);
344 // Handlers for UI update commands
345 void OnUpdateFileOpen(wxUpdateUIEvent
& event
);
346 void OnUpdateDisableIfNoDoc(wxUpdateUIEvent
& event
);
347 void OnUpdateFileNew(wxUpdateUIEvent
& event
);
348 void OnUpdateFileSave(wxUpdateUIEvent
& event
);
349 void OnUpdateUndo(wxUpdateUIEvent
& event
);
350 void OnUpdateRedo(wxUpdateUIEvent
& event
);
352 // Extend event processing to search the view's event table
353 virtual bool ProcessEvent(wxEvent
& event
);
355 // called when file format detection didn't work, can be overridden to do
356 // something in this case
357 virtual void OnOpenFileFailure() { }
359 virtual wxDocument
*CreateDocument(const wxString
& path
, long flags
= 0);
360 virtual wxView
*CreateView(wxDocument
*doc
, long flags
= 0);
361 virtual void DeleteTemplate(wxDocTemplate
*temp
, long flags
= 0);
362 virtual bool FlushDoc(wxDocument
*doc
);
363 virtual wxDocTemplate
*MatchTemplate(const wxString
& path
);
364 virtual wxDocTemplate
*SelectDocumentPath(wxDocTemplate
**templates
,
365 int noTemplates
, wxString
& path
, long flags
, bool save
= false);
366 virtual wxDocTemplate
*SelectDocumentType(wxDocTemplate
**templates
,
367 int noTemplates
, bool sort
= false);
368 virtual wxDocTemplate
*SelectViewType(wxDocTemplate
**templates
,
369 int noTemplates
, bool sort
= false);
370 virtual wxDocTemplate
*FindTemplateForPath(const wxString
& path
);
372 void AssociateTemplate(wxDocTemplate
*temp
);
373 void DisassociateTemplate(wxDocTemplate
*temp
);
375 wxDocument
*GetCurrentDocument() const;
377 void SetMaxDocsOpen(int n
) { m_maxDocsOpen
= n
; }
378 int GetMaxDocsOpen() const { return m_maxDocsOpen
; }
380 // Add and remove a document from the manager's list
381 void AddDocument(wxDocument
*doc
);
382 void RemoveDocument(wxDocument
*doc
);
384 // closes all currently open documents
385 bool CloseDocuments(bool force
= true);
387 // closes the specified document
388 bool CloseDocument(wxDocument
* doc
, bool force
= false);
390 // Clear remaining documents and templates
391 bool Clear(bool force
= true);
393 // Views or windows should inform the document manager
394 // when a view is going in or out of focus
395 virtual void ActivateView(wxView
*view
, bool activate
= true);
396 virtual wxView
*GetCurrentView() const;
398 wxList
& GetDocuments() { return m_docs
; }
399 wxList
& GetTemplates() { return m_templates
; }
401 // Return the default name for a new document (by default returns strings
402 // in the form "unnamed <counter>" but can be overridden)
403 virtual wxString
MakeNewDocumentName();
405 // Make a frame title (override this to do something different)
406 virtual wxString
MakeFrameTitle(wxDocument
* doc
);
408 virtual wxFileHistory
*OnCreateFileHistory();
409 virtual wxFileHistory
*GetFileHistory() const { return m_fileHistory
; }
411 // File history management
412 virtual void AddFileToHistory(const wxString
& file
);
413 virtual void RemoveFileFromHistory(size_t i
);
414 virtual size_t GetHistoryFilesCount() const;
415 virtual wxString
GetHistoryFile(size_t i
) const;
416 virtual void FileHistoryUseMenu(wxMenu
*menu
);
417 virtual void FileHistoryRemoveMenu(wxMenu
*menu
);
419 virtual void FileHistoryLoad(const wxConfigBase
& config
);
420 virtual void FileHistorySave(wxConfigBase
& config
);
421 #endif // wxUSE_CONFIG
423 virtual void FileHistoryAddFilesToMenu();
424 virtual void FileHistoryAddFilesToMenu(wxMenu
* menu
);
426 wxString
GetLastDirectory() const { return m_lastDirectory
; }
427 void SetLastDirectory(const wxString
& dir
) { m_lastDirectory
= dir
; }
429 // Get the current document manager
430 static wxDocManager
* GetDocumentManager() { return sm_docManager
; }
432 #if WXWIN_COMPATIBILITY_2_8
433 // deprecated, override GetDefaultName() instead
434 wxDEPRECATED_BUT_USED_INTERNALLY(
435 virtual bool MakeDefaultName(wxString
& buf
)
439 #if WXWIN_COMPATIBILITY_2_6
440 // deprecated, use GetHistoryFilesCount() instead
441 wxDEPRECATED( size_t GetNoHistoryFiles() const );
442 #endif // WXWIN_COMPATIBILITY_2_6
445 int m_defaultDocumentNameCounter
;
449 wxView
* m_currentView
;
450 wxFileHistory
* m_fileHistory
;
451 wxString m_lastDirectory
;
452 static wxDocManager
* sm_docManager
;
454 DECLARE_EVENT_TABLE()
455 DECLARE_DYNAMIC_CLASS(wxDocManager
)
456 DECLARE_NO_COPY_CLASS(wxDocManager
)
459 #if WXWIN_COMPATIBILITY_2_6
460 inline size_t wxDocManager::GetNoHistoryFiles() const
462 return GetHistoryFilesCount();
464 #endif // WXWIN_COMPATIBILITY_2_6
466 // ----------------------------------------------------------------------------
467 // A default child frame
468 // ----------------------------------------------------------------------------
470 class WXDLLIMPEXP_CORE wxDocChildFrame
: public wxFrame
473 wxDocChildFrame(wxDocument
*doc
,
477 const wxString
& title
,
478 const wxPoint
& pos
= wxDefaultPosition
,
479 const wxSize
& size
= wxDefaultSize
,
480 long type
= wxDEFAULT_FRAME_STYLE
,
481 const wxString
& name
= wxT("frame"));
482 virtual ~wxDocChildFrame(){}
484 // Extend event processing to search the view's event table
485 virtual bool ProcessEvent(wxEvent
& event
);
487 void OnActivate(wxActivateEvent
& event
);
488 void OnCloseWindow(wxCloseEvent
& event
);
490 wxDocument
*GetDocument() const { return m_childDocument
; }
491 wxView
*GetView() const { return m_childView
; }
492 void SetDocument(wxDocument
*doc
) { m_childDocument
= doc
; }
493 void SetView(wxView
*view
) { m_childView
= view
; }
494 bool Destroy() { m_childView
= NULL
; return wxFrame::Destroy(); }
497 wxDocument
* m_childDocument
;
501 DECLARE_CLASS(wxDocChildFrame
)
502 DECLARE_EVENT_TABLE()
503 DECLARE_NO_COPY_CLASS(wxDocChildFrame
)
506 // ----------------------------------------------------------------------------
507 // A default parent frame
508 // ----------------------------------------------------------------------------
510 class WXDLLIMPEXP_CORE wxDocParentFrame
: public wxFrame
514 wxDocParentFrame(wxDocManager
*manager
,
517 const wxString
& title
,
518 const wxPoint
& pos
= wxDefaultPosition
,
519 const wxSize
& size
= wxDefaultSize
,
520 long style
= wxDEFAULT_FRAME_STYLE
,
521 const wxString
& name
= wxFrameNameStr
);
523 bool Create(wxDocManager
*manager
,
526 const wxString
& title
,
527 const wxPoint
& pos
= wxDefaultPosition
,
528 const wxSize
& size
= wxDefaultSize
,
529 long style
= wxDEFAULT_FRAME_STYLE
,
530 const wxString
& name
= wxFrameNameStr
);
532 // Extend event processing to search the document manager's event table
533 virtual bool ProcessEvent(wxEvent
& event
);
535 wxDocManager
*GetDocumentManager() const { return m_docManager
; }
537 void OnExit(wxCommandEvent
& event
);
538 void OnMRUFile(wxCommandEvent
& event
);
539 void OnCloseWindow(wxCloseEvent
& event
);
542 wxDocManager
*m_docManager
;
545 typedef wxFrame base_type
;
546 DECLARE_CLASS(wxDocParentFrame
)
547 DECLARE_EVENT_TABLE()
548 DECLARE_NO_COPY_CLASS(wxDocParentFrame
)
551 // ----------------------------------------------------------------------------
552 // Provide simple default printing facilities
553 // ----------------------------------------------------------------------------
555 #if wxUSE_PRINTING_ARCHITECTURE
556 class WXDLLIMPEXP_CORE wxDocPrintout
: public wxPrintout
559 wxDocPrintout(wxView
*view
= NULL
, const wxString
& title
= wxT("Printout"));
560 bool OnPrintPage(int page
);
561 bool HasPage(int page
);
562 bool OnBeginDocument(int startPage
, int endPage
);
563 void GetPageInfo(int *minPage
, int *maxPage
, int *selPageFrom
, int *selPageTo
);
565 virtual wxView
*GetView() { return m_printoutView
; }
568 wxView
* m_printoutView
;
571 DECLARE_DYNAMIC_CLASS(wxDocPrintout
)
572 DECLARE_NO_COPY_CLASS(wxDocPrintout
)
574 #endif // wxUSE_PRINTING_ARCHITECTURE
576 // ----------------------------------------------------------------------------
577 // File history management
578 // ----------------------------------------------------------------------------
580 class WXDLLIMPEXP_CORE wxFileHistory
: public wxObject
583 wxFileHistory(size_t maxFiles
= 9, wxWindowID idBase
= wxID_FILE1
);
586 virtual void AddFileToHistory(const wxString
& file
);
587 virtual void RemoveFileFromHistory(size_t i
);
588 virtual int GetMaxFiles() const { return (int)m_fileMaxFiles
; }
589 virtual void UseMenu(wxMenu
*menu
);
591 // Remove menu from the list (MDI child may be closing)
592 virtual void RemoveMenu(wxMenu
*menu
);
595 virtual void Load(const wxConfigBase
& config
);
596 virtual void Save(wxConfigBase
& config
);
597 #endif // wxUSE_CONFIG
599 virtual void AddFilesToMenu();
600 virtual void AddFilesToMenu(wxMenu
* menu
); // Single menu
603 virtual wxString
GetHistoryFile(size_t i
) const { return m_fileHistory
[i
]; }
604 virtual size_t GetCount() const { return m_fileHistory
.GetCount(); }
606 const wxList
& GetMenus() const { return m_fileMenus
; }
609 void SetBaseId(wxWindowID baseId
) { m_idBase
= baseId
; }
610 wxWindowID
GetBaseId() const { return m_idBase
; }
612 #if WXWIN_COMPATIBILITY_2_6
613 // deprecated, use GetCount() instead
614 wxDEPRECATED( size_t GetNoHistoryFiles() const );
615 #endif // WXWIN_COMPATIBILITY_2_6
619 wxArrayString m_fileHistory
;
621 // Menus to maintain (may need several for an MDI app)
624 // Max files to maintain
625 size_t m_fileMaxFiles
;
628 // The ID of the first history menu item (Doesn't have to be wxID_FILE1)
631 DECLARE_DYNAMIC_CLASS(wxFileHistory
)
632 DECLARE_NO_COPY_CLASS(wxFileHistory
)
635 #if WXWIN_COMPATIBILITY_2_6
636 inline size_t wxFileHistory::GetNoHistoryFiles() const
638 return m_fileHistory
.GetCount();
640 #endif // WXWIN_COMPATIBILITY_2_6
642 #if wxUSE_STD_IOSTREAM
643 // For compatibility with existing file formats:
644 // converts from/to a stream to/from a temporary file.
645 bool WXDLLIMPEXP_CORE
wxTransferFileToStream(const wxString
& filename
, wxSTD ostream
& stream
);
646 bool WXDLLIMPEXP_CORE
wxTransferStreamToFile(wxSTD istream
& stream
, const wxString
& filename
);
648 // For compatibility with existing file formats:
649 // converts from/to a stream to/from a temporary file.
650 bool WXDLLIMPEXP_CORE
wxTransferFileToStream(const wxString
& filename
, wxOutputStream
& stream
);
651 bool WXDLLIMPEXP_CORE
wxTransferStreamToFile(wxInputStream
& stream
, const wxString
& filename
);
652 #endif // wxUSE_STD_IOSTREAM
655 // these flags are not used anywhere by wxWidgets and kept only for an unlikely
656 // case of existing user code using them for its own purposes
657 #ifdef WXWIN_COMPATIBILITY_2_8
662 wxDEFAULT_DOCMAN_FLAGS
= wxDOC_SDI
664 #endif // WXWIN_COMPATIBILITY_2_8
666 #endif // wxUSE_DOC_VIEW_ARCHITECTURE