X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/58a33cb4e6e2de9d6ea6da16b52e53d840797059..0dfef5a8124ac0f1bb2aed6ef5ddfa833e8e2c6e:/include/wx/generic/prntdlgg.h?ds=sidebyside diff --git a/include/wx/generic/prntdlgg.h b/include/wx/generic/prntdlgg.h index 24f69980e5..097ea5403f 100644 --- a/include/wx/generic/prntdlgg.h +++ b/include/wx/generic/prntdlgg.h @@ -18,6 +18,9 @@ #endif #include "wx/defs.h" + +#if wxUSE_PRINTING_ARCHITECTURE + #include "wx/dialog.h" #include "wx/dialog.h" @@ -28,7 +31,7 @@ class WXDLLEXPORT wxTextCtrl; class WXDLLEXPORT wxButton; class WXDLLEXPORT wxCheckBox; -class WXDLLEXPORT wxChoice; +class WXDLLEXPORT wxComboBox; class WXDLLEXPORT wxStaticText; class WXDLLEXPORT wxRadioBox; class WXDLLEXPORT wxPrintSetupData; @@ -72,6 +75,7 @@ enum // Windows using PostScript print/preview) // ---------------------------------------------------------------------------- +#if wxUSE_POSTSCRIPT class WXDLLEXPORT wxGenericPrintDialog : public wxDialog { DECLARE_DYNAMIC_CLASS(wxGenericPrintDialog) @@ -136,20 +140,22 @@ public: virtual bool TransferDataFromWindow(); virtual bool TransferDataToWindow(); - wxChoice *CreatePaperTypeChoice(int* x, int* y); + wxComboBox *CreatePaperTypeChoice(int* x, int* y); public: wxRadioBox* m_orientationRadioBox; wxTextCtrl* m_printerCommandText; wxTextCtrl* m_printerOptionsText; wxCheckBox* m_colourCheckBox; - wxChoice* m_paperTypeChoice; + wxComboBox* m_paperTypeChoice; #if wxUSE_POSTSCRIPT wxPrintData m_printData; wxPrintData& GetPrintData() { return m_printData; } #endif // wxUSE_POSTSCRIPT }; +#endif + // wxUSE_POSTSCRIPT class WXDLLEXPORT wxGenericPageSetupDialog : public wxDialog { @@ -164,7 +170,7 @@ public: void OnPrinter(wxCommandEvent& event); - wxChoice *CreatePaperTypeChoice(int* x, int* y); + wxComboBox *CreatePaperTypeChoice(int* x, int* y); wxPageSetupData& GetPageSetupData() { return m_pageData; } public: @@ -174,7 +180,7 @@ public: wxTextCtrl* m_marginTopText; wxTextCtrl* m_marginRightText; wxTextCtrl* m_marginBottomText; - wxChoice* m_paperTypeChoice; + wxComboBox* m_paperTypeChoice; static bool m_pageSetupDialogCancelled; @@ -184,5 +190,7 @@ private: DECLARE_EVENT_TABLE() }; +#endif + #endif // __PRINTDLGH_G__