Debian Codegraph @

src/lib/EPUBTextElements.cpp

raw
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 "EPUBTextElements.h"
11
12 #include "libepubgen_utils.h"
13
14 namespace libepubgen
15 {
16
17 class EPUBTextElement
18 {
19 public:
20 EPUBTextElement() {}
21 virtual ~EPUBTextElement() {}
22 virtual void write(librevenge::RVNGTextInterface *iface) const = 0;
23 };
24
25 namespace
26 {
27
28 class CloseCommentElement : public EPUBTextElement
29 {
30 public:
31 CloseCommentElement() {}
32 ~CloseCommentElement() override {}
33 void write(librevenge::RVNGTextInterface *iface) const override;
34 };
35
36 class CloseEndnoteElement : public EPUBTextElement
37 {
38 public:
39 CloseEndnoteElement() {}
40 ~CloseEndnoteElement() override {}
41 void write(librevenge::RVNGTextInterface *iface) const override;
42 };
43
44 class CloseFooterElement : public EPUBTextElement
45 {
46 public:
47 CloseFooterElement() {}
48 ~CloseFooterElement() override {}
49 void write(librevenge::RVNGTextInterface *iface) const override;
50 };
51
52 class CloseFootnoteElement : public EPUBTextElement
53 {
54 public:
55 CloseFootnoteElement() {}
56 ~CloseFootnoteElement() override {}
57 void write(librevenge::RVNGTextInterface *iface) const override;
58 };
59
60 class CloseFrameElement : public EPUBTextElement
61 {
62 public:
63 CloseFrameElement() {}
64 ~CloseFrameElement() override {}
65 void write(librevenge::RVNGTextInterface *iface) const override;
66 };
67
68 class CloseHeaderElement : public EPUBTextElement
69 {
70 public:
71 CloseHeaderElement() {}
72 ~CloseHeaderElement() override {}
73 void write(librevenge::RVNGTextInterface *iface) const override;
74 };
75
76 class CloseLinkElement : public EPUBTextElement
77 {
78 public:
79 CloseLinkElement() {}
80 ~CloseLinkElement() override {}
81 void write(librevenge::RVNGTextInterface *iface) const override;
82 EPUBTextElement *clone()
83 {
84 return new CloseLinkElement();
85 }
86 };
87
88 class CloseListElementElement : public EPUBTextElement
89 {
90 public:
91 CloseListElementElement() {}
92 ~CloseListElementElement() override {}
93 void write(librevenge::RVNGTextInterface *iface) const override;
94 EPUBTextElement *clone()
95 {
96 return new CloseListElementElement();
97 }
98 };
99
100 class CloseOrderedListLevelElement : public EPUBTextElement
101 {
102 public:
103 CloseOrderedListLevelElement() {}
104 ~CloseOrderedListLevelElement() override {}
105 void write(librevenge::RVNGTextInterface *iface) const override;
106 EPUBTextElement *clone()
107 {
108 return new CloseOrderedListLevelElement();
109 }
110 };
111
112 class CloseParagraphElement : public EPUBTextElement
113 {
114 public:
115 CloseParagraphElement() {}
116 ~CloseParagraphElement() override {}
117 void write(librevenge::RVNGTextInterface *iface) const override;
118 EPUBTextElement *clone()
119 {
120 return new CloseParagraphElement();
121 }
122 };
123
124 class CloseSpanElement : public EPUBTextElement
125 {
126 public:
127 CloseSpanElement() {}
128 ~CloseSpanElement() override {}
129 void write(librevenge::RVNGTextInterface *iface) const override;
130 EPUBTextElement *clone()
131 {
132 return new CloseSpanElement();
133 }
134 };
135
136 class CloseTableElement : public EPUBTextElement
137 {
138 public:
139 CloseTableElement() {}
140 ~CloseTableElement() override {}
141 void write(librevenge::RVNGTextInterface *iface) const override;
142 EPUBTextElement *clone()
143 {
144 return new CloseTableElement();
145 }
146 };
147
148 class CloseTableCellElement : public EPUBTextElement
149 {
150 public:
151 CloseTableCellElement() {}
152 ~CloseTableCellElement() override {}
153 void write(librevenge::RVNGTextInterface *iface) const override;
154 EPUBTextElement *clone()
155 {
156 return new CloseTableCellElement();
157 }
158 };
159
160 class CloseTableRowElement : public EPUBTextElement
161 {
162 public:
163 CloseTableRowElement() {}
164 ~CloseTableRowElement() override {}
165 void write(librevenge::RVNGTextInterface *iface) const override;
166 EPUBTextElement *clone()
167 {
168 return new CloseTableRowElement();
169 }
170 };
171
172 class CloseUnorderedListLevelElement : public EPUBTextElement
173 {
174 public:
175 CloseUnorderedListLevelElement() {}
176 ~CloseUnorderedListLevelElement() override {}
177 void write(librevenge::RVNGTextInterface *iface) const override;
178 EPUBTextElement *clone()
179 {
180 return new CloseUnorderedListLevelElement();
181 }
182 };
183
184 class InsertBinaryObjectElement : public EPUBTextElement
185 {
186 public:
187 InsertBinaryObjectElement(const librevenge::RVNGPropertyList &propList) :
188 m_propList(propList) {}
189 ~InsertBinaryObjectElement() override {}
190 void write(librevenge::RVNGTextInterface *iface) const override;
191 EPUBTextElement *clone()
192 {
193 return new InsertBinaryObjectElement(m_propList);
194 }
195 private:
196 librevenge::RVNGPropertyList m_propList;
197 };
198
199 class InsertCoveredTableCellElement : public EPUBTextElement
200 {
201 public:
202 InsertCoveredTableCellElement(const librevenge::RVNGPropertyList &propList) :
203 m_propList(propList) {}
204 ~InsertCoveredTableCellElement() override {}
205 void write(librevenge::RVNGTextInterface *iface) const override;
206 EPUBTextElement *clone()
207 {
208 return new InsertCoveredTableCellElement(m_propList);
209 }
210 private:
211 librevenge::RVNGPropertyList m_propList;
212 };
213
214 class InsertEquationElement : public EPUBTextElement
215 {
216 public:
217 InsertEquationElement(const librevenge::RVNGPropertyList &propList) :
218 m_propList(propList) {}
219 ~InsertEquationElement() override {}
220 void write(librevenge::RVNGTextInterface *iface) const override;
221 EPUBTextElement *clone()
222 {
223 return new InsertEquationElement(m_propList);
224 }
225 private:
226 librevenge::RVNGPropertyList m_propList;
227 };
228
229 class InsertFieldElement : public EPUBTextElement
230 {
231 public:
232 InsertFieldElement(const librevenge::RVNGPropertyList &propList) :
233 m_propList(propList) {}
234 ~InsertFieldElement() override {}
235 void write(librevenge::RVNGTextInterface *iface) const override;
236 EPUBTextElement *clone()
237 {
238 return new InsertFieldElement(m_propList);
239 }
240 private:
241 librevenge::RVNGPropertyList m_propList;
242 };
243
244 class InsertLineBreakElement : public EPUBTextElement
245 {
246 public:
247 InsertLineBreakElement() {}
248 ~InsertLineBreakElement() override {}
249 void write(librevenge::RVNGTextInterface *iface) const override;
250 EPUBTextElement *clone()
251 {
252 return new InsertLineBreakElement();
253 }
254 };
255
256 class InsertSpaceElement : public EPUBTextElement
257 {
258 public:
259 InsertSpaceElement() {}
260 ~InsertSpaceElement() override {}
261 void write(librevenge::RVNGTextInterface *iface) const override;
262 EPUBTextElement *clone()
263 {
264 return new InsertSpaceElement();
265 }
266 };
267
268 class InsertTabElement : public EPUBTextElement
269 {
270 public:
271 InsertTabElement() {}
272 ~InsertTabElement() override {}
273 void write(librevenge::RVNGTextInterface *iface) const override;
274 EPUBTextElement *clone()
275 {
276 return new InsertTabElement();
277 }
278 };
279
280 class InsertTextElement : public EPUBTextElement
281 {
282 public:
283 InsertTextElement(const librevenge::RVNGString &text) :
284 m_text(text) {}
285 ~InsertTextElement() override {}
286 void write(librevenge::RVNGTextInterface *iface) const override;
287 EPUBTextElement *clone()
288 {
289 return new InsertTextElement(m_text);
290 }
291 private:
292 librevenge::RVNGString m_text;
293 };
294
295 class OpenCommentElement : public EPUBTextElement
296 {
297 public:
298 OpenCommentElement(const librevenge::RVNGPropertyList &propList) :
299 m_propList(propList) {}
300 ~OpenCommentElement() override {}
301 void write(librevenge::RVNGTextInterface *iface) const override;
302 EPUBTextElement *clone()
303 {
304 return new OpenCommentElement(m_propList);
305 }
306 private:
307 librevenge::RVNGPropertyList m_propList;
308 };
309
310 class OpenEndnoteElement : public EPUBTextElement
311 {
312 public:
313 OpenEndnoteElement(const librevenge::RVNGPropertyList &propList) :
314 m_propList(propList) {}
315 ~OpenEndnoteElement() override {}
316 void write(librevenge::RVNGTextInterface *iface) const override;
317 EPUBTextElement *clone()
318 {
319 return new OpenEndnoteElement(m_propList);
320 }
321 private:
322 librevenge::RVNGPropertyList m_propList;
323 };
324
325 class OpenFooterElement : public EPUBTextElement
326 {
327 public:
328 OpenFooterElement(const librevenge::RVNGPropertyList &propList) :
329 m_propList(propList) {}
330 ~OpenFooterElement() override {}
331 void write(librevenge::RVNGTextInterface *iface) const override;
332 EPUBTextElement *clone()
333 {
334 return new OpenFooterElement(m_propList);
335 }
336 private:
337 librevenge::RVNGPropertyList m_propList;
338 };
339
340 class OpenFootnoteElement : public EPUBTextElement
341 {
342 public:
343 OpenFootnoteElement(const librevenge::RVNGPropertyList &propList) :
344 m_propList(propList) {}
345 ~OpenFootnoteElement() override {}
346 void write(librevenge::RVNGTextInterface *iface) const override;
347 EPUBTextElement *clone()
348 {
349 return new OpenFootnoteElement(m_propList);
350 }
351 private:
352 librevenge::RVNGPropertyList m_propList;
353 };
354
355 class OpenFrameElement : public EPUBTextElement
356 {
357 public:
358 OpenFrameElement(const librevenge::RVNGPropertyList &propList) :
359 m_propList(propList) {}
360 ~OpenFrameElement() override {}
361 void write(librevenge::RVNGTextInterface *iface) const override;
362 EPUBTextElement *clone()
363 {
364 return new OpenFrameElement(m_propList);
365 }
366 private:
367 librevenge::RVNGPropertyList m_propList;
368 };
369
370 class OpenHeaderElement : public EPUBTextElement
371 {
372 public:
373 OpenHeaderElement(const librevenge::RVNGPropertyList &propList) :
374 m_propList(propList) {}
375 ~OpenHeaderElement() override {}
376 void write(librevenge::RVNGTextInterface *iface) const override;
377 EPUBTextElement *clone()
378 {
379 return new OpenHeaderElement(m_propList);
380 }
381 private:
382 librevenge::RVNGPropertyList m_propList;
383 };
384
385 class OpenLinkElement : public EPUBTextElement
386 {
387 public:
388 OpenLinkElement(const librevenge::RVNGPropertyList &propList) :
389 m_propList(propList) {}
390 ~OpenLinkElement() override {}
391 void write(librevenge::RVNGTextInterface *iface) const override;
392 private:
393 librevenge::RVNGPropertyList m_propList;
394 };
395
396 class OpenListElementElement : public EPUBTextElement
397 {
398 public:
399 OpenListElementElement(const librevenge::RVNGPropertyList &propList) :
400 m_propList(propList) {}
401 ~OpenListElementElement() override {}
402 void write(librevenge::RVNGTextInterface *iface) const override;
403 private:
404 librevenge::RVNGPropertyList m_propList;
405 };
406
407 class OpenOrderedListLevelElement : public EPUBTextElement
408 {
409 public:
410 OpenOrderedListLevelElement(const librevenge::RVNGPropertyList &propList) :
411 m_propList(propList) {}
412 ~OpenOrderedListLevelElement() override {}
413 void write(librevenge::RVNGTextInterface *iface) const override;
414 private:
415 librevenge::RVNGPropertyList m_propList;
416 };
417
418 class OpenParagraphElement : public EPUBTextElement
419 {
420 public:
421 OpenParagraphElement(const librevenge::RVNGPropertyList &propList) :
422 m_propList(propList) {}
423 ~OpenParagraphElement() override {}
424 void write(librevenge::RVNGTextInterface *iface) const override;
425 private:
426 librevenge::RVNGPropertyList m_propList;
427 };
428
429 class OpenSpanElement : public EPUBTextElement
430 {
431 public:
432 OpenSpanElement(const librevenge::RVNGPropertyList &propList) :
433 m_propList(propList) {}
434 ~OpenSpanElement() override {}
435 void write(librevenge::RVNGTextInterface *iface) const override;
436 private:
437 librevenge::RVNGPropertyList m_propList;
438 };
439
440 class OpenTableElement : public EPUBTextElement
441 {
442 public:
443 OpenTableElement(const librevenge::RVNGPropertyList &propList) :
444 m_propList(propList) {}
445 ~OpenTableElement() override {}
446 void write(librevenge::RVNGTextInterface *iface) const override;
447 private:
448 librevenge::RVNGPropertyList m_propList;
449 };
450
451 class OpenTableCellElement : public EPUBTextElement
452 {
453 public:
454 OpenTableCellElement(const librevenge::RVNGPropertyList &propList) :
455 m_propList(propList) {}
456 ~OpenTableCellElement() override {}
457 void write(librevenge::RVNGTextInterface *iface) const override;
458 private:
459 librevenge::RVNGPropertyList m_propList;
460 };
461
462 class OpenTableRowElement : public EPUBTextElement
463 {
464 public:
465 OpenTableRowElement(const librevenge::RVNGPropertyList &propList) :
466 m_propList(propList) {}
467 ~OpenTableRowElement() override {}
468 void write(librevenge::RVNGTextInterface *iface) const override;
469 private:
470 librevenge::RVNGPropertyList m_propList;
471 };
472
473 class OpenUnorderedListLevelElement : public EPUBTextElement
474 {
475 public:
476 OpenUnorderedListLevelElement(const librevenge::RVNGPropertyList &propList) :
477 m_propList(propList) {}
478 ~OpenUnorderedListLevelElement() override {}
479 void write(librevenge::RVNGTextInterface *iface) const override;
480 private:
481 librevenge::RVNGPropertyList m_propList;
482 };
483
484 void CloseCommentElement::write(librevenge::RVNGTextInterface *iface) const
485 {
486 if (iface)
487 iface->closeComment();
488 }
489
490 void CloseEndnoteElement::write(librevenge::RVNGTextInterface *iface) const
491 {
492 if (iface)
493 iface->closeEndnote();
494 }
495
496 void CloseFooterElement::write(librevenge::RVNGTextInterface *iface) const
497 {
498 if (iface)
499 iface->closeFooter();
500 }
501
502 void CloseFootnoteElement::write(librevenge::RVNGTextInterface *iface) const
503 {
504 if (iface)
505 iface->closeFootnote();
506 }
507
508 void CloseFrameElement::write(librevenge::RVNGTextInterface *iface) const
509 {
510 if (iface)
511 iface->closeFrame();
512 }
513
514
515 void CloseHeaderElement::write(librevenge::RVNGTextInterface *iface) const
516 {
517 if (iface)
518 iface->closeHeader();
519 }
520
521 void CloseLinkElement::write(librevenge::RVNGTextInterface *iface) const
522 {
523 if (iface)
524 iface->closeLink();
525 }
526
527 void CloseListElementElement::write(librevenge::RVNGTextInterface *iface) const
528 {
529 if (iface)
530 iface->closeListElement();
531 }
532
533 void CloseOrderedListLevelElement::write(librevenge::RVNGTextInterface *iface) const
534 {
535 if (iface)
536 iface->closeOrderedListLevel();
537 }
538
539 void CloseParagraphElement::write(librevenge::RVNGTextInterface *iface) const
540 {
541 if (iface)
542 iface->closeParagraph();
543 }
544
545 void CloseSpanElement::write(librevenge::RVNGTextInterface *iface) const
546 {
547 if (iface)
548 iface->closeSpan();
549 }
550
551 void CloseTableElement::write(librevenge::RVNGTextInterface *iface) const
552 {
553 if (iface)
554 iface->closeTable();
555 }
556
557 void CloseTableCellElement::write(librevenge::RVNGTextInterface *iface) const
558 {
559 if (iface)
560 iface->closeTableCell();
561 }
562
563 void CloseTableRowElement::write(librevenge::RVNGTextInterface *iface) const
564 {
565 if (iface)
566 iface->closeTableRow();
567 }
568
569 void CloseUnorderedListLevelElement::write(librevenge::RVNGTextInterface *iface) const
570 {
571 if (iface)
572 iface->closeUnorderedListLevel();
573 }
574
575 void InsertBinaryObjectElement::write(librevenge::RVNGTextInterface *iface) const
576 {
577 if (iface)
578 iface->insertBinaryObject(m_propList);
579 }
580
581 void InsertCoveredTableCellElement::write(librevenge::RVNGTextInterface *iface) const
582 {
583 if (iface)
584 iface->insertCoveredTableCell(m_propList);
585 }
586
587 void InsertEquationElement::write(librevenge::RVNGTextInterface *iface) const
588 {
589 if (iface)
590 iface->insertEquation(m_propList);
591 }
592
593 void InsertFieldElement::write(librevenge::RVNGTextInterface *iface) const
594 {
595 if (iface)
596 iface->insertField(m_propList);
597 }
598
599 void InsertLineBreakElement::write(librevenge::RVNGTextInterface *iface) const
600 {
601 if (iface)
602 iface->insertLineBreak();
603 }
604
605 void InsertSpaceElement::write(librevenge::RVNGTextInterface *iface) const
606 {
607 if (iface)
608 iface->insertSpace();
609 }
610
611 void InsertTabElement::write(librevenge::RVNGTextInterface *iface) const
612 {
613 if (iface)
614 iface->insertTab();
615 }
616
617 void InsertTextElement::write(librevenge::RVNGTextInterface *iface) const
618 {
619 if (iface)
620 iface->insertText(m_text);
621 }
622
623 void OpenCommentElement::write(librevenge::RVNGTextInterface *iface) const
624 {
625 if (iface)
626 iface->openComment(m_propList);
627 }
628
629 void OpenEndnoteElement::write(librevenge::RVNGTextInterface *iface) const
630 {
631 if (iface)
632 iface->openEndnote(m_propList);
633 }
634
635 void OpenFooterElement::write(librevenge::RVNGTextInterface *iface) const
636 {
637 if (iface)
638 iface->openFooter(m_propList);
639 }
640
641 void OpenFootnoteElement::write(librevenge::RVNGTextInterface *iface) const
642 {
643 if (iface)
644 iface->openFootnote(m_propList);
645 }
646
647 void OpenFrameElement::write(librevenge::RVNGTextInterface *iface) const
648 {
649 if (iface)
650 iface->openFrame(m_propList);
651 }
652
653 void OpenHeaderElement::write(librevenge::RVNGTextInterface *iface) const
654 {
655 if (iface)
656 iface->openHeader(m_propList);
657 }
658
659 void OpenLinkElement::write(librevenge::RVNGTextInterface *iface) const
660 {
661 if (iface)
662 iface->openLink(m_propList);
663 }
664
665 void OpenListElementElement::write(librevenge::RVNGTextInterface *iface) const
666 {
667 if (iface)
668 iface->openListElement(m_propList);
669 }
670
671 void OpenOrderedListLevelElement::write(librevenge::RVNGTextInterface *iface) const
672 {
673 if (iface)
674 iface->openOrderedListLevel(m_propList);
675 }
676
677 void OpenParagraphElement::write(librevenge::RVNGTextInterface *iface) const
678 {
679 if (iface)
680 iface->openParagraph(m_propList);
681 }
682
683 void OpenSpanElement::write(librevenge::RVNGTextInterface *iface) const
684 {
685 if (iface)
686 iface->openSpan(m_propList);
687 }
688
689 void OpenTableElement::write(librevenge::RVNGTextInterface *iface) const
690 {
691 if (iface)
692 iface->openTable(m_propList);
693 }
694
695 void OpenTableCellElement::write(librevenge::RVNGTextInterface *iface) const
696 {
697 if (iface)
698 iface->openTableCell(m_propList);
699 }
700
701 void OpenTableRowElement::write(librevenge::RVNGTextInterface *iface) const
702 {
703 if (iface)
704 iface->openTableRow(m_propList);
705 }
706
707 void OpenUnorderedListLevelElement::write(librevenge::RVNGTextInterface *iface) const
708 {
709 if (iface)
710 iface->openUnorderedListLevel(m_propList);
711 }
712
713 }
714
715 EPUBTextElements::EPUBTextElements()
716 : m_elements()
717 {
718 }
719
720 EPUBTextElements::~EPUBTextElements()
721 {
722 }
723
724 void EPUBTextElements::write(librevenge::RVNGTextInterface *iface) const
725 {
726 for (const auto &element : m_elements)
727 element->write(iface);
728 }
729
730 void EPUBTextElements::addCloseComment()
731 {
732 m_elements.push_back(make_unique<CloseCommentElement>());
733 }
734
735 void EPUBTextElements::addCloseEndnote()
736 {
737 m_elements.push_back(make_unique<CloseEndnoteElement>());
738 }
739
740 void EPUBTextElements::addCloseFooter()
741 {
742 m_elements.push_back(make_unique<CloseFooterElement>());
743 }
744
745 void EPUBTextElements::addCloseFootnote()
746 {
747 m_elements.push_back(make_unique<CloseFootnoteElement>());
748 }
749
750 void EPUBTextElements::addCloseFrame()
751 {
752 m_elements.push_back(make_unique<CloseFrameElement>());
753 }
754
755 void EPUBTextElements::addCloseHeader()
756 {
757 m_elements.push_back(make_unique<CloseHeaderElement>());
758 }
759
760 void EPUBTextElements::addCloseLink()
761 {
762 m_elements.push_back(make_unique<CloseLinkElement>());
763 }
764
765 void EPUBTextElements::addCloseListElement()
766 {
767 m_elements.push_back(make_unique<CloseListElementElement>());
768 }
769
770 void EPUBTextElements::addCloseOrderedListLevel()
771 {
772 m_elements.push_back(make_unique<CloseOrderedListLevelElement>());
773 }
774
775 void EPUBTextElements::addCloseParagraph()
776 {
777 m_elements.push_back(make_unique<CloseParagraphElement>());
778 }
779
780 void EPUBTextElements::addCloseSpan()
781 {
782 m_elements.push_back(make_unique<CloseSpanElement>());
783 }
784
785 void EPUBTextElements::addCloseTable()
786 {
787 m_elements.push_back(make_unique<CloseTableElement>());
788 }
789
790 void EPUBTextElements::addCloseTableCell()
791 {
792 m_elements.push_back(make_unique<CloseTableCellElement>());
793 }
794
795 void EPUBTextElements::addCloseTableRow()
796 {
797 m_elements.push_back(make_unique<CloseTableRowElement>());
798 }
799
800 void EPUBTextElements::addCloseUnorderedListLevel()
801 {
802 m_elements.push_back(make_unique<CloseUnorderedListLevelElement>());
803 }
804
805 void EPUBTextElements::addInsertBinaryObject(const librevenge::RVNGPropertyList &propList)
806 {
807 m_elements.push_back(make_unique<InsertBinaryObjectElement>(propList));
808 }
809
810 void EPUBTextElements::addInsertCoveredTableCell(const librevenge::RVNGPropertyList &propList)
811 {
812 m_elements.push_back(make_unique<InsertCoveredTableCellElement>(propList));
813 }
814
815 void EPUBTextElements::addInsertEquation(const librevenge::RVNGPropertyList &propList)
816 {
817 m_elements.push_back(make_unique<InsertEquationElement>(propList));
818 }
819
820 void EPUBTextElements::addInsertField(const librevenge::RVNGPropertyList &propList)
821 {
822 m_elements.push_back(make_unique<InsertFieldElement>(propList));
823 }
824
825 void EPUBTextElements::addInsertLineBreak()
826 {
827 m_elements.push_back(make_unique<InsertLineBreakElement>());
828 }
829
830 void EPUBTextElements::addInsertSpace()
831 {
832 m_elements.push_back(make_unique<InsertSpaceElement>());
833 }
834
835 void EPUBTextElements::addInsertTab()
836 {
837 m_elements.push_back(make_unique<InsertTabElement>());
838 }
839
840 void EPUBTextElements::addInsertText(const librevenge::RVNGString &text)
841 {
842 m_elements.push_back(make_unique<InsertTextElement>(text));
843 }
844
845 void EPUBTextElements::addOpenComment(const librevenge::RVNGPropertyList &propList)
846 {
847 m_elements.push_back(make_unique<OpenCommentElement>(propList));
848 }
849
850 void EPUBTextElements::addOpenEndnote(const librevenge::RVNGPropertyList &propList)
851 {
852 m_elements.push_back(make_unique<OpenEndnoteElement>(propList));
853 }
854
855 void EPUBTextElements::addOpenFooter(const librevenge::RVNGPropertyList &propList)
856 {
857 m_elements.push_back(make_unique<OpenFooterElement>(propList));
858 }
859
860 void EPUBTextElements::addOpenFootnote(const librevenge::RVNGPropertyList &propList)
861 {
862 m_elements.push_back(make_unique<OpenFootnoteElement>(propList));
863 }
864
865 void EPUBTextElements::addOpenHeader(const librevenge::RVNGPropertyList &propList)
866 {
867 m_elements.push_back(make_unique<OpenHeaderElement>(propList));
868 }
869
870 void EPUBTextElements::addOpenFrame(const librevenge::RVNGPropertyList &propList)
871 {
872 m_elements.push_back(make_unique<OpenFrameElement>(propList));
873 }
874
875 void EPUBTextElements::addOpenLink(const librevenge::RVNGPropertyList &propList)
876 {
877 m_elements.push_back(make_unique<OpenLinkElement>(propList));
878 }
879
880 void EPUBTextElements::addOpenListElement(const librevenge::RVNGPropertyList &propList)
881 {
882 m_elements.push_back(make_unique<OpenListElementElement>(propList));
883 }
884
885 void EPUBTextElements::addOpenOrderedListLevel(const librevenge::RVNGPropertyList &propList)
886 {
887 m_elements.push_back(make_unique<OpenOrderedListLevelElement>(propList));
888 }
889
890 void EPUBTextElements::addOpenParagraph(const librevenge::RVNGPropertyList &propList)
891 {
892 m_elements.push_back(make_unique<OpenParagraphElement>(propList));
893 }
894
895 void EPUBTextElements::addOpenSpan(const librevenge::RVNGPropertyList &propList)
896 {
897 m_elements.push_back(make_unique<OpenSpanElement>(propList));
898 }
899
900 void EPUBTextElements::addOpenTable(const librevenge::RVNGPropertyList &propList)
901 {
902 m_elements.push_back(make_unique<OpenTableElement>(propList));
903 }
904
905 void EPUBTextElements::addOpenTableCell(const librevenge::RVNGPropertyList &propList)
906 {
907 m_elements.push_back(make_unique<OpenTableCellElement>(propList));
908 }
909
910 void EPUBTextElements::addOpenTableRow(const librevenge::RVNGPropertyList &propList)
911 {
912 m_elements.push_back(make_unique<OpenTableRowElement>(propList));
913 }
914
915 void EPUBTextElements::addOpenUnorderedListLevel(const librevenge::RVNGPropertyList &propList)
916 {
917 m_elements.push_back(make_unique<OpenUnorderedListLevelElement>(propList));
918 }
919
920 }
921
922 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */