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
17namespace libebook
18{
19
21{
22 // disable copying
25
26public:
33
34public:
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
41private:
42 const RVNGInputStreamPtr_t getStream(const char *name) const;
43
44private:
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: */
EBOOKDocument::Type type
Definition EBOOKDocument.cpp:325
XMLTreeNodePtr_t document
Definition EBOOKHTMLParser.cpp:163
RVNGInputStreamPtr_t stream
Definition HTMLHelpStream.cpp:79
string name
Definition HTMLHelpStream.cpp:80
Definition EBOOKOPFParser.h:21
EBOOKOPFParser & operator=(const EBOOKOPFParser &other)
const RVNGInputStreamPtr_t getStream(const char *name) const
Definition EBOOKOPFParser.cpp:694
void parse()
Definition EBOOKOPFParser.cpp:635
const RVNGInputStreamPtr_t m_input
Definition EBOOKOPFParser.h:45
EBOOKOPFParser(const EBOOKOPFParser &other)
const Type m_type
Definition EBOOKOPFParser.h:47
Type
Definition EBOOKOPFParser.h:28
@ TYPE_OEB
Definition EBOOKOPFParser.h:29
@ TYPE_EPub3
Definition EBOOKOPFParser.h:31
@ TYPE_EPub
Definition EBOOKOPFParser.h:30
librevenge::RVNGTextInterface *const m_document
Definition EBOOKOPFParser.h:48
static bool findOPFStream(const RVNGInputStreamPtr_t &package, unsigned &stream)
Definition EBOOKOPFParser.cpp:689
const RVNGInputStreamPtr_t m_package
Definition EBOOKOPFParser.h:46
Definition BBeBCollector.cpp:19
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition libebook_utils.h:54

Generated for libe-book by doxygen 1.10.0