CDROutputElementList.h
Go to the documentation of this file.
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libcdr project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef __CDROUTPUTELEMENTLIST_H__
#define __CDROUTPUTELEMENTLIST_H__
#include <memory>
#include <vector>
#include <librevenge/librevenge.h>
namespace libcdr
{
class CDROutputElement;
class CDROutputElementList
{
public:
CDROutputElementList();
~CDROutputElementList();
void draw(librevenge::RVNGDrawingInterface *painter) const;
void addStyle(const librevenge::RVNGPropertyList &propList);
void addPath(const librevenge::RVNGPropertyList &propList);
void addGraphicObject(const librevenge::RVNGPropertyList &propList);
void addStartTextObject(const librevenge::RVNGPropertyList &propList);
void addOpenParagraph(const librevenge::RVNGPropertyList &propList);
void addOpenSpan(const librevenge::RVNGPropertyList &propList);
void addInsertText(const librevenge::RVNGString &text);
void addCloseSpan();
void addCloseParagraph();
void addEndTextObject();
void addStartGroup(const librevenge::RVNGPropertyList &propList);
void addEndGroup();
bool empty() const
{
return m_elements.empty();
}
private:
std::vector<std::shared_ptr<CDROutputElement>> m_elements;
};
} // namespace libcdr
#endif // __CDROUTPUTELEMENTLIST_H__
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libcdr::CDROutputElementList::addStyle
void addStyle(const librevenge::RVNGPropertyList &propList)
Definition CDROutputElementList.cpp:358
libcdr::CDROutputElementList::addGraphicObject
void addGraphicObject(const librevenge::RVNGPropertyList &propList)
Definition CDROutputElementList.cpp:368
libcdr::CDROutputElementList::addStartGroup
void addStartGroup(const librevenge::RVNGPropertyList &propList)
Definition CDROutputElementList.cpp:408
libcdr::CDROutputElementList::addStartTextObject
void addStartTextObject(const librevenge::RVNGPropertyList &propList)
Definition CDROutputElementList.cpp:373
libcdr::CDROutputElementList::addEndTextObject
void addEndTextObject()
Definition CDROutputElementList.cpp:403
libcdr::CDROutputElementList::draw
void draw(librevenge::RVNGDrawingInterface *painter) const
Definition CDROutputElementList.cpp:352
libcdr::CDROutputElementList::~CDROutputElementList
~CDROutputElementList()
Definition CDROutputElementList.cpp:348
libcdr::CDROutputElementList::addInsertText
void addInsertText(const librevenge::RVNGString &text)
Definition CDROutputElementList.cpp:388
libcdr::CDROutputElementList::addCloseSpan
void addCloseSpan()
Definition CDROutputElementList.cpp:393
libcdr::CDROutputElementList::addCloseParagraph
void addCloseParagraph()
Definition CDROutputElementList.cpp:398
libcdr::CDROutputElementList::m_elements
std::vector< std::shared_ptr< CDROutputElement > > m_elements
Definition CDROutputElementList.h:46
libcdr::CDROutputElementList::addOpenParagraph
void addOpenParagraph(const librevenge::RVNGPropertyList &propList)
Definition CDROutputElementList.cpp:378
libcdr::CDROutputElementList::addEndGroup
void addEndGroup()
Definition CDROutputElementList.cpp:413
libcdr::CDROutputElementList::addOpenSpan
void addOpenSpan(const librevenge::RVNGPropertyList &propList)
Definition CDROutputElementList.cpp:383
libcdr::CDROutputElementList::empty
bool empty() const
Definition CDROutputElementList.h:41
libcdr::CDROutputElementList::CDROutputElementList
CDROutputElementList()
Definition CDROutputElementList.cpp:343
libcdr::CDROutputElementList::addPath
void addPath(const librevenge::RVNGPropertyList &propList)
Definition CDROutputElementList.cpp:363
libcdr::CDROutputElement
Definition CDROutputElementList.cpp:100
libcdr
Definition CDRCollector.h:25