]> git.saurik.com Git - wxWidgets.git/blob - wxPython/include/wx/wxPython/printfw.h
Rename the .tar.gz to a .tgz
[wxWidgets.git] / wxPython / include / wx / wxPython / printfw.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: printfw.h
3 // Purpose: Exposing the class definition of wxPyPrintout so it can also
4 // be used by wxHtmlPrintout. Must be included after wxPython.h
5 //
6 // Author: Robin Dunn
7 //
8 // Created: 29-Oct-1999
9 // RCS-ID: $Id$
10 // Copyright: (c) 1999 by Total Control Software
11 // Licence: wxWindows license
12 /////////////////////////////////////////////////////////////////////////////
13
14 #ifndef __wxpy_printfw_h
15 #define __wxpy_printfw_h
16
17 #if !wxUSE_PRINTING_ARCHITECTURE
18 #error wxPython requires the wx printing architecture to be enabled
19 #endif
20
21 class wxPyPrintout : public wxPrintout {
22 public:
23 wxPyPrintout(const wxString& title) : wxPrintout(title) {}
24
25 DEC_PYCALLBACK_BOOL_INTINT(OnBeginDocument);
26 DEC_PYCALLBACK__(OnEndDocument);
27 DEC_PYCALLBACK__(OnBeginPrinting);
28 DEC_PYCALLBACK__(OnEndPrinting);
29 DEC_PYCALLBACK__(OnPreparePrinting);
30 DEC_PYCALLBACK_BOOL_INT_pure(OnPrintPage);
31 DEC_PYCALLBACK_BOOL_INT(HasPage);
32
33 // Since this one would be tough and ugly to do with the Macros...
34 void GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo);
35 void base_GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo);
36
37 PYPRIVATE;
38 };
39
40 #endif