- /**
- * 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 void SetPage(const wxString& html, const wxString& baseUrl) = 0;
-
- /**
- * Set the displayed page source to the contents of the given stream
- * @param html the stream to read HTML data from
- * @param baseUrl URL assigned to the HTML data, to be used to resolve
- * relative paths, for instance
- */
- virtual void SetPage(wxInputStream& html, wxString baseUrl)
- {
- wxStringOutputStream stream;
- stream.Write(html);
- SetPage(stream.GetString(), baseUrl);
- }
-
- virtual void SetEditable(bool enable = true) = 0;
- virtual bool IsEditable() = 0;
-
- // TODO:
- // wxString GetSelection(); // maybe?
- // void SetSelection(...); // maybe?
-
- // void EnableJavascript(bool enabled); // maybe?
- // wxString RunScript(const wxString& javascript); // maybe?
-
- // void SetScrollPos(int pos); // maybe?
- // int GetScrollPos(); // maybe?
-
- // wxString GetStatusText(); // maybe?
- // void SetStatusText(wxString text); // maybe?
- // * status text changed event?
- // * title changed event?
-
- // virtual bool IsOfflineMode() = 0; // maybe?
- // virtual void SetOfflineMode(bool offline) = 0; // maybe?
-
- /**
- * Opens a print dialog so that the user may print the currently
- * displayed page.
- */
- virtual void Print() = 0;
-
- /**
- * Returns whether the web control is currently busy (e.g. loading a page)
- */
- virtual bool IsBusy() = 0;