![]() |
PDFix SDK
7.2.0
|
PdfBookmark class. More...
#include <pdfix.h>
Public Member Functions | |
virtual int | GetTitle (wchar_t *buffer, int len) const =0 |
Gets a bookmark's title. More... | |
virtual void | SetTitle (const wchar_t *title)=0 |
Sets a bookmark's title. More... | |
virtual bool | GetAppearance (PdfBookmarkAppearance *appearance)=0 |
Gets a bookmark's appearance. More... | |
virtual bool | SetAppearance (const PdfBookmarkAppearance *appearance)=0 |
Sets a bookmarks's appearance. More... | |
virtual PdfAction * | GetAction ()=0 |
Gets a bookmark's action object. More... | |
virtual bool | SetAction (PdfAction *action)=0 |
virtual int | GetNumChildren ()=0 |
Gets the number of child bookmark in a parent bookmark object. More... | |
virtual PdfBookmark * | GetChild (int index)=0 |
Gets the requested child bookmark from a parent bookmark. More... | |
virtual PdfBookmark * | GetParent ()=0 |
virtual PdfBookmark * | GetNext ()=0 |
virtual PdfBookmark * | GetPrev ()=0 |
virtual PdsDictionary * | GetObject ()=0 |
Gets the object of the bookmark. More... | |
virtual bool | AddChild (int index, PdfBookmark *bmk)=0 |
Adds a new bookmark to the tree as the new last child of the bookmark. More... | |
virtual PdfBookmark * | AddNewChild (int index, const wchar_t *title)=0 |
Adds a new bookmark to the tree as the new last child of the bookmark. More... | |
virtual bool | IsValid () const =0 |
virtual PdfBookmark * | RemoveChild (int index)=0 |
Removes the specified child froma an action. More... | |
virtual bool | IsOpen () const =0 |
Tests whether an bookmark is open. More... | |
virtual bool | SetOpen (bool open)=0 |
Open or close bookmark to show or hide its children. More... | |
PdfBookmark class.
A bookmark corresponds to an outline object in a PDF document. A document outline allows the user to navigate interactively from one part of the document to another. An outline consists of a tree-structured hierarchy of bookmarks, which display the document's structure to the user. Each bookmark has: A title that appears on screen. An action that specifies what happens when the user clicks on the bookmark.
|
pure virtual |
Adds a new bookmark to the tree as the new last child of the bookmark.
index | where to create the new bookmark child Passing a value of kInsertAfterLast adds the bookmark to the end of the array. Passing a value of kInsertBeforeFirst adds the bookmark to the beginning of the array. |
title | The new bookmark's title. |
|
pure virtual |
Adds a new bookmark to the tree as the new last child of the bookmark.
index | where to create the new bookmark child Passing a value of kInsertAfterLast adds the bookmark to the end of the array. Passing a value of kInsertBeforeFirst adds the bookmark to the beginning of the array. |
title | The new bookmark's title. |
|
pure virtual |
Gets a bookmark's action object.
|
pure virtual |
Gets a bookmark's appearance.
appearance | (filled by method) Pointer to a PdfBookmarkAppearance structure. |
|
pure virtual |
Gets the requested child bookmark from a parent bookmark.
index | The index of bookmark object to obtain. |
|
pure virtual |
Gets a bookmark's next bookmark object. NOTE: If the bookmark is root, it doesn't have next object.
|
pure virtual |
Gets the number of child bookmark in a parent bookmark object.
|
pure virtual |
Gets the object of the bookmark.
|
pure virtual |
Gets a bookmark's parent bookmark. NOTE: If parent is null, call only PdfBookmark::GetNumChildren and PdfBookmark::GetChild methods. Other methods return false.
|
pure virtual |
Gets a bookmark's previous bookmark object. NOTE: If the bookmark is root, it doesn't have prev object.
|
pure virtual |
Gets a bookmark's title.
buffer | (filled by method) If the buffer is null function returns required length of string |
len | Length of a buffer to be filled in. |
|
pure virtual |
Tests whether an bookmark is open.
|
pure virtual |
Tests whether an bookmark is valid. This is intended only to ensure that the bookmark has not been deleted, not to ensure that all necessary information is present and valid.
|
pure virtual |
Removes the specified child froma an action.
index | The index of the child. |
|
pure virtual |
Sets a bookmark's action. NOTE: If param action is null function removes action from bookmark.
action | The bookmark's action. |
|
pure virtual |
Sets a bookmarks's appearance.
appearance | Pointer to a PdfBookmarkAppearance structure. |
|
pure virtual |
Open or close bookmark to show or hide its children.
open | The bookmark state to set. |
|
pure virtual |
Sets a bookmark's title.
title | The new title of the bookmark. |