EBOOKOPFParser.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3  * This file is part of the libe-book project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef EBOOKOPFPARSER_H_INCLUDED
11 #define EBOOKOPFPARSER_H_INCLUDED
12 
13 #include <librevenge/librevenge.h>
14 
15 #include "libebook_utils.h"
16 
17 namespace libebook
18 {
19 
21 {
22  // disable copying
23  EBOOKOPFParser(const EBOOKOPFParser &other);
25 
26 public:
27  enum Type
28  {
32  };
33 
34 public:
35  EBOOKOPFParser(const RVNGInputStreamPtr_t &input, const RVNGInputStreamPtr_t &package, Type type, librevenge::RVNGTextInterface *document);
36 
37  void parse();
38 
39  static bool findOPFStream(const RVNGInputStreamPtr_t &package, unsigned &stream);
40 
41 private:
42  const RVNGInputStreamPtr_t getStream(const char *name) const;
43 
44 private:
47  const Type m_type;
48  librevenge::RVNGTextInterface *const m_document;
49 };
50 
51 }
52 
53 #endif // EBOOKOPFPARSER_H_INCLUDED
54 
55 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
Definition: EBOOKHTMLToken.h:89
const RVNGInputStreamPtr_t m_input
Definition: EBOOKOPFParser.h:45
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libebook_utils.h:54
Definition: EBOOKOPFParser.h:30
RVNGInputStreamPtr_t stream
Definition: HTMLHelpStream.cpp:79
EBOOKDocument::Type type
Definition: EBOOKDocument.cpp:325
EBOOKOPFParser(const EBOOKOPFParser &other)
Definition: EBOOKOPFParser.h:29
const Type m_type
Definition: EBOOKOPFParser.h:47
const char * name
Definition: EBOOKHTMLToken.cpp:44
Definition: EBOOKOPFToken.h:63
EBOOKOPFParser & operator=(const EBOOKOPFParser &other)
const RVNGInputStreamPtr_t m_package
Definition: EBOOKOPFParser.h:46
Type
Definition: EBOOKOPFParser.h:27
XMLTreeNodePtr_t document
Definition: EBOOKHTMLParser.cpp:163
static bool findOPFStream(const RVNGInputStreamPtr_t &package, unsigned &stream)
Definition: EBOOKOPFParser.cpp:689
Definition: BBeBCollector.cpp:18
const RVNGInputStreamPtr_t getStream(const char *name) const
Definition: EBOOKOPFParser.cpp:694
void parse()
Definition: EBOOKOPFParser.cpp:635
Definition: EBOOKOPFParser.h:31
Definition: EBOOKOPFParser.h:20
librevenge::RVNGTextInterface *const m_document
Definition: EBOOKOPFParser.h:48

Generated for libe-book by doxygen 1.8.14