FB2Collector.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* libe-book
3  * Version: MPL 2.0 / LGPLv2.1+
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  * Alternatively, the contents of this file may be used under the terms
10  * of the GNU Lesser General Public License Version 2.1 or later
11  * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
12  * applicable instead of those above.
13  *
14  * For further information visit http://libebook.sourceforge.net
15  */
16 
17 #ifndef FB2COLLECTOR_H_INCLUDED
18 #define FB2COLLECTOR_H_INCLUDED
19 
20 namespace libebook
21 {
22 
23 struct FB2BlockFormat;
24 class FB2Style;
25 
27 {
28 public:
29  virtual ~FB2Collector() = 0;
30 
31  virtual void defineMetadataEntry(const char *name, const char *value) = 0;
32  virtual void openMetadataEntry(const char *name) = 0;
33  virtual void closeMetadataEntry() = 0;
34 
35  virtual void defineID(const char *id) = 0;
36 
37  virtual void openPageSpan() = 0;
38  virtual void closePageSpan() = 0;
39 
40  virtual void openBlock() = 0;
41  virtual void closeBlock() = 0;
42 
43  virtual void openParagraph(const FB2BlockFormat &format) = 0;
44  virtual void closeParagraph() = 0;
45 
46  virtual void openSpan(const FB2Style &style) = 0;
47  virtual void closeSpan() = 0;
48 
49  virtual void insertText(const char *text) = 0;
50 
51  virtual void openTable(const FB2BlockFormat &format) = 0;
52  virtual void closeTable() = 0;
53 
54  virtual void openTableRow(const FB2BlockFormat &format) = 0;
55  virtual void closeTableRow() = 0;
56 
57  virtual void openTableCell(int rowspan, int colspan) = 0;
58  virtual void closeTableCell() = 0;
59  virtual void insertCoveredTableCell() = 0;
60 
61  virtual void insertFootnote(const char *id) = 0;
62 
63  virtual void insertBitmap(const char *id) = 0;
64  virtual void insertBitmapData(const char *contentType, const char *base64Data) = 0;
65 };
66 
67 }
68 
69 #endif // FB2COLLECTOR_H_INCLUDED
70 
71 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
virtual void closeTableCell()=0
optional< Style > style
Definition: TDParser.cpp:114
virtual void defineID(const char *id)=0
virtual void closeParagraph()=0
virtual void insertText(const char *text)=0
virtual void openTableRow(const FB2BlockFormat &format)=0
virtual void insertFootnote(const char *id)=0
virtual void closeBlock()=0
Definition: FB2Collector.h:26
virtual void openParagraph(const FB2BlockFormat &format)=0
virtual void insertCoveredTableCell()=0
virtual void closePageSpan()=0
virtual void openSpan(const FB2Style &style)=0
Definition: FB2Style.h:58
virtual void openMetadataEntry(const char *name)=0
virtual void insertBitmapData(const char *contentType, const char *base64Data)=0
virtual void closeSpan()=0
Definition: FB2Token.h:125
Definition: FB2Token.h:110
virtual void openPageSpan()=0
virtual void closeTableRow()=0
virtual void defineMetadataEntry(const char *name, const char *value)=0
Definition: FB2Token.h:123
virtual void closeMetadataEntry()=0
virtual void openTable(const FB2BlockFormat &format)=0
Definition: FB2Style.h:40
virtual void openBlock()=0
const char * name
Definition: FB2Token.cpp:26
virtual void openTableCell(int rowspan, int colspan)=0
virtual void insertBitmap(const char *id)=0
virtual ~FB2Collector()=0
Definition: FB2Collector.cpp:22
virtual void closeTable()=0

Generated for libe-book by doxygen 1.8.5