wxString GetTarget();
wxMouseEvent* GetEvent();
wxHtmlCell* GetHtmlCell();
+
+ void SetEvent(const wxMouseEvent *e);
+ void SetHtmlCell(const wxHtmlCell * e);
};
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
-// item of history list
-class HtmlHistoryItem {
-public:
- HtmlHistoryItem(const char* p, const char* a);
-
- int GetPos();
- void SetPos(int p);
- const wxString& GetPage();
- const wxString& GetAnchor();
-};
-
-
-//---------------------------------------------------------------------------
%{
class wxPyHtmlWindow : public wxHtmlWindow {
public:
%pragma(python) addtomethod = "__init__:#wx._StdOnScrollCallbacks(self)"
- bool SetPage(const char* source);
- bool LoadPage(const char* location);
+ bool SetPage(const wxString& source);
+ bool LoadPage(const wxString& location);
wxString GetOpenedPage();
+ wxString GetOpenedAnchor();
+ wxString GetOpenedPageTitle();
+
void SetRelatedFrame(wxFrame* frame, const char* format);
wxFrame* GetRelatedFrame();
void SetRelatedStatusBar(int bar);
}
}
- void SetTitle(const char* title);
+ void SetTitle(const wxString& title);
void SetBorders(int b);
- void ReadCustomization(wxConfigBase *cfg, char* path = "");
- void WriteCustomization(wxConfigBase *cfg, char* path = "");
+ void ReadCustomization(wxConfigBase *cfg, wxString path = wxEmptyString);
+ void WriteCustomization(wxConfigBase *cfg, wxString path = wxEmptyString);
bool HistoryBack();
bool HistoryForward();
+ bool HistoryCanBack();
+ bool HistoryCanForward();
void HistoryClear();
wxHtmlContainerCell* GetInternalRepresentation();
wxHtmlWinParser* GetParser();
class wxHtmlPrintout : public wxPyPrintout {
public:
wxHtmlPrintout(const char* title = "Printout");
- ~wxHtmlPrintout();
+ //~wxHtmlPrintout(); wxPrintPreview object takes ownership...
void SetHtmlText(const wxString& html,
const wxString &basepath = wxEmptyString,
inithtmlhelpc();
- //wxClassInfo::CleanUpClasses();
- //wxClassInfo::InitializeClasses();
-
+ wxClassInfo::CleanUpClasses();
+ wxClassInfo::InitializeClasses();
%}
//----------------------------------------------------------------------
%pragma(python) include="_htmlextras.py";
//---------------------------------------------------------------------------
-