Store page setup data in wxDocManager.
Printing of documents from wxDocManager always used default page setup data, allow the user to configure it now. Add wxDocManager::m_pageSetupDialogData and add a handler for wxID_PRINT_SETUP command to it. Closes #11394. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -371,8 +371,11 @@ public:
|
||||
void OnFileRevert(wxCommandEvent& event);
|
||||
void OnFileSave(wxCommandEvent& event);
|
||||
void OnFileSaveAs(wxCommandEvent& event);
|
||||
#if wxUSE_PRINTING_ARCHITECTURE
|
||||
void OnPrint(wxCommandEvent& event);
|
||||
void OnPreview(wxCommandEvent& event);
|
||||
void OnPageSetup(wxCommandEvent& event);
|
||||
#endif // wxUSE_PRINTING_ARCHITECTURE
|
||||
void OnUndo(wxCommandEvent& event);
|
||||
void OnRedo(wxCommandEvent& event);
|
||||
|
||||
@@ -479,6 +482,7 @@ public:
|
||||
wxDEPRECATED( size_t GetNoHistoryFiles() const );
|
||||
#endif // WXWIN_COMPATIBILITY_2_6
|
||||
|
||||
|
||||
protected:
|
||||
#if wxUSE_PRINTING_ARCHITECTURE
|
||||
virtual wxPreviewFrame* CreatePreviewFrame(wxPrintPreviewBase* preview,
|
||||
@@ -507,6 +511,10 @@ protected:
|
||||
wxString m_lastDirectory;
|
||||
static wxDocManager* sm_docManager;
|
||||
|
||||
#if wxUSE_PRINTING_ARCHITECTURE
|
||||
wxPageSetupDialogData m_pageSetupDialogData;
|
||||
#endif // wxUSE_PRINTING_ARCHITECTURE
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_DYNAMIC_CLASS(wxDocManager)
|
||||
wxDECLARE_NO_COPY_CLASS(wxDocManager);
|
||||
|
Reference in New Issue
Block a user