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;
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);
};
// 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);
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;
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;