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
This commit is contained in:
parent
ad7922b8aa
commit
61490d3b60
@ -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(
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user