| 1 |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
| 2 |
/* |
| 3 |
* This file is part of the libepubgen 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 |
#include <libepubgen/EPUBPresentationGenerator.h> |
| 11 |
|
| 12 |
#include "EPUBPagedGenerator.h" |
| 13 |
|
| 14 |
namespace libepubgen |
| 15 |
{ |
| 16 |
|
| 17 |
using librevenge::RVNGPropertyList; |
| 18 |
using librevenge::RVNGString; |
| 19 |
|
| 20 |
class EPUBEmbeddingContact; |
| 21 |
class EPUBPackage; |
| 22 |
|
| 23 |
class EPUBPresentationGenerator::Impl : public EPUBPagedGenerator |
| 24 |
{ |
| 25 |
public: |
| 26 |
Impl(EPUBPackage *const package, int version); |
| 27 |
}; |
| 28 |
|
| 29 |
EPUBPresentationGenerator::Impl::Impl(EPUBPackage *const package, int version) |
| 30 |
: EPUBPagedGenerator(package, version) |
| 31 |
{ |
| 32 |
} |
| 33 |
|
| 34 |
EPUBPresentationGenerator::EPUBPresentationGenerator(EPUBPackage *const package, int version) |
| 35 |
: m_impl(new Impl(package, version)) |
| 36 |
{ |
| 37 |
} |
| 38 |
|
| 39 |
EPUBPresentationGenerator::EPUBPresentationGenerator(EPUBEmbeddingContact &contact, EPUBPackage *const package) |
| 40 |
: m_impl(nullptr) |
| 41 |
{ |
| 42 |
// TODO: implement me |
| 43 |
(void) contact; |
| 44 |
(void) package; |
| 45 |
} |
| 46 |
|
| 47 |
EPUBPresentationGenerator::~EPUBPresentationGenerator() |
| 48 |
{ |
| 49 |
delete m_impl; |
| 50 |
} |
| 51 |
|
| 52 |
void EPUBPresentationGenerator::setOption(int key, int value) |
| 53 |
{ |
| 54 |
switch (key) |
| 55 |
{ |
| 56 |
case EPUB_GENERATOR_OPTION_SPLIT: |
| 57 |
m_impl->setSplitMethod(static_cast<EPUBSplitMethod>(value)); |
| 58 |
break; |
| 59 |
} |
| 60 |
} |
| 61 |
|
| 62 |
void EPUBPresentationGenerator::setSplitHeadingLevel(const unsigned level) |
| 63 |
{ |
| 64 |
m_impl->setSplitHeadingLevel(level); |
| 65 |
} |
| 66 |
|
| 67 |
void EPUBPresentationGenerator::setSplitSize(const unsigned size) |
| 68 |
{ |
| 69 |
m_impl->setSplitSize(size); |
| 70 |
} |
| 71 |
|
| 72 |
void EPUBPresentationGenerator::registerEmbeddedImageHandler(const librevenge::RVNGString &mimeType, EPUBEmbeddedImage imageHandler) |
| 73 |
{ |
| 74 |
// TODO: implement me |
| 75 |
(void) mimeType; |
| 76 |
(void) imageHandler; |
| 77 |
} |
| 78 |
|
| 79 |
void EPUBPresentationGenerator::registerEmbeddedObjectHandler(const librevenge::RVNGString &mimeType, EPUBEmbeddedObject objectHandler) |
| 80 |
{ |
| 81 |
// TODO: implement me |
| 82 |
(void) mimeType; |
| 83 |
(void) objectHandler; |
| 84 |
} |
| 85 |
|
| 86 |
void EPUBPresentationGenerator::startDocument(const RVNGPropertyList &propList) |
| 87 |
{ |
| 88 |
m_impl->startDocument(propList); |
| 89 |
} |
| 90 |
|
| 91 |
void EPUBPresentationGenerator::endDocument() |
| 92 |
{ |
| 93 |
m_impl->endDocument(); |
| 94 |
} |
| 95 |
|
| 96 |
void EPUBPresentationGenerator::setDocumentMetaData(const RVNGPropertyList &propList) |
| 97 |
{ |
| 98 |
m_impl->setDocumentMetaData(propList); |
| 99 |
} |
| 100 |
|
| 101 |
void EPUBPresentationGenerator::defineEmbeddedFont(const RVNGPropertyList &propList) |
| 102 |
{ |
| 103 |
m_impl->defineEmbeddedFont(propList); |
| 104 |
} |
| 105 |
|
| 106 |
void EPUBPresentationGenerator::startSlide(const RVNGPropertyList &propList) |
| 107 |
{ |
| 108 |
m_impl->startSlide(propList); |
| 109 |
} |
| 110 |
|
| 111 |
void EPUBPresentationGenerator::endSlide() |
| 112 |
{ |
| 113 |
m_impl->endSlide(); |
| 114 |
} |
| 115 |
|
| 116 |
void EPUBPresentationGenerator::startMasterSlide(const RVNGPropertyList &propList) |
| 117 |
{ |
| 118 |
m_impl->startMasterSlide(propList); |
| 119 |
} |
| 120 |
|
| 121 |
void EPUBPresentationGenerator::endMasterSlide() |
| 122 |
{ |
| 123 |
m_impl->endMasterSlide(); |
| 124 |
} |
| 125 |
|
| 126 |
void EPUBPresentationGenerator::setStyle(const RVNGPropertyList &propList) |
| 127 |
{ |
| 128 |
m_impl->setStyle(propList); |
| 129 |
} |
| 130 |
|
| 131 |
void EPUBPresentationGenerator::setSlideTransition(const RVNGPropertyList &propList) |
| 132 |
{ |
| 133 |
m_impl->setSlideTransition(propList); |
| 134 |
} |
| 135 |
|
| 136 |
void EPUBPresentationGenerator::startLayer(const RVNGPropertyList &propList) |
| 137 |
{ |
| 138 |
m_impl->startLayer(propList); |
| 139 |
} |
| 140 |
|
| 141 |
void EPUBPresentationGenerator::endLayer() |
| 142 |
{ |
| 143 |
m_impl->endLayer(); |
| 144 |
} |
| 145 |
|
| 146 |
void EPUBPresentationGenerator::startEmbeddedGraphics(const RVNGPropertyList &propList) |
| 147 |
{ |
| 148 |
m_impl->startEmbeddedGraphics(propList); |
| 149 |
} |
| 150 |
|
| 151 |
void EPUBPresentationGenerator::endEmbeddedGraphics() |
| 152 |
{ |
| 153 |
m_impl->endEmbeddedGraphics(); |
| 154 |
} |
| 155 |
|
| 156 |
void EPUBPresentationGenerator::openGroup(const RVNGPropertyList &propList) |
| 157 |
{ |
| 158 |
m_impl->openGroup(propList); |
| 159 |
} |
| 160 |
|
| 161 |
void EPUBPresentationGenerator::closeGroup() |
| 162 |
{ |
| 163 |
m_impl->closeGroup(); |
| 164 |
} |
| 165 |
|
| 166 |
void EPUBPresentationGenerator::drawRectangle(const RVNGPropertyList &propList) |
| 167 |
{ |
| 168 |
m_impl->drawRectangle(propList); |
| 169 |
} |
| 170 |
|
| 171 |
void EPUBPresentationGenerator::drawEllipse(const RVNGPropertyList &propList) |
| 172 |
{ |
| 173 |
m_impl->drawEllipse(propList); |
| 174 |
} |
| 175 |
|
| 176 |
void EPUBPresentationGenerator::drawPolygon(const RVNGPropertyList &propList) |
| 177 |
{ |
| 178 |
m_impl->drawPolygon(propList); |
| 179 |
} |
| 180 |
|
| 181 |
void EPUBPresentationGenerator::drawPolyline(const RVNGPropertyList &propList) |
| 182 |
{ |
| 183 |
m_impl->drawPolyline(propList); |
| 184 |
} |
| 185 |
|
| 186 |
void EPUBPresentationGenerator::drawPath(const RVNGPropertyList &propList) |
| 187 |
{ |
| 188 |
m_impl->drawPath(propList); |
| 189 |
} |
| 190 |
|
| 191 |
void EPUBPresentationGenerator::drawGraphicObject(const RVNGPropertyList &propList) |
| 192 |
{ |
| 193 |
m_impl->drawGraphicObject(propList); |
| 194 |
} |
| 195 |
|
| 196 |
void EPUBPresentationGenerator::drawConnector(const RVNGPropertyList &propList) |
| 197 |
{ |
| 198 |
m_impl->drawConnector(propList); |
| 199 |
} |
| 200 |
|
| 201 |
void EPUBPresentationGenerator::startTextObject(const RVNGPropertyList &propList) |
| 202 |
{ |
| 203 |
m_impl->startTextObject(propList); |
| 204 |
} |
| 205 |
|
| 206 |
void EPUBPresentationGenerator::endTextObject() |
| 207 |
{ |
| 208 |
m_impl->endTextObject(); |
| 209 |
} |
| 210 |
|
| 211 |
void EPUBPresentationGenerator::insertTab() |
| 212 |
{ |
| 213 |
m_impl->insertTab(); |
| 214 |
} |
| 215 |
|
| 216 |
void EPUBPresentationGenerator::insertSpace() |
| 217 |
{ |
| 218 |
m_impl->insertSpace(); |
| 219 |
} |
| 220 |
|
| 221 |
void EPUBPresentationGenerator::insertText(const RVNGString &text) |
| 222 |
{ |
| 223 |
m_impl->insertText(text); |
| 224 |
} |
| 225 |
|
| 226 |
void EPUBPresentationGenerator::insertLineBreak() |
| 227 |
{ |
| 228 |
m_impl->insertLineBreak(); |
| 229 |
} |
| 230 |
|
| 231 |
void EPUBPresentationGenerator::insertField(const RVNGPropertyList &propList) |
| 232 |
{ |
| 233 |
m_impl->insertField(propList); |
| 234 |
} |
| 235 |
|
| 236 |
void EPUBPresentationGenerator::openOrderedListLevel(const RVNGPropertyList &propList) |
| 237 |
{ |
| 238 |
m_impl->openOrderedListLevel(propList); |
| 239 |
} |
| 240 |
|
| 241 |
void EPUBPresentationGenerator::openUnorderedListLevel(const RVNGPropertyList &propList) |
| 242 |
{ |
| 243 |
m_impl->openUnorderedListLevel(propList); |
| 244 |
} |
| 245 |
|
| 246 |
void EPUBPresentationGenerator::closeOrderedListLevel() |
| 247 |
{ |
| 248 |
m_impl->closeOrderedListLevel(); |
| 249 |
} |
| 250 |
|
| 251 |
void EPUBPresentationGenerator::closeUnorderedListLevel() |
| 252 |
{ |
| 253 |
m_impl->closeUnorderedListLevel(); |
| 254 |
} |
| 255 |
|
| 256 |
void EPUBPresentationGenerator::openListElement(const RVNGPropertyList &propList) |
| 257 |
{ |
| 258 |
m_impl->openListElement(propList); |
| 259 |
} |
| 260 |
|
| 261 |
void EPUBPresentationGenerator::closeListElement() |
| 262 |
{ |
| 263 |
m_impl->closeListElement(); |
| 264 |
} |
| 265 |
|
| 266 |
void EPUBPresentationGenerator::defineParagraphStyle(const RVNGPropertyList &propList) |
| 267 |
{ |
| 268 |
m_impl->defineParagraphStyle(propList); |
| 269 |
} |
| 270 |
|
| 271 |
void EPUBPresentationGenerator::openParagraph(const RVNGPropertyList &propList) |
| 272 |
{ |
| 273 |
m_impl->openParagraph(propList); |
| 274 |
} |
| 275 |
|
| 276 |
void EPUBPresentationGenerator::closeParagraph() |
| 277 |
{ |
| 278 |
m_impl->closeParagraph(); |
| 279 |
} |
| 280 |
|
| 281 |
void EPUBPresentationGenerator::defineCharacterStyle(const RVNGPropertyList &propList) |
| 282 |
{ |
| 283 |
m_impl->defineCharacterStyle(propList); |
| 284 |
} |
| 285 |
|
| 286 |
void EPUBPresentationGenerator::openSpan(const RVNGPropertyList &propList) |
| 287 |
{ |
| 288 |
m_impl->openSpan(propList); |
| 289 |
} |
| 290 |
|
| 291 |
void EPUBPresentationGenerator::closeSpan() |
| 292 |
{ |
| 293 |
m_impl->closeSpan(); |
| 294 |
} |
| 295 |
|
| 296 |
void EPUBPresentationGenerator::openLink(const RVNGPropertyList &propList) |
| 297 |
{ |
| 298 |
m_impl->openLink(propList); |
| 299 |
} |
| 300 |
|
| 301 |
void EPUBPresentationGenerator::closeLink() |
| 302 |
{ |
| 303 |
m_impl->closeLink(); |
| 304 |
} |
| 305 |
|
| 306 |
void EPUBPresentationGenerator::startTableObject(const RVNGPropertyList &propList) |
| 307 |
{ |
| 308 |
m_impl->startTableObject(propList); |
| 309 |
} |
| 310 |
|
| 311 |
void EPUBPresentationGenerator::openTableRow(const RVNGPropertyList &propList) |
| 312 |
{ |
| 313 |
m_impl->openTableRow(propList); |
| 314 |
} |
| 315 |
|
| 316 |
void EPUBPresentationGenerator::closeTableRow() |
| 317 |
{ |
| 318 |
m_impl->closeTableRow(); |
| 319 |
} |
| 320 |
|
| 321 |
void EPUBPresentationGenerator::openTableCell(const RVNGPropertyList &propList) |
| 322 |
{ |
| 323 |
m_impl->openTableCell(propList); |
| 324 |
} |
| 325 |
|
| 326 |
void EPUBPresentationGenerator::closeTableCell() |
| 327 |
{ |
| 328 |
m_impl->closeTableCell(); |
| 329 |
} |
| 330 |
|
| 331 |
void EPUBPresentationGenerator::insertCoveredTableCell(const RVNGPropertyList &propList) |
| 332 |
{ |
| 333 |
m_impl->insertCoveredTableCell(propList); |
| 334 |
} |
| 335 |
|
| 336 |
void EPUBPresentationGenerator::endTableObject() |
| 337 |
{ |
| 338 |
m_impl->endTableObject(); |
| 339 |
} |
| 340 |
|
| 341 |
void EPUBPresentationGenerator::startComment(const RVNGPropertyList &propList) |
| 342 |
{ |
| 343 |
m_impl->startComment(propList); |
| 344 |
} |
| 345 |
|
| 346 |
void EPUBPresentationGenerator::endComment() |
| 347 |
{ |
| 348 |
m_impl->endComment(); |
| 349 |
} |
| 350 |
|
| 351 |
void EPUBPresentationGenerator::startNotes(const RVNGPropertyList &propList) |
| 352 |
{ |
| 353 |
m_impl->startNotes(propList); |
| 354 |
} |
| 355 |
|
| 356 |
void EPUBPresentationGenerator::endNotes() |
| 357 |
{ |
| 358 |
m_impl->endNotes(); |
| 359 |
} |
| 360 |
|
| 361 |
void EPUBPresentationGenerator::defineChartStyle(const RVNGPropertyList &propList) |
| 362 |
{ |
| 363 |
m_impl->defineChartStyle(propList); |
| 364 |
} |
| 365 |
|
| 366 |
void EPUBPresentationGenerator::openChart(const RVNGPropertyList &propList) |
| 367 |
{ |
| 368 |
m_impl->openChart(propList); |
| 369 |
} |
| 370 |
|
| 371 |
void EPUBPresentationGenerator::closeChart() |
| 372 |
{ |
| 373 |
m_impl->closeChart(); |
| 374 |
} |
| 375 |
|
| 376 |
void EPUBPresentationGenerator::openChartTextObject(const RVNGPropertyList &propList) |
| 377 |
{ |
| 378 |
m_impl->openChartTextObject(propList); |
| 379 |
} |
| 380 |
|
| 381 |
void EPUBPresentationGenerator::closeChartTextObject() |
| 382 |
{ |
| 383 |
m_impl->closeChartTextObject(); |
| 384 |
} |
| 385 |
|
| 386 |
void EPUBPresentationGenerator::openChartPlotArea(const RVNGPropertyList &propList) |
| 387 |
{ |
| 388 |
m_impl->openChartPlotArea(propList); |
| 389 |
} |
| 390 |
|
| 391 |
void EPUBPresentationGenerator::closeChartPlotArea() |
| 392 |
{ |
| 393 |
m_impl->closeChartPlotArea(); |
| 394 |
} |
| 395 |
|
| 396 |
void EPUBPresentationGenerator::insertChartAxis(const RVNGPropertyList &propList) |
| 397 |
{ |
| 398 |
m_impl->insertChartAxis(propList); |
| 399 |
} |
| 400 |
|
| 401 |
void EPUBPresentationGenerator::openChartSeries(const librevenge::RVNGPropertyList &propList) |
| 402 |
{ |
| 403 |
m_impl->openChartSeries(propList); |
| 404 |
} |
| 405 |
|
| 406 |
void EPUBPresentationGenerator::closeChartSeries() |
| 407 |
{ |
| 408 |
m_impl->closeChartSeries(); |
| 409 |
} |
| 410 |
|
| 411 |
void EPUBPresentationGenerator::openAnimationSequence(const RVNGPropertyList &propList) |
| 412 |
{ |
| 413 |
m_impl->openAnimationSequence(propList); |
| 414 |
} |
| 415 |
|
| 416 |
void EPUBPresentationGenerator::closeAnimationSequence() |
| 417 |
{ |
| 418 |
m_impl->closeAnimationSequence(); |
| 419 |
} |
| 420 |
|
| 421 |
void EPUBPresentationGenerator::openAnimationGroup(const RVNGPropertyList &propList) |
| 422 |
{ |
| 423 |
m_impl->openAnimationGroup(propList); |
| 424 |
} |
| 425 |
|
| 426 |
void EPUBPresentationGenerator::closeAnimationGroup() |
| 427 |
{ |
| 428 |
m_impl->closeAnimationGroup(); |
| 429 |
} |
| 430 |
|
| 431 |
void EPUBPresentationGenerator::openAnimationIteration(const RVNGPropertyList &propList) |
| 432 |
{ |
| 433 |
m_impl->openAnimationIteration(propList); |
| 434 |
} |
| 435 |
|
| 436 |
void EPUBPresentationGenerator::closeAnimationIteration() |
| 437 |
{ |
| 438 |
m_impl->closeAnimationIteration(); |
| 439 |
} |
| 440 |
|
| 441 |
void EPUBPresentationGenerator::insertMotionAnimation(const RVNGPropertyList &propList) |
| 442 |
{ |
| 443 |
m_impl->insertMotionAnimation(propList); |
| 444 |
} |
| 445 |
|
| 446 |
void EPUBPresentationGenerator::insertColorAnimation(const RVNGPropertyList &propList) |
| 447 |
{ |
| 448 |
m_impl->insertColorAnimation(propList); |
| 449 |
} |
| 450 |
|
| 451 |
void EPUBPresentationGenerator::insertAnimation(const RVNGPropertyList &propList) |
| 452 |
{ |
| 453 |
m_impl->insertAnimation(propList); |
| 454 |
} |
| 455 |
|
| 456 |
void EPUBPresentationGenerator::insertEffect(const RVNGPropertyList &propList) |
| 457 |
{ |
| 458 |
m_impl->insertEffect(propList); |
| 459 |
} |
| 460 |
|
| 461 |
} |
| 462 |
|
| 463 |
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */ |