Hot Door CORE  0.7.0
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__
virtual DocumentView & operator=(const DocumentView &rhs_)
Assigns one DocumentView object to another.
virtual Rect artworkRectToViewRect(const ArtboardRect &artRect_)
Converts a rect on the document to an absolute rect on the screen.
virtual ArtboardPoint viewPointToArtworkPoint(const Point &viewPt_)
Converts a point on the screen to a point on the document.
virtual double zoom() const
Gets the current zoom level of the document.
Describes a point in the 2-dimensional (x,y) coordinate system, typically in an Illustrator document ...
Definition: hdicorePoint.h:26
bool operator==(const DocumentView &rhs_) const
Checks whether one DocumentView object represents the same Illustrator view as another.
virtual AIDocumentViewHandle aiDocumentViewHandle() const
Gets the document view handle around which the target object is wrapped.
Header file for describing rectangles.
virtual void setScreenMode(const ScreenMode mode_)
Sets the current screen mode of the document (full, windowed, etc.)
virtual ~DocumentView()
DocumentView destructor.
DocumentView()
Constructs an empty DocumentView object.
virtual ArtboardRect viewRectToArtworkRect(const Rect &viewRect_)
Converts a rect on the screen to a rect on the document.
Describes a rectangular area on the Illustrator artboard.
Definition: hdicoreArtboardRect.h:25
virtual void setCenter(const ArtboardPoint &center_)
Moves the document view to be centered on the given point.
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's window(s)
Definition: hdicoreDocumentView.h:33
Header file for geometric rectangle manipulation on the Illustrator artboard.
bool operator!=(const DocumentView &rhs_) const
Checks whether one DocumentView object does not represent the same Illustrator view as another...
virtual void setZoom(const double zoom_)
Sets the current zoom level of the document.
Header file for geometric point manipulation on the Illustrator artboard.
Allow for interacting the document views (windows)
Definition: hdicoreDocumentView.h:27
virtual bool isEmpty() const
Gets whether the target DocumentView object is empty (constructed with the default ctor) ...
Header file for describing 2D points.
Definition: hdicoreaiArray.h:12
virtual ScreenMode screenMode() const
Gets the current screen mode of the document (full, windowed, etc.)
virtual ArtboardPoint center() const
Gets the center of the portion of the document that is currently visible in its window.
virtual Point artworkPointToViewPoint(const ArtboardPoint &artPt_)
Converts a point on the document to an absolute point on the screen.
Describes a point on the Illustrator artboard.
Definition: hdicoreArtboardPoint.h:28
virtual ArtboardRect bounds() const
Gets the bounds of the portion of the document that is currently visible in its window.