pdf::TocItem Struct Reference

#include <pdf_toc.h>

Collaboration diagram for pdf::TocItem:
Collaboration graph
[legend]

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 TocItemsibling
 The next sibling.
struct TocItemfirst_child
 The first child.

Detailed Description

Definition at line 35 of file pdf_toc.h.


Constructor & Destructor Documentation

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 }


Member Function Documentation

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 }

Here is the caller graph for this function:

bool pdf::TocItem::is_invisible_root (  ) 

Definition at line 74 of file pdf_toc.cpp.

References anchor.

00075 {
00076     return anchor.empty();
00077 }


Field Documentation

The anchor.

Definition at line 37 of file pdf_toc.h.

Referenced by is_invisible_root().

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().

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().

The display text.

Definition at line 38 of file pdf_toc.h.


The documentation for this struct was generated from the following files:
Generated by  doxygen 1.6.2-20100208