- /**
- * Get the HTML source code of the currently displayed document
- * @return the HTML source code, or an empty string if no page is currently
- * shown
- */
- virtual wxString GetPageSource() = 0;
-
- /**
- * Get the zoom factor of the page
- * @return How much the HTML document is zoomed (scaleed)
- */
- virtual wxWebViewZoom GetZoom() = 0;
-
- /**
- * Set the zoom factor of the page
- * @param zoom How much to zoom (scale) the HTML document
- */
- virtual void SetZoom(wxWebViewZoom zoom) = 0;
-
- /**
- * Set how to interpret the zoom factor
- * @param zoomType how the zoom factor should be interpreted by the
- * HTML engine
- * @note invoke canSetZoomType() first, some HTML renderers may not
- * support all zoom types
- */
- virtual void SetZoomType(wxWebViewZoomType zoomType) = 0;
-
- /**
- * Get how the zoom factor is currently interpreted
- * @return how the zoom factor is currently interpreted by the HTML engine
- */
- virtual wxWebViewZoomType GetZoomType() const = 0;
-
- /**
- * Retrieve whether the current HTML engine supports a type of zoom
- * @param type the type of zoom to test
- * @return whether this type of zoom is supported by this HTML engine
- * (and thus can be set through setZoomType())
- */
- virtual bool CanSetZoomType(wxWebViewZoomType type) const = 0;
-
- // TODO: allow 'SetPage' to find files (e.g. images) from a virtual file
- // system if possible
- /**
- * Set the displayed page source to the contents of the given string
- * @param html the string that contains the HTML data to display
- * @param baseUrl URL assigned to the HTML data, to be used to resolve
- * relative paths, for instance
- */
+ virtual wxString GetPageSource() const = 0;
+ virtual wxString GetPageText() const = 0;
+ virtual bool IsBusy() const = 0;
+ virtual bool IsEditable() const = 0;
+ virtual void LoadURL(const wxString& url) = 0;
+ virtual void Print() = 0;
+ virtual void RegisterHandler(wxSharedPtr<wxWebViewHandler> handler) = 0;
+ virtual void Reload(wxWebViewReloadFlags flags = wxWEB_VIEW_RELOAD_DEFAULT) = 0;
+ virtual void RunScript(const wxString& javascript) = 0;
+ virtual void SetEditable(bool enable = true) = 0;