X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b45dfd0a8bfb8ad1199f8a6c28f473aaa86004b5..f5766910b6731eb03e82371416e9778203396ce7:/samples/printing/printing.h diff --git a/samples/printing/printing.h b/samples/printing/printing.h index 6d02f5b1e3..f3c2b6d98c 100644 --- a/samples/printing/printing.h +++ b/samples/printing/printing.h @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(__APPLE__) -#pragma interface -#endif - // Define a new application class MyApp: public wxApp { @@ -33,9 +29,13 @@ class MyFrame: public wxFrame { public: MyCanvas *canvas; + wxBitmap m_bitmap; + int m_angle; MyFrame(wxFrame *frame, const wxString& title, const wxPoint& pos, const wxSize& size); void Draw(wxDC& dc); + void OnAngleUp(wxCommandEvent& event); + void OnAngleDown(wxCommandEvent& event); void OnSize(wxSizeEvent& event); void OnPrint(wxCommandEvent& event); @@ -68,7 +68,7 @@ DECLARE_EVENT_TABLE() class MyPrintout: public wxPrintout { public: - MyPrintout(wxChar *title = _T("My printout")):wxPrintout(title) {} + MyPrintout(const wxChar *title = _T("My printout")):wxPrintout(title) {} bool OnPrintPage(int page); bool HasPage(int page); bool OnBeginDocument(int startPage, int endPage); @@ -89,3 +89,5 @@ class MyPrintout: public wxPrintout #define WXPRINT_ABOUT 109 +#define WXPRINT_ANGLEUP 110 +#define WXPRINT_ANGLEDOWN 111