STOFFGraphicEncoder.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 -*- */
/* libstaroffice
* 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 STOFF_GRAPHIC_ENCODER_HXX
#define STOFF_GRAPHIC_ENCODER_HXX
#include <librevenge/librevenge.h>
#include "libstaroffice_internal.hxx"
class STOFFPropertyHandlerEncoder;
namespace STOFFGraphicEncoderInternal
{
struct State;
}
class STOFFGraphicEncoder final : public librevenge::RVNGDrawingInterface
{
public:
STOFFGraphicEncoder();
~STOFFGraphicEncoder() final;
bool getBinaryResult(STOFFEmbeddedObject &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<STOFFGraphicEncoderInternal::State> m_state;
};
#endif
// vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
STOFFGraphicEncoder::openUnorderedListLevel
void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:280
STOFFGraphicEncoder::endPage
void endPage() final
Definition STOFFGraphicEncoder.cxx:110
STOFFGraphicEncoder::insertText
void insertText(const librevenge::RVNGString &text) final
Definition STOFFGraphicEncoder.cxx:250
STOFFGraphicEncoder::closeOrderedListLevel
void closeOrderedListLevel() final
Definition STOFFGraphicEncoder.cxx:285
STOFFGraphicEncoder::startDocument
void startDocument(const ::librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:85
STOFFGraphicEncoder::closeGroup
void closeGroup() final
Definition STOFFGraphicEncoder.cxx:155
STOFFGraphicEncoder::openTableRow
void openTableRow(const librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:215
STOFFGraphicEncoder::defineCharacterStyle
void defineCharacterStyle(const librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:320
STOFFGraphicEncoder::defineParagraphStyle
void defineParagraphStyle(const librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:305
STOFFGraphicEncoder::drawConnector
void drawConnector(const ::librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:185
STOFFGraphicEncoder::~STOFFGraphicEncoder
~STOFFGraphicEncoder() final
destructor
Definition STOFFGraphicEncoder.cxx:72
STOFFGraphicEncoder::openListElement
void openListElement(const librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:295
STOFFGraphicEncoder::closeParagraph
void closeParagraph() final
Definition STOFFGraphicEncoder.cxx:315
STOFFGraphicEncoder::closeUnorderedListLevel
void closeUnorderedListLevel() final
Definition STOFFGraphicEncoder.cxx:290
STOFFGraphicEncoder::openTableCell
void openTableCell(const librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:225
STOFFGraphicEncoder::closeListElement
void closeListElement() final
Definition STOFFGraphicEncoder.cxx:300
STOFFGraphicEncoder::openLink
void openLink(const librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:265
STOFFGraphicEncoder::drawRectangle
void drawRectangle(const ::librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:160
STOFFGraphicEncoder::STOFFGraphicEncoder
STOFFGraphicEncoder()
constructor
Definition STOFFGraphicEncoder.cxx:66
STOFFGraphicEncoder::endEmbeddedGraphics
void endEmbeddedGraphics() final
Definition STOFFGraphicEncoder.cxx:145
STOFFGraphicEncoder::endDocument
void endDocument() final
Definition STOFFGraphicEncoder.cxx:90
STOFFGraphicEncoder::openOrderedListLevel
void openOrderedListLevel(const librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:275
STOFFGraphicEncoder::endTableObject
void endTableObject() final
Definition STOFFGraphicEncoder.cxx:210
STOFFGraphicEncoder::insertSpace
void insertSpace() final
Definition STOFFGraphicEncoder.cxx:245
STOFFGraphicEncoder::startTableObject
void startTableObject(const librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:205
STOFFGraphicEncoder::closeTableRow
void closeTableRow() final
Definition STOFFGraphicEncoder.cxx:220
STOFFGraphicEncoder::startTextObject
void startTextObject(const ::librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:195
STOFFGraphicEncoder::openGroup
void openGroup(const ::librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:150
STOFFGraphicEncoder::insertLineBreak
void insertLineBreak() final
Definition STOFFGraphicEncoder.cxx:255
STOFFGraphicEncoder::closeTableCell
void closeTableCell() final
Definition STOFFGraphicEncoder.cxx:230
STOFFGraphicEncoder::startEmbeddedGraphics
void startEmbeddedGraphics(const ::librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:140
STOFFGraphicEncoder::closeSpan
void closeSpan() final
Definition STOFFGraphicEncoder.cxx:330
STOFFGraphicEncoder::insertField
void insertField(const librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:260
STOFFGraphicEncoder::insertCoveredTableCell
void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:235
STOFFGraphicEncoder::endTextObject
void endTextObject() final
Definition STOFFGraphicEncoder.cxx:200
STOFFGraphicEncoder::drawPolygon
void drawPolygon(const ::librevenge::RVNGPropertyList &vertices) final
Definition STOFFGraphicEncoder.cxx:170
STOFFGraphicEncoder::startPage
void startPage(const ::librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:105
STOFFGraphicEncoder::drawPath
void drawPath(const ::librevenge::RVNGPropertyList &path) final
Definition STOFFGraphicEncoder.cxx:180
STOFFGraphicEncoder::startMasterPage
void startMasterPage(const ::librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:115
STOFFGraphicEncoder::endMasterPage
void endMasterPage() final
Definition STOFFGraphicEncoder.cxx:120
STOFFGraphicEncoder::closeLink
void closeLink() final
Definition STOFFGraphicEncoder.cxx:270
STOFFGraphicEncoder::openSpan
void openSpan(const librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:325
STOFFGraphicEncoder::endLayer
void endLayer() final
Definition STOFFGraphicEncoder.cxx:135
STOFFGraphicEncoder::startLayer
void startLayer(const ::librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:130
STOFFGraphicEncoder::setStyle
void setStyle(const ::librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:125
STOFFGraphicEncoder::drawGraphicObject
void drawGraphicObject(const ::librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:190
STOFFGraphicEncoder::openParagraph
void openParagraph(const librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:310
STOFFGraphicEncoder::setDocumentMetaData
void setDocumentMetaData(const librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:95
STOFFGraphicEncoder::m_state
std::shared_ptr< STOFFGraphicEncoderInternal::State > m_state
the actual state
Definition STOFFGraphicEncoder.hxx:130
STOFFGraphicEncoder::getBinaryResult
bool getBinaryResult(STOFFEmbeddedObject &result)
return the final graphic
Definition STOFFGraphicEncoder.cxx:76
STOFFGraphicEncoder::insertTab
void insertTab() final
Definition STOFFGraphicEncoder.cxx:240
STOFFGraphicEncoder::defineEmbeddedFont
void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:100
STOFFGraphicEncoder::drawPolyline
void drawPolyline(const ::librevenge::RVNGPropertyList &vertices) final
Definition STOFFGraphicEncoder.cxx:175
STOFFGraphicEncoder::drawEllipse
void drawEllipse(const ::librevenge::RVNGPropertyList &propList) final
Definition STOFFGraphicEncoder.cxx:165
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:408
STOFFGraphicEncoderInternal::State
the state of a STOFFGraphicEncoder
Definition STOFFGraphicEncoder.cxx:55