![]() | InDesign SDK 20.5 |
#include <IRefPointUIUtils.h>

Public Types | |
| enum | { kDefaultIID = IID_IREFPOINTUIUTILS } |
Utility interface for dealing with the reference point. Each layout view has its own reference point, which is indicated in the Transform Panel/Control Panel as a nine-point proxy. The reference point has several components: a pasteboard coordinate, and a position (see .h for ReferencePointPosition enum). The reference point is used for displaying information in the transform panel for selected page item coordinates, and as a reference point for certain commands (such as rotation, which is done around a reference point).
| pure virtual |
Change the reference point for the layout view to the new values. Helper interface for generating and processing a kMoveReferencePointCmdBoss.
| layoutData | [IN] the ILayoutControlData for the view. |
| newPosition | [IN] the new reference position |
| newPoint | [IN] the new point in pasteboard coordinates |
| referenceFrame | [IN] the new reference point. Use kZeroRect if not relevant. |
| pure virtual |
Change just the position of the reference point for the layout view given a set of page items.
| layoutData | [IN] the ILayoutControlData for the view. |
| newPosition | [IN] the new reference point position |
| items | [IN] a UIDList reference to the list of page items to use for computing the reference point position of. |
| pure virtual |
Return the reference point for the layout view.
| layoutData | [IN] the ILayoutControlData for the view. |
| pure virtual |
Return the reference frame for the layout view. A reference frame is a rectangle relative to which offset values are displayed in the transform palette/control strip when the content offset preference is set. Comes into play when a page item inside another is selected (e.g. an image). The reference frame is the parent frame.
| layoutData | [IN] the ILayoutControlData for the view. |
| pure virtual |
Obsolete, do not use. Get the reference point offset for the layout view. Used when the position is kOther and value is relative to the center. Currently unused.
| layoutData | [IN] the ILayoutControlData for the view. |
| pure virtual |
Return the current reference point location for the layout view.
| layoutData | [IN] the ILayoutControlData for the view. |
| pure virtual |
Hide the reference point for the layout view.
| layoutData | [IN] the ILayoutControlData for the view. |
| pure virtual |
Invalidate the screen location of the reference point for the layout view. This is automatically called when the reference point is hidden or show or moved, so it shouldn't be required in most cases.
| layoutData | [IN] the ILayoutControlData for the view. |
| forceInval[IN] | kTrue to force the invalidation even if the reference point is hidden, kFalse to only invalidate when shown. |
| pure virtual |
Is the reference point locked for the layout view. When locked, reference point will not be updated during selection changes.
| layoutData | [IN] the ILayoutControlData for the view. |
| pure virtual |
Is the reference point shown for the layout view? Note that the reference point will actually only be drawn when it is shown and visible.
| layoutData | [IN] the ILayoutControlData for the view. |
| pure virtual |
Is the reference point visible/drawn for the layout view and selection?
| layoutData | [IN] the ILayoutControlData for the view. |
| pure virtual |
Lock the reference point for the layout view.
| layoutData | [IN] the ILayoutControlData for the view. |
| pure virtual |
Test to see if the given point "hits" the reference point. Used by trackers and includes a small slop rect.
| layoutData | [IN] the ILayoutControlData for the view. |
| point | [IN] the point in pasteboard coordinates to use for hittesting. |
| pure virtual |
Query the IRefencePointData interface for this layout view.
| layoutData | [IN] the ILayoutControlData for the view. |
| pure virtual |
Obsolete, do not use.
| pure virtual |
Recompute the reference point for the layout window based on the selection and change it. Called in response to selection changes and updates the reference point to the same reference position on the new selection. Also saves the reference position as the new session default, since the last-user set position is always the new default position for new views and documents. Session preference is stored in IID_IDEFAULTREFPOINTPOSITION on kWorkspaceBoss.
| layoutData | [IN] the ILayoutControlData for the view. |
| pure virtual |
Set the reference frame for the layout view. A reference frame is a rectangle relative to which offset values are displayed in the transform palette/control strip when the content offset preference is set. Comes into play when a page item inside another is selected (e.g. an image). The reference frame is the parent frame.
| layoutData | [IN] the ILayoutControlData for the view. |
| referenceFrame | [IN] in global pasteboard coordinates |
| pure virtual |
Does the current selection have a hidden reference point?
| layoutData | [IN] the ILayoutControlData for the view. |
| pure virtual |
Obsolete, do not use. Set the reference point offset for the layout view. Used when the position is kOther and value is relative to the center.
| layoutData | [IN] the ILayoutControlData for the view. |
| offset | [IN] the value in global pasteboard coordinates. |
| pure virtual |
Does the current selection have a visible reference point?
| layoutData | [IN] the ILayoutControlData for the view. |
| pure virtual |
Set the reference position and point for the layout view. This is a helper function used by the move reference point command and shouldn't be used directly.
| layoutData | [IN] the ILayoutControlData for the view. |
| position | [IN] the new reference position |
| point | [IN] the new reference point in global pasteboard coordinates. |
| pure virtual |
Show the refence point for the layout view.
| layoutData | [IN] the ILayoutControlData for the view. |
| pure virtual |
Unlock the reference point for the layout view.
| layoutData | [IN] the ILayoutControlData for the view. |
| pure virtual |
Test to see if the given point "hits" the reference point. Used by trackers and includes a small slop rect.
| layoutData | [IN] the ILayoutControlData for the view. |
| point | [IN] the point in local window coordinates to use for hittesting. |