A simple class that contains the URL and title of an element of the history
of a wxWebView.
- @library{wxweb}
- @category{web}
+ @since 2.9.3
+ @library{wxwebview}
+ @category{webview}
@see wxWebView
*/
The base class for handling custom schemes in wxWebView, for example to
allow virtual file system support.
- @library{wxweb}
- @category{web}
+ @since 2.9.3
+ @library{wxwebview}
+ @category{webview}
@see wxWebView
*/
the page title changes. Use GetString to get the title.
@endEventTable
- @library{wxweb}
- @category{ctrl,web}
- @see wxWebHandler, wxWebViewEvent
+ @since 2.9.3
+ @library{wxwebview}
+ @category{ctrl,webview}
+ @see wxWebViewHandler, wxWebViewEvent
*/
class wxWebView : public wxControl
{
to know whether loading the URL was successful, register to receive
navigation error events.
*/
- virtual void LoadUrl(const wxString& url) = 0;
+ virtual void LoadURL(const wxString& url) = 0;
/**
Opens a print dialog so that the user may print the currently
/**
Returns @true if the current selection can be copied.
- @note This always returns @c false on the OSX WebKit backend.
+ @note This always returns @c true on the OSX WebKit backend.
*/
virtual bool CanCopy() const = 0;
/**
Returns @true if the current selection can be cut.
- @note This always returns @c false on the OSX WebKit backend.
+ @note This always returns @c true on the OSX WebKit backend.
*/
virtual bool CanCut() const = 0;
/**
Returns @true if data can be pasted.
- @note This always returns @c false on the OSX WebKit backend.
+ @note This always returns @c true on the OSX WebKit backend.
*/
virtual bool CanPaste() const = 0;
Process a @c wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED event, generated when
the page title changes. Use GetString to get the title.
@endEventTable
-
- @library{wxweb}
- @category{events,web}
+
+ @since 2.9.3
+ @library{wxwebview}
+ @category{events,webview}
@see wxWebView
*/
-class wxWebViewEvent : public wxCommandEvent
+class wxWebViewEvent : public wxNotifyEvent
{
public:
wxWebViewEvent();
wxWebViewEvent(wxEventType type, int id, const wxString href,
- const wxString target, bool canVeto);
+ const wxString target);
/**
Get the name of the target frame which the url of this event
Get the URL being visited
*/
const wxString& GetURL() const;
-
- virtual wxEvent* Clone() const;
-
- /**
- Get whether this event may be vetoed (stopped/prevented). Only
- meaningful for events fired before navigation takes place.
- */
- bool CanVeto() const;
-
- /**
- Whether this event was vetoed (stopped/prevented). Only meaningful for
- events fired before navigation takes place or new window events.
- */
- bool IsVetoed() const;
-
- /**
- Veto (prevent/stop) this event. Only meaningful for events fired
- before navigation takes place. Only valid if CanVeto() returned true.
- */
- void Veto();
};
\ No newline at end of file