MWAWGraphicEncoder.hxx Source File documentation

MWAWGraphicEncoder.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 /* libmwaw
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 MWAW_GRAPHIC_ENCODER_HXX
37 #define MWAW_GRAPHIC_ENCODER_HXX
38
39 #include <librevenge/librevenge.h>
40 #include "libmwaw_internal.hxx"
41
42 class MWAWPropertyHandlerEncoder;
43
44 namespace MWAWGraphicEncoderInternal
45 {
46 struct State;
47 }
55 class MWAWGraphicEncoder final : public librevenge::RVNGDrawingInterface
56 {
57 public:
59 MWAWGraphicEncoder();
61 ~MWAWGraphicEncoder() final;
63 bool getBinaryResult(MWAWEmbeddedObject &result);
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
128 protected:
130 std::shared_ptr<MWAWGraphicEncoderInternal::State> m_state;
131 };
132
133 #endif
134
135 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWGraphicEncoder::closeGroup
void closeGroup() final
Definition: MWAWGraphicEncoder.cxx:156
MWAWGraphicEncoder::drawGraphicObject
void drawGraphicObject(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:191
MWAWGraphicEncoder::endTextObject
void endTextObject() final
Definition: MWAWGraphicEncoder.cxx:201
MWAWGraphicEncoder::endPage
void endPage() final
Definition: MWAWGraphicEncoder.cxx:111
MWAWGraphicEncoder::setStyle
void setStyle(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:126
libmwaw_internal.hxx
MWAWGraphicEncoder::openTableRow
void openTableRow(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:216
MWAWGraphicEncoder::endMasterPage
void endMasterPage() final
Definition: MWAWGraphicEncoder.cxx:121
MWAWGraphicEncoder::closeParagraph
void closeParagraph() final
Definition: MWAWGraphicEncoder.cxx:316
MWAWGraphicEncoder::defineCharacterStyle
void defineCharacterStyle(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:321
MWAWGraphicEncoder::openUnorderedListLevel
void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:281
MWAWGraphicEncoder::endLayer
void endLayer() final
Definition: MWAWGraphicEncoder.cxx:136
MWAWGraphicEncoder::openLink
void openLink(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:266
MWAWPropertyHandlerEncoder
write in librevenge::RVNGBinaryData a list of tags/and properties
Definition: MWAWPropertyHandler.hxx:83
MWAWGraphicEncoder::MWAWGraphicEncoder
MWAWGraphicEncoder()
constructor
Definition: MWAWGraphicEncoder.cxx:67
MWAWGraphicEncoder::defineEmbeddedFont
void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:101
MWAWGraphicEncoder::closeUnorderedListLevel
void closeUnorderedListLevel() final
Definition: MWAWGraphicEncoder.cxx:291
MWAWGraphicEncoder::openGroup
void openGroup(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:151
MWAWGraphicEncoder::drawPolyline
void drawPolyline(const librevenge::RVNGPropertyList &vertices) final
Definition: MWAWGraphicEncoder.cxx:176
MWAWGraphicEncoder::openParagraph
void openParagraph(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:311
MWAWGraphicEncoder::insertText
void insertText(const librevenge::RVNGString &text) final
Definition: MWAWGraphicEncoder.cxx:251
MWAWGraphicEncoder::drawRectangle
void drawRectangle(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:161
MWAWGraphicEncoder::drawPolygon
void drawPolygon(const librevenge::RVNGPropertyList &vertices) final
Definition: MWAWGraphicEncoder.cxx:171
MWAWGraphicEncoder::startDocument
void startDocument(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:86
MWAWGraphicEncoder::endEmbeddedGraphics
void endEmbeddedGraphics() final
Definition: MWAWGraphicEncoder.cxx:146
MWAWGraphicEncoderInternal
a name space used to define internal data of MWAWGraphicEncoder
Definition: MWAWGraphicEncoder.cxx:52
MWAWGraphicEncoder::openOrderedListLevel
void openOrderedListLevel(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:276
MWAWGraphicEncoder::insertCoveredTableCell
void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:236
MWAWGraphicEncoder::insertTab
void insertTab() final
Definition: MWAWGraphicEncoder.cxx:241
MWAWGraphicEncoder::startMasterPage
void startMasterPage(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:116
MWAWGraphicEncoder::~MWAWGraphicEncoder
~MWAWGraphicEncoder() final
destructor
Definition: MWAWGraphicEncoder.cxx:73
MWAWGraphicEncoder::closeLink
void closeLink() final
Definition: MWAWGraphicEncoder.cxx:271
MWAWGraphicEncoder::defineParagraphStyle
void defineParagraphStyle(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:306
MWAWGraphicEncoder::openTableCell
void openTableCell(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:226
MWAWEmbeddedObject
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
MWAWGraphicEncoder::setDocumentMetaData
void setDocumentMetaData(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:96
MWAWGraphicEncoder::closeTableCell
void closeTableCell() final
Definition: MWAWGraphicEncoder.cxx:231
MWAWGraphicEncoder::insertField
void insertField(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:261
MWAWGraphicEncoder::insertSpace
void insertSpace() final
Definition: MWAWGraphicEncoder.cxx:246
MWAWGraphicEncoder::drawPath
void drawPath(const librevenge::RVNGPropertyList &path) final
Definition: MWAWGraphicEncoder.cxx:181
MWAWGraphicEncoder::startLayer
void startLayer(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:131
MWAWGraphicEncoder::insertLineBreak
void insertLineBreak() final
Definition: MWAWGraphicEncoder.cxx:256
MWAWGraphicEncoder::closeTableRow
void closeTableRow() final
Definition: MWAWGraphicEncoder.cxx:221
MWAWGraphicEncoder::endDocument
void endDocument() final
Definition: MWAWGraphicEncoder.cxx:91
MWAWGraphicEncoder::drawEllipse
void drawEllipse(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:166
MWAWGraphicEncoder::drawConnector
void drawConnector(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:186
MWAWGraphicEncoder::closeSpan
void closeSpan() final
Definition: MWAWGraphicEncoder.cxx:331
MWAWGraphicEncoder::startPage
void startPage(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:106
MWAWGraphicEncoder::startEmbeddedGraphics
void startEmbeddedGraphics(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:141
MWAWGraphicEncoder::closeOrderedListLevel
void closeOrderedListLevel() final
Definition: MWAWGraphicEncoder.cxx:286
MWAWGraphicEncoder::startTableObject
void startTableObject(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:206
MWAWGraphicEncoder
main class used to define store librevenge::RVNGDrawingInterface lists of command in a librevenge::RV...
Definition: MWAWGraphicEncoder.hxx:55
MWAWGraphicEncoder::endTableObject
void endTableObject() final
Definition: MWAWGraphicEncoder.cxx:211
MWAWGraphicEncoder::m_state
std::shared_ptr< MWAWGraphicEncoderInternal::State > m_state
the actual state
Definition: MWAWGraphicEncoder.hxx:130
MWAWGraphicEncoder::closeListElement
void closeListElement() final
Definition: MWAWGraphicEncoder.cxx:301
MWAWGraphicEncoder::openSpan
void openSpan(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:326
MWAWGraphicEncoder::openListElement
void openListElement(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:296
MWAWGraphicEncoder::getBinaryResult
bool getBinaryResult(MWAWEmbeddedObject &result)
return the final graphic
Definition: MWAWGraphicEncoder.cxx:77
MWAWGraphicEncoder::startTextObject
void startTextObject(const librevenge::RVNGPropertyList &propList) final
Definition: MWAWGraphicEncoder.cxx:196