Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
|
Allow for interacting the document views (windows) More...
#include <hdicoreDocumentView.h>
Public Types | |
enum | ScreenMode { UnknownScreenMode = 0 , NoDocumentsScreenMode = 10 , NormalScreenMode = 20 , FullScreenWithMenuMode = 30 , FullScreenWithoutMenuMode = 40 , PresentationMode = 50 } |
Describes the current layout of Illustrator's window(s) | |
Public Member Functions | |
DocumentView () | |
Constructs an empty DocumentView object. | |
DocumentView (const DocumentView &dv_) | |
DocumentView copy constructor. | |
DocumentView (const AIDocumentViewHandle aiDocView_) | |
Constructs a new DocumentView object from an AIDocumentViewHandle. | |
virtual | ~DocumentView () |
DocumentView destructor. | |
virtual DocumentView & | operator= (const DocumentView &rhs_) |
Assigns one DocumentView object to another. | |
virtual AIDocumentViewHandle | aiDocumentViewHandle () const |
Gets the document view handle around which the target object is wrapped. | |
virtual bool | isEmpty () const |
Gets whether the target DocumentView object is empty (constructed with the default ctor) | |
virtual ArtboardRect | bounds () const |
Gets the bounds of the portion of the document that is currently visible in its window. | |
virtual ArtboardPoint | center () const |
Gets the center of the portion of the document that is currently visible in its window. | |
virtual void | setCenter (const ArtboardPoint ¢er_) |
Moves the document view to be centered on the given point. | |
virtual double | zoom () const |
Gets the current zoom level of the document. This is the scale factor from artwork coordinates to window coordinates. | |
virtual void | setZoom (const double zoom_) |
Sets the current zoom level of the document. This is the scale factor from artwork coordinates to window coordinates. | |
virtual double | displayZoom () const |
Gets the current display zoom level of the document. This is the zoom value that the user sees on the document status bar. | |
virtual void | setDisplayZoom (const double zoom_) |
Sets the current display zoom level of the document. This is the zoom value that the user sees on the document status bar. | |
virtual ScreenMode | screenMode () const |
Gets the current screen mode of the document (full, windowed, etc.) | |
virtual void | setScreenMode (const ScreenMode mode_) |
Sets the current screen mode of the document (full, windowed, etc.) | |
virtual bool | rotation (ArtboardPoint &pt__, Angle &angle__) const |
Gets the point and angle of rotation for the document view. | |
virtual void | setRotation (const ArtboardPoint &pt_, const Angle &angle_) |
Sets the point and angle of rotation for the document view. | |
virtual void | resetRotation () |
Resets the angle of rotation for the document view back to zero degrees. | |
virtual Point | artworkPointToViewPoint (const ArtboardPoint &artPt_) |
Converts a point on the document to an absolute point on the screen. | |
virtual ArtboardPoint | viewPointToArtworkPoint (const Point &viewPt_) |
Converts a point on the screen to a point on the document. | |
virtual Rect | artworkRectToViewRect (const ArtboardRect &artRect_) |
Converts a rect on the document to an absolute rect on the screen. | |
virtual ArtboardRect | viewRectToArtworkRect (const Rect &viewRect_) |
Converts a rect on the screen to a rect on the document. | |
virtual Point | artworkPointToViewPointUnrotated (const ArtboardPoint &artPt_) |
Converts a point on the document to an absolute point on the screen without taking into account the view rotation. | |
virtual ArtboardPoint | viewPointToArtworkPointUnrotated (const Point &viewPt_) |
Converts a point on the screen to a point on the document without taking into account the view rotation. | |
virtual Rect | artworkRectToViewRectUnrotated (const ArtboardRect &artRect_) |
Converts a rect on the document to an absolute rect on the screen without taking into account the view rotation. | |
virtual ArtboardRect | viewRectToArtworkRectUnrotated (const Rect &viewRect_) |
Converts a rect on the screen to a rect on the document without taking into account the view rotation. | |
bool | operator== (const DocumentView &rhs_) const |
Checks whether one DocumentView object represents the same Illustrator view as another. | |
bool | operator!= (const DocumentView &rhs_) const |
Checks whether one DocumentView object does not represent the same Illustrator view as another. | |
Friends | |
aip::DocumentView * | __accessImpl (const DocumentView &) |
DocumentView | __accessCtor (aip::DocumentView *&) |
Allow for interacting the document views (windows)
hdi::core::DocumentView::DocumentView | ( | ) |
Constructs an empty DocumentView object.
hdi::core::DocumentView::DocumentView | ( | const DocumentView & | dv_ | ) |
hdi::core::DocumentView::DocumentView | ( | const AIDocumentViewHandle | aiDocView_ | ) |
Constructs a new DocumentView object from an AIDocumentViewHandle.
aiDocView_ | Raw Illustrator AIDocumentViewHandle |
|
virtual |
DocumentView destructor.
|
virtual |
Gets the document view handle around which the target object is wrapped.
|
virtual |
Converts a point on the document to an absolute point on the screen.
artPt_ | Artboard point to convert to a UI point |
|
virtual |
Converts a point on the document to an absolute point on the screen without taking into account the view rotation.
artPt_ | Artboard point to convert to a UI point |
|
virtual |
Converts a rect on the document to an absolute rect on the screen.
artRect_ | Artboard rect to convert to a UI rect |
|
virtual |
Converts a rect on the document to an absolute rect on the screen without taking into account the view rotation.
artRect_ | Artboard rect to convert to a UI rect |
|
virtual |
Gets the bounds of the portion of the document that is currently visible in its window.
|
virtual |
Gets the center of the portion of the document that is currently visible in its window.
|
virtual |
Gets the current display zoom level of the document. This is the zoom value that the user sees on the document status bar.
|
virtual |
Gets whether the target DocumentView object is empty (constructed with the default ctor)
bool hdi::core::DocumentView::operator!= | ( | const DocumentView & | rhs_ | ) | const |
Checks whether one DocumentView object does not represent the same Illustrator view as another.
rhs_ | Existing DocumentView object to compare with |
|
virtual |
Assigns one DocumentView object to another.
rhs_ | Existing DocumentView object to copy values from |
bool hdi::core::DocumentView::operator== | ( | const DocumentView & | rhs_ | ) | const |
Checks whether one DocumentView object represents the same Illustrator view as another.
rhs_ | Existing DocumentView object to compare with |
|
virtual |
Resets the angle of rotation for the document view back to zero degrees.
|
virtual |
Gets the point and angle of rotation for the document view.
pt__ | Return-by-reference for the point in the document around which the view is rotated |
angle__ | Return-by-reference for the angle of rotation around the point |
|
virtual |
Gets the current screen mode of the document (full, windowed, etc.)
|
virtual |
Moves the document view to be centered on the given point.
center_ | Point in the document on which to center in the document's containing window |
|
virtual |
Sets the current display zoom level of the document. This is the zoom value that the user sees on the document status bar.
zoom_ | New document display zoom level, where 1.0 is 100%, 0.5 is 50%, 2.0 is 200%, etc. |
|
virtual |
Sets the point and angle of rotation for the document view.
pt_ | Point in the document around which to rotate the view |
angle_ | Angle of rotation around the point |
|
virtual |
Sets the current screen mode of the document (full, windowed, etc.)
mode_ | New screen mode for the document view |
|
virtual |
Sets the current zoom level of the document. This is the scale factor from artwork coordinates to window coordinates.
zoom_ | New document zoom level, where 1.0 is 100%, 0.5 is 50%, 2.0 is 200%, etc. |
|
virtual |
Converts a point on the screen to a point on the document.
viewPt_ | UI point to convert to an artboard point |
|
virtual |
Converts a point on the screen to a point on the document without taking into account the view rotation.
viewPt_ | UI point to convert to an artboard point |
|
virtual |
Converts a rect on the screen to a rect on the document.
viewRect_ | UI rect to convert to an artboard rect |
|
virtual |
Converts a rect on the screen to a rect on the document without taking into account the view rotation.
viewRect_ | UI rect to convert to an artboard rect |
|
virtual |
Gets the current zoom level of the document. This is the scale factor from artwork coordinates to window coordinates.