STOFFGraphicEncoder.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
2
3/* libstaroffice
4* Version: MPL 2.0 / LGPLv2+
5*
6* The contents of this file are subject to the Mozilla Public License Version
7* 2.0 (the "License"); you may not use this file except in compliance with
8* the License or as specified alternatively below. You may obtain a copy of
9* the License at http://www.mozilla.org/MPL/
10*
11* Software distributed under the License is distributed on an "AS IS" basis,
12* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13* for the specific language governing rights and limitations under the
14* License.
15*
16* Major Contributor(s):
17* Copyright (C) 2006 Ariya Hidayat (ariya@kde.org)
18* Copyright (C) 2004 Marc Oude Kotte (marc@solcon.nl)
19* Copyright (C) 2002 William Lachance (wrlach@gmail.com)
20* Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
21* Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
22* Copyright (C) 2006, 2007 Andrew Ziem
23* Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
24*
25*
26* All Rights Reserved.
27*
28* For minor contributions see the git repository.
29*
30* Alternatively, the contents of this file may be used under the terms of
31* the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
32* in which case the provisions of the LGPLv2+ are applicable
33* instead of those above.
34*/
35
36#ifndef STOFF_GRAPHIC_ENCODER_HXX
37#define STOFF_GRAPHIC_ENCODER_HXX
38
39#include <librevenge/librevenge.h>
41
43
45{
46struct State;
47}
55class STOFFGraphicEncoder final : public librevenge::RVNGDrawingInterface
56{
57public:
64
65 void startDocument(const ::librevenge::RVNGPropertyList &propList) final;
66 void endDocument() final;
67
68 void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList) final;
69
70 void setDocumentMetaData(const librevenge::RVNGPropertyList &propList) final;
71 void startPage(const ::librevenge::RVNGPropertyList &propList) final;
72 void endPage() final;
73 void startMasterPage(const ::librevenge::RVNGPropertyList &propList) final;
74 void endMasterPage() final;
75
76 void setStyle(const ::librevenge::RVNGPropertyList &propList) final;
77 void startLayer(const ::librevenge::RVNGPropertyList &propList) final;
78 void endLayer() final;
79 void startEmbeddedGraphics(const ::librevenge::RVNGPropertyList &propList) final;
80 void endEmbeddedGraphics() final;
81 void openGroup(const ::librevenge::RVNGPropertyList &propList) final;
82 void closeGroup() final;
83
84
85 void drawRectangle(const ::librevenge::RVNGPropertyList &propList) final;
86 void drawEllipse(const ::librevenge::RVNGPropertyList &propList) final;
87 void drawPolygon(const ::librevenge::RVNGPropertyList &vertices) final;
88 void drawPolyline(const ::librevenge::RVNGPropertyList &vertices) final;
89 void drawPath(const ::librevenge::RVNGPropertyList &path) final;
90 void drawConnector(const ::librevenge::RVNGPropertyList &propList) final;
91
92 void drawGraphicObject(const ::librevenge::RVNGPropertyList &propList) final;
93
94 void startTextObject(const ::librevenge::RVNGPropertyList &propList) final;
95 void endTextObject() final;
96
97 void startTableObject(const librevenge::RVNGPropertyList &propList) final;
98 void endTableObject() final;
99 void openTableRow(const librevenge::RVNGPropertyList &propList) final;
100 void closeTableRow() final;
101 void openTableCell(const librevenge::RVNGPropertyList &propList) final;
102 void closeTableCell() final;
103 void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList) 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 openLink(const librevenge::RVNGPropertyList &propList) final;
112 void closeLink() final;
113 void openOrderedListLevel(const librevenge::RVNGPropertyList &propList) final;
114 void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList) final;
115 void closeOrderedListLevel() final;
116 void closeUnorderedListLevel() final;
117 void openListElement(const librevenge::RVNGPropertyList &propList) final;
118 void closeListElement() final;
119
120 void defineParagraphStyle(const librevenge::RVNGPropertyList &propList) final;
121 void openParagraph(const librevenge::RVNGPropertyList &propList) final;
122 void closeParagraph() final;
123
124 void defineCharacterStyle(const librevenge::RVNGPropertyList &propList) final;
125 void openSpan(const librevenge::RVNGPropertyList &propList) final;
126 void closeSpan() final;
127
128protected:
130 std::shared_ptr<STOFFGraphicEncoderInternal::State> m_state;
131};
132
133#endif
134
135// vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
main class used to define store librevenge::RVNGDrawingInterface lists of command in a librevenge::RV...
Definition: STOFFGraphicEncoder.hxx:56
void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:280
void endPage() final
Definition: STOFFGraphicEncoder.cxx:110
void insertText(const librevenge::RVNGString &text) final
Definition: STOFFGraphicEncoder.cxx:250
void closeOrderedListLevel() final
Definition: STOFFGraphicEncoder.cxx:285
void startDocument(const ::librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:85
void closeGroup() final
Definition: STOFFGraphicEncoder.cxx:155
void openTableRow(const librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:215
void defineCharacterStyle(const librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:320
void defineParagraphStyle(const librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:305
void drawConnector(const ::librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:185
~STOFFGraphicEncoder() final
destructor
Definition: STOFFGraphicEncoder.cxx:72
void openListElement(const librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:295
void closeParagraph() final
Definition: STOFFGraphicEncoder.cxx:315
void closeUnorderedListLevel() final
Definition: STOFFGraphicEncoder.cxx:290
void openTableCell(const librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:225
void closeListElement() final
Definition: STOFFGraphicEncoder.cxx:300
void openLink(const librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:265
void drawRectangle(const ::librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:160
STOFFGraphicEncoder()
constructor
Definition: STOFFGraphicEncoder.cxx:66
void endEmbeddedGraphics() final
Definition: STOFFGraphicEncoder.cxx:145
void endDocument() final
Definition: STOFFGraphicEncoder.cxx:90
void openOrderedListLevel(const librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:275
void endTableObject() final
Definition: STOFFGraphicEncoder.cxx:210
void insertSpace() final
Definition: STOFFGraphicEncoder.cxx:245
void startTableObject(const librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:205
void closeTableRow() final
Definition: STOFFGraphicEncoder.cxx:220
void startTextObject(const ::librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:195
void openGroup(const ::librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:150
void insertLineBreak() final
Definition: STOFFGraphicEncoder.cxx:255
void closeTableCell() final
Definition: STOFFGraphicEncoder.cxx:230
void startEmbeddedGraphics(const ::librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:140
void closeSpan() final
Definition: STOFFGraphicEncoder.cxx:330
void insertField(const librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:260
void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:235
void endTextObject() final
Definition: STOFFGraphicEncoder.cxx:200
void drawPolygon(const ::librevenge::RVNGPropertyList &vertices) final
Definition: STOFFGraphicEncoder.cxx:170
void startPage(const ::librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:105
void drawPath(const ::librevenge::RVNGPropertyList &path) final
Definition: STOFFGraphicEncoder.cxx:180
void startMasterPage(const ::librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:115
void endMasterPage() final
Definition: STOFFGraphicEncoder.cxx:120
void closeLink() final
Definition: STOFFGraphicEncoder.cxx:270
void openSpan(const librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:325
void endLayer() final
Definition: STOFFGraphicEncoder.cxx:135
void startLayer(const ::librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:130
void setStyle(const ::librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:125
void drawGraphicObject(const ::librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:190
void openParagraph(const librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:310
void setDocumentMetaData(const librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:95
std::shared_ptr< STOFFGraphicEncoderInternal::State > m_state
the actual state
Definition: STOFFGraphicEncoder.hxx:130
bool getBinaryResult(STOFFEmbeddedObject &result)
return the final graphic
Definition: STOFFGraphicEncoder.cxx:76
void insertTab() final
Definition: STOFFGraphicEncoder.cxx:240
void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:100
void drawPolyline(const ::librevenge::RVNGPropertyList &vertices) final
Definition: STOFFGraphicEncoder.cxx:175
void drawEllipse(const ::librevenge::RVNGPropertyList &propList) final
Definition: STOFFGraphicEncoder.cxx:165
write in librevenge::RVNGBinaryData a list of tags/and properties
Definition: STOFFPropertyHandler.hxx:83
a name space used to define internal data of STOFFGraphicEncoder
Definition: STOFFGraphicEncoder.cxx:53
small class use to define a embedded object
Definition: libstaroffice_internal.hxx:408

Generated on Fri Apr 14 2023 04:41:10 for libstaroffice by doxygen 1.9.6