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

Public Types | |
| enum | { kDefaultIID = IID_IFRAMECONTENTUTILS } |
Public Member Functions | |
| virtual bool16 | DoesContainGraphicFrame (const UIDList *items, bool16 bWantEmpty) const =0 |
| virtual bool16 | DoesContainTextFrame (const UIDList *items, bool16 bWantEmpty) const =0 |
| virtual bool16 | DoesContainItem (const UIDList *items) const =0 |
| virtual bool16 | IsEmptyTextFrame (const IGraphicFrameData *frameData) const =0 |
| virtual UID | CanFitFrameToContent (const UIDRef &item) const =0 |
| virtual UIDList * | CreateListOfFrames (const UIDList &items) const =0 |
| virtual UID | CanFitContentToFrame (const UIDRef &item) const =0 |
| virtual UIDList * | CreateListOfContent (const UIDList &items) const =0 |
| virtual void | CalculateCurrentCropValuesForFitting (UIDRef frame, PMRect &cropAmounts)=0 |
| virtual void | GetContentCropParameters (ITransform *contentTransform, PMRect cropAmounts, PMRect &cropRect, PMMatrix &contentToCropMatrix, PMMatrix &cropToParentMatrix)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Utility interface for determining various aspects of frame contents.
| pure virtual |
Calculate Frame Fitting cropping values that represent the current arrangement of content in the Frame given the reference point and fitting option.
| frame | [IN] the UIDRef of the frame with content |
| cropAmounts | [OUT] the calculated crop values |
Determine if the item can be stretched to fit its frame.
| item | IN, UIDRef of item to examine. |
Determine if the item have its frame fit to the size of the content
| item | IN UIDRef of item to check. |
| pure virtual |
Determine if any item in the list is a graphic frame.
| items | IN UIDList of items to examine. |
| bWantEmpty | IN pass kTrue there must be an empty Graphic Frame in the list |
| pure virtual |
Determine if any frame in the list is a page item.
| items | IN UIDList of items to examine. |
| pure virtual |
Determine if item list contains one more more text frames.
| items | IN UIDList of items to examine. |
| bWantEmpty | IN pass kTrue if there must be an empty Text Frame in the list |
| pure virtual |
Calculate the crop Rectangle in a coordinate space defined by contentToCropMatrix. This is the same as the content to Parent matrix with only the rotate, skew and "flip" (sign part of the scale matrix).
| content | ITransform of the content |
| cropAmounts | 4-tuple of insets from the biggest rectangle inscribed in the content but aligned with the parent. |
| contentToCropMatrix | the part of the content to parent matrix that contains Rotation, Skew and Flip. |
| cropToParentMatrix | the part of the content to parent matrix that contains the scale magnatude and translation. if you multiply the contentToCropMatrix with cropToParentMatrix you get the same thing as the content to parent matrix |
| pure virtual |
Determine if the frame for this item contains an empty story.
| frameData | IN An IGraphicFrameData from the frame to check. |