Add support for searching and highlighting a wxWebView.
Currently supports WebView on GTK and IE. Closes #14045. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -96,6 +96,9 @@ public:
|
||||
virtual void Undo();
|
||||
virtual void Redo();
|
||||
|
||||
//Find function
|
||||
virtual long Find(const wxString& text, int flags = wxWEB_VIEW_FIND_DEFAULT);
|
||||
|
||||
//Editing functions
|
||||
virtual void SetEditable(bool enable = true);
|
||||
virtual bool IsEditable() const;
|
||||
@@ -142,6 +145,9 @@ private:
|
||||
void SetWebkitZoom(float level);
|
||||
float GetWebkitZoom() const;
|
||||
|
||||
//Find helper function
|
||||
void FindClear();
|
||||
|
||||
// focus event handler: calls GTKUpdateBitmap()
|
||||
void GTKOnFocus(wxFocusEvent& event);
|
||||
|
||||
@@ -150,6 +156,12 @@ private:
|
||||
|
||||
wxVector<wxSharedPtr<wxWebViewHandler> > m_handlerList;
|
||||
|
||||
//variables used for Find()
|
||||
int m_findFlags;
|
||||
wxString m_findText;
|
||||
int m_findPosition;
|
||||
int m_findCount;
|
||||
|
||||
wxDECLARE_DYNAMIC_CLASS(wxWebViewWebKit);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user