class WXDLLIMPEXP_WEBVIEW wxWebViewWebKit : public wxWebView
{
public:
- wxWebViewWebKit() { Init(); }
+ wxWebViewWebKit() { }
wxWebViewWebKit(wxWindow *parent,
wxWindowID id = wxID_ANY,
const wxSize& size = wxDefaultSize, long style = 0,
const wxString& name = wxWebViewNameStr)
{
- Init();
-
Create(parent, id, url, pos, size, style, name);
}
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;
void SetWebkitZoom(float level);
float GetWebkitZoom() const;
+ //Find helper function
+ void FindClear();
+
// focus event handler: calls GTKUpdateBitmap()
void GTKOnFocus(wxFocusEvent& event);
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);
};