X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dc2f8a65c0675433c73500558d7792afab4b81e2..2abc0a0f9bf1a1c4fb3e807be687850949603e5c:/utils/wxPython/src/printfw.h?ds=inline diff --git a/utils/wxPython/src/printfw.h b/utils/wxPython/src/printfw.h new file mode 100644 index 0000000000..dcede4e514 --- /dev/null +++ b/utils/wxPython/src/printfw.h @@ -0,0 +1,33 @@ +///////////////////////////////////////////////////////////////////////////// +// Name: printfw.h +// Purpose: Exposing the class definition of wxPyPrintout so it can be +// used by wxHtmlPrintout. Must be included after helpers.h +// +// Author: Robin Dunn +// +// Created: 29-Oct-1999 +// RCS-ID: $Id$ +// Copyright: (c) 1999 by Total Control Software +// Licence: wxWindows license +///////////////////////////////////////////////////////////////////////////// + + + +class wxPyPrintout : public wxPrintout { +public: + wxPyPrintout(const wxString& title) : wxPrintout(title) {} + + DEC_PYCALLBACK_BOOL_INTINT(OnBeginDocument); + DEC_PYCALLBACK__(OnEndDocument); + DEC_PYCALLBACK__(OnBeginPrinting); + DEC_PYCALLBACK__(OnEndPrinting); + DEC_PYCALLBACK__(OnPreparePrinting); + DEC_PYCALLBACK_BOOL_INT_pure(OnPrintPage); + DEC_PYCALLBACK_BOOL_INT(HasPage); + + // Since this one would be tough and ugly to do with the Macros... + void GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo); + void base_GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo); + + PYPRIVATE; +};