void OnPrint(wxCommandEvent& event);
void OnPrintPreview(wxCommandEvent& event);
void OnPageSetup(wxCommandEvent& event);
-#if defined(__WXMSW__) && wxTEST_POSTSCRIPT_IN_MSW
+#if wxUSE_POSTSCRIPT
void OnPrintPS(wxCommandEvent& event);
void OnPrintPreviewPS(wxCommandEvent& event);
void OnPageSetupPS(wxCommandEvent& event);
void OnPageMargins(wxCommandEvent& event);
#endif
+ void OnPreviewFrameModalityKind(wxCommandEvent& event);
+
void OnExit(wxCommandEvent& event);
void OnPrintAbout(wxCommandEvent& event);
private:
MyCanvas* m_canvas;
+ wxPreviewFrameModalityKind m_previewModality;
DECLARE_EVENT_TABLE()
};
// constants:
+enum
+{
+ WXPRINT_PAGE_SETUP = 103,
-#define WXPRINT_PAGE_SETUP 103
-
-#define WXPRINT_PRINT_PS 105
-#define WXPRINT_PAGE_SETUP_PS 107
-#define WXPRINT_PREVIEW_PS 108
+ WXPRINT_PRINT_PS,
+ WXPRINT_PAGE_SETUP_PS,
+ WXPRINT_PREVIEW_PS,
-#define WXPRINT_ANGLEUP 110
-#define WXPRINT_ANGLEDOWN 111
+ WXPRINT_ANGLEUP,
+ WXPRINT_ANGLEDOWN,
#ifdef __WXMAC__
- #define WXPRINT_PAGE_MARGINS 112
+ WXPRINT_PAGE_MARGINS,
#endif
+
+ WXPRINT_FRAME_MODAL_APP,
+ WXPRINT_FRAME_MODAL_WIN,
+ WXPRINT_FRAME_MODAL_NON
+};