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

Public Types | |
| enum | { kDefaultIID = IID_INOTEUTILS } |
Public Member Functions | |
| virtual void | ConvertNoteTipText (const uchar16 *inString, int32 &inBufLength, PMString &outBuffer)=0 |
| virtual INoteData * | QueryNoteData (const ITextModel *textModel, const TextIndex noteDataIndex)=0 |
| virtual INoteData * | QueryNoteData (const UIDRef ¬eDataRef)=0 |
| virtual INoteData * | GetNoteData (ITextModel *textModel, TextIndex offset)=0 |
| virtual SysPoint | GlobalToLocal (IControlView *controlView, SysPoint globalPoint)=0 |
| virtual IMultiColumnTextFrame * | QueryTextFrame (IControlView *controlView, PMPoint where, RangeData *caret, bool16 composeFirst=kTrue)=0 |
| virtual void | GetTime (PMString *time)=0 |
| virtual IDocument * | QueryDocument (ITextModel *model, IControlView *view)=0 |
| virtual bool16 | InGalley (IGalleySwitch *galleySwitch)=0 |
| virtual PMPoint | IndexToPMPoint (ITextModel *textModel, const RangeData &caret, int32 *thisFrameIndex)=0 |
| virtual bool16 | GetStoryLockState (ITextModel *textModel)=0 |
| virtual bool16 | GetStoryLockState (IDocument *document)=0 |
| virtual const int32 | GetDocAnchorCount (IDocument *document)=0 |
| virtual const int32 | GetAnchorCount (ITextModel *textModel)=0 |
| virtual int32 | ResetStoryAnchorCount (ITextModel *textModel)=0 |
| virtual int32 | ResetDocAnchorCount (IDocument *document)=0 |
| virtual PMReal | GetGalleyLeftIndent ()=0 |
| virtual bool16 | NoteInCurrentSpread (UID noteSpreadUID, UID curSpreadUID, IMasterSpreadList *masterSpreadList)=0 |
| virtual bool16 | PageItemInvisible (ITextModel *textModel, IHierarchy *hierItem)=0 |
| virtual UID | GetLastVisibleFrame (ITextModel *textModel, TextIndex startIndex)=0 |
| virtual IDocumentPresentation * | GetDocWindow (IDataBase *dataBase)=0 |
| virtual UID | GetSpreadUID (ITextModel *textModel, TextIndex offset)=0 |
| virtual UID | GetSpreadUID (INoteData *noteData, ITextModel *textModel, TextIndex position)=0 |
| virtual bool16 | InvisibleText (ITextModel *textModel, TextIndex index)=0 |
| virtual bool16 | FindNoteStoryThread (ITextModel *textModel, UID noteDataUID, TextIndex *threadStart, int32 *threadSpan)=0 |
| virtual WideString | GetNoteContent (ITextModel *textModel, const UIDRef ¬eRef)=0 |
| virtual ErrorCode | ToggleAllNoteCollapse (ITextModel *textModel, UID currentNoteUID, bool16 newCollapseState, bool16 collapseAllButOne)=0 |
| virtual void | ClearAllNotes (IDocument *document)=0 |
| virtual void | ClearAllNotes (ITextModel *textModel)=0 |
| virtual void | DoDragDropNoteModel (UIDRef srcStoryRef, UIDRef targetStoryRef, TextIndex srcTextIndex, TextIndex targetTextIndex, bool16 duplicateNote, bool16 startOfDeletedText)=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 Notes.
| pure virtual |
Remove all Notes on the given document
| document |
| pure virtual |
Remove all Notes on the given story (param textModel)
| textModel |
| pure virtual |
Convert tip content into meaningful display characters.
| inString | |
| inBufLength | |
| outBuffer |
| pure virtual |
Internal Use Only
| pure virtual |
Find the Note thread by given the param noteDataUID
| textModel | The story contains the Note |
| noteDataUID | The Note Data UID |
| threadStart | Return the start text index of Note thread |
| threadSpan | Return the Note thread length |
| pure virtual |
Get the total Notes count by given the story (param textModel)
| textModel |
| pure virtual |
Get the total Notes count by the given document
| document |
| pure virtual |
Not used anymore in CS2.
| dataBase |
| pure virtual |
| pure virtual |
Not used anymore in CS2.
| textModel | |
| startIndex |
| pure virtual |
Get the Note content by given param noteRef
| textModel | The story contains the Note |
| noteRef | The Note UIDRef |
| pure virtual |
Get Note data by given offset
| textModel | |
| offset |
| pure virtual |
Not used anymore in CS2.
Given the story and its text index offset, return the spread UID of the text frame containing this given index.
| textModel | |
| offset |
| pure virtual |
Not used anymore.
This method handles differently in InCopy and InDesign due to the way overset text is structured.
InCopy: This method first determine if a given text index lives in the overset text frame. There is actually no overset in InCopy, we create enough frames to hold the overset text and put them in the pasteboard.
Usage: This is used for switching between layout and galley view where the page spread we're switching to will not be correct if we're in overset text in Galley view.
InDesign: Simply return the spread UID from the attribute. This is probably not used for InDesign with InCopy plugin since there is no note window UI there. Just add here for future use.
| noteData | |
| textModel | |
| position |
| pure virtual |
Report the current lock state by given story, use the insert lock to determine state, assume not locked if there is no valid model.
| textModel |
| pure virtual |
Report the lock state of all the stories with the given document. Return kTrue if at least one story is locked, otherwise, return kFalse.
| document |
| pure virtual |
Return the current time which includes date and time
| time |
| pure virtual |
Convert a SysPoint from global coordinate to a local coordinate in the controlView context.
| controlView | |
| globalPoint |
| pure virtual |
Given a text index range, return the local coordinate on the page. It also returns the frame index of the given text range. For instance, if try to find out the Note Anchor coordinate on the page, could use RangeData(noteAnchorIndex, RangeData::kLeanForward)
| textModel | |
| caret | The text index |
| thisFrameIndex | Return the start text index of the frame contains the Note |
| pure virtual |
Check if the active view is galley/story editor Return kTrue if the current mode is in the Galley mode in InCopy Return kFalse if the current mode is in the layout mode in InCopy
| galleySwitch | nil = return kFalse |
| pure virtual |
Not used anymore. Given the story and its text index offset, this routine determines if the given text position is in the 'invisible' layer. This special layer is created to hold the text frames big enough to hold the overset text. Therefore, in InCopy, there will never be an overset situation because we always expand to hold the last character in the story. This will go away in InDesign 2.0.
| textModel | |
| index |
| pure virtual |
Not used anymore in CS2.
| noteSpreadUID | |
| curSpreadUID | |
| masterSpreadList |
| pure virtual |
Not used anymore in CS2.
| textModel | |
| hierItem |
| pure virtual |
Not used anymore in CS2.
| model | |
| view |
| pure virtual |
Query Note data by given the text index
| textModel | |
| noteDataIndex |
Query Note data by given noteDataRef
| noteDataRef |
| pure virtual |
With the given locaiton in "where", this method performs a hittest RangeData over the controlView. If found, it returns the hittest text range and the resulting text frame If not found, it returns a nil text frame. "ComposeFirst" allows the text system to force recompose the story in order to get accurate information.
| controlView | |
| where | |
| caret | |
| composeFirst |
| pure virtual |
Not used anymore in CS2.
| document |
| pure virtual |
Not used anymore in CS2.
| textModel |
| pure virtual |
Toggle to collapse/expand all Notes on teh given story (param textModel)
| textModel | The story |
| currentNoteUID | The current Note |
| newCollapseState | kTrue = Collapsed All Notes, kFalse = Expand All Notes |
| collapseAllButOne | kTrue = affect only current Note, kFalse = affect all Notes |