• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

okular

  • kde-4.x
  • kdegraphics
  • okular
  • generators
  • chm
  • lib
helperxmlhandler_epubtoc.h
Go to the documentation of this file.
1 /*
2  * Kchmviewer - a CHM and EPUB file viewer with broad language support
3  * Copyright (C) 2004-2014 George Yunaev, [email protected]
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef HELPERXMLHANDLER_EPUBTOC_H
20 #define HELPERXMLHANDLER_EPUBTOC_H
21 
22 #include <QXmlDefaultHandler>
23 #include "ebook_epub.h"
24 
25 class HelperXmlHandler_EpubTOC : public QXmlDefaultHandler
26 {
27  public:
28  HelperXmlHandler_EpubTOC( EBook_EPUB * epub );
29 
30  QList< EBookTocEntry > entries;
31 
32  private:
33  // Overridden members
34  bool startElement ( const QString & namespaceURI, const QString & localName, const QString & qName, const QXmlAttributes & atts );
35  bool characters(const QString &ch);
36  bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName);
37  void checkNewTocEntry();
38 
39  bool m_inNavMap;
40  bool m_inText;
41  unsigned int m_indent;
42  QString m_lastId;
43  QString m_lastTitle;
44  EBook_EPUB * m_epub;
45 };
46 
47 #endif // HELPERXMLHANDLER_EPUBTOC_H
HelperXmlHandler_EpubTOC::entries
QList< EBookTocEntry > entries
Definition: helperxmlhandler_epubtoc.h:30
QXmlDefaultHandler
ebook_epub.h
HelperXmlHandler_EpubTOC::HelperXmlHandler_EpubTOC
HelperXmlHandler_EpubTOC(EBook_EPUB *epub)
Definition: helperxmlhandler_epubtoc.cpp:22
HelperXmlHandler_EpubTOC
Definition: helperxmlhandler_epubtoc.h:25
QString
QList< EBookTocEntry >
QXmlAttributes
EBook_EPUB
Definition: ebook_epub.h:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Thu Dec 12 2019 02:02:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okular

Skip menu "okular"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkipiplugins
  •     src
  •     src
  •     src
  •     src
  •     src
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal