Debian Codegraph @

src/lib/RVNGTextPresentationGenerator.cpp

raw symbols SCIP
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* librevenge
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
15 #include <librevenge-generators/librevenge-generators.h>
16
17 #include <sstream>
18
19 namespace librevenge
20 {
21
22 struct RVNGTextPresentationGeneratorImpl
23 {
24 explicit RVNGTextPresentationGeneratorImpl(RVNGStringVector &pages);
25
26 RVNGStringVector &m_pages;
27 std::ostringstream m_stream;
28 };
29
30 RVNGTextPresentationGeneratorImpl::RVNGTextPresentationGeneratorImpl(RVNGStringVector &pages)
31 : m_pages(pages)
32 , m_stream()
33 {
34 }
35
36 RVNGTextPresentationGenerator::RVNGTextPresentationGenerator(RVNGStringVector &pages)
37 : m_impl(new RVNGTextPresentationGeneratorImpl(pages))
38 {
39 }
40
41 RVNGTextPresentationGenerator::~RVNGTextPresentationGenerator()
42 {
43 delete m_impl;
44 }
45
46 void RVNGTextPresentationGenerator::startDocument(const RVNGPropertyList &)
47 {
48 }
49
50 void RVNGTextPresentationGenerator::endDocument()
51 {
52 }
53
54 void RVNGTextPresentationGenerator::setDocumentMetaData(const RVNGPropertyList &)
55 {
56 }
57
58 void RVNGTextPresentationGenerator::defineEmbeddedFont(const RVNGPropertyList &)
59 {
60 }
61
62 void RVNGTextPresentationGenerator::startSlide(const RVNGPropertyList &)
63 {
64 }
65
66 void RVNGTextPresentationGenerator::endSlide()
67 {
68 m_impl->m_pages.append(m_impl->m_stream.str().c_str());
69 m_impl->m_stream.str("");
70 }
71
72 void RVNGTextPresentationGenerator::startMasterSlide(const RVNGPropertyList &)
73 {
74 }
75
76 void RVNGTextPresentationGenerator::endMasterSlide()
77 {
78 // we don't do anything with master slides yet, so just reset the content
79 m_impl->m_stream.str("");
80 }
81
82 void RVNGTextPresentationGenerator::setSlideTransition(const RVNGPropertyList &)
83 {
84 }
85
86 void RVNGTextPresentationGenerator::startLayer(const RVNGPropertyList &)
87 {
88 }
89
90 void RVNGTextPresentationGenerator::endLayer()
91 {
92 }
93
94 void RVNGTextPresentationGenerator::startEmbeddedGraphics(const RVNGPropertyList &)
95 {
96 }
97
98 void RVNGTextPresentationGenerator::endEmbeddedGraphics()
99 {
100 }
101
102 void RVNGTextPresentationGenerator::openGroup(const RVNGPropertyList &)
103 {
104 }
105
106 void RVNGTextPresentationGenerator::closeGroup()
107 {
108 }
109
110 void RVNGTextPresentationGenerator::setStyle(const RVNGPropertyList &)
111 {
112 }
113
114 void RVNGTextPresentationGenerator::drawRectangle(const RVNGPropertyList &)
115 {
116 }
117
118 void RVNGTextPresentationGenerator::drawEllipse(const RVNGPropertyList &)
119 {
120 }
121
122 void RVNGTextPresentationGenerator::drawPolyline(const RVNGPropertyList &)
123 {
124 }
125
126 void RVNGTextPresentationGenerator::drawPolygon(const RVNGPropertyList &)
127 {
128 }
129
130 void RVNGTextPresentationGenerator::drawPath(const RVNGPropertyList &)
131 {
132 }
133
134 void RVNGTextPresentationGenerator::drawGraphicObject(const RVNGPropertyList &)
135 {
136 }
137
138 void RVNGTextPresentationGenerator::drawConnector(const RVNGPropertyList &)
139 {
140 }
141
142 void RVNGTextPresentationGenerator::startTextObject(const RVNGPropertyList &)
143 {
144 }
145
146 void RVNGTextPresentationGenerator::endTextObject()
147 {
148 m_impl->m_stream << '\n';
149 }
150
151 void RVNGTextPresentationGenerator::defineParagraphStyle(const RVNGPropertyList &)
152 {
153 }
154
155 void RVNGTextPresentationGenerator::openParagraph(const RVNGPropertyList &)
156 {
157 }
158
159 void RVNGTextPresentationGenerator::closeParagraph()
160 {
161 m_impl->m_stream << '\n';
162 }
163
164 void RVNGTextPresentationGenerator::defineCharacterStyle(const RVNGPropertyList &)
165 {
166 }
167
168 void RVNGTextPresentationGenerator::openSpan(const RVNGPropertyList &)
169 {
170 }
171
172 void RVNGTextPresentationGenerator::closeSpan()
173 {
174 }
175
176 void RVNGTextPresentationGenerator::openLink(const RVNGPropertyList &)
177 {
178 }
179
180 void RVNGTextPresentationGenerator::closeLink()
181 {
182 }
183
184 void RVNGTextPresentationGenerator::insertText(const RVNGString &str)
185 {
186 m_impl->m_stream << str.cstr();
187 }
188
189 void RVNGTextPresentationGenerator::insertTab()
190 {
191 m_impl->m_stream << '\t';
192 }
193
194 void RVNGTextPresentationGenerator::insertSpace()
195 {
196 m_impl->m_stream << ' ';
197 }
198
199 void RVNGTextPresentationGenerator::insertLineBreak()
200 {
201 m_impl->m_stream << '\n';
202 }
203
204 void RVNGTextPresentationGenerator::insertField(const RVNGPropertyList &)
205 {
206 }
207
208 void RVNGTextPresentationGenerator::openOrderedListLevel(const RVNGPropertyList &)
209 {
210 }
211
212 void RVNGTextPresentationGenerator::openUnorderedListLevel(const RVNGPropertyList &)
213 {
214 }
215
216 void RVNGTextPresentationGenerator::closeOrderedListLevel()
217 {
218 }
219
220 void RVNGTextPresentationGenerator::closeUnorderedListLevel()
221 {
222 }
223
224 void RVNGTextPresentationGenerator::openListElement(const RVNGPropertyList &propList)
225 {
226 openParagraph(propList);
227 }
228
229 void RVNGTextPresentationGenerator::closeListElement()
230 {
231 closeParagraph();
232 }
233
234 void RVNGTextPresentationGenerator::startTableObject(const RVNGPropertyList &)
235 {
236 }
237
238 void RVNGTextPresentationGenerator::openTableRow(const RVNGPropertyList &)
239 {
240 }
241
242 void RVNGTextPresentationGenerator::closeTableRow()
243 {
244 }
245
246 void RVNGTextPresentationGenerator::openTableCell(const RVNGPropertyList &)
247 {
248 }
249
250 void RVNGTextPresentationGenerator::closeTableCell()
251 {
252 }
253
254 void RVNGTextPresentationGenerator::insertCoveredTableCell(const RVNGPropertyList &)
255 {
256 }
257
258 void RVNGTextPresentationGenerator::endTableObject()
259 {
260 }
261
262 void RVNGTextPresentationGenerator::startComment(const RVNGPropertyList &)
263 {
264 }
265
266 void RVNGTextPresentationGenerator::endComment()
267 {
268 }
269
270 void RVNGTextPresentationGenerator::startNotes(const RVNGPropertyList &)
271 {
272 }
273
274 void RVNGTextPresentationGenerator::endNotes()
275 {
276 }
277
278 void RVNGTextPresentationGenerator::defineChartStyle(const RVNGPropertyList &)
279 {
280 }
281
282 void RVNGTextPresentationGenerator::openChart(const RVNGPropertyList &)
283 {
284 }
285
286 void RVNGTextPresentationGenerator::closeChart()
287 {
288 }
289
290 void RVNGTextPresentationGenerator::openChartTextObject(const RVNGPropertyList &)
291 {
292 }
293
294 void RVNGTextPresentationGenerator::closeChartTextObject()
295 {
296 }
297
298 void RVNGTextPresentationGenerator::openChartPlotArea(const RVNGPropertyList &)
299 {
300 }
301
302 void RVNGTextPresentationGenerator::closeChartPlotArea()
303 {
304 }
305
306 void RVNGTextPresentationGenerator::insertChartAxis(const RVNGPropertyList &)
307 {
308 }
309
310 void RVNGTextPresentationGenerator::openChartSeries(const librevenge::RVNGPropertyList &)
311 {
312 }
313
314 void RVNGTextPresentationGenerator::closeChartSeries()
315 {
316 }
317
318 void RVNGTextPresentationGenerator::openAnimationSequence(const RVNGPropertyList &)
319 {
320 }
321
322 void RVNGTextPresentationGenerator::closeAnimationSequence()
323 {
324 }
325
326 void RVNGTextPresentationGenerator::openAnimationGroup(const RVNGPropertyList &)
327 {
328 }
329
330 void RVNGTextPresentationGenerator::closeAnimationGroup()
331 {
332 }
333
334 void RVNGTextPresentationGenerator::openAnimationIteration(const RVNGPropertyList &)
335 {
336 }
337
338 void RVNGTextPresentationGenerator::closeAnimationIteration()
339 {
340 }
341
342 void RVNGTextPresentationGenerator::insertMotionAnimation(const RVNGPropertyList &)
343 {
344 }
345
346 void RVNGTextPresentationGenerator::insertColorAnimation(const RVNGPropertyList &)
347 {
348 }
349
350 void RVNGTextPresentationGenerator::insertAnimation(const RVNGPropertyList &)
351 {
352 }
353
354 void RVNGTextPresentationGenerator::insertEffect(const RVNGPropertyList &)
355 {
356 }
357
358 }
359
360 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */