Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
hdicoreWebView.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_WEBVIEW__
8 #define __HDI_CORE_WEBVIEW__
9 
10 
11 #include "hdicoreMacros.h"
12 
13 #include "hdicoreWidget.h"
14 
15 namespace hdi
16 {
17  namespace core
18  {
22  class WebView : public Widget
23  {
24  public:
35  WebView();
36 
44  WebView(const WebView& wv_);
45 
53  WebView(const Rect& frame_);
54 
60  virtual ~WebView();
61 
70  virtual WebView& operator=(const WebView& rhs_);
71 
85  virtual WebView* clone() const;
86 
97  virtual WebView* duplicate() const;
98 
106  virtual std::string text() const;
107 
115  virtual void setText(const std::string& text_);
116 
124  virtual std::string tooltip() const;
125 
133  virtual void setTooltip(const std::string& tip_);
134 
142  virtual void loadURL(const std::string& url_);
143 
149  virtual void stopLoading();
150 
156  virtual void reload();
157 
165  virtual bool goBack();
166 
174  virtual bool goForward();
175 
176  #if defined(MAC_ENV)
177 
184  virtual bool isLoading() const;
185 
193  virtual double estimatedProgress() const;
194  #endif
195  };
196 
197  typedef std::auto_ptr<WebView> WebViewAP;
198  }
199 }
200 
201 #endif
202 // __HDI_CORE_WEBVIEW__
Base class for all interface widgets; handles many common needs, e.g. text, position, size, etc.
Definition: hdicoreWidget.h:39
WebView()
Constructs an empty WebView object.
virtual WebView & operator=(const WebView &rhs_)
Allows one WebView object to be assigned from another.
virtual WebView * clone() const
Convenience method to clone a WebView object on the heap.
virtual void loadURL(const std::string &url_)
Loads the given HTTP(S) URL.
WebView widget, for loading a website within an Illustrator window.
Definition: hdicoreWebView.h:22
Contains Point and Size objects to describe a rectangle that exists at a specific point of given dime...
Definition: hdicoreRect.h:26
virtual void setText(const std::string &text_)
Does nothing (web views do not have a text value)
virtual std::string tooltip() const
Does nothing (web views do not have a tooltip)
virtual double estimatedProgress() const
Gets an estimate of the current loading progress.
Header file for a variety of Illustrator plugin convenience macros.
virtual bool goBack()
Goes back one step in the browsing history.
virtual ~WebView()
WebView destructor.
virtual WebView * duplicate() const
Convenience method to duplicate a WebView object, creating a new and identical UI element to the targ...
virtual void setTooltip(const std::string &tip_)
Does nothing (web views do not have a tooltip)
virtual void reload()
Reloads the currently loaded page, if any.
Definition: hdicoreaiArray.h:12
virtual std::string text() const
Does nothing (web views do not have a text value)
Header file for Illustrator user interface widgets.
virtual void stopLoading()
Stops any page loading that might be occurring.
virtual bool isLoading() const
Gets whether the target web view is currently loading a page.
virtual bool goForward()
Goes forward one step in the browsing history.