MWAWGraphicEncoder.hxx
Go to the documentation of this file.
/* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
/* libmwaw
* Version: MPL 2.0 / LGPLv2+
*
* The contents of this file are subject to the Mozilla Public License Version
* 2.0 (the "License"); you may not use this file except in compliance with
* the License or as specified alternatively below. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* Major Contributor(s):
* Copyright (C) 2006 Ariya Hidayat (ariya@kde.org)
* Copyright (C) 2004 Marc Oude Kotte (marc@solcon.nl)
* Copyright (C) 2002 William Lachance (wrlach@gmail.com)
* Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
* Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
* Copyright (C) 2006, 2007 Andrew Ziem
* Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
*
*
* All Rights Reserved.
*
* For minor contributions see the git repository.
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
* in which case the provisions of the LGPLv2+ are applicable
* instead of those above.
*/
#ifndef MWAW_GRAPHIC_ENCODER_HXX
#define MWAW_GRAPHIC_ENCODER_HXX
#include <librevenge/librevenge.h>
#include "libmwaw_internal.hxx"
class MWAWPropertyHandlerEncoder;
namespace MWAWGraphicEncoderInternal
{
struct State;
}
class MWAWGraphicEncoder final : public librevenge::RVNGDrawingInterface
{
public:
MWAWGraphicEncoder();
~MWAWGraphicEncoder() final;
bool getBinaryResult(MWAWEmbeddedObject &result);
void startDocument(const librevenge::RVNGPropertyList &propList) final;
void endDocument() final;
void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList) final;
void setDocumentMetaData(const librevenge::RVNGPropertyList &propList) final;
void startPage(const librevenge::RVNGPropertyList &propList) final;
void endPage() final;
void startMasterPage(const librevenge::RVNGPropertyList &propList) final;
void endMasterPage() final;
void setStyle(const librevenge::RVNGPropertyList &propList) final;
void startLayer(const librevenge::RVNGPropertyList &propList) final;
void endLayer() final;
void startEmbeddedGraphics(const librevenge::RVNGPropertyList &propList) final;
void endEmbeddedGraphics() final;
void openGroup(const librevenge::RVNGPropertyList &propList) final;
void closeGroup() final;
void drawRectangle(const librevenge::RVNGPropertyList &propList) final;
void drawEllipse(const librevenge::RVNGPropertyList &propList) final;
void drawPolygon(const librevenge::RVNGPropertyList &vertices) final;
void drawPolyline(const librevenge::RVNGPropertyList &vertices) final;
void drawPath(const librevenge::RVNGPropertyList &path) final;
void drawConnector(const librevenge::RVNGPropertyList &propList) final;
void drawGraphicObject(const librevenge::RVNGPropertyList &propList) final;
void startTextObject(const librevenge::RVNGPropertyList &propList) final;
void endTextObject() final;
void startTableObject(const librevenge::RVNGPropertyList &propList) final;
void endTableObject() final;
void openTableRow(const librevenge::RVNGPropertyList &propList) final;
void closeTableRow() final;
void openTableCell(const librevenge::RVNGPropertyList &propList) final;
void closeTableCell() final;
void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList) final;
void insertTab() final;
void insertSpace() final;
void insertText(const librevenge::RVNGString &text) final;
void insertLineBreak() final;
void insertField(const librevenge::RVNGPropertyList &propList) final;
void openLink(const librevenge::RVNGPropertyList &propList) final;
void closeLink() final;
void openOrderedListLevel(const librevenge::RVNGPropertyList &propList) final;
void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList) final;
void closeOrderedListLevel() final;
void closeUnorderedListLevel() final;
void openListElement(const librevenge::RVNGPropertyList &propList) final;
void closeListElement() final;
void defineParagraphStyle(const librevenge::RVNGPropertyList &propList) final;
void openParagraph(const librevenge::RVNGPropertyList &propList) final;
void closeParagraph() final;
void defineCharacterStyle(const librevenge::RVNGPropertyList &propList) final;
void openSpan(const librevenge::RVNGPropertyList &propList) final;
void closeSpan() final;
protected:
std::shared_ptr<MWAWGraphicEncoderInternal::State> m_state;
};
#endif
// vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWGraphicEncoder::insertTab
void insertTab() final
Definition MWAWGraphicEncoder.cxx:241
MWAWGraphicEncoder::closeTableCell
void closeTableCell() final
Definition MWAWGraphicEncoder.cxx:231
MWAWGraphicEncoder::closeGroup
void closeGroup() final
Definition MWAWGraphicEncoder.cxx:156
MWAWGraphicEncoder::startMasterPage
void startMasterPage(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:116
MWAWGraphicEncoder::drawPolygon
void drawPolygon(const librevenge::RVNGPropertyList &vertices) final
Definition MWAWGraphicEncoder.cxx:171
MWAWGraphicEncoder::setStyle
void setStyle(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:126
MWAWGraphicEncoder::getBinaryResult
bool getBinaryResult(MWAWEmbeddedObject &result)
return the final graphic
Definition MWAWGraphicEncoder.cxx:77
MWAWGraphicEncoder::endEmbeddedGraphics
void endEmbeddedGraphics() final
Definition MWAWGraphicEncoder.cxx:146
MWAWGraphicEncoder::insertLineBreak
void insertLineBreak() final
Definition MWAWGraphicEncoder.cxx:256
MWAWGraphicEncoder::m_state
std::shared_ptr< MWAWGraphicEncoderInternal::State > m_state
the actual state
Definition MWAWGraphicEncoder.hxx:130
MWAWGraphicEncoder::closeOrderedListLevel
void closeOrderedListLevel() final
Definition MWAWGraphicEncoder.cxx:286
MWAWGraphicEncoder::startEmbeddedGraphics
void startEmbeddedGraphics(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:141
MWAWGraphicEncoder::openGroup
void openGroup(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:151
MWAWGraphicEncoder::endLayer
void endLayer() final
Definition MWAWGraphicEncoder.cxx:136
MWAWGraphicEncoder::drawRectangle
void drawRectangle(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:161
MWAWGraphicEncoder::openTableCell
void openTableCell(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:226
MWAWGraphicEncoder::openUnorderedListLevel
void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:281
MWAWGraphicEncoder::startTextObject
void startTextObject(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:196
MWAWGraphicEncoder::startDocument
void startDocument(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:86
MWAWGraphicEncoder::endMasterPage
void endMasterPage() final
Definition MWAWGraphicEncoder.cxx:121
MWAWGraphicEncoder::insertCoveredTableCell
void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:236
MWAWGraphicEncoder::openLink
void openLink(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:266
MWAWGraphicEncoder::defineCharacterStyle
void defineCharacterStyle(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:321
MWAWGraphicEncoder::openOrderedListLevel
void openOrderedListLevel(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:276
MWAWGraphicEncoder::insertField
void insertField(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:261
MWAWGraphicEncoder::~MWAWGraphicEncoder
~MWAWGraphicEncoder() final
destructor
Definition MWAWGraphicEncoder.cxx:73
MWAWGraphicEncoder::closeTableRow
void closeTableRow() final
Definition MWAWGraphicEncoder.cxx:221
MWAWGraphicEncoder::endTableObject
void endTableObject() final
Definition MWAWGraphicEncoder.cxx:211
MWAWGraphicEncoder::closeParagraph
void closeParagraph() final
Definition MWAWGraphicEncoder.cxx:316
MWAWGraphicEncoder::insertSpace
void insertSpace() final
Definition MWAWGraphicEncoder.cxx:246
MWAWGraphicEncoder::startTableObject
void startTableObject(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:206
MWAWGraphicEncoder::defineEmbeddedFont
void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:101
MWAWGraphicEncoder::endTextObject
void endTextObject() final
Definition MWAWGraphicEncoder.cxx:201
MWAWGraphicEncoder::startLayer
void startLayer(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:131
MWAWGraphicEncoder::setDocumentMetaData
void setDocumentMetaData(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:96
MWAWGraphicEncoder::drawPath
void drawPath(const librevenge::RVNGPropertyList &path) final
Definition MWAWGraphicEncoder.cxx:181
MWAWGraphicEncoder::drawEllipse
void drawEllipse(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:166
MWAWGraphicEncoder::openTableRow
void openTableRow(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:216
MWAWGraphicEncoder::startPage
void startPage(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:106
MWAWGraphicEncoder::drawPolyline
void drawPolyline(const librevenge::RVNGPropertyList &vertices) final
Definition MWAWGraphicEncoder.cxx:176
MWAWGraphicEncoder::MWAWGraphicEncoder
MWAWGraphicEncoder()
constructor
Definition MWAWGraphicEncoder.cxx:67
MWAWGraphicEncoder::closeUnorderedListLevel
void closeUnorderedListLevel() final
Definition MWAWGraphicEncoder.cxx:291
MWAWGraphicEncoder::defineParagraphStyle
void defineParagraphStyle(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:306
MWAWGraphicEncoder::closeLink
void closeLink() final
Definition MWAWGraphicEncoder.cxx:271
MWAWGraphicEncoder::closeSpan
void closeSpan() final
Definition MWAWGraphicEncoder.cxx:331
MWAWGraphicEncoder::openListElement
void openListElement(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:296
MWAWGraphicEncoder::endPage
void endPage() final
Definition MWAWGraphicEncoder.cxx:111
MWAWGraphicEncoder::drawConnector
void drawConnector(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:186
MWAWGraphicEncoder::openSpan
void openSpan(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:326
MWAWGraphicEncoder::endDocument
void endDocument() final
Definition MWAWGraphicEncoder.cxx:91
MWAWGraphicEncoder::openParagraph
void openParagraph(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:311
MWAWGraphicEncoder::drawGraphicObject
void drawGraphicObject(const librevenge::RVNGPropertyList &propList) final
Definition MWAWGraphicEncoder.cxx:191
MWAWGraphicEncoder::closeListElement
void closeListElement() final
Definition MWAWGraphicEncoder.cxx:301
MWAWGraphicEncoder::insertText
void insertText(const librevenge::RVNGString &text) final
Definition MWAWGraphicEncoder.cxx:251
MWAWPropertyHandlerEncoder
write in librevenge::RVNGBinaryData a list of tags/and properties
Definition MWAWPropertyHandler.hxx:86
libmwaw_internal.hxx
MWAWGraphicEncoderInternal
a name space used to define internal data of MWAWGraphicEncoder
Definition MWAWGraphicEncoder.cxx:53
MWAWEmbeddedObject
small class use to define a embedded object
Definition libmwaw_internal.hxx:467
MWAWGraphicEncoderInternal::State
the state of a MWAWGraphicEncoder
Definition MWAWGraphicEncoder.cxx:55