BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
printing.h
1
2// Name: samples/printing.h
3
4// Purpose: Printing demo for wxWidgets
5// Author: Julian Smart
6// Modified by:
7// Created: 1995
8// RCS-ID: $Id: printing.h 42522 2006-10-27 13:07:40Z JS $
9// Copyright: (c) Julian Smart
10// Licence: wxWindows licence
12#include "wx/metafile.h"
13#include "wx/print.h"
14#include "wx/printdlg.h"
15#include "wx/image.h"
16#include "wx/accel.h"
17
18
19class MyPrintout: public wxPrintout
20{
21 public:
22 MyPrintout(const wxChar *title = _T("My printout")):wxPrintout(title) {}
23 bool OnPrintPage(int page);
24 bool HasPage(int page);
25 bool OnBeginDocument(int startPage, int endPage);
26 void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo);
27
28// void DrawPageOne();
29
30// void DrawPageTwo();
31
32};
33
34#define WXPRINT_QUIT 100
35#define WXPRINT_PRINT 101
36#define WXPRINT_PAGE_SETUP 103
37#define WXPRINT_PREVIEW 104
38
39#define WXPRINT_PRINT_PS 105
40#define WXPRINT_PAGE_SETUP_PS 107
41#define WXPRINT_PREVIEW_PS 108
42
43#define WXPRINT_ABOUT 109
44
45#define WXPRINT_ANGLEUP 110
46#define WXPRINT_ANGLEDOWN 111
47
48#ifdef __WXMAC__
49 #define WXPRINT_PAGE_MARGINS 112
50#endif
Definition: printing.h:20