]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/include/wx/wxPython/printfw.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Exposing the class definition of wxPyPrintout so it can also
4 // be used by wxHtmlPrintout. Must be included after wxPython.h
8 // Created: 29-Oct-1999
10 // Copyright: (c) 1999 by Total Control Software
11 // Licence: wxWindows license
12 /////////////////////////////////////////////////////////////////////////////
14 #ifndef __wxpy_printfw_h
15 #define __wxpy_printfw_h
17 #if !wxUSE_PRINTING_ARCHITECTURE
18 #error wxPython requires the wx printing architecture to be enabled
21 class wxPyPrintout
: public wxPrintout
{
23 wxPyPrintout(const wxString
& title
) : wxPrintout(title
) {}
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
);
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
);