Hot Door CORE  0.7.1
Adobe® Illustrator® Plug-in Library
hdicoreDocumentView.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_DOCUMENT_VIEW__
8 #define __HDI_CORE_DOCUMENT_VIEW__
9 
10 #include "hdicoreArtboardPoint.h"
11 #include "hdicoreArtboardRect.h"
12 #include "hdicorePoint.h"
13 #include "hdicoreRect.h"
14 
15 namespace hdi
16 {
17  namespace plugin
18  {
19  class DocumentView;
20  }
21 
22  namespace core
23  {
28  {
29  public:
34  {
35  UnknownScreenMode = 0,
36  NoDocumentsScreenMode = 10,
37  NormalScreenMode = 20,
38  FullScreenWithMenuMode = 30,
39  FullScreenWithoutMenuMode = 40
40  };
41 
53  DocumentView();
54 
62  DocumentView(const DocumentView& dv_);
63 
71  DocumentView(const AIDocumentViewHandle aiDocView_);
72 
78  virtual ~DocumentView();
79 
89  virtual DocumentView& operator=(const DocumentView& rhs_);
90 
102  virtual AIDocumentViewHandle aiDocumentViewHandle() const;
103 
111  virtual bool isEmpty() const;
112 
120  virtual ArtboardRect bounds() const;
121 
129  virtual ArtboardPoint center() const;
130 
138  virtual void setCenter(const ArtboardPoint& center_);
139 
147  virtual double zoom() const;
148 
156  virtual void setZoom(const double zoom_);
157 
165  virtual ScreenMode screenMode() const;
166 
174  virtual void setScreenMode(const ScreenMode mode_);
175 
184  virtual Point artworkPointToViewPoint(const ArtboardPoint& artPt_);
185 
194  virtual ArtboardPoint viewPointToArtworkPoint(const Point& viewPt_);
195 
204  virtual Rect artworkRectToViewRect(const ArtboardRect& artRect_);
205 
214  virtual ArtboardRect viewRectToArtworkRect(const Rect& viewRect_);
215 
224  bool operator==(const DocumentView& rhs_) const;
225 
235  bool operator!=(const DocumentView& rhs_) const;
236 
237 
238  private:
239  friend plugin::DocumentView* __accessImpl(const DocumentView&);
240  friend DocumentView __accessCtor(plugin::DocumentView*&);
241 
245  void* __data;
246 
252  void* __impl() const;
253 
259  DocumentView(plugin::DocumentView*&);
260  };
261 
262  typedef std::auto_ptr<DocumentView> DocumentViewAP;
263 
264  extern plugin::DocumentView* __accessImpl(const DocumentView&);
265  extern DocumentView __accessCtor(plugin::DocumentView*&);
266  }
267 }
268 
269 #endif
270 // __HDI_CORE_DOCUMENT_VIEW__
Describes a point in the 2-dimensional (x,y) coordinate system, typically in an Illustrator document ...
Definition: hdicorePoint.h:26
Header file for describing rectangles.
Describes a rectangular area on the Illustrator artboard.
Definition: hdicoreArtboardRect.h:25
Contains Point and Size objects to describe a rectangle that exists at a specific point of given dime...
Definition: hdicoreRect.h:26
ScreenMode
Describes the current layout of Illustrator&#39;s window(s)
Definition: hdicoreDocumentView.h:33
Header file for geometric rectangle manipulation on the Illustrator artboard.
Header file for geometric point manipulation on the Illustrator artboard.
Allow for interacting the document views (windows)
Definition: hdicoreDocumentView.h:27
Header file for describing 2D points.
Definition: hdicoreaiArray.h:12
Describes a point on the Illustrator artboard.
Definition: hdicoreArtboardPoint.h:28