InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
INoteSuite Class Referenceabstract

#include <INoteSuite.h>

Inheritance diagram for INoteSuite:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_INOTESUITE }
 
enum  NavigateType { kNextNote =0, kPreviousNote }
 
enum  CopyToNoteType { kWordToNote =0, kLineToNote, kParaToNote, kStoryToNote }
 

Public Member Functions

virtual bool16 CanAddNote (IControlView *view) const =0
 
virtual void DoAddNote (IControlView *view)=0
 
virtual bool16 CanConvertToNote (IControlView *view) const =0
 
virtual void DoConvertToNote (IControlView *view, ClassID commandBossID)=0
 
virtual bool16 CanOpenNote (IControlView *view, IControlView *docView, PMString &menuString) const =0
 
virtual void DoOpenNote (IControlView *view, IControlView *docView)=0
 
virtual bool16 CanDeleteNote (IControlView *view, IControlView *docView) const =0
 
virtual void DoDeleteNote (IControlView *view, IControlView *docView)=0
 
virtual bool16 CanConvertToText (IControlView *view, IControlView *docView) const =0
 
virtual void DoConvertToText (IControlView *view, IControlView *docView)=0
 
virtual bool16 CanScrollToNote (IControlView *view, IControlView *docView) const =0
 
virtual void DoScrollToNote (IControlView *view, IControlView *docView)=0
 
virtual bool16 CanNavigateNote (IControlView *view, IControlView *docView, bool16 *inPalette=nil) const =0
 
virtual void DoNavigateNote (IControlView *view, IControlView *docView, ISelectionManager *selMgr, NavigateType type)=0
 
virtual bool16 CanRemoveAllNotes (IControlView *view, IControlView *docView, IDocument *doc) const =0
 
virtual void DoRemoveAllNotes (IControlView *view, IControlView *docView, IDocument *doc)=0
 
virtual bool16 CanRemoveStoryNotes (IControlView *view, IControlView *docView) const =0
 
virtual void DoRemoveStoryNotes (IControlView *view, IControlView *docView)=0
 
virtual bool16 CanSplitNote (IControlView *view, IControlView *docView, bool16 bNotesMode=kFalse) const =0
 
virtual void DoSplitNote (IControlView *view, IControlView *docView)=0
 
virtual bool16 CanShowHideNote (IControlView *view, IControlView *docView) const =0
 
virtual void DoShowHideNote (IControlView *view, IControlView *docView)=0
 
virtual bool16 CanExpandAllNotes (IControlView *view, IControlView *docView) const =0
 
virtual void DoExpandAllNotes (IControlView *view, IControlView *docView)=0
 
virtual bool16 CanCollapseAllNotes (IControlView *view, IControlView *docView) const =0
 
virtual void DoCollapseAllNotes (IControlView *view, IControlView *docView)=0
 
virtual void SetSelection (IControlView *view, ITextSelectionSuite::Units selectType)=0
 
virtual void DoSetNoteToPalette (IControlView *view, IControlView *docView)=0
 
virtual bool16 IsInNote () const =0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

A selection related text suite interface to perform the Notes actions

Member Enumeration Documentation

The type of text content copied to convert to a Note

The navigation type

Member Function Documentation

virtual bool16 INoteSuite::CanAddNote (IControlViewview) const
pure virtual

Can add a Note

Parameters
viewThe active context control view
Returns
bool16 kTrue means can add a Note
virtual bool16 INoteSuite::CanCollapseAllNotes (IControlViewview,
IControlViewdocView 
) const
pure virtual

Can collapse all Notes in the document

Parameters
viewThe active context control view
docViewThe current view in the document
Returns
bool16 kTrue means there is at least one expanded Note displaying in the document
virtual bool16 INoteSuite::CanConvertToNote (IControlViewview) const
pure virtual

Can convert the selected text into a Note

Parameters
viewThe active context control view
Returns
bool16
virtual bool16 INoteSuite::CanConvertToText (IControlViewview,
IControlViewdocView 
) const
pure virtual

Can convert the selected text to a Note

Parameters
viewThe active context control view
docViewThe current view in the document
Returns
bool16
virtual bool16 INoteSuite::CanDeleteNote (IControlViewview,
IControlViewdocView 
) const
pure virtual

Can delete the selected Note

Parameters
viewThe active context control view
docViewThe current view in the document
Returns
bool16 kTrue means can deleted the Note
virtual bool16 INoteSuite::CanExpandAllNotes (IControlViewview,
IControlViewdocView 
) const
pure virtual

Can expand all Notes in the document

Parameters
viewThe active context control view
docViewThe current view in the document
Returns
bool16 kTrue means there is at least one collapsed Note displaying in the document
virtual bool16 INoteSuite::CanNavigateNote (IControlViewview,
IControlViewdocView,
bool16 * inPalette = nil 
) const
pure virtual

Can navigate to previous/next Note

Parameters
viewThe active context control view
docViewThe current view in the document
inPalettekTrue means the active context is in Note Palette
Returns
bool16
virtual bool16 INoteSuite::CanOpenNote (IControlViewview,
IControlViewdocView,
PMStringmenuString 
) const
pure virtual

Can open the Note

Parameters
viewThe active context control view
docViewThe current view in the document
menuString"Open Note" if the active context is layout view, "Collapse Note" or "Expand Note" if the active context is galley/story view or Note palette view
Returns
bool16 kTrue means can open the Note in Note palette if active context is in layout view, kTrue means can collapsed/expand the Note if active context is in galley view or in Note Palette
virtual bool16 INoteSuite::CanRemoveAllNotes (IControlViewview,
IControlViewdocView,
IDocumentdoc 
) const
pure virtual

Can remove all Notes in the document

Parameters
viewThe active context control view
docViewThe current view in the document
docThe document
Returns
bool16 kTrue means there is at least a Note in any editable story excepted the current story
virtual bool16 INoteSuite::CanRemoveStoryNotes (IControlViewview,
IControlViewdocView 
) const
pure virtual

Can remove Notes from the story has insertion point

Parameters
viewThe active context control view
docViewThe current view in the document
Returns
bool16 kTrue means there is at least one Note in the current story and story is editable
virtual bool16 INoteSuite::CanScrollToNote (IControlViewview,
IControlViewdocView 
) const
pure virtual

Can scroll to Note anchor

Parameters
viewThe active context control view
docViewThe current view in the document
Returns
bool16
virtual bool16 INoteSuite::CanShowHideNote (IControlViewview,
IControlViewdocView 
) const
pure virtual

Can show or hide Notes

Parameters
viewThe active context control view
docViewThe current view in the document
Returns
bool16 kTrue means there is at least one Note in the document
virtual bool16 INoteSuite::CanSplitNote (IControlViewview,
IControlViewdocView,
bool16 bNotesMode = kFalse 
) const
pure virtual

Can split a Note

Parameters
viewThe active context control view
docViewThe current view in the document
bNotesModekTrue means to check if can split a Note from NotesMode action
Returns
bool16 if bNotesMode is kTrue, return kTrue when insertion point is inside a Note and not in the begin nor end of the Note content if bNotesMode is kFalse, return kTrue when insertion point is inside a Note
virtual void INoteSuite::DoAddNote (IControlViewview)
pure virtual

Process Add a Note

Parameters
viewThe active context control view
virtual void INoteSuite::DoCollapseAllNotes (IControlViewview,
IControlViewdocView 
)
pure virtual

Collapse all Notes in the document

Parameters
viewThe active context control view
docViewThe current view in the document
virtual void INoteSuite::DoConvertToNote (IControlViewview,
ClassID commandBossID 
)
pure virtual

Process the convertion of the selected text into a Note

Parameters
viewThe active context control view
commandBossIDkConvertToNoteCmdBoss means convert the selected text into a Note( selected text was deleted). kCopyToNoteCmdBoss means copy the selected text and make a Note with the selected content (selected text was not deleted)
virtual void INoteSuite::DoConvertToText (IControlViewview,
IControlViewdocView 
)
pure virtual

Convert the selected text to a Note

Parameters
viewThe active context control view
docViewThe current view in the document
virtual void INoteSuite::DoDeleteNote (IControlViewview,
IControlViewdocView 
)
pure virtual

Process the deletion of Note

Parameters
viewThe active context control view
docViewThe current view in the document
virtual void INoteSuite::DoExpandAllNotes (IControlViewview,
IControlViewdocView 
)
pure virtual

Process expand all Notes in the document

Parameters
viewThe active context control view
docViewThe current view in the document
virtual void INoteSuite::DoNavigateNote (IControlViewview,
IControlViewdocView,
ISelectionManagerselMgr,
NavigateType type 
)
pure virtual

Navigate the Note forward (kNextNote) or backward (kPreviousNote) from current insertion point

Parameters
viewThe active context control view
docViewThe current view in the document
selMgrThe selection manager for the view
typekNextNote, kPreviousNote
virtual void INoteSuite::DoOpenNote (IControlViewview,
IControlViewdocView 
)
pure virtual

Process display the selected Note to Note Palette if active context is layout view Process collapsed/expanded the Note if active context is galley/story view or Note Palette view

Parameters
viewThe active context control view
docViewThe current view in the document
virtual void INoteSuite::DoRemoveAllNotes (IControlViewview,
IControlViewdocView,
IDocumentdoc 
)
pure virtual

Remove the Notes in all unlocked stories in the document

Parameters
viewThe active context control view
docViewThe current view in the document
docThe document
virtual void INoteSuite::DoRemoveStoryNotes (IControlViewview,
IControlViewdocView 
)
pure virtual

Remove all Notes from the unlocked story which has insertion point

Parameters
viewThe active context control view
docViewThe current view in the document
virtual void INoteSuite::DoScrollToNote (IControlViewview,
IControlViewdocView 
)
pure virtual

Scroll to Note anchor

Parameters
viewThe active context control view
docViewThe current view in the document
virtual void INoteSuite::DoSetNoteToPalette (IControlViewview,
IControlViewdocView 
)
pure virtual

Display the Note content to palette if clicks inside the inline Note, or selects the Note void action when the text focus is in Note palette

Parameters
viewThe active context control view
docViewThe current view in the document
virtual void INoteSuite::DoShowHideNote (IControlViewview,
IControlViewdocView 
)
pure virtual

Toggle displaying Notes

Parameters
viewThe active context control view
docViewThe current view in the document
virtual void INoteSuite::DoSplitNote (IControlViewview,
IControlViewdocView 
)
pure virtual

Split a Note into two Notes, place insertion point between two Notes in story

Parameters
viewThe active context control view
docViewThe current view in the document
virtual bool16 INoteSuite::IsInNote () const
pure virtual

Check if the insertion point is in a Note.

Parameters
none
Returns
bool16 kTrue if the selection is in a Note.
virtual void INoteSuite::SetSelection (IControlViewview,
ITextSelectionSuite::Units selectType 
)
pure virtual

Process set selection

Parameters
viewThe active context control view
selectTypeThe selection type