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

Public Types | |
| enum | { kDefaultIID = IID_IFRAMEUTILS } |
| enum | { kTF_InLink = 1, kTF_OutLink = 2, kTF_Overset = 4 } |
Public Member Functions | |
| virtual bool16 | GetFrameThreadBBox (IHandleShape *shape, const PMMatrix &theMatrix, PMRect &bounds)=0 |
| virtual UID | GetTextFrameUID (IPMUnknown *graphicFrame, int32 *textflags=nil)=0 |
| virtual bool16 | IsTextFrame (IPMUnknown *graphicFrame, int32 *textflags=nil)=0 |
| virtual void | GetUIDListOfInlines (IMultiColumnTextFrame *frame, bool16 doDropCaps, UIDList *resultList)=0 |
| virtual void | GetUIDListOfInlines (ITextFrameColumn *frame, bool16 doDropCaps, UIDList *resultList)=0 |
| virtual void | GetUIDListOfPlacedPageItem (IMultiColumnTextFrame *frame, bool16 doDropCaps, UIDList *resultList, ClassID itemClassID=kInvalidClass)=0 |
| virtual void | GetUIDListOfPlacedPageItem (ITextFrameColumn *frame, bool16 doDropCaps, UIDList *resultList, ClassID itemClassID=kInvalidClass)=0 |
| virtual void | GetFrameThreadsBBox (GraphicsData *gd, const UIDList &frameLists, PMRect &invalRect)=0 |
| virtual void | DrawSelectedFrameEdges (GraphicsData *gd, const UIDList &frameLists)=0 |
| virtual void | DrawSelectedAnchorThreads (GraphicsData *gd, const UIDList &anchors)=0 |
| virtual UIDList | CheckForAnchorInText (ITextModel *model, TextIndex start, TextIndex end, UIDRef *pOtherFrame=nil, TextIndex *pLocation=nil)=0 |
| virtual bool16 | IsPageItemAnchoredObject (UIDRef pageItem, UIDRef *pOwningFrame=nil, UIDRef *pOwningStory=nil, TextIndex *pAnchorLocation=nil)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Utilities about text frames – mostly drawing text frames. Use: Utils<IFrameUtils>()->GetSelectedFrameLists( ... ) ;
| pure virtual |
Handles 2 cases: 1) if the range contains inline graphics, it will return information about them. If not, this routine will see if the textmodel is actually within an anchored object and return information about the container.
| model | the story to check. |
| start | the index to start looking for inlines at. |
| end | the final index when looking for inlines. |
| pOtherFrame | is set to a contained textframe, or to the CONTAINING text frame if the model in from an inline. |
| pLocation | is the TextIndex of the end of a contained textframe of the index within the container of the model's inline frame. |
| pure virtual |
Draw the line from the frame to the anchors.
| gd | is the GraphicsData to use. |
| anchors | is the list of the anchored objects to draw lines for. |
| pure virtual |
Draw the frame edges for the listed frame lists.
| gd | is the GraphicsData to use. |
| frameLists | are the frame lists to draw edges for. |
| pure virtual |
Given a shape, return the frame threads bounding box in coordinates of the frame and its threads transformed by the provided matrix.
| shape | IN the frame to get the frame thread bounding box for. |
| theMatrix | IN is the transform to apply. |
| bounds | OUT is the resultant bounding box in the frame coordinates. |
| pure virtual |
Get the frame Threads bounding bos for the list of frames.
| gd | is the GraphicsData to use. |
| frameLists | is the list of frames. |
| invalRect | is the bounding box of the combined frame threads. |
| pure virtual |
Get the text frame inside a graphic frame
| graphicFrame | is the pageitem in question. |
| textflags,if | non-nil, is SET to reflect the status of the frame (in, out, overset). |
| pure virtual |
Returns the list of Inlines (kInlineBoss) that are associated with the TextFrame (inside the frame), including those that are within WaxAnchorPt owned items (such as tables). If the text within the frame isn't composed, the resultList will probably be empty.
| frame | is which text frame to look at. |
| doDropCaps | NOT USED ANYMORE. |
| resultList | the UIDList containing all of the inlines. |
| pure virtual |
Returns the list of wrapped page items (Inlines/Cell page items) that are associated with the TextFrame (inside the frame) If the text within the frame isn't composed, the resultList will probably be empty.
| frame | is which text frame to look at. |
| doDropCaps | NOT USED ANYMORE. |
| resultList | the UIDList containing all of the wrapped page items. |
| itemClassID | If class Id is provided then it will return list of those items, otherwise all the item which support IPageItemAdapter interface |
| pure virtual |
Is the pageItem actually an anchored object?
| pageItem | is a UIDRef of the pageitem in question. |
| pOwningFrame | will be the UIDRef of the textFrame that contains the pageItem if the pageItem is anchored. |
| pOwningStory | will be the UIDRef of the textmodel that contains the pageItem if it is anchored. |
| pAnchorLocation | will be the TextIndex of the pageItem, if it is anchored. |
| pure virtual |
Is the item a text frame?
| graphicFrame | is the pageitem in question. |
| textflags,if | non-nil, is SET to reflect the status of the frame (in, out, overset). |