From: Vadim Zeitlin Date: Tue, 3 May 2011 10:40:23 +0000 (+0000) Subject: Add wxDocManager::GetPageSetupDialogData() accessor. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/61490d3b60583ce1ffb5f9b4311611e771d8915e Add wxDocManager::GetPageSetupDialogData() accessor. Allow accessing the print data stored in wxDocManager from outside the class. Closes #13190. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/docview.h b/include/wx/docview.h index 90538ad638..1ed240f256 100644 --- a/include/wx/docview.h +++ b/include/wx/docview.h @@ -474,6 +474,13 @@ public: // Get the current document manager static wxDocManager* GetDocumentManager() { return sm_docManager; } +#if wxUSE_PRINTING_ARCHITECTURE + wxPageSetupDialogData& GetPageSetupDialogData() + { return m_pageSetupDialogData; } + const wxPageSetupDialogData& GetPageSetupDialogData() const + { return m_pageSetupDialogData; } +#endif // wxUSE_PRINTING_ARCHITECTURE + #if WXWIN_COMPATIBILITY_2_8 // deprecated, override GetDefaultName() instead wxDEPRECATED_BUT_USED_INTERNALLY( diff --git a/interface/wx/docview.h b/interface/wx/docview.h index 20ad3423a8..4d2cd89bfe 100644 --- a/interface/wx/docview.h +++ b/interface/wx/docview.h @@ -176,6 +176,15 @@ public: */ long GetFlags() const; + /** + Returns a reference to the wxPageSetupDialogData associated with the + printing operations of this document manager. + */ + //@{ + wxPageSetupDialogData& GetPageSetupDialogData(); + const wxPageSetupDialogData& GetPageSetupDialogData() const; + //@} + /** Returns the run-time class information that allows view instances to be constructed dynamically, as passed to the document template