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

Public Types | |
| enum | { kDefaultIID = IID_IMULTICOLUMNTEXTFRAME } |
Public Member Functions | |
| virtual TextIndex | TextStart () const =0 |
| virtual int32 | TextSpan () const =0 |
| virtual UID | GetFrameListUID () const =0 |
| virtual IFrameList * | QueryFrameList () const =0 |
| virtual UID | GetTextModelUID () const =0 |
| virtual ITextModel * | QueryTextModel () const =0 |
| virtual IStoryOptions * | QueryStoryOptions () const =0 |
| virtual ITextFrameColumn * | QueryFrameInFrameList () const =0 |
| virtual UID | GetUIDInFrameList (bool16 getLast=kFalse) const =0 |
| virtual PMReal | HitTestFrame (const PMPoint &pPt, bool16 composeFirst, TextIndex *nextLine, bool16 primarySTOnly=kTrue)=0 |
| virtual void | SetFirstLineOffsetMetric (Text::FirstLineOffsetMetric nFirstLineOffset)=0 |
| virtual Text::FirstLineOffsetMetric | GetFirstLineOffsetMetric () const =0 |
| virtual void | SetMinFirstLineOffset (PMReal x)=0 |
| virtual PMReal | GetMinFirstLineOffset () const =0 |
| virtual void | SetVerticalJustification (Text::VerticalJustification vj)=0 |
| virtual Text::VerticalJustification | GetVerticalJustification () const =0 |
| virtual void | SetMaxVJInterParaSpace (PMReal maxInterParaSpace)=0 |
| virtual PMReal | GetMaxVJInterParaSpace () const =0 |
| virtual void | SetVJBalanceColumns (bool16 balanced)=0 |
| virtual bool16 | GetVJBalanceColumns () const =0 |
| virtual void | SetAutoSizeDimension (Text::AutoSizeDimension asDimension)=0 |
| virtual Text::AutoSizeDimension | GetAutoSizeDimension () const =0 |
| virtual void | SetAutoSizeRefPoint (IReferencePointData::ReferencePointPosition asRefPoint)=0 |
| virtual IReferencePointData::ReferencePointPosition | GetAutoSizeRefPoint () const =0 |
| virtual void | SetAutoSizeHasMinHeight (bool16 asHasMinHeight)=0 |
| virtual bool16 | GetAutoSizeHasMinHeight () const =0 |
| virtual void | SetAutoSizeMinHeightValue (PMReal asMinHeightValue)=0 |
| virtual PMReal | GetAutoSizeMinHeightValue () const =0 |
| virtual void | SetAutoSizeHasMinWidth (bool16 asHasMinWidth)=0 |
| virtual bool16 | GetAutoSizeHasMinWidth () const =0 |
| virtual void | SetAutoSizeMinWidthValue (PMReal asMinWidthValue)=0 |
| virtual PMReal | GetAutoSizeMinWidthValue () const =0 |
| virtual void | SetAutoSizeNoLineBreak (bool16 asNoLineBreak)=0 |
| virtual bool16 | GetAutoSizeNoLineBreak () const =0 |
| virtual PMRect | CalculateNthColumnBBox (int32 n) const =0 |
| virtual bool16 | GetIsFittingToContent () const =0 |
| virtual bool16 | GetIsEmpty (bool16 *optionalIsOnlyLastCR=nil) const =0 |
| virtual bool16 | GetIgnoringTextWrap () const =0 |
| virtual bool16 | GetContainsOversetContent () const =0 |
| virtual bool16 | GetIsOverset () const =0 |
| virtual bool16 | GetIsOnlyMCF () const =0 |
| virtual bool16 | GetIsFirstMCF () const =0 |
| virtual UID | GetPreviousMCFUID () const =0 |
| virtual bool16 | GetIsLastMCF () const =0 |
| virtual UID | GetNextMCFUID () const =0 |
| virtual int32 | GetMCFIndex () const =0 |
| virtual IParcel * | QueryParcelAt (const PMPoint &whereInMCFCoord) const =0 |
| virtual void | LinkToFrameList (IFrameList *newFrameList, int32 frameListAt=IFrameList::kAtTheEnd)=0 |
| virtual PMReal | CalculateVariableColWidthIf (int32 numColumns, PMReal gutterWidth, const PMRect &insets) const =0 |
| virtual PMReal | CalculateAdjustedFixedColumnWidthIf (PMReal fixedColWidth) const =0 |
| virtual PMReal | CalculateAdjustedFlexibleColumnWidthIf (PMReal mcfWidth, PMReal gutterWidth, const PMRect &insets, PMReal minWidth, PMReal maxWidth, int32 *newNumColumns) const =0 |
| virtual void | CalculateAdjustedSplineDimensions (bool16 ceiling, PMReal *pAdjWidth, bool16 *pWidthConstrained, PMReal *pAdjHeight, bool16 *pHeightConstrained) const =0 |
| virtual void | GetLayoutProperties (int32 *pParentAnchorCorner, int32 *pMCFAnchorCorner) const =0 |
| virtual void | RecomposeThru () 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 |
Text support for PageItems. Currently kMultiColumnItemBoss implements this interface. kMultiColumnItemBoss is a child of the spline.
| pure virtual |
This method will return an adjusted fixed column width for the called MultiColumnTextFrame to fit within the constraints defined by minimum width and rounding due to grids.
| fixedColWidth |
| pure virtual |
This method will return an adjusted range column width for the called MultiColumnTextFrame to fit within the constraints defined by min and max column widths, and will also return a possibly changed number of columns.
| mcfWidth,if | 0 will use current mcfWidth of the multi-column frame, otherwise will use provided value |
| gutterWidth | |
| insets | |
| minColWidth | (ITextColumnSizer::kMinimumValidInUIColumnWidth) |
| maxColWidth | |
| [OUT] | newNumColumns |
| pure virtual |
This method will adjust the specified width and height for the Spline to conform to the internal properties of the MultiColumnTextFrame. For example, if the MultiColumnTextFrame is using fixed column sizing then any value for the Spline width that does not yield an integral number columns (assuming a horizontal story) will be adjusted up appropriately to achieve an integral number of column. The underlying MCF must have either an active CJKGrid OR fixed column sizing.
| ceiling | If kTrue, we will ceiling the result, otherwise floor |
| pAdjWidth | Pointer to PMReal with Spline width to adjust - only changed if constrained by the MultiColumnTextFrame. |
| pWidthConstrained | Pointer to bool16 which will be set to kTrue if the MultiColumnTextFrame is constraining the Spline width. If set to kFalse, then pAdjWidth will be unchanged. |
| pAdjHeight | Point to PMReal with Spline height to adjust - only changed if constrained by the MultiColumnTextFrame. |
| pHeightConstrained | Pointer to bool16 which will be set to kTrue if the MultiColumnTextFrame is constraining the Spline height. |
| pure virtual |
This method will return the width of the variable columns of the called MultiColumnTextFrame if the number of columns and gutter width were as specified. The resize policy embodied by this is to attempt to keep the containing Spline the same size and simply adjust the returned variable width as appropriate to achieve this. However, rounding based on grids or minimum widths may cause the Spline to grow.
| numColums | |
| gutterWidth | |
| insets |
| pure virtual |
Gets the auto sizing dimension in the IMultiColumnTextFrame. All columns of the MultiColumnFrame share the same value.
| pure virtual |
Gets the auto sizing - has minimum height in the IMultiColumnTextFrame. All columns of the MultiColumnFrame share the same value.
| pure virtual |
Gets the auto sizing - has minimum width in the IMultiColumnTextFrame. All columns of the MultiColumnFrame share the same value.
| pure virtual |
Gets the auto sizing min height value in the IMultiColumnTextFrame. All columns of the MultiColumnFrame share the same value.
| pure virtual |
Gets the auto sizing min width value in the IMultiColumnTextFrame. All columns of the MultiColumnFrame share the same value.
| pure virtual |
Gets the auto sizing - no line break in the IMultiColumnTextFrame. All columns of the MultiColumnFrame share the same value.
| pure virtual |
Gets the auto sizing reference point in the IMultiColumnTextFrame. All columns of the MultiColumnFrame share the same value.
| pure virtual |
Complex content such as Tables and Footnotes which are composed into the MultiColumnTextFrame can be themselves contain overset TextStoryThreads. This only applies to complex content, MultiColumnTextFrames with only simple text will never contain overset content.
| pure virtual |
Gets the baseline offset of the first line in the IMultiColumnTextFrame independent of the inset. All columns of the MultiColumnFrame share the same value.
| pure virtual |
Reports which IFrameList this IMultiColumnTextFrame is contained in. Note that for the kMultiColumnItemBoss this will be the IFrameList its children ITextFrames are part of.
| pure virtual |
Reports whether the MultiColumnTextFrame is ignoring all Wraps.
| pure virtual |
Reports the state of Text content in the IMultiColumnTextFrame.
| optionalIsOnlyLastCR | Pointer to bool16 which, if non-nil, will be set to kTrue if the non-emptiness is ONLY due to containing the final CR of the PrimaryStoryThread, kFalse if empty or has other content. |
| pure virtual |
| pure virtual |
The MultiColumnFrame supports changing its size during composition so it fits the available text content. This method says if its is active or not.
| pure virtual |
| pure virtual |
| pure virtual |
This method will return kTrue if this MultiColumnTextFrame represents the the last logical MultiColumnTextFrame in the FrameList and any span in the Primary Story Thread or related content (such as split Footnotes) is not composed into this MultiColumnTextFrame. Note that if only the last CR in the Primary Story Thread is overset this method will return kFalse, that is NOT overset.
| pure virtual |
Adobe internal use only. Will change. AnchorCorner 0:top/left, 1:top/right, 2:right/bottom, 3:bottom/left
| pure virtual |
Gets the vertical justification maximum inter-paragraph space in the IMultiColumnTextFrame. All columns of the MultiColumnFrame share the same value.
| pure virtual |
| pure virtual |
Gets the minimum baseline offset of the first line in the IMultiColumnTextFrame independent of the inset. All columns of the MultiColumnFrame share the same value.
| pure virtual |
| pure virtual |
| pure virtual |
Reports which ITextModel this IMultiColumnTextFrame is associated with.
| pure virtual |
Adobe internal use only. Do not use. Returns the UID of the first (or last) TextFrameColumn which is the child of this MultiColumnTextFrame.
| getLast | If kTrue, the UID of the last child ITextFrameColumn of the MultiColumnFrame is returned, otherwise the UID of the first child ITextFrameColumn. |
| pure virtual |
Gets the vertical justification in the IMultiColumnTextFrame. All columns of the MultiColumnFrame share the same value.
| pure virtual |
Determine the closest TextIndex to the specified Pasteboard point. NOTE: If the passed in point is outside the boundary of the frame, this method still returns the text index of the closest character.
| pPt | Point in pasteboard coordinates |
| composeFirst | If kTrue and the Frame requires composition, then the Frame is composed before computing the hit. |
| nextLine | If non-nil and a hit is registered, set to the TextIndex of the next WaxLine. |
| primarySTOnly | If kTrue, then only WaxLines in the Frame are examined. Otherwise the method will burrow into objects such as Tables and Footnotes within the Frame to find the closest hit. |
| pure virtual |
Changes the FrameList (and story) the MCF is associated with. The MCF will be unlinked from it's current FrameList before establishing the new link.
| newFrameList | Pointer to new IFrameList, or nil to unlink only. |
| frameListAt | This value will be passed to the new FrameList AddFrameAt() method. |
| pure virtual |
Adobe internal use only. Do not use. Returns a pointer to the first TextFrameColumn child of this MultiColumnTextFrame.
| pure virtual |
Reports the IFrameList this IMultiColumnTextFrame is contained in. Note that for the kMultiColumnItemBoss this will be the IFrameList its children ITextFrames are part of.
| pure virtual |
| whereInMCFCoord |
| pure virtual |
Reports which IStoryOptions this IMultiColumnTextFrame is associated with.
| pure virtual |
Reports which ITextModel this IMultiColumnTextFrame is associated with.
| pure virtual |
This method is added as an API convenience. Internally it will simply find the related IFrameListComposer (on the IFrameList) and call RecomposeUpto() which will force all MultiColumnTextFrames upto and including this one to be fully composed.
| pure virtual |
Sets the auto sizing dimension in the IMultiColumnTextFrame. All columns of the MultiColumnFrame share the same value.
| asDimension | Value to set |
| pure virtual |
Sets the auto sizing - has minimum height in the IMultiColumnTextFrame. All columns of the MultiColumnFrame share the same value.
| asHasMinHeight | Value to set |
| pure virtual |
Sets the auto sizing - has minimum width in the IMultiColumnTextFrame. All columns of the MultiColumnFrame share the same value.
| asHasMinWidth | Value to set |
| pure virtual |
Sets the auto sizing min height value in the IMultiColumnTextFrame. All columns of the MultiColumnFrame share the same value.
| asMinHeightValue | Value to set |
| pure virtual |
Sets the auto sizing min width value in the IMultiColumnTextFrame. All columns of the MultiColumnFrame share the same value.
| asMinWidthValue | Value to set |
| pure virtual |
Sets the auto sizing - has no line break in the IMultiColumnTextFrame. All columns of the MultiColumnFrame share the same value.
| asNoLineBreak | Value to set |
| pure virtual |
Sets the auto sizing reference point in the IMultiColumnTextFrame. All columns of the MultiColumnFrame share the same value.
| asRefPoint | Value to set |
| pure virtual |
Sets the baseline offset of the first line in the IMultiColumnTextFrame independent of the inset. All columns of the MultiColumnFrame share the same value.
| nFirstLineOffset | Value to set |
| pure virtual |
Sets the vertical justification maximum inter-paragraph space in the IMultiColumnTextFrame. All columns of the MultiColumnFrame share the same value.
| maxInterParaSpace | Value to set |
| pure virtual |
Sets the minimum baseline offset of the first line in the IMultiColumnTextFrame independent of the inset. All columns of the MultiColumnFrame share the same value.
| x | Non-negative value to set |
| pure virtual |
Sets the vertical justification in the IMultiColumnTextFrame. All columns of the MultiColumnFrame share the same value.
| vj | Value to set |
| pure virtual |
Returns the number of characters currently composed in the IMultiColumnTextFrame.
| pure virtual |
Returns the TextIndex of the first character in this IMultiColumnTextFrame.