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
// Get the current document manager
static wxDocManager* GetDocumentManager() { return sm_docManager; }
// 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(
#if WXWIN_COMPATIBILITY_2_8
// deprecated, override GetDefaultName() instead
wxDEPRECATED_BUT_USED_INTERNALLY(
*/
long GetFlags() const;
*/
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
/**
Returns the run-time class information that allows view instances
to be constructed dynamically, as passed to the document template