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

Public Types | |
| enum | { kDefaultIID = IID_IREFERENCEPOINTSUITE } |
A selection suite to operate on the reference point. InDesign has just one global reference point and position, but it may be accessed via several suites, and the reference point in different suites has some different behaviors. e.g. In the text selection suite we never draw the reference point, though it still exists.
| pure virtual |
Calculate the current reference point for the given position for the current selection.
| position | [IN] the new reference position |
| nil | OUT Optionally return parent rectangle in pasteboard coordinates if it exists (e.g. graphic item direct selected) |
| pure virtual |
Can the reference point be changed for the current selection? A single guide cannot have its reference point changed, since it is always kCenter.
| pure virtual |
Change the reference point for the selection suite to the new values.
| newPosition | [IN] the new reference point position |
| newPoint | [IN] the new reference point value in pasteboard coordinates |
| referenceFrame | [IN] the new parent reference frame, use kZeroRect if it doesn't apply |
| pure virtual |
Change just the reference position for the selection suite based on its selection.
| newPosition | [IN] the new reference position |
| pure virtual |
Return the default reference position for the specified selection. For a guide selection, it is kCenter, otherwise it is the current position.
| pure virtual |
Return what the proxy representation should be (line, 9 point, single point, etc.)
| pure virtual |
Return the PMLine for the selection, undefined if GetReferenceAppearance != kLine. We use the line appearance whenever a line is selected. Can be a vertical, horizontal, or diagonal line that best matches the angle of the line selection. Also used for
| pure virtual |
Return the reference position for the current selection.
| pure virtual |
Does the current selection have a visible reference point? Currently the LayoutCSB is the only selection the has a visible reference point, and it applies whenever there is a non-guide selection. In practice, we only actually draw the reference point when one of the transform tools is also selected (e.g. Rotate, Scale, Shear tools).