1/*
2 * Copyright (C) 2009, Pino Toscano <pino@kde.org>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2, or (at your option)
7 * any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18
19#ifndef POPPLER_TOC_H
20#define POPPLER_TOC_H
21
22#include "poppler-global.h"
23
24#include <vector>
25
26namespace poppler {
27
28class toc_private;
29class toc_item;
30class toc_item_private;
31
32class POPPLER_CPP_EXPORT toc : public poppler::noncopyable
33{
34public:
35 ~toc();
36
37 toc_item *root() const;
38
39private:
40 toc();
41
42 toc_private *d;
43
44 friend class toc_private;
45};
46
47class POPPLER_CPP_EXPORT toc_item : public poppler::noncopyable
48{
49public:
50 typedef std::vector<toc_item *>::const_iterator iterator;
51
52 ~toc_item();
53
54 ustring title() const;
55 bool is_open() const;
56
57 std::vector<toc_item *> children() const;
58 iterator children_begin() const;
59 iterator children_end() const;
60
61private:
62 toc_item();
63
64 toc_item_private *d;
65 friend class toc;
66 friend class toc_private;
67 friend class toc_item_private;
68};
69
70}
71
72#endif
73

source code of poppler/cpp/poppler-toc.h