|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef POPPLER_TOC_H |
|
#define POPPLER_TOC_H |
|
|
|
#include "poppler-global.h" |
|
|
|
#include <vector> |
|
|
|
namespace poppler { |
|
|
|
class toc_private; |
|
class toc_item; |
|
class toc_item_private; |
|
|
|
class POPPLER_CPP_EXPORT toc : public poppler::noncopyable |
|
{ |
|
public: |
|
~toc(); |
|
|
|
toc_item *root() const; |
|
|
|
private: |
|
toc(); |
|
|
|
toc_private *d; |
|
|
|
friend class toc_private; |
|
}; |
|
|
|
class POPPLER_CPP_EXPORT toc_item : public poppler::noncopyable |
|
{ |
|
public: |
|
typedef std::vector<toc_item *>::const_iterator iterator; |
|
|
|
~toc_item(); |
|
|
|
ustring title() const; |
|
bool is_open() const; |
|
|
|
std::vector<toc_item *> children() const; |
|
iterator children_begin() const; |
|
iterator children_end() const; |
|
|
|
private: |
|
toc_item(); |
|
|
|
toc_item_private *d; |
|
friend class toc; |
|
friend class toc_private; |
|
friend class toc_item_private; |
|
}; |
|
|
|
} |
|
|
|
#endif |
|
|