10#ifndef SAMPLES_PDFGC_PDFGC_H_
11#define SAMPLES_PDFGC_PDFGC_H_
14#include <wx/printdlg.h>
15#include <wx/scrolwin.h>
17class MyApp :
public wxApp
21 int OnExit() wxOVERRIDE;
31 MyFrame(
const wxString& title,
const wxPoint& pos,
const wxSize& size);
33 void OnSavePdf(wxCommandEvent& event);
34 void OnSavePdfStandAlone(wxCommandEvent& event);
35 void OnPrint(wxCommandEvent& event);
36 void OnPageSetup(wxCommandEvent& event);
37 void OnExit(wxCommandEvent& event);
38 void OnAbout(wxCommandEvent& event);
43 wxDECLARE_EVENT_TABLE();
46class MyCanvas :
public wxScrolledWindow
51 void OnPaint(wxPaintEvent& event);
54 wxDECLARE_EVENT_TABLE();
60 MyPrintout(
const wxString& title) : wxPrintout(title) {}
62 bool OnPrintPage(
int page) wxOVERRIDE;
63 bool HasPage(
int page) wxOVERRIDE;
64 void GetPageInfo(
int* minPage,
int* maxPage,
65 int* selPageFrom,
int* selPageTo) wxOVERRIDE;
70 PdfGc_SavePdf = wxID_HIGHEST + 1,
71 PdfGc_SavePdfStandAlone,
77constexpr int PDFGC_SCENE_WIDTH = 580;
78constexpr int PDFGC_SCENE_HEIGHT = 820;
81void DrawScene(wxGraphicsContext& gc,
const wxSize& size);
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