STOFFGraphicEncoder.hxx Source File documentation

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>
40#include "libstaroffice_internal.hxx"
41
42class STOFFPropertyHandlerEncoder;
43
44namespace STOFFGraphicEncoderInternal
45{
46struct State;
47}
55 class STOFFGraphicEncoder : public librevenge::RVNGDrawingInterface
56{
57public:
59 STOFFGraphicEncoder();
61 ~STOFFGraphicEncoder();
63 bool getBinaryResult(STOFFEmbeddedObject &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();
116 void closeUnorderedListLevel();
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
128protected:
130 shared_ptr<STOFFGraphicEncoderInternal::State> m_state;
131};
132
133#endif
134
135// vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
STOFFGraphicEncoder::openLink
void openLink(const librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:263
STOFFGraphicEncoder::closeSpan
void closeSpan()
Definition STOFFGraphicEncoder.cxx:328
STOFFGraphicEncoder::openTableCell
void openTableCell(const librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:223
STOFFGraphicEncoder::openGroup
void openGroup(const ::librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:148
STOFFGraphicEncoder::startTextObject
void startTextObject(const ::librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:193
STOFFGraphicEncoder::defineEmbeddedFont
void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:98
STOFFGraphicEncoder::insertSpace
void insertSpace()
Definition STOFFGraphicEncoder.cxx:243
STOFFGraphicEncoder::drawEllipse
void drawEllipse(const ::librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:163
STOFFGraphicEncoder::drawPath
void drawPath(const ::librevenge::RVNGPropertyList &path)
Definition STOFFGraphicEncoder.cxx:178
STOFFGraphicEncoder::endEmbeddedGraphics
void endEmbeddedGraphics()
Definition STOFFGraphicEncoder.cxx:143
STOFFGraphicEncoder::closeGroup
void closeGroup()
Definition STOFFGraphicEncoder.cxx:153
STOFFGraphicEncoder::openSpan
void openSpan(const librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:323
STOFFGraphicEncoder::closeTableCell
void closeTableCell()
Definition STOFFGraphicEncoder.cxx:228
STOFFGraphicEncoder::insertField
void insertField(const librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:258
STOFFGraphicEncoder::endLayer
void endLayer()
Definition STOFFGraphicEncoder.cxx:133
STOFFGraphicEncoder::closeLink
void closeLink()
Definition STOFFGraphicEncoder.cxx:268
STOFFGraphicEncoder::m_state
shared_ptr< STOFFGraphicEncoderInternal::State > m_state
the actual state
Definition STOFFGraphicEncoder.hxx:130
STOFFGraphicEncoder::STOFFGraphicEncoder
STOFFGraphicEncoder()
constructor
Definition STOFFGraphicEncoder.cxx:66
STOFFGraphicEncoder::insertLineBreak
void insertLineBreak()
Definition STOFFGraphicEncoder.cxx:253
STOFFGraphicEncoder::insertTab
void insertTab()
Definition STOFFGraphicEncoder.cxx:238
STOFFGraphicEncoder::openOrderedListLevel
void openOrderedListLevel(const librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:273
STOFFGraphicEncoder::closeOrderedListLevel
void closeOrderedListLevel()
Definition STOFFGraphicEncoder.cxx:283
STOFFGraphicEncoder::openListElement
void openListElement(const librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:293
STOFFGraphicEncoder::drawPolygon
void drawPolygon(const ::librevenge::RVNGPropertyList &vertices)
Definition STOFFGraphicEncoder.cxx:168
STOFFGraphicEncoder::setStyle
void setStyle(const ::librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:123
STOFFGraphicEncoder::startMasterPage
void startMasterPage(const ::librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:113
STOFFGraphicEncoder::endTextObject
void endTextObject()
Definition STOFFGraphicEncoder.cxx:198
STOFFGraphicEncoder::drawPolyline
void drawPolyline(const ::librevenge::RVNGPropertyList &vertices)
Definition STOFFGraphicEncoder.cxx:173
STOFFGraphicEncoder::startLayer
void startLayer(const ::librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:128
STOFFGraphicEncoder::closeUnorderedListLevel
void closeUnorderedListLevel()
Definition STOFFGraphicEncoder.cxx:288
STOFFGraphicEncoder::drawConnector
void drawConnector(const ::librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:183
STOFFGraphicEncoder::startTableObject
void startTableObject(const librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:203
STOFFGraphicEncoder::openParagraph
void openParagraph(const librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:308
STOFFGraphicEncoder::endPage
void endPage()
Definition STOFFGraphicEncoder.cxx:108
STOFFGraphicEncoder::drawRectangle
void drawRectangle(const ::librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:158
STOFFGraphicEncoder::closeListElement
void closeListElement()
Definition STOFFGraphicEncoder.cxx:298
STOFFGraphicEncoder::closeParagraph
void closeParagraph()
Definition STOFFGraphicEncoder.cxx:313
STOFFGraphicEncoder::~STOFFGraphicEncoder
~STOFFGraphicEncoder()
destructor
Definition STOFFGraphicEncoder.cxx:70
STOFFGraphicEncoder::insertCoveredTableCell
void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:233
STOFFGraphicEncoder::defineParagraphStyle
void defineParagraphStyle(const librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:303
STOFFGraphicEncoder::openTableRow
void openTableRow(const librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:213
STOFFGraphicEncoder::insertText
void insertText(const librevenge::RVNGString &text)
Definition STOFFGraphicEncoder.cxx:248
STOFFGraphicEncoder::endTableObject
void endTableObject()
Definition STOFFGraphicEncoder.cxx:208
STOFFGraphicEncoder::endMasterPage
void endMasterPage()
Definition STOFFGraphicEncoder.cxx:118
STOFFGraphicEncoder::startEmbeddedGraphics
void startEmbeddedGraphics(const ::librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:138
STOFFGraphicEncoder::defineCharacterStyle
void defineCharacterStyle(const librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:318
STOFFGraphicEncoder::closeTableRow
void closeTableRow()
Definition STOFFGraphicEncoder.cxx:218
STOFFGraphicEncoder::getBinaryResult
bool getBinaryResult(STOFFEmbeddedObject &result)
return the final graphic
Definition STOFFGraphicEncoder.cxx:74
STOFFGraphicEncoder::startPage
void startPage(const ::librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:103
STOFFGraphicEncoder::openUnorderedListLevel
void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:278
STOFFGraphicEncoder::drawGraphicObject
void drawGraphicObject(const ::librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:188
STOFFGraphicEncoder::startDocument
void startDocument(const ::librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:83
STOFFGraphicEncoder::setDocumentMetaData
void setDocumentMetaData(const librevenge::RVNGPropertyList &propList)
Definition STOFFGraphicEncoder.cxx:93
STOFFGraphicEncoder::endDocument
void endDocument()
Definition STOFFGraphicEncoder.cxx:88
STOFFPropertyHandlerEncoder
write in librevenge::RVNGBinaryData a list of tags/and properties
Definition STOFFPropertyHandler.hxx:83
libstaroffice_internal.hxx
STOFFGraphicEncoderInternal
a name space used to define internal data of STOFFGraphicEncoder
Definition STOFFGraphicEncoder.cxx:53
STOFFEmbeddedObject
small class use to define a embedded object
Definition libstaroffice_internal.hxx:398
STOFFGraphicEncoderInternal::State
the state of a STOFFGraphicEncoder
Definition STOFFGraphicEncoder.cxx:55