X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9cbf6f6ea3ce56a15841a4f773bffef71c92c398..fd657b8a5907c8584db84c85535ce281bdd65193:/wxPython/src/html.i diff --git a/wxPython/src/html.i b/wxPython/src/html.i index cafe91ec3b..7c83c30edf 100644 --- a/wxPython/src/html.i +++ b/wxPython/src/html.i @@ -180,13 +180,14 @@ public: class wxHtmlWinParser : public wxHtmlParser { public: - wxHtmlWinParser(wxHtmlWindow *wnd = NULL); + wxHtmlWinParser(wxPyHtmlWindow *wnd = NULL); void SetDC(wxDC *dc); wxDC* GetDC(); int GetCharHeight(); int GetCharWidth(); - wxHtmlWindow* GetWindow(); + wxPyHtmlWindow* GetWindow(); + // Sets fonts to be used when displaying HTML page. (if size null then default sizes used). %addmethods { void SetFonts(wxString normal_face, wxString fixed_face, PyObject* sizes=NULL) { int* temp = NULL; @@ -389,7 +390,7 @@ public: void DrawInvisible(wxDC& dc, int x, int y); const wxHtmlCell* Find(int condition, const void* param); - bool AdjustPagebreak(int * pagebreak); + bool AdjustPagebreak(int* INOUT); void SetCanLiveOnPagebreak(bool can); }; @@ -650,9 +651,8 @@ public: // Return value : same as SetPage bool LoadPage(const wxString& location); - // TODO: (accept a string, convert to filename) // Loads HTML page from file - // bool LoadFile(const wxFileName& filename); + bool LoadFile(const wxString& filename); // Append to current page bool AppendToPage(const wxString& source); @@ -744,6 +744,7 @@ public: void SetHtmlText(const wxString& html, const wxString& basepath = wxPyEmptyString, bool isdir = TRUE); + // Sets fonts to be used when displaying HTML page. (if size null then default sizes used). %addmethods { void SetFonts(wxString normal_face, wxString fixed_face, PyObject* sizes=NULL) { int* temp = NULL; @@ -777,6 +778,7 @@ public: void SetHtmlFile(const wxString &htmlfile); void SetHeader(const wxString& header, int pg = wxPAGE_ALL); void SetFooter(const wxString& footer, int pg = wxPAGE_ALL); + // Sets fonts to be used when displaying HTML page. (if size null then default sizes used). %addmethods { void SetFonts(wxString normal_face, wxString fixed_face, PyObject* sizes=NULL) { int* temp = NULL;