X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f2034f1b6e04a39f6d882cf6cdd53c11bf39f5d7..421a84317fc3d53ac4fd64613f1af2d19018efc5:/include/wx/html/htmprint.h?ds=sidebyside diff --git a/include/wx/html/htmprint.h b/include/wx/html/htmprint.h index 71448016c7..4cb723c388 100644 --- a/include/wx/html/htmprint.h +++ b/include/wx/html/htmprint.h @@ -21,6 +21,7 @@ #include "wx/html/htmlcell.h" #include "wx/html/winpars.h" +#include "wx/html/htmlfilt.h" #include "wx/print.h" #include "wx/printdlg.h" @@ -33,7 +34,7 @@ // portion of DC //-------------------------------------------------------------------------------- -class WXDLLEXPORT wxHtmlDCRenderer : public wxObject +class WXDLLIMPEXP_HTML wxHtmlDCRenderer : public wxObject { public: wxHtmlDCRenderer(); @@ -110,7 +111,7 @@ enum { //-------------------------------------------------------------------------------- -class WXDLLEXPORT wxHtmlPrintout : public wxPrintout +class WXDLLIMPEXP_HTML wxHtmlPrintout : public wxPrintout { public: wxHtmlPrintout(const wxString& title = wxT("Printout")); @@ -152,6 +153,12 @@ public: void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo); bool OnBeginDocument(int startPage, int endPage); + // Adds input filter + static void AddFilter(wxHtmlFilter *filter); + + // Cleanup + static void CleanUpStatics(); + private: void RenderPage(wxDC *dc, int page); @@ -174,6 +181,9 @@ private: wxHtmlDCRenderer *m_Renderer, *m_RendererHdr; float m_MarginTop, m_MarginBottom, m_MarginLeft, m_MarginRight, m_MarginSpace; + // list of HTML filters + static wxList m_Filters; + DECLARE_NO_COPY_CLASS(wxHtmlPrintout) }; @@ -193,10 +203,10 @@ private: // stores page&printer settings in it. //-------------------------------------------------------------------------------- -class WXDLLEXPORT wxHtmlEasyPrinting : public wxObject +class WXDLLIMPEXP_HTML wxHtmlEasyPrinting : public wxObject { public: - wxHtmlEasyPrinting(const wxString& name = wxT("Printing"), wxFrame *parent_frame = NULL); + wxHtmlEasyPrinting(const wxString& name = wxT("Printing"), wxWindow *parentWindow = NULL); ~wxHtmlEasyPrinting(); bool PreviewFile(const wxString &htmlfile); @@ -244,7 +254,7 @@ private: int *m_FontsSizes; wxString m_FontFaceFixed, m_FontFaceNormal; wxString m_Headers[2], m_Footers[2]; - wxFrame *m_Frame; + wxWindow *m_ParentWindow; DECLARE_NO_COPY_CLASS(wxHtmlEasyPrinting) };