![]() | InDesign SDK 20.5 |
Public Member Functions | |
| SnpManipulateTextFrame () | |
| virtual | ~SnpManipulateTextFrame () |
| ErrorCode | InspectTextFrame (const UIDRef &graphicFrameUIDRef) |
| ErrorCode | InspectFrameList (const UIDRef &graphicFrameUIDRef) |
| ErrorCode | InspectTextInFrame (const UIDRef &graphicFrameUIDRef) |
| ErrorCode | InspectThreadedTextFrames (const UIDRef &graphicFrameUIDRef) |
| UIDRef | CreateAndThreadTextFrame (const UIDRef &fromGraphicFrameUIDRef) |
| ErrorCode | DeleteTextFrame (const UIDRef &graphicFrameUIDRef) |
| bool16 | CanThreadTextFrames (IDataBase *database, const UID &fromGraphicFrameUID, const UID &toGraphicFrameUID) |
| ErrorCode | ThreadTextFrames (IDataBase *database, const UID &fromGraphicFrameUID, const UID &toGraphicFrameUID) |
| bool16 | CanUnthreadTextFrame (const UIDRef &graphicFrameUIDRef) |
| ErrorCode | UnthreadTextFrame (const UIDRef &graphicFrameUIDRef) |
| ErrorCode | IncrementNumberOfColumns (const UIDRef &graphicFrameUIDRef) |
| ErrorCode | IncrementTextInset (const UIDRef &graphicFrameUIDRef, const PMReal &increment) |
| ErrorCode | ChangeTextWrapMode (const UIDRef &graphicFrameUIDRef, IStandOff::mode mode) |
| ErrorCode | SelectTextInFrame (const UIDRef &graphicFrameUIDRef, ISelectionManager *selectionManager) |
| ErrorCode | SelectFrameDisplayingTextIndex (const UIDRef &graphicFrameUIDRef, ISelectionManager *selectionManager) |
| ErrorCode | CreateLinkedStory (const UIDRef &sourceTextFrameRef) |
| ErrorCode | SelectTextAtTextIndex (const UIDRef &graphicFrameUIDRef, ISelectionManager *selectionManager) |
| bool16 | ActivateTextEditor () |
| bool16 | IsTextFrame (const UIDRef &graphicFrameUIDRef) |
| UID | GetTextContentUID (const UIDRef &graphicFrameUIDRef) |
| bool16 | IsThreadedTextFrame (const UIDRef &graphicFrameUIDRef) |
| UIDRef | GetNextGraphicFrame (const UIDRef &graphicFrameUIDRef) |
| UIDRef | GetPreviousGraphicFrame (const UIDRef &graphicFrameUIDRef) |
| UIDRef | GetGraphicFrameRef (const InterfacePtr< ITextFrameColumn > &textFrameColumn, const bool16 isTOPFrameAllowed) |
| InDesign::TextRange | GetTextFrameTextRange (IMultiColumnTextFrame *mcf) |
| InDesign::TextRange | GetFrameTextRange (const UIDRef &graphicFrameUIDRef) |
| WideString | GetWideStringFromTextFrame (IMultiColumnTextFrame *mcf) |
| ITextFrameColumn * | QueryTextFrameContaining (ITextModel *textModel, const TextIndex at) |
Integrated the following 2.x code snippets in here so far. SnipNudgeNumTextCols.cpp SnipTextLinkCmd.cpp
| inline |
Constructor.
| inlinevirtual |
Destructor
| bool16 SnpManipulateTextFrame::ActivateTextEditor | ( | ) |
Activate kIBeamToolBoss if a text tool is not already active.
| bool16 SnpManipulateTextFrame::CanThreadTextFrames | ( | IDataBase * | database, |
| const UID & | fromGraphicFrameUID, | ||
| const UID & | toGraphicFrameUID | ||
| ) |
Return kTrue if the given text frames can be threaded so that text flows between them, kFalse otherwise. There are a few checks made:
| database | containing frames to be threaded. |
| fromGraphicFrameUID | reference to source text frame |
| toGraphicFrameUID | reference to destination text frame. |
| bool16 SnpManipulateTextFrame::CanUnthreadTextFrame | ( | const UIDRef & | graphicFrameUIDRef | ) |
Return kTrue if the given text frames can be unthreaded so that text no longer flows between them, kFalse otherwise.
| graphicFrameUIDRef | reference to the text frame's kSplineItemBoss object. |
| ErrorCode SnpManipulateTextFrame::ChangeTextWrapMode | ( | const UIDRef & | graphicFrameUIDRef, |
| IStandOff::mode | mode | ||
| ) |
Adjust the stand off mode of the given frame using ITextWrapFacade.
| graphicFrameUIDRef | reference to the frame object (kSplineItemBoss). |
| mode | the kind of stand off to be applied. |
Create a new text frame and thread the out-port of the given text frame to the in-port of the new text frame.
| fromGraphicFrameUIDRef | reference to the text frame's kSplineItemBoss object. |
| ErrorCode SnpManipulateTextFrame::CreateLinkedStory | ( | const UIDRef & | sourceTextFrameRef | ) |
Create an internal or external linked story for the text diaplayed by the given frame.
| sourceTextFrameRef | reference to the text frame's kSplineItemBoss object. |
| ErrorCode SnpManipulateTextFrame::DeleteTextFrame | ( | const UIDRef & | graphicFrameUIDRef | ) |
Delete the given text frame.
| graphicFrameUIDRef | reference to the text frame's kSplineItemBoss object. |
| InDesign::TextRange SnpManipulateTextFrame::GetFrameTextRange | ( | const UIDRef & | graphicFrameUIDRef | ) |
Return the range of text displayed by the given text frame.
| graphicFrameUIDRef | reference to the text frame's kSplineItemBoss object. |
| UIDRef SnpManipulateTextFrame::GetGraphicFrameRef | ( | const InterfacePtr< ITextFrameColumn > & | textFrameColumn, |
| const bool16 | isTOPFrameAllowed | ||
| ) |
Return reference to the text frame's kSplineItemBoss object.
| textFrameColumn | |
| isTOPFrameAllowed | if kTrue and the given textFrameColumn is a text on a path frame then the kTOPSplineItemBoss reference will be returned, otherwise a kSplineItemBoss reference will be returned. |
Return reference to the frame(kSplineItemBoss) into which text from the given frame flows, UIDRef::gNull if there is no next frame.
| graphicFrameUIDRef | reference to the text frame's kSplineItemBoss object. |
Return reference to the frame(kSplineItemBoss) from which text flows into the given frame, UIDRef::gNull if there is no previous frame.
| graphicFrameUIDRef | reference to the text frame's kSplineItemBoss object. |
Return UID of the multi-column item (kMultiColumnItemBoss) associated with the given text frame, kInvalidUID if none.
| graphicFrameUIDRef | reference to the text frame's kSplineItemBoss object. |
| InDesign::TextRange SnpManipulateTextFrame::GetTextFrameTextRange | ( | IMultiColumnTextFrame * | mcf | ) |
Return the range of text displayed by the given text frame.
| mcf |
| WideString SnpManipulateTextFrame::GetWideStringFromTextFrame | ( | IMultiColumnTextFrame * | mcf | ) |
Return string containing the text displayed in the given text frame.
| mcf | specifies the frame whose text is wanted. |
| ErrorCode SnpManipulateTextFrame::IncrementNumberOfColumns | ( | const UIDRef & | graphicFrameUIDRef | ) |
Add a column to the given text frame using kChangeNumberOfColumnsCmdBoss.
| graphicFrameUIDRef | reference to the text frame's kSplineItemBoss object. |
| ErrorCode SnpManipulateTextFrame::IncrementTextInset | ( | const UIDRef & | graphicFrameUIDRef, |
| const PMReal & | increment | ||
| ) |
Adjust the text inset applied to the given text frame using kSetTextInsetCmdBoss.
| graphicFrameUIDRef | reference to the text frame's kSplineItemBoss object. |
| increment | the adjustment to be made to the inset on all sides. |
| ErrorCode SnpManipulateTextFrame::InspectFrameList | ( | const UIDRef & | graphicFrameUIDRef | ) |
Inspect the structure of the frame list and story associated with a text frame.
| graphicFrameUIDRef | reference to the text frame's kSplineItemBoss object. |
| ErrorCode SnpManipulateTextFrame::InspectTextFrame | ( | const UIDRef & | graphicFrameUIDRef | ) |
Inspect the structure of a text frame.
| graphicFrameUIDRef | reference to the text frame's kSplineItemBoss object. |
| ErrorCode SnpManipulateTextFrame::InspectTextInFrame | ( | const UIDRef & | graphicFrameUIDRef | ) |
Inspect the characters displayed in a text frame.
| graphicFrameUIDRef | reference to the text frame's kSplineItemBoss object. |
| ErrorCode SnpManipulateTextFrame::InspectThreadedTextFrames | ( | const UIDRef & | graphicFrameUIDRef | ) |
Inspect the frames that preceed and succeed the given text frame, text can flow between threaded frames.
| graphicFrameUIDRef | reference to the text frame's kSplineItemBoss object. |
| bool16 SnpManipulateTextFrame::IsTextFrame | ( | const UIDRef & | graphicFrameUIDRef | ) |
Return kTrue if the given frame is a text frame, kFalse otherwise.
| graphicFrameUIDRef | reference to the text frame's kSplineItemBoss object. |
| bool16 SnpManipulateTextFrame::IsThreadedTextFrame | ( | const UIDRef & | graphicFrameUIDRef | ) |
Return kTrue if text flows into the given frame another frame or if text flows out of the given frame into another frame, kFalse otherwise.
| graphicFrameUIDRef | reference to the text frame's kSplineItemBoss object. |
| ITextFrameColumn * SnpManipulateTextFrame::QueryTextFrameContaining | ( | ITextModel * | textModel, |
| const TextIndex | at | ||
| ) |
Return interface pointer to text frame that displays the given TextIndex or nil if the TextIndex is not displayed.
| textModel | |
| at |
InterfacePtr<IFrameList> frameList(textModel->QueryFrameList());
| ErrorCode SnpManipulateTextFrame::SelectFrameDisplayingTextIndex | ( | const UIDRef & | graphicFrameUIDRef, |
| ISelectionManager * | selectionManager | ||
| ) |
Prompt for a TextIndex then select the frame displaying the character at that position.
| graphicFrameUIDRef | reference to the text frame's kSplineItemBoss object. |
| selectionManager |
| ErrorCode SnpManipulateTextFrame::SelectTextAtTextIndex | ( | const UIDRef & | graphicFrameUIDRef, |
| ISelectionManager * | selectionManager | ||
| ) |
Prompt for a TextIndex then select the character at that position.
| graphicFrameUIDRef | reference to the text frame's kSplineItemBoss object. |
| selectionManager |
| ErrorCode SnpManipulateTextFrame::SelectTextInFrame | ( | const UIDRef & | graphicFrameUIDRef, |
| ISelectionManager * | selectionManager | ||
| ) |
Select all of the text displayed by the given frame.
| graphicFrameUIDRef | reference to the text frame's kSplineItemBoss object. |
| selectionManager |
| ErrorCode SnpManipulateTextFrame::ThreadTextFrames | ( | IDataBase * | database, |
| const UID & | fromGraphicFrameUID, | ||
| const UID & | toGraphicFrameUID | ||
| ) |
Connects text flow between text frames using kTextLinkCmdBoss. The out-port of the frame given by parameter fromGraphicFrameUID is linked to the in-port of the frame given by parameter toGraphicFrameUID.
| database | containing objects to be linked. |
| fromGraphicFrameUID | reference to source text frame. |
| toGraphicFrameUID | reference to destination text frame. |
| ErrorCode SnpManipulateTextFrame::UnthreadTextFrame | ( | const UIDRef & | graphicFrameUIDRef | ) |
Disconnect text flow between text frames using kTextUnlinkCmdBoss.
| graphicFrameUIDRef | reference to the text frame's kSplineItemBoss object. |