![]() | InDesign SDK 20.5 |

Public Types | |
| enum | { kDefaultIID = IID_ISMARTDIMENSIONS } |
Public Member Functions | |
| virtual void | Clear ()=0 |
| virtual void | SetDataBase (IDataBase *db)=0 |
| virtual void | AddInfo (const UID &pageItem, const PBPMRect &bbox, const PMMatrix &xform)=0 |
| virtual int32 | GetItemsMatchingWidth (const PMReal &targetWidth, UIDList &matchingItems) const =0 |
| virtual int32 | GetItemsMatchingHeight (const PMReal &targetHeight, UIDList &matchingItems) const =0 |
| virtual int32 | GetItemsMatchingRotation (const PMReal &targetRotation, UIDList &matchingItems) const =0 |
| virtual PMReal | GetClosestWidth (const PMReal &targetWidth, const UIDList &ignoreList) const =0 |
| virtual PMReal | GetClosestHeight (const PMReal &targetHeight, const UIDList &ignoreList) const =0 |
| virtual PMReal | GetClosestRotation (const PMReal &targetRotation, const UIDList &ignoreList) const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
| pure virtual |
Add bounding box and matrix info for a specific page item.
| pageItem | [IN]: UID of the page item whose info we are recording. |
| bbox | [IN]: stroke bounding box in pasteboard coordinates. |
| xform | [IN]: Matrix used to transform the page item from inner to pasteboard coordinates. |
| pure virtual |
Clear all data.
| pure virtual |
Get the height of the closest matching page item in pasteboard coordinates. If no matching item is found, return 0.0.
| targetHeight | [IN]: the target height |
| ignoreList | [IN]: List of items to ignore. Usually the selection list. |
| pure virtual |
Get the height of the closest matching page item in pasteboard coordinates. If no matching item is found, return 0.0.
| targetHeight | [IN]: the target height |
| ignoreList | [IN]: List of items to ignore. Usually the selection list. |
| pure virtual |
Get the width of the closest matching page item in pasteboard coordinates. If no matching item is found, return 0.0.
| targetWidth | [IN]: the target width |
| ignoreList | [IN]: List of items to ignore. Usually the selection list. |
| pure virtual |
Get and append UID's of page items whose stroke bounding box in pasteboard coordinates has a height that exactly matches the provided target height.
| targetHeight | [IN]: The target height. |
| matchingItems | [OUT]: Any page items whose stroke bounding box in pasteboard coordinates matches the target height |
| pure virtual |
Get and append UID's of page items whose rotation in pasteboard coordinates exactly matches the provided target rotation.
| targetRotation | [IN]: The target rotation. |
| matchingItems | [OUT]: Any page items whose rotation in pasteboard coordinates matches the target rotation |
| pure virtual |
Add bounding box and matrix info from an existing ISmartDimensions interface to this interface.
| source | [IN]: Pointer to the interface whose data we want to copyGet and append UID's of page items whose stroke bounding box in pasteboard coordinates has a width that exactly matches the provided target width. |
| targetWidth | [IN]: The target width. |
| matchingItems | [OUT]: Any page items whose stroke bounding box in pasteboard coordinates matches the target width |
| pure virtual |
Set the current database
| db | [IN]: The current database that holds all UIDs passed into AddInfo. |