|
CFx SDK Documentation 2026 SP0
|
#include <PdfPublishBookmark.h>
Public Member Functions | |
| ODRX_DECLARE_MEMBERS (OdBookmark) | |
| ODRX_HEAP_OPERATORS () | |
| virtual | ~OdBookmark () |
| void | setTitle (const OdString &title) |
| void | setPage (OdPagePtr page) |
| void | setBookmarkType (const Bookmarks::BookmarkType type) |
| void | setTextStyle (const Text::FontStyle style) |
| void | setTextColor (const ODCOLORREF color) |
| void | appendChild (const OdBookmarkPtr child) |
| void | setChildren (const OdBookmarkPtrArray &children) |
| void | setParametrs (const OdArray< double > ¶ms) |
| void | getTitle (OdString &title) const |
| void | getPage (OdPagePtr &page) const |
| void | getBookmarkType (Bookmarks::BookmarkType &type) const |
| void | getTextStyle (Text::FontStyle &style) const |
| void | getTextColor (ODCOLORREF &color) const |
| void | getChildren (OdBookmarkPtrArray &children) const |
| void | getParametrs (OdArray< double > ¶ms) const |
Public Member Functions inherited from OdPdfPublish::OdObject | |
| ODRX_DECLARE_MEMBERS (OdObject) | |
| ODRX_HEAP_OPERATORS () | |
| virtual | ~OdObject () |
| virtual bool | isEmpty () const |
| virtual bool | isValid () const |
| virtual void | clear () |
Public Member Functions inherited from OdRxObject | |
| ODRX_HEAP_OPERATORS () | |
| OdRxObject () | |
| virtual | ~OdRxObject () |
| virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
| virtual OdRxObject * | x (const OdRxClass *pClass) const |
| virtual OdRxClass * | isA () const |
| virtual void | addRef ()=0 |
| virtual void | release ()=0 |
| virtual long | numRefs () const |
| bool | isKindOf (const OdRxClass *pClass) const |
| virtual OdRxObjectPtr | clone () const |
| virtual void | copyFrom (const OdRxObject *pSource) |
| virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
| virtual bool | isEqualTo (const OdRxObject *pOther) const |
Protected Member Functions | |
| OdBookmark () | |
Protected Member Functions inherited from OdPdfPublish::OdObject | |
| OdObject (OdPublishObjectImpl *pImpl) | |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
| static OdRxObjectPtr | cast (const OdRxObject *pointer) |
| static OdRxClass * | desc () |
| static void | rxInit () |
| static void | rxUninit () |
This class implements working with a bookmark encapsulated in a PDF document created with Publish SDK. A bookmark is a kind of link with descriptive text that makes it easy to navigate through a PDF document.
Definition at line 55 of file PdfPublishBookmark.h.
|
protected |
|
virtual |
Destroys the bookmark object.
| void OdPdfPublish::OdBookmark::appendChild | ( | const OdBookmarkPtr | child | ) |
Appends a new child bookmark to the current bookmark.
| child | [in] A smart pointer to the descendant <link OdPdfPublish::OdBookmark, OdBookmark> object. |
| void OdPdfPublish::OdBookmark::getBookmarkType | ( | Bookmarks::BookmarkType & | type | ) | const |
Returns the type of the bookmark object. The method fills a passed <link OdPdfPublish::Bookmarks::BookmarkType, Bookmarks::BookmarkType enumeration> value with the current bookmark type value and returns it to a calling subroutine.
| type | [out] A placeholder for the <link OdPdfPublish::Bookmarks::BookmarkType, bookmark type> value. |
| void OdPdfPublish::OdBookmark::getChildren | ( | OdBookmarkPtrArray & | children | ) | const |
Returns the descendant bookmarks of the bookmark object. This method fills the passed array with the set of descendant <link OdPdfPublish::OdBookmark, OdBookmark> objects and returns it to a calling subroutine.
| children | [out] A placeholder for the array of smart pointers to descendant <link OdPdfPublish::OdBookmark, OdBookmark> objects. |
| void OdPdfPublish::OdBookmark::getPage | ( | OdPagePtr & | page | ) | const |
Returns the page the bookmark object refers to. The method fills a passed parameter with the smart pointer to an <link OdPdfPublish::OdPage, OdPage> object and returns it to a calling subroutine.
| page | [out] A placeholder for the <link OdPdfPublish::OdPage, page> the bookmark refers to. |
Returns parameters of the current bookmark. This method fills the passed array of doubles with parameter values and returns it to a calling subroutine.
| params | [out] A placeholder for the array of parameter values of the current bookmark object. |
| void OdPdfPublish::OdBookmark::getTextColor | ( | ODCOLORREF & | color | ) | const |
Returns the current color of the bookmark title. The method fills a passed ODCOLORREF value with the current bookmark title color and returns it to a calling subroutine.
| color | [out] A placeholder for the color of the bookmark title. |
| void OdPdfPublish::OdBookmark::getTextStyle | ( | Text::FontStyle & | style | ) | const |
Returns the <link OdPdfPublish::Text::FontStyle, font style> of the bookmark title. The method fills a passed <link OdPdfPublish::Text::FontStyle, Text::FontStyle enumeration> value and returns it to a calling subroutine.
| style | [out] A placeholder for the <link OdPdfPublish::Text::FontStyle, font style> of the bookmark title. |
Returns the bookmark title. The method fills a passed <exref target="https://docs.opendesign.com/tkernel/OdString.html">string</exref> object with the title text and returns this string to a calling subroutine.
| title | [out] A placeholder for the bookmark title. |
| OdPdfPublish::OdBookmark::ODRX_DECLARE_MEMBERS | ( | OdBookmark | ) |
| OdPdfPublish::OdBookmark::ODRX_HEAP_OPERATORS | ( | ) |
| void OdPdfPublish::OdBookmark::setBookmarkType | ( | const Bookmarks::BookmarkType | type | ) |
Sets the bookmark type. Bookmark types are declared in the <link OdPdfPublish::Bookmarks::BookmarkType, Bookmarks::BookmarkType enumeration>.
| type | [in] A new <<link OdPdfPublish::Bookmarks::BookmarkType, bookmark type> value. |
| void OdPdfPublish::OdBookmark::setChildren | ( | const OdBookmarkPtrArray & | children | ) |
Sets descendant bookmarks for the current bookmark.
| children | [in] An array of smart pointers to the descendant <link OdPdfPublish::OdBookmark, OdBookmark> objects. |
| void OdPdfPublish::OdBookmark::setPage | ( | OdPagePtr | page | ) |
Sets the <link OdPdfPublish::OdPage, page> the bookmark object refers to.
| page | [in] A smart pointer to the <link OdPdfPublish::OdPage, OdPage> object that the bookmark object refers to. |
Sets parameters for the bookmark object.
| params | [in] A double array that contains parameter values. |
| void OdPdfPublish::OdBookmark::setTextColor | ( | const ODCOLORREF | color | ) |
Sets the color for the bookmark title.
| color | [in] A new text color value. |
| void OdPdfPublish::OdBookmark::setTextStyle | ( | const Text::FontStyle | style | ) |
Sets the <link OdPdfPublish::Text::FontStyle, font style> for the bookmark title.
| style | [in] A new <link OdPdfPublish::Text::FontStyle, font style> to apply for the title. |
Sets the bookmark title.
| title | [in] A <exref target="https://docs.opendesign.com/tkernel/OdString.html">string</exref> that contains the new title text of the bookmark object. |