FictionBook2MetadataCollector.h Source File documentation

FictionBook2MetadataCollector.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 FICTIONBOOK2METADATACOLLECTOR_H_INCLUDED
11#define FICTIONBOOK2METADATACOLLECTOR_H_INCLUDED
12
13#include "FictionBook2Collector.h"
14
15
16namespace libebook
17{
18
19 class FictionBook2MetadataCollector : public FictionBook2Collector
20{
21public:
22 FictionBook2MetadataCollector(librevenge::RVNGPropertyList &metadata);
23
24private:
25 void defineMetadataEntry(const char *name, const char *value) override;
26 void openMetadataEntry(const char *name) override;
27 void closeMetadataEntry() override;
28
29 void defineID(const char *id) override;
30
31 void openPageSpan() override;
32 void closePageSpan() override;
33
34 void openBlock() override;
35 void closeBlock() override;
36
37 void openParagraph(const FictionBook2BlockFormat &format) override;
38 void closeParagraph() override;
39
40 void openSpan(const FictionBook2Style &style) override;
41 void closeSpan() override;
42
43 void insertText(const char *text) override;
44
45 void openTable(const FictionBook2BlockFormat &format) override;
46 void closeTable() override;
47
48 void openTableRow(const FictionBook2BlockFormat &format) override;
49 void closeTableRow() override;
50
51 void openTableCell(int rowspan, int colspan) override;
52 void closeTableCell() override;
53 void insertCoveredTableCell() override;
54
55 void insertFootnote(const char *id) override;
56
57 void insertBitmap(const char *id) override;
58 void insertBitmapData(const char *contentType, const char *base64Data) override;
59
60private:
61 librevenge::RVNGPropertyList &m_metadata;
62};
63
64}
65
66#endif // FICTIONBOOK2METADATACOLLECTOR_H_INCLUDED
67
68/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
metadata
RVNGPropertyList metadata
Definition: EBOOKOPFParser.cpp:63
FictionBook2Collector.h
name
string name
Definition: HTMLHelpStream.cpp:80
style
optional< Style > style
Definition: TealDocParser.cpp:105
value
qi::rule< Iterator, AttrValue_t, qi::space_type > value
Definition: TealDocParser.cpp:231
text
qi::rule< Iterator, AttrValue_t, qi::space_type > text
Definition: TealDocParser.cpp:232
libebook::FictionBook2Collector
Definition: FictionBook2Collector.h:23
libebook::FictionBook2MetadataCollector
Definition: FictionBook2MetadataCollector.h:20
libebook::FictionBook2MetadataCollector::openTableRow
void openTableRow(const FictionBook2BlockFormat &format) override
Definition: FictionBook2MetadataCollector.cpp:85
libebook::FictionBook2MetadataCollector::defineID
void defineID(const char *id) override
Definition: FictionBook2MetadataCollector.cpp:36
libebook::FictionBook2MetadataCollector::openBlock
void openBlock() override
Definition: FictionBook2MetadataCollector.cpp:48
libebook::FictionBook2MetadataCollector::openPageSpan
void openPageSpan() override
Definition: FictionBook2MetadataCollector.cpp:40
libebook::FictionBook2MetadataCollector::defineMetadataEntry
void defineMetadataEntry(const char *name, const char *value) override
Definition: FictionBook2MetadataCollector.cpp:22
libebook::FictionBook2MetadataCollector::closeTableCell
void closeTableCell() override
Definition: FictionBook2MetadataCollector.cpp:97
libebook::FictionBook2MetadataCollector::insertCoveredTableCell
void insertCoveredTableCell() override
Definition: FictionBook2MetadataCollector.cpp:101
libebook::FictionBook2MetadataCollector::insertFootnote
void insertFootnote(const char *id) override
Definition: FictionBook2MetadataCollector.cpp:105
libebook::FictionBook2MetadataCollector::openSpan
void openSpan(const FictionBook2Style &style) override
Definition: FictionBook2MetadataCollector.cpp:64
libebook::FictionBook2MetadataCollector::insertBitmap
void insertBitmap(const char *id) override
Definition: FictionBook2MetadataCollector.cpp:109
libebook::FictionBook2MetadataCollector::openTable
void openTable(const FictionBook2BlockFormat &format) override
Definition: FictionBook2MetadataCollector.cpp:77
libebook::FictionBook2MetadataCollector::closeTable
void closeTable() override
Definition: FictionBook2MetadataCollector.cpp:81
libebook::FictionBook2MetadataCollector::openMetadataEntry
void openMetadataEntry(const char *name) override
Definition: FictionBook2MetadataCollector.cpp:27
libebook::FictionBook2MetadataCollector::closeParagraph
void closeParagraph() override
Definition: FictionBook2MetadataCollector.cpp:60
libebook::FictionBook2MetadataCollector::m_metadata
librevenge::RVNGPropertyList & m_metadata
Definition: FictionBook2MetadataCollector.h:61
libebook::FictionBook2MetadataCollector::openParagraph
void openParagraph(const FictionBook2BlockFormat &format) override
Definition: FictionBook2MetadataCollector.cpp:56
libebook::FictionBook2MetadataCollector::closeBlock
void closeBlock() override
Definition: FictionBook2MetadataCollector.cpp:52
libebook::FictionBook2MetadataCollector::closeTableRow
void closeTableRow() override
Definition: FictionBook2MetadataCollector.cpp:89
libebook::FictionBook2MetadataCollector::closeSpan
void closeSpan() override
Definition: FictionBook2MetadataCollector.cpp:68
libebook::FictionBook2MetadataCollector::closePageSpan
void closePageSpan() override
Definition: FictionBook2MetadataCollector.cpp:44
libebook::FictionBook2MetadataCollector::insertText
void insertText(const char *text) override
Definition: FictionBook2MetadataCollector.cpp:72
libebook::FictionBook2MetadataCollector::openTableCell
void openTableCell(int rowspan, int colspan) override
Definition: FictionBook2MetadataCollector.cpp:93
libebook::FictionBook2MetadataCollector::insertBitmapData
void insertBitmapData(const char *contentType, const char *base64Data) override
Definition: FictionBook2MetadataCollector.cpp:113
libebook::FictionBook2MetadataCollector::closeMetadataEntry
void closeMetadataEntry() override
Definition: FictionBook2MetadataCollector.cpp:32
libebook::FictionBook2Style
Definition: FictionBook2Style.h:56
libebook
Definition: BBeBCollector.cpp:19
libebook::FictionBook2BlockFormat
Definition: FictionBook2Style.h:36