14class MyApp:
public wxApp
21 wxString m_workDirectory;
22 wxString m_fontDirectory;
40 MyFrame(wxFrame *frame,
const wxString& title,
const wxPoint& pos,
const wxSize& size);
47 wxRichTextCtrl *m_richtext;
48 wxRichTextPrinting *m_richtextPrinting;
51 void OnAngleUp(wxCommandEvent& event);
52 void OnAngleDown(wxCommandEvent& event);
54 void OnSize(wxSizeEvent& event);
55 void OnPrint(wxCommandEvent& event);
56 void OnPDF(wxCommandEvent& event);
57 void OnPDFTemplate(wxCommandEvent& event);
58 void OnPrintPreview(wxCommandEvent& event);
59 void OnPageSetup(wxCommandEvent& event);
60#if defined(__WXMSW__) && wxTEST_POSTSCRIPT_IN_MSW
61 void OnPrintPS(wxCommandEvent& event);
62 void OnPrintPreviewPS(wxCommandEvent& event);
63 void OnPageSetupPS(wxCommandEvent& event);
66 void OnPageMargins(wxCommandEvent& event);
69 void OnExit(wxCommandEvent& event);
70 void OnPrintAbout(wxCommandEvent& event);
73 void OnPdfPageSetupAll(wxCommandEvent& event);
74 void OnPdfPageSetupMinimal(wxCommandEvent& event);
75 void OnPdfPrintDialogAll(wxCommandEvent& event);
76 void OnPdfPrintDialogMinimal(wxCommandEvent& event);
78 void OnPdfRichTextPrint(wxCommandEvent& event);
79 void OnPdfRichTextPreview(wxCommandEvent& event);
82 void OnPdfHtmlPrint(wxCommandEvent& event);
83 void OnPdfHtmlPreview(wxCommandEvent& event);
90 void WriteRichTextBuffer();
98 MyCanvas(wxFrame *frame,
const wxPoint& pos,
const wxSize& size,
long style = wxRETAINED);
101 virtual void OnDraw(wxDC& dc);
102 void OnEvent(wxMouseEvent& event);
110 MyPrintout(
const wxChar *title = _T(
"My printout")):wxPrintout(title) {}
111 bool OnPrintPage(
int page);
112 bool HasPage(
int page);
113 bool OnBeginDocument(
int startPage,
int endPage);
114 void GetPageInfo(
int *minPage,
int *maxPage,
int *selPageFrom,
int *selPageTo);
131 WXPRINT_PAGE_SETUP_PS,
136 WXPRINT_PAGE_MARGINS,
137 WXPDFPRINT_PAGE_SETUP_ALL,
138 WXPDFPRINT_PAGE_SETUP_MINIMAL,
139 WXPDFPRINT_PRINT_DIALOG_ALL,
140 WXPDFPRINT_PRINT_DIALOG_MINIMAL,
141 WXPDFPRINT_RICHTEXT_PRINT,
142 WXPDFPRINT_RICHTEXT_PREVIEW,
143 WXPDFPRINT_HTML_PRINT,
144 WXPDFPRINT_HTML_PREVIEW
Definition: test_ImgCell.cpp:354
bool OnInit() override
Definition: test_ImgCell.cpp:367
Definition: printing.h:96
Definition: gridctrlsample.h:17
Definition: printing.h:108