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

Public Types | |
| enum | { kDefaultIID = IID_IREFPOINTUTILS } |
Utility interface for functions that computing reference points. 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 |
Returns the reference point in pasteboard coordinates for the specified bounds based on the position.
| position | [IN] is one of IReferencePointData::ReferencePointPosition. See .h |
| bounds | [IN] is the bounds, typically of the selection. |
| pure virtual |
Returns the reference point in pasteboard coordinates for the specified items in the list based on the position.
| position | [IN] is one of IReferencePointData::ReferencePointPosition. See .h |
| items | [IN] the list of items. |
| referenceFrame | [OUT] if not nil, the parent's rect bound is returned. |
| pUseStroke | [IN] if not nil, it use this setting to calculate the reference point. If true, the stroke bounds are used. Otherwise the path bound is used. If nil, the current global setting from ITransformPanelPrefs is used. |
| pure virtual |
Returns the reference position given a rect point index.
| index | [IN] is the point index and is one of PMRect::PointIndex. See .h |
| pure virtual |
Returns the point index position given a reference point position.
| position | [IN] is the reference position and is one of IReferencePointData::ReferencePointPosition. See .h |
| pure virtual |
Converts a reference point position to its equivalent TransformOrigin. e.g. IReferencePointData::kTopLeft converts to Transform::LeftTopLocation()
| position | [IN] is the reference position and is one of IReferencePointData::ReferencePointPosition. See .h |