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 
43 
45 {
46 struct State;
47 }
55 class MWAWGraphicEncoder : public librevenge::RVNGDrawingInterface
56 {
57 public:
63  bool getBinaryResult(MWAWEmbeddedObject &result);
64 
65  void startDocument(const ::librevenge::RVNGPropertyList &propList);
66  void endDocument();
67 
68  void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList);
69 
70  void setDocumentMetaData(const librevenge::RVNGPropertyList &propList);
71  void startPage(const ::librevenge::RVNGPropertyList &propList);
72  void endPage();
73  void startMasterPage(const ::librevenge::RVNGPropertyList &propList);
74  void endMasterPage();
75 
76  void setStyle(const ::librevenge::RVNGPropertyList &propList);
77  void startLayer(const ::librevenge::RVNGPropertyList &propList);
78  void endLayer();
79  void startEmbeddedGraphics(const ::librevenge::RVNGPropertyList &propList);
80  void endEmbeddedGraphics();
81  void openGroup(const ::librevenge::RVNGPropertyList &propList);
82  void closeGroup();
83 
84 
85  void drawRectangle(const ::librevenge::RVNGPropertyList &propList);
86  void drawEllipse(const ::librevenge::RVNGPropertyList &propList);
87  void drawPolygon(const ::librevenge::RVNGPropertyList &vertices);
88  void drawPolyline(const ::librevenge::RVNGPropertyList &vertices);
89  void drawPath(const ::librevenge::RVNGPropertyList &path);
90  void drawConnector(const ::librevenge::RVNGPropertyList &propList);
91 
92  void drawGraphicObject(const ::librevenge::RVNGPropertyList &propList);
93 
94  void startTextObject(const ::librevenge::RVNGPropertyList &propList);
95  void endTextObject();
96 
97  void startTableObject(const librevenge::RVNGPropertyList &propList);
98  void endTableObject();
99  void openTableRow(const librevenge::RVNGPropertyList &propList);
100  void closeTableRow();
101  void openTableCell(const librevenge::RVNGPropertyList &propList);
102  void closeTableCell();
103  void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList);
104 
105  void insertTab();
106  void insertSpace();
107  void insertText(const librevenge::RVNGString &text);
108  void insertLineBreak();
109  void insertField(const librevenge::RVNGPropertyList &propList);
110 
111  void openLink(const librevenge::RVNGPropertyList &propList);
112  void closeLink();
113  void openOrderedListLevel(const librevenge::RVNGPropertyList &propList);
114  void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList);
115  void closeOrderedListLevel();
117  void openListElement(const librevenge::RVNGPropertyList &propList);
118  void closeListElement();
119 
120  void defineParagraphStyle(const librevenge::RVNGPropertyList &propList);
121  void openParagraph(const librevenge::RVNGPropertyList &propList);
122  void closeParagraph();
123 
124  void defineCharacterStyle(const librevenge::RVNGPropertyList &propList);
125  void openSpan(const librevenge::RVNGPropertyList &propList);
126  void closeSpan();
127 
128 protected:
130  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::startDocument
void startDocument(const ::librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:83
MWAWGraphicEncoder::openListElement
void openListElement(const librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:293
MWAWGraphicEncoder::closeTableRow
void closeTableRow()
Definition: MWAWGraphicEncoder.cxx:218
MWAWGraphicEncoder::openTableCell
void openTableCell(const librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:223
MWAWGraphicEncoder::openLink
void openLink(const librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:263
MWAWGraphicEncoder::defineEmbeddedFont
void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:98
MWAWGraphicEncoder::setStyle
void setStyle(const ::librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:123
MWAWGraphicEncoder::drawPolygon
void drawPolygon(const ::librevenge::RVNGPropertyList &vertices)
Definition: MWAWGraphicEncoder.cxx:168
MWAWEmbeddedObject
small class use to define a embedded object
Definition: libmwaw_internal.hxx:425
MWAWGraphicEncoder::endLayer
void endLayer()
Definition: MWAWGraphicEncoder.cxx:133
MWAWGraphicEncoder::insertCoveredTableCell
void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:233
MWAWGraphicEncoder::closeParagraph
void closeParagraph()
Definition: MWAWGraphicEncoder.cxx:313
MWAWGraphicEncoder::insertText
void insertText(const librevenge::RVNGString &text)
Definition: MWAWGraphicEncoder.cxx:248
MWAWGraphicEncoder::openSpan
void openSpan(const librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:323
MWAWGraphicEncoder::insertSpace
void insertSpace()
Definition: MWAWGraphicEncoder.cxx:243
MWAWGraphicEncoder::endEmbeddedGraphics
void endEmbeddedGraphics()
Definition: MWAWGraphicEncoder.cxx:143
MWAWGraphicEncoder::closeOrderedListLevel
void closeOrderedListLevel()
Definition: MWAWGraphicEncoder.cxx:283
MWAWGraphicEncoder::drawConnector
void drawConnector(const ::librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:183
MWAWGraphicEncoder::closeTableCell
void closeTableCell()
Definition: MWAWGraphicEncoder.cxx:228
MWAWGraphicEncoder.hxx
libmwaw_internal.hxx
MWAWGraphicEncoder::startPage
void startPage(const ::librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:103
MWAWGraphicEncoder::openGroup
void openGroup(const ::librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:148
MWAWGraphicEncoder::endTextObject
void endTextObject()
Definition: MWAWGraphicEncoder.cxx:198
MWAWGraphicEncoder::~MWAWGraphicEncoder
~MWAWGraphicEncoder()
destructor
Definition: MWAWGraphicEncoder.cxx:70
MWAWGraphicEncoder::startLayer
void startLayer(const ::librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:128
MWAWGraphicEncoder::drawEllipse
void drawEllipse(const ::librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:163
MWAWGraphicEncoder::closeUnorderedListLevel
void closeUnorderedListLevel()
Definition: MWAWGraphicEncoder.cxx:288
MWAWGraphicEncoder::getBinaryResult
bool getBinaryResult(MWAWEmbeddedObject &result)
return the final graphic
Definition: MWAWGraphicEncoder.cxx:74
MWAWGraphicEncoderInternal::State::m_encoder
MWAWPropertyHandlerEncoder m_encoder
the encoder
Definition: MWAWGraphicEncoder.cxx:61
MWAWGraphicEncoder::endDocument
void endDocument()
Definition: MWAWGraphicEncoder.cxx:88
MWAWGraphicEncoder::startTextObject
void startTextObject(const ::librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:193
MWAWGraphicEncoder::drawPolyline
void drawPolyline(const ::librevenge::RVNGPropertyList &vertices)
Definition: MWAWGraphicEncoder.cxx:173
MWAWGraphicEncoderInternal::State::State
State()
constructor
Definition: MWAWGraphicEncoder.cxx:57
MWAWGraphicEncoder::openUnorderedListLevel
void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:278
MWAWGraphicEncoder::startEmbeddedGraphics
void startEmbeddedGraphics(const ::librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:138
MWAWGraphicEncoderInternal::State
the state of a MWAWGraphicEncoder
Definition: MWAWGraphicEncoder.cxx:55
MWAWGraphicEncoder
main class used to define store librevenge::RVNGDrawingInterface lists of command in a librevenge::RV...
Definition: MWAWGraphicEncoder.hxx:56
MWAWGraphicEncoder::endPage
void endPage()
Definition: MWAWGraphicEncoder.cxx:108
MWAWGraphicEncoder::startMasterPage
void startMasterPage(const ::librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:113
MWAWGraphicEncoder::insertField
void insertField(const librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:258
MWAWGraphicEncoder::drawPath
void drawPath(const ::librevenge::RVNGPropertyList &path)
Definition: MWAWGraphicEncoder.cxx:178
MWAWGraphicEncoder::insertLineBreak
void insertLineBreak()
Definition: MWAWGraphicEncoder.cxx:253
MWAWGraphicEncoder::closeGroup
void closeGroup()
Definition: MWAWGraphicEncoder.cxx:153
MWAWGraphicEncoder::m_state
shared_ptr< MWAWGraphicEncoderInternal::State > m_state
the actual state
Definition: MWAWGraphicEncoder.hxx:130
MWAWGraphicEncoder::drawGraphicObject
void drawGraphicObject(const ::librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:188
MWAWPropertyHandler.hxx
MWAWGraphicEncoder::openParagraph
void openParagraph(const librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:308
MWAWPropertyHandlerEncoder
write in librevenge::RVNGBinaryData a list of tags/and properties
Definition: MWAWPropertyHandler.hxx:82
MWAWGraphicEncoder::openOrderedListLevel
void openOrderedListLevel(const librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:273
libmwaw.hxx
libmwaw API: main libmwaw interface header
MWAWGraphicEncoder::openTableRow
void openTableRow(const librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:213
MWAWGraphicEncoder::drawRectangle
void drawRectangle(const ::librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:158
MWAWGraphicEncoder::setDocumentMetaData
void setDocumentMetaData(const librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:93
MWAWGraphicEncoder::MWAWGraphicEncoder
MWAWGraphicEncoder()
constructor
Definition: MWAWGraphicEncoder.cxx:66
librevenge
Definition: MWAWDocument.hxx:57
MWAWGraphicEncoder::endTableObject
void endTableObject()
Definition: MWAWGraphicEncoder.cxx:208
MWAWGraphicEncoder::closeSpan
void closeSpan()
Definition: MWAWGraphicEncoder.cxx:328
MWAWGraphicEncoder::defineParagraphStyle
void defineParagraphStyle(const librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:303
MWAWGraphicEncoder::closeListElement
void closeListElement()
Definition: MWAWGraphicEncoder.cxx:298
MWAWGraphicEncoder::defineCharacterStyle
void defineCharacterStyle(const librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:318
MWAWGraphicEncoder::closeLink
void closeLink()
Definition: MWAWGraphicEncoder.cxx:268
MWAWGraphicEncoder::insertTab
void insertTab()
Definition: MWAWGraphicEncoder.cxx:238
MWAWGraphicEncoder::startTableObject
void startTableObject(const librevenge::RVNGPropertyList &propList)
Definition: MWAWGraphicEncoder.cxx:203
MWAWGraphicEncoderInternal
a name space used to define internal data of MWAWGraphicEncoder
Definition: MWAWGraphicEncoder.cxx:53
MWAWGraphicEncoder::endMasterPage
void endMasterPage()
Definition: MWAWGraphicEncoder.cxx:118

Generated on Wed Jun 17 2020 06:30:11 for libmwaw by doxygen 1.8.18