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

Public Types | |
| enum | { kDefaultIID = IID_IBOOKMARKFACADE } |
Public Member Functions | |
| virtual ErrorCode | CreateBookmark (UIDRef destination, UID parentBookmark, UIDRef *newBookmark=nil, const PMString &bookmarkName="", int32 indentLevel=0)=0 |
| virtual ErrorCode | DeleteBookmark (UIDList bookmarks, bool16 deleteDest=kTrue)=0 |
| virtual ErrorCode | MoveBookmark (UIDRef bookmark, UIDRef newParent, int32 newIndex)=0 |
| virtual ErrorCode | RenameBookmark (UIDRef bookmark, const PMString &newName)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
A high level API for dealing with bookmark objects. To use this Facade, include this header file and use the following example syntax: result = Utils<Facade::IBookmarkFacade>()->CreateBookmark( ... );
| pure virtual |
Creates a new bookmark.
| destination | - destination associated with the new bookmark. |
| parentBookmark | - Parent of the bookmark. |
| newBookmark | - [OUT] Returns newly created bookmark if pointer is non-nil. |
| bookmarkName | - name of the bookmark. Default to be empty string in which case a unique name will be generated. |
| indentLevel | - Indent level of the bookmark. Default to be 0 which is the topmost level. |
| pure virtual |
Deletes bookmarks.
| bookmarks | - Bookmarks to be deleted. |
| deleteDest | - kTrue if delete destinations as well. kFalse otherwise. |
| pure virtual |
Moves bookmark.
| bookmark | - Bookmark to be moved. |
| newParent | - New parent to move the bookmark to. |
| newIndex | - New index inside the parent to insert the bookmark. |