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

Public Types | |
| enum | { kDefaultIID = IID_IANCHOREDOBJECT_ISUITE } |
Public Member Functions | |
| virtual bool16 | CanSetAnchoredObjectParams () const =0 |
| virtual bool16 | CanSetAnchoredObjectInsertParams () const =0 |
| virtual bool16 | CanInsertAnchoredObject () const =0 |
| virtual ErrorCode | InsertAnchoredObject (IAnchoredObjectInsertData *objectSpec, bool16 toggleSelection=kFalse)=0 |
| virtual bool16 | CanToggleBetweenAnchoredFrame () const =0 |
| virtual ErrorCode | ToggleBetweenAnchoredFrame (UIDRef &toggledFrame, TextIndex &location) const =0 |
| virtual bool16 | CanReleaseAnchoredObject () const =0 |
| virtual ErrorCode | ReleaseAnchoredObject ()=0 |
| virtual bool16 | CanSetAnchoredPosition () const =0 |
| virtual ErrorCode | SetPosition (IAnchoredObjectData::AnchoredPosition position)=0 |
| virtual IAnchoredObjectData::AnchoredPosition | GetPosition (bool16 *mixed=nil) const =0 |
| virtual bool16 | CanGetSpineRelative () const =0 |
| virtual ErrorCode | SetSpineRelative (bool16 splineRelative)=0 |
| virtual bool16 | GetSpineRelative (bool16 *mixed=nil) const =0 |
| virtual ErrorCode | SetAnchorTypeHorizontal (IAnchoredObjectData::HorizontalAnchorPointObject location)=0 |
| virtual IAnchoredObjectData::HorizontalAnchorPointObject | GetAnchorTypeHorizontal (bool16 *mixed=nil) const =0 |
| virtual ErrorCode | SetObjectHorizontal (IAnchoredObjectData::AnchoredHorizontal align)=0 |
| virtual IAnchoredObjectData::AnchoredHorizontal | GetObjectHorizontal (bool16 *mixed=nil) const =0 |
| virtual ErrorCode | SetAnchorPtHorizontal (IAnchoredObjectData::AnchoredHorizontal align)=0 |
| virtual IAnchoredObjectData::AnchoredHorizontal | GetAnchorPtHorizontal (bool16 *mixed=nil) const =0 |
| virtual ErrorCode | SetAnchorTypeVertical (IAnchoredObjectData::VerticalAnchorPointObject location)=0 |
| virtual IAnchoredObjectData::VerticalAnchorPointObject | GetAnchorTypeVertical (bool16 *mixed=nil) const =0 |
| virtual ErrorCode | SetObjectVertical (IAnchoredObjectData::AnchoredVertical align)=0 |
| virtual IAnchoredObjectData::AnchoredVertical | GetObjectVertical (bool16 *mixed=nil) const =0 |
| virtual ErrorCode | SetAnchorPtVertical (IAnchoredObjectData::AnchoredVertical align)=0 |
| virtual IAnchoredObjectData::AnchoredVertical | GetAnchorPtVertical (bool16 *mixed=nil) const =0 |
| virtual ErrorCode | SetXOffset (PMReal xoffset)=0 |
| virtual ErrorCode | SetYOffset (PMReal yoffset)=0 |
| virtual PMPoint | GetOffset (bool16 *mixed=nil) const =0 |
| virtual ErrorCode | SetYOffsetAbove (PMReal yoffset)=0 |
| virtual PMReal | GetYOffsetAbove (bool16 *mixed=nil) const =0 |
| virtual ErrorCode | SetPinPosition (bool16 pinPos)=0 |
| virtual bool16 | GetPinPosition (bool16 *mixed=nil) const =0 |
| virtual ErrorCode | SetLockPosition (bool16 lock)=0 |
| virtual bool16 | GetLockPosition (bool16 *mixed=nil) const =0 |
| virtual ErrorCode | SetInitialContent (IAnchoredObjectInsertData::AnchoredContent content)=0 |
| virtual IAnchoredObjectInsertData::AnchoredContent | GetInitialContent () const =0 |
| virtual ErrorCode | SetInitialObjectStyle (UID styleID)=0 |
| virtual UID | GetInitialObjectStyle () const =0 |
| virtual ErrorCode | SetInitialParagraphStyle (UID styleID)=0 |
| virtual UID | GetInitialParagraphStyle () const =0 |
| virtual ErrorCode | SetInitialWidth (PMReal w)=0 |
| virtual PMReal | GetInitialWidth () const =0 |
| virtual ErrorCode | SetInitialHeight (PMReal h)=0 |
| virtual PMReal | GetInitialHeight () const =0 |
| virtual PMReal | GetSmallestObjectHeight () const =0 |
| virtual PMReal | GetSmallestLineHeight () const =0 |
| virtual bool16 | ObjectInVerticalText () 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 |
IAnchoredObjectSuite The suite methods of changing the anchored object data & preferences.
| pure virtual |
Whether or not you can set the spline relative value (false when facing pages is off)
| pure virtual |
Does this suite target support inserting an anchored object?
| pure virtual |
CanReleaseAnchoredObject Can the suite target be released onto the text frame's layer?
| pure virtual |
Does this suite target support setting the anchored object insert data fields?
| pure virtual |
Does this suite target support setting the anchored object data fields?
| pure virtual |
Does the selection support the "anchored" position? E.g., inlines in text on a path can't be anchored.
| pure virtual |
CanToggleBetweenAnchoredFrame is the toggling between text selections & anchored text frame allowed?
| pure virtual |
Get which horizontal point OF THE REFERENCE to align to (AnchorTypeHorizontal). will be set to kTrue if the target contains multiple values.
| pure virtual |
Get which vertical point OF THE REFERENCE to align to (AnchorTypeVertical). will be set to kTrue if the target contains multiple values.
| pure virtual |
Get which location the horizontal position is based upon. will be set to kTrue if the target contains multiple values.
| pure virtual |
Get which location the vertical position is based upon. will be set to kTrue if the target contains multiple values.
| pure virtual |
Get the type of content that will be inserted.
| pure virtual |
Get the height of the object to be inserted.
| pure virtual |
Get the object style that would be applied to the inserted object.
| pure virtual |
Get the paragraph style that would be applied to an inserted text frame.
| pure virtual |
Get the initial width of the object that would be inserted.
| pure virtual |
Get whether the anchored object's position should be locked. This is a shortcut to applying the "Lock Object" functionality and is identical. will be set to kTrue if the target contains multiple values.
| pure virtual |
Get which horizontal point OF THE OBJECT to align to. will be set to kTrue if the target contains multiple values.
| pure virtual |
Get which vertical point OF THE OBJECT to align to. will be set to kTrue if the target contains multiple values.
| pure virtual |
Get the y-offset and x-offset of the anchored object from the point specified will be set to kTrue if the target contains multiple values.
| pure virtual |
Get whether the anchored object's position should be pinned within the text column boundaries. will be set to kTrue if the target contains multiple values.
| pure virtual |
Get the positioning type of the anchored object. will be set to kTrue if the target contains multiple values.
| pure virtual |
GetSmallestLineHeight – used by some contraints.
| pure virtual |
GetSmallestObjectHeight – used by some contraints.
| pure virtual |
Get spine relative positioning. will be set to kTrue if the target contains multiple values.
| pure virtual |
Get the amount of space to add above the anchored item. Y Offset Above is only used by "above line" positioning will be set to kTrue if the target contains multiple values.
| pure virtual |
Insert an anchored object using the specification provided by the interface passed it.
| objectSpec | is an interface with the proper insert settings. It should also be able to provide the IAnchoredObjectData interface through a QueryInterface. |
| toggleSelection | specifies whether the insert should select the new object. |
| pure virtual |
Returns true if the anchored object is inside of vertical text
| pure virtual |
ReleaseAnchoredObject Make the object be on the text frame's layer instead of anchored.
| pure virtual |
Set which horizontal point OF THE REFERENCE to align to (AnchorTypeHorizontal).
| align | specifies which horizontal point to use. |
| pure virtual |
Set which vertical point OF THE REFERENCE to align to (AnchorTypeVertical).
| align | specifies which vertical point to use. |
| pure virtual |
Set which location the horizontal position is based upon.
| location | specifies which point the object's horizontal position is relative to. |
| pure virtual |
Set which location the vertical position is based upon.
| location | which point the object's vertical position is relative to. |
| pure virtual |
When inserting an anchored object automatically, which type of object should be inserted?
| content | is the type of object to insert: text frame, graphic frame, unassigned frame. |
| pure virtual |
Set the height of the object to be inserted.
| h | is the height in points. |
| pure virtual |
Set the object style to be applied to the inserted object.
| styleID | is the object style to apply. |
| pure virtual |
Set the paragraph style to be applied to the inserted object, IFF the object is a text frame.
| styleID | is the paragraph style to apply |
| pure virtual |
Set the width of the object to be inserted.
| w | is the width in points. |
| pure virtual |
Set whether the anchored object's position should be locked. This is a shortcut to applying the "Lock Object" functionality and is identical.
| lock | specifies whether to set locking for the anchored object. |
| pure virtual |
Set which horizontal point OF THE OBJECT to align to.
| align | specifies which horizontal point to use. |
| pure virtual |
Set which vertical point OF THE OBJECT to align to.
| align | specifies which vertical point to use. |
| pure virtual |
Set whether the anchored object's position should be pinned within the text column boundaries.
| pinPos | specifies whether to pin the anchored object. |
| pure virtual |
Set the positioning type of the anchored object.
| position | is the positioning type to apply. |
| pure virtual |
Set whether the anchored object's positioning is relative to the spine.
| spineRelative | true or false. |
| pure virtual |
Set the x-offset of the anchored object from the point specified Due to the way spine-relative positioning can dynamically change the anchored object's position, positive x-offsets move the graphic AWAY from the anchor location, negative closer.
| xoffset | is the offset value in points. |
| pure virtual |
Set the y-offset of the anchored object from the point specified
| yoffset | is the offset value in points. |
| pure virtual |
Set the amount of space to add above the anchored item. Y Offset Above is only used by "above line" positioning
| yoffset | specifies extra space in points. |
| pure virtual |
ToggleBetweenAnchoredFrame toggle between text selections & anchored text frame
| toggledFrame | and |
| location | will be filled out according to these rules: if the selection spans or is adjacent to an existing anchored frame, then toggledFrame will contain the UIDRef of the existing frame and location will be set to the end of that frame's text. if the selection is within an already existing anchored frame, then the toggledFrame will be the story that contains the anchor, and location will be the anchor's location. if the selection is a caret that is not adjacent to an already existing anchored frame, it will create one and return that new spline item's UIDRef and a location of 0 (could create an Unassigned, Graphic or Text frame). if the selection doesn't support the operation, the toggledFrame may be <nil, kInvalidUID>. |