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

Public Types | |
| enum | { kDefaultIID = IID_INOTEDATAUTILS } |
| enum | Note_Type { kBookEnd, kNoteContent, kHitTestStoryText, kHitDeletedText } |
Public Member Functions | |
| virtual int32 | GetPageNumberOfTextIndex (TextIndex anchorPos, ITextModel *textModel, PMString *pageString=nil)=0 |
| virtual void | GetNoteNumber (UIDRef storyRef, UID noteDataUID, int32 ¤tNoteNumber) const =0 |
| virtual int32 | GetStoryNoteCount (UIDRef storyRef, int32 &totalStoryNoteCount) const =0 |
| virtual int32 | CountWords (ITextModel *textModel, TextIndex begin, TextIndex end, int32 *charCount=nil)=0 |
| virtual bool16 | IsWordBreak (const UTF32TextChar &currChar)=0 |
| virtual bool16 | IsPunctuation (const UTF32TextChar &currChar)=0 |
| virtual UIDRef | NewNote (TextIndex createAt, UIDRef storyRef, UIDRef docRef)=0 |
| virtual int32 | GetNoteColorIndex (UIDRef docRef, const WideString &userName) const =0 |
| virtual int32 | GetNoteColorIndex (IDataBase *docDataBase, const WideString &userName) const =0 |
| virtual int32 | GetNoteBGColorIndex (UIDRef docRef, const WideString &userName) const =0 |
| virtual int32 | GetNoteBGColorIndex (IDataBase *docDataBase, const WideString &userName) const =0 |
| virtual bool16 | DetectInlineNoteData (IControlView *writingView, const SysPoint globalPoint, bool16 *bIsCollapsed, int16 *typeFound, int32 *originalStoryIndex, int32 *activeStoryIndex, int32 *pLineIndex=0, int32 *pOffsetIntoLine=0) const =0 |
| virtual bool16 | IsNoteOwnedItem (ClassID id)=0 |
| virtual void | SetupOwnedItemInfo (UIDRef textModelRef, TextIndex textIndex, ClassID ownedItemClass, UID ownedItemUID)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Notes related utility interface.
The type of Note found
| pure virtual |
Count the words in a note
| textModel | reference to the text model the note is contained by |
| begin | text index of start of note |
| end | text index of end of note |
| charCount | optional may get the number of characters if you pass a pointer to charCount (it's a filtered char count) |
| pure virtual |
Can be used by any UI element to detect if inline note exists over the SysPoint globalPoint with the given writing view. This method returns the note collapsed state in bIsCollapsed, the Note_Type in typeFound, the line index where the note data is in pLineIndex, and finally, the character offset in that line in pOffsetIntoLine.
| writingView | Galley control view |
| globalPoint | |
| bIsCollapsed | |
| typeFound | |
| originalStoryIndex | |
| activeStoryIndex | |
| pLineIndex | |
| pOffsetIntoLine |
| pure virtual |
Return the inline note background color index with the given user name;
| docRef | |
| userName |
| pure virtual |
Return the inline note background color index with the given user name; It uses IInCopyDocUserList to do the conversion.
| docDataBase | |
| userName |
| pure virtual |
Given the Note's author, find out the color index from user color list It uses IInCopyDocUserList to do the conversion.
| docRef | |
| userName |
| pure virtual |
Return the note color index with the given user name; It uses IInCopyDocUserList to do the conversion.
| docDataBase | |
| userName |
| pure virtual |
With a given Note (param noteDataUID), get the nth number Notes in the param storyRef
| storyRef | |
| noteDataUID | |
| currentNoteNumber | Return nth number Notes |
| pure virtual |
Get page number and page string based on the param anchorPos
| anchorPos | The main storythread text index where the Note is at |
| textModel | The story |
| pageString | return the page number string with a given text index in the story. |
| pure virtual |
Get the total Notes count in param storyRef
| storyRef | |
| totalStoryNoteCount |
| pure virtual |
Check if this is a Note by given the object's ClassID
| id |
| pure virtual |
Returns kTrue if the character we're looking at is a punctuation that can be in the middle of a word Used by CountWords.
| currChar |
| pure virtual |
Returns kTrue if the character we're looking at is a word break character. Used by CountWords.
| currChar |