Robert Lang's patch [ 1583183 ] Fixes printing/print preview inconsistencies

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2006-10-27 13:07:40 +00:00
parent ea28077683
commit f415cab9ef
32 changed files with 1308 additions and 294 deletions

View File

@@ -1,5 +1,6 @@
/////////////////////////////////////////////////////////////////////////////
// Name: printing.h
// Name: samples/printing.h
// Purpose: Printing demo for wxWidgets
// Author: Julian Smart
// Modified by:
@@ -46,6 +47,9 @@ class MyFrame: public wxFrame
void OnPrintPreviewPS(wxCommandEvent& event);
void OnPageSetupPS(wxCommandEvent& event);
#endif
#ifdef __WXMAC__
void OnPageMargins(wxCommandEvent& event);
#endif
void OnExit(wxCommandEvent& event);
void OnPrintAbout(wxCommandEvent& event);
@@ -74,8 +78,10 @@ class MyPrintout: public wxPrintout
bool OnBeginDocument(int startPage, int endPage);
void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo);
void DrawPageOne(wxDC *dc);
void DrawPageTwo(wxDC *dc);
void DrawPageOne();
void DrawPageTwo();
};
#define WXPRINT_QUIT 100
@@ -91,3 +97,7 @@ class MyPrintout: public wxPrintout
#define WXPRINT_ANGLEUP 110
#define WXPRINT_ANGLEDOWN 111
#ifdef __WXMAC__
#define WXPRINT_PAGE_MARGINS 112
#endif