Sha256: d546b789e9bc15d00f3d9ffab8e4d3d2f0adb29776284dde38ff9db8d74feedd

Contents?: true

Size: 1.57 KB

Versions: 67

Compression:

Stored size: 1.57 KB

Contents

/*
 * Copyright (C) 2009, Pino Toscano <pino@kde.org>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
 */

#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

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
poppler-3.2.9-x64-mingw32 vendor/local/include/poppler/cpp/poppler-toc.h
poppler-3.2.9-x86-mingw32 vendor/local/include/poppler/cpp/poppler-toc.h
poppler-3.2.8-x64-mingw32 vendor/local/include/poppler/cpp/poppler-toc.h
poppler-3.2.8-x86-mingw32 vendor/local/include/poppler/cpp/poppler-toc.h
poppler-3.2.7-x64-mingw32 vendor/local/include/poppler/cpp/poppler-toc.h
poppler-3.2.7-x86-mingw32 vendor/local/include/poppler/cpp/poppler-toc.h
poppler-3.2.6-x64-mingw32 vendor/local/include/poppler/cpp/poppler-toc.h
poppler-3.2.6-x86-mingw32 vendor/local/include/poppler/cpp/poppler-toc.h
poppler-3.2.5-x64-mingw32 vendor/local/include/poppler/cpp/poppler-toc.h
poppler-3.2.5-x86-mingw32 vendor/local/include/poppler/cpp/poppler-toc.h
poppler-3.2.4-x64-mingw32 vendor/local/include/poppler/cpp/poppler-toc.h
poppler-3.2.4-x86-mingw32 vendor/local/include/poppler/cpp/poppler-toc.h
poppler-3.2.3-x64-mingw32 vendor/local/include/poppler/cpp/poppler-toc.h
poppler-3.2.3-x86-mingw32 vendor/local/include/poppler/cpp/poppler-toc.h
poppler-3.2.2-x64-mingw32 vendor/local/include/poppler/cpp/poppler-toc.h
poppler-3.2.2-x86-mingw32 vendor/local/include/poppler/cpp/poppler-toc.h
poppler-3.2.1-x64-mingw32 vendor/local/include/poppler/cpp/poppler-toc.h
poppler-3.2.1-x86-mingw32 vendor/local/include/poppler/cpp/poppler-toc.h
poppler-3.2.0-x86-mingw32 vendor/local/include/poppler/cpp/poppler-toc.h
poppler-3.2.0-x64-mingw32 vendor/local/include/poppler/cpp/poppler-toc.h