FB2Collector.h Source File documentation

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

FB2Collector.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 FB2COLLECTOR_H_INCLUDED
11 #define FB2COLLECTOR_H_INCLUDED
12
13 namespace libebook
14 {
15
16 struct FB2BlockFormat;
17 class FB2Style;
18
19 class FB2Collector
20 {
21 public:
22 virtual ~FB2Collector() = 0;
23
24 virtual void defineMetadataEntry(const char *name, const char *value) = 0;
25 virtual void openMetadataEntry(const char *name) = 0;
26 virtual void closeMetadataEntry() = 0;
27
28 virtual void defineID(const char *id) = 0;
29
30 virtual void openPageSpan() = 0;
31 virtual void closePageSpan() = 0;
32
33 virtual void openBlock() = 0;
34 virtual void closeBlock() = 0;
35
36 virtual void openParagraph(const FB2BlockFormat &format) = 0;
37 virtual void closeParagraph() = 0;
38
39 virtual void openSpan(const FB2Style &style) = 0;
40 virtual void closeSpan() = 0;
41
42 virtual void insertText(const char *text) = 0;
43
44 virtual void openTable(const FB2BlockFormat &format) = 0;
45 virtual void closeTable() = 0;
46
47 virtual void openTableRow(const FB2BlockFormat &format) = 0;
48 virtual void closeTableRow() = 0;
49
50 virtual void openTableCell(int rowspan, int colspan) = 0;
51 virtual void closeTableCell() = 0;
52 virtual void insertCoveredTableCell() = 0;
53
54 virtual void insertFootnote(const char *id) = 0;
55
56 virtual void insertBitmap(const char *id) = 0;
57 virtual void insertBitmapData(const char *contentType, const char *base64Data) = 0;
58 };
59
60 }
61
62 #endif // FB2COLLECTOR_H_INCLUDED
63
64 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libebook::EBOOKHTMLToken::value
Definition: EBOOKHTMLToken.h:263
libebook::FB2Collector::closeTableCell
virtual void closeTableCell()=0
style
optional< Style > style
Definition: TDParser.cpp:106
libebook::FB2Collector::defineID
virtual void defineID(const char *id)=0
libebook::FB2Collector::closeParagraph
virtual void closeParagraph()=0
libebook::FB2Collector::insertText
virtual void insertText(const char *text)=0
libebook::FB2Collector::openTableRow
virtual void openTableRow(const FB2BlockFormat &format)=0
libebook::FB2Collector::insertFootnote
virtual void insertFootnote(const char *id)=0
libebook::FB2Collector::closeBlock
virtual void closeBlock()=0
libebook::FB2Collector
Definition: FB2Collector.h:19
libebook::FB2Collector::openParagraph
virtual void openParagraph(const FB2BlockFormat &format)=0
libebook::FB2Collector::insertCoveredTableCell
virtual void insertCoveredTableCell()=0
libebook::FB2Collector::closePageSpan
virtual void closePageSpan()=0
libebook::FB2Collector::openSpan
virtual void openSpan(const FB2Style &style)=0
libebook::EBOOKHTMLToken::colspan
Definition: EBOOKHTMLToken.h:185
libebook::FB2Style
Definition: FB2Style.h:55
libebook::FB2Collector::openMetadataEntry
virtual void openMetadataEntry(const char *name)=0
libebook::FB2Collector::insertBitmapData
virtual void insertBitmapData(const char *contentType, const char *base64Data)=0
libebook::FB2Collector::closeSpan
virtual void closeSpan()=0
libebook::EBOOKHTMLToken::text
Definition: EBOOKHTMLToken.h:259
libebook::EBOOKHTMLToken::rowspan
Definition: EBOOKHTMLToken.h:244
libebook::FB2Collector::openPageSpan
virtual void openPageSpan()=0
libebook::FB2Collector::closeTableRow
virtual void closeTableRow()=0
name
string name
Definition: CHMStream.cpp:80
libebook::FB2Collector::defineMetadataEntry
virtual void defineMetadataEntry(const char *name, const char *value)=0
libebook::FB2Collector::closeMetadataEntry
virtual void closeMetadataEntry()=0
libebook::EBOOKOPFToken::format
Definition: EBOOKOPFToken.h:56
libebook
Definition: CHMParser.cpp:20
libebook::FB2Collector::openTable
virtual void openTable(const FB2BlockFormat &format)=0
libebook::FB2BlockFormat
Definition: FB2Style.h:35
libebook::FB2Collector::openBlock
virtual void openBlock()=0
libebook::FB2Collector::openTableCell
virtual void openTableCell(int rowspan, int colspan)=0
libebook::FB2Collector::insertBitmap
virtual void insertBitmap(const char *id)=0
libebook::FB2Collector::~FB2Collector
virtual ~FB2Collector()=0
Definition: FB2Collector.cpp:15
libebook::FB2Collector::closeTable
virtual void closeTable()=0