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 : public librevenge::RVNGSpreadsheetInterface
47 {
48 public:
50  ABWSpreadsheetToTableGenerator(ABWGenerator &documentGenerator);
53 
54  void setDocumentMetaData(const librevenge::RVNGPropertyList &propList);
55  void startDocument(const librevenge::RVNGPropertyList &);
56  void endDocument();
57 
58  void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList);
59 
60  void definePageStyle(const librevenge::RVNGPropertyList &) {}
61  void openPageSpan(const librevenge::RVNGPropertyList &propList);
62  void closePageSpan();
63 
64  void defineSectionStyle(const librevenge::RVNGPropertyList &) {}
65  void openSection(const librevenge::RVNGPropertyList &propList);
66  void closeSection();
67 
68  void openHeader(const librevenge::RVNGPropertyList &propList);
69  void closeHeader();
70  void openFooter(const librevenge::RVNGPropertyList &propList);
71  void closeFooter();
72 
73  void defineSheetNumberingStyle(const librevenge::RVNGPropertyList &propList);
74  void openSheet(const librevenge::RVNGPropertyList &propList);
75  void closeSheet();
76  void openSheetRow(const librevenge::RVNGPropertyList &propList);
77  void closeSheetRow();
78  void openSheetCell(const librevenge::RVNGPropertyList &propList);
79  void closeSheetCell();
80 
81  void defineChartStyle(const librevenge::RVNGPropertyList &propList);
82  void openChart(const librevenge::RVNGPropertyList &propList);
83  void closeChart();
84  void openChartTextObject(const librevenge::RVNGPropertyList &propList);
85  void closeChartTextObject();
86  void openChartPlotArea(const librevenge::RVNGPropertyList &propList);
87  void closeChartPlotArea();
88  void insertChartAxis(const librevenge::RVNGPropertyList &axis);
89  void openChartSerie(const librevenge::RVNGPropertyList &series);
90  void closeChartSerie();
91 
92  void defineParagraphStyle(const librevenge::RVNGPropertyList &propList);
93  void openParagraph(const librevenge::RVNGPropertyList &propList);
94  void closeParagraph();
95 
96  void defineCharacterStyle(const librevenge::RVNGPropertyList &propList);
97  void openSpan(const librevenge::RVNGPropertyList &propList);
98  void closeSpan();
99 
100  void openLink(const librevenge::RVNGPropertyList &propList);
101  void closeLink();
102 
103  void insertTab();
104  void insertSpace();
105  void insertText(const librevenge::RVNGString &text);
106  void insertLineBreak();
107  void insertField(const librevenge::RVNGPropertyList &propList);
108 
109  void openOrderedListLevel(const librevenge::RVNGPropertyList &propList);
110  void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList);
111  void closeOrderedListLevel();
112  void closeUnorderedListLevel();
113  void openListElement(const librevenge::RVNGPropertyList &propList);
114  void closeListElement();
115 
116  void openFootnote(const librevenge::RVNGPropertyList &propList);
117  void closeFootnote();
118 
119  void openComment(const librevenge::RVNGPropertyList &propList);
120  void closeComment();
121  void openTextBox(const librevenge::RVNGPropertyList &propList);
122  void closeTextBox();
123 
124  void openTable(const librevenge::RVNGPropertyList &propList);
125  void openTableRow(const librevenge::RVNGPropertyList &propList);
126  void closeTableRow();
127  void openTableCell(const librevenge::RVNGPropertyList &propList);
128  void closeTableCell();
129  void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList);
130  void closeTable();
131 
132  void openFrame(const librevenge::RVNGPropertyList &propList);
133  void closeFrame();
134 
135  void insertBinaryObject(const librevenge::RVNGPropertyList &propList);
136 
137  //
138  // simple Graphic
139  //
140 
141  void openGroup(const librevenge::RVNGPropertyList &propList);
142  void closeGroup();
143 
144  void defineGraphicStyle(const librevenge::RVNGPropertyList &propList);
145  void drawRectangle(const librevenge::RVNGPropertyList &propList);
146  void drawEllipse(const librevenge::RVNGPropertyList &propList);
147  void drawPolygon(const librevenge::RVNGPropertyList &propList);
148  void drawPolyline(const librevenge::RVNGPropertyList &propList);
149  void drawPath(const librevenge::RVNGPropertyList &propList);
150  void drawConnector(const librevenge::RVNGPropertyList &propList);
151 
152  void insertEquation(const librevenge::RVNGPropertyList &) {}
153 
154 private:
157 
158  ABWSpreadsheetToTableGeneratorPrivate *m_data;
159 };
160 }
161 
162 #endif
163 
164 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
ABWSpreadsheetToTableGeneratorPrivate * m_data
Definition: ABWSpreadsheetToTableGenerator.hxx:158
void insertEquation(const librevenge::RVNGPropertyList &)
Definition: ABWSpreadsheetToTableGenerator.hxx:152
#define RVNGABWAPI
Definition: librvngabw-api.hxx:36
Definition: ABWDocumentHandler.hxx:30
void defineSectionStyle(const librevenge::RVNGPropertyList &)
Definition: ABWSpreadsheetToTableGenerator.hxx:64
void definePageStyle(const librevenge::RVNGPropertyList &)
Definition: ABWSpreadsheetToTableGenerator.hxx:60
A generator for helpping convert embedded spreadsheet in table.
Definition: ABWSpreadsheetToTableGenerator.hxx:46

Generated for librvngabw by doxygen 1.8.8