#include <pdf_toc.h>
Public Member Functions | |
TocItem () | |
~TocItem () | |
bool | is_invisible_root () |
void | disconnect () |
Data Fields | |
string | anchor |
The anchor. | |
string | text |
The display text. | |
string | goto_anchor |
The anchor of destination. | |
struct TocItem * | sibling |
The next sibling. | |
struct TocItem * | first_child |
The first child. |
Definition at line 35 of file pdf_toc.h.
pdf::TocItem::TocItem | ( | ) |
Definition at line 52 of file pdf_toc.cpp.
00053 : anchor() 00054 , text() 00055 , goto_anchor() 00056 , sibling(0) 00057 , first_child(0) 00058 { 00059 }
pdf::TocItem::~TocItem | ( | ) |
Definition at line 61 of file pdf_toc.cpp.
References first_child, and sibling.
00062 { 00063 if (first_child != 0) 00064 { 00065 delete first_child; 00066 } 00067 00068 if (sibling != 0) 00069 { 00070 delete sibling; 00071 } 00072 }
void pdf::TocItem::disconnect | ( | ) |
Definition at line 79 of file pdf_toc.cpp.
References first_child, and sibling.
Referenced by pdf::PDFToc::get_toc().
00080 { 00081 sibling = 0; 00082 first_child = 0; 00083 }
bool pdf::TocItem::is_invisible_root | ( | ) |
Definition at line 74 of file pdf_toc.cpp.
References anchor.
00075 { 00076 return anchor.empty(); 00077 }
struct TocItem* pdf::TocItem::first_child |
The first child.
Definition at line 41 of file pdf_toc.h.
Referenced by disconnect(), pdf::PDFToc::get_goto_anchor_of_toc_idx(), pdf::PDFToc::get_toc(), and ~TocItem().
The anchor of destination.
Definition at line 39 of file pdf_toc.h.
Referenced by pdf::PDFToc::get_goto_anchor_of_toc_idx().
struct TocItem* pdf::TocItem::sibling |
The next sibling.
Definition at line 40 of file pdf_toc.h.
Referenced by disconnect(), pdf::PDFToc::get_goto_anchor_of_toc_idx(), and ~TocItem().