ABWSpreadsheetToTableGenerator.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* librvngabw
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  * Major Contributor(s):
10  * Copyright (C) 2002-2004 William Lachance (wrlach@gmail.com)
11  * Copyright (C) 2004 Fridrich Strba (fridrich.strba@bluewin.ch)
12  *
13  * For minor contributions see the git repository.
14  *
15  * Alternatively, the contents of this file may be used under the terms
16  * of the GNU Lesser General Public License Version 2.1 or later
17  * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
18  * applicable instead of those above.
19  *
20  * For further information visit http://libwpd.sourceforge.net
21  */
22 
23 /* "This product is not manufactured, approved, or supported by
24  * Corel Corporation or Corel Corporation Limited."
25  */
26 
27 #ifndef _ABW_SPREADSHEET_TO_TABLE_GENERATOR_HXX_
28 #define _ABW_SPREADSHEET_TO_TABLE_GENERATOR_HXX_
29 
30 #include <librevenge/librevenge.h>
31 
32 #include "librvngabw-api.hxx"
33 #include "ABWDocumentHandler.hxx"
34 
35 
36 namespace librvngabw
37 {
38 class ABWSpreadsheetToTableGeneratorPrivate;
46 class RVNGABWAPI ABWSpreadsheetToTableGenerator final : public librevenge::RVNGSpreadsheetInterface
47 {
48 public:
50  ABWSpreadsheetToTableGenerator(ABWGenerator &documentGenerator);
53 
54  void setDocumentMetaData(const librevenge::RVNGPropertyList &propList) final;
55  void startDocument(const librevenge::RVNGPropertyList &) final;
56  void endDocument() final;
57 
58  void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList) final;
59 
60  // TODO: move code in .cxx
61  void definePageStyle(const librevenge::RVNGPropertyList &) final {}
62  void openPageSpan(const librevenge::RVNGPropertyList &propList) final;
63  void closePageSpan() final;
64 
65  // TODO: move code in .cxx
66  void defineSectionStyle(const librevenge::RVNGPropertyList &) final {}
67  void openSection(const librevenge::RVNGPropertyList &propList) final;
68  void closeSection() final;
69 
70  void openHeader(const librevenge::RVNGPropertyList &propList) final;
71  void closeHeader() final;
72  void openFooter(const librevenge::RVNGPropertyList &propList) final;
73  void closeFooter() final;
74 
75  void defineSheetNumberingStyle(const librevenge::RVNGPropertyList &propList) final;
76  void openSheet(const librevenge::RVNGPropertyList &propList) final;
77  void closeSheet() final;
78  void openSheetRow(const librevenge::RVNGPropertyList &propList) final;
79  void closeSheetRow() final;
80  void openSheetCell(const librevenge::RVNGPropertyList &propList) final;
81  void closeSheetCell() final;
82 
83  void defineChartStyle(const librevenge::RVNGPropertyList &propList) final;
84  void openChart(const librevenge::RVNGPropertyList &propList) final;
85  void closeChart() final;
86  void openChartTextObject(const librevenge::RVNGPropertyList &propList) final;
87  void closeChartTextObject() final;
88  void openChartPlotArea(const librevenge::RVNGPropertyList &propList) final;
89  void closeChartPlotArea() final;
90  void insertChartAxis(const librevenge::RVNGPropertyList &axis) final;
91  void openChartSerie(const librevenge::RVNGPropertyList &series) final;
92  void closeChartSerie() final;
93 
94  void defineParagraphStyle(const librevenge::RVNGPropertyList &propList) final;
95  void openParagraph(const librevenge::RVNGPropertyList &propList) final;
96  void closeParagraph() final;
97 
98  void defineCharacterStyle(const librevenge::RVNGPropertyList &propList) final;
99  void openSpan(const librevenge::RVNGPropertyList &propList) final;
100  void closeSpan() final;
101 
102  void openLink(const librevenge::RVNGPropertyList &propList) final;
103  void closeLink() final;
104 
105  void insertTab() final;
106  void insertSpace() final;
107  void insertText(const librevenge::RVNGString &text) final;
108  void insertLineBreak() final;
109  void insertField(const librevenge::RVNGPropertyList &propList) final;
110 
111  void openOrderedListLevel(const librevenge::RVNGPropertyList &propList) final;
112  void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList) final;
113  void closeOrderedListLevel() final;
114  void closeUnorderedListLevel() final;
115  void openListElement(const librevenge::RVNGPropertyList &propList) final;
116  void closeListElement() final;
117 
118  void openFootnote(const librevenge::RVNGPropertyList &propList) final;
119  void closeFootnote() final;
120 
121  void openComment(const librevenge::RVNGPropertyList &propList) final;
122  void closeComment() final;
123  void openTextBox(const librevenge::RVNGPropertyList &propList) final;
124  void closeTextBox() final;
125 
126  void openTable(const librevenge::RVNGPropertyList &propList) final;
127  void openTableRow(const librevenge::RVNGPropertyList &propList) final;
128  void closeTableRow() final;
129  void openTableCell(const librevenge::RVNGPropertyList &propList) final;
130  void closeTableCell() final;
131  void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList) final;
132  void closeTable() final;
133 
134  void openFrame(const librevenge::RVNGPropertyList &propList) final;
135  void closeFrame() final;
136 
137  void insertBinaryObject(const librevenge::RVNGPropertyList &propList) final;
138 
139  //
140  // simple Graphic
141  //
142 
143  void openGroup(const librevenge::RVNGPropertyList &propList) final;
144  void closeGroup() final;
145 
146  void defineGraphicStyle(const librevenge::RVNGPropertyList &propList) final;
147  void drawRectangle(const librevenge::RVNGPropertyList &propList) final;
148  void drawEllipse(const librevenge::RVNGPropertyList &propList) final;
149  void drawPolygon(const librevenge::RVNGPropertyList &propList) final;
150  void drawPolyline(const librevenge::RVNGPropertyList &propList) final;
151  void drawPath(const librevenge::RVNGPropertyList &propList) final;
152  void drawConnector(const librevenge::RVNGPropertyList &propList) final;
153 
154  // TODO: move code in .cxx
155  void insertEquation(const librevenge::RVNGPropertyList &) final {}
156 
157 private:
160 
161  ABWSpreadsheetToTableGeneratorPrivate *m_data;
162 };
163 }
164 
165 #endif
166 
167 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
ABWSpreadsheetToTableGeneratorPrivate * m_data
Definition: ABWSpreadsheetToTableGenerator.hxx:161
#define RVNGABWAPI
Definition: librvngabw-api.hxx:36
Definition: ABWDocumentHandler.hxx:30
void definePageStyle(const librevenge::RVNGPropertyList &) final
Definition: ABWSpreadsheetToTableGenerator.hxx:61
A generator for helpping convert embedded spreadsheet in table.
Definition: ABWSpreadsheetToTableGenerator.hxx:46

Generated for librvngabw by doxygen 1.8.15