CDRStylesCollector.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 __CDRSTYLESCOLLECTOR_H__
#define __CDRSTYLESCOLLECTOR_H__
#include <map>
#include <utility>
#include <vector>
#include <librevenge/librevenge.h>
#include "CDRTypes.h"
#include "CDRCollector.h"
namespace libcdr
{
class CDRPath;
class CDRTransforms;
class CDRStylesCollector : public CDRCollector
{
public:
CDRStylesCollector(CDRParserState &ps);
~CDRStylesCollector() override;
// collector functions
void collectPage(unsigned level) override;
void collectObject(unsigned) override {}
void collectGroup(unsigned) override {}
void collectVect(unsigned) override {}
void collectOtherList() override {}
void collectPath(const CDRPath &) override {}
void collectLevel(unsigned) override {}
void collectTransform(const CDRTransforms &, bool) override {}
void collectFillStyle(unsigned id, const CDRFillStyle &fillStyle) override;
void collectFillStyleId(unsigned) override {}
void collectLineStyle(unsigned id, const CDRLineStyle &lineStyle) override;
void collectLineStyleId(unsigned) override {}
void collectRotate(double,double,double) override {}
void collectFlags(unsigned, bool) override {}
void collectPageSize(double width, double height, double offsetX, double offsetY) override;
void collectPolygonTransform(unsigned, unsigned, double, double, double, double) override {}
void collectBitmap(unsigned, double, double, double, double) override {}
void collectBmp(unsigned imageId, unsigned colorModel, unsigned width, unsigned height, unsigned bpp, const std::vector<unsigned> &palette, const std::vector<unsigned char> &bitmap) override;
void collectBmp(unsigned imageId, const std::vector<unsigned char> &bitmap) override;
void collectBmpf(unsigned patternId, unsigned width, unsigned height, const std::vector<unsigned char> &pattern) override;
void collectPpdt(const std::vector<std::pair<double, double> > &, const std::vector<unsigned> &) override {}
void collectFillTransform(const CDRTransforms &) override {}
void collectFillOpacity(double) override {}
void collectPolygon() override {}
void collectSpline() override {}
void collectColorProfile(const std::vector<unsigned char> &profile) override;
void collectBBox(double, double, double, double) override {}
void collectSpnd(unsigned) override {}
void collectVectorPattern(unsigned, const librevenge::RVNGBinaryData &) override {}
void collectPaletteEntry(unsigned colorId, unsigned userId, const CDRColor &color) override;
void collectText(unsigned textId, unsigned styleId, const std::vector<unsigned char> &data,
const std::vector<unsigned char> &charDescriptions, const std::map<unsigned, CDRStyle> &styleOverrides) override;
void collectArtisticText(double, double) override {}
void collectParagraphText(double, double, double, double) override {}
void collectStld(unsigned id, const CDRStyle &style) override;
void collectStyleId(unsigned) override {}
private:
CDRStylesCollector(const CDRStylesCollector &);
CDRStylesCollector &operator=(const CDRStylesCollector &);
CDRParserState &m_ps;
CDRPage m_page;
};
} // namespace libcdr
#endif /* __CDRCOLLECTOR_H__ */
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
CDRCollector.h
CDRTypes.h
libcdr::CDRCollector::CDRCollector
CDRCollector()
Definition CDRCollector.h:64
libcdr::CDRParserState
Definition CDRCollector.h:31
libcdr::CDRPath
Definition CDRPath.h:37
libcdr::CDRStylesCollector::collectPaletteEntry
void collectPaletteEntry(unsigned colorId, unsigned userId, const CDRColor &color) override
Definition CDRStylesCollector.cpp:206
libcdr::CDRStylesCollector::collectSpline
void collectSpline() override
Definition CDRStylesCollector.h:59
libcdr::CDRStylesCollector::collectPolygon
void collectPolygon() override
Definition CDRStylesCollector.h:58
libcdr::CDRStylesCollector::CDRStylesCollector
CDRStylesCollector(CDRParserState &ps)
Definition CDRStylesCollector.cpp:20
libcdr::CDRStylesCollector::collectFillTransform
void collectFillTransform(const CDRTransforms &) override
Definition CDRStylesCollector.h:56
libcdr::CDRStylesCollector::collectPpdt
void collectPpdt(const std::vector< std::pair< double, double > > &, const std::vector< unsigned > &) override
Definition CDRStylesCollector.h:55
libcdr::CDRStylesCollector::collectStld
void collectStld(unsigned id, const CDRStyle &style) override
Definition CDRStylesCollector.cpp:265
libcdr::CDRStylesCollector::collectStyleId
void collectStyleId(unsigned) override
Definition CDRStylesCollector.h:70
libcdr::CDRStylesCollector::collectFillStyle
void collectFillStyle(unsigned id, const CDRFillStyle &fillStyle) override
Definition CDRStylesCollector.cpp:270
libcdr::CDRStylesCollector::collectLevel
void collectLevel(unsigned) override
Definition CDRStylesCollector.h:41
libcdr::CDRStylesCollector::collectPageSize
void collectPageSize(double width, double height, double offsetX, double offsetY) override
Definition CDRStylesCollector.cpp:182
libcdr::CDRStylesCollector::collectPage
void collectPage(unsigned level) override
Definition CDRStylesCollector.cpp:190
libcdr::CDRStylesCollector::~CDRStylesCollector
~CDRStylesCollector() override
Definition CDRStylesCollector.cpp:25
libcdr::CDRStylesCollector::operator=
CDRStylesCollector & operator=(const CDRStylesCollector &)
libcdr::CDRStylesCollector::collectFillOpacity
void collectFillOpacity(double) override
Definition CDRStylesCollector.h:57
libcdr::CDRStylesCollector::collectObject
void collectObject(unsigned) override
Definition CDRStylesCollector.h:36
libcdr::CDRStylesCollector::collectLineStyleId
void collectLineStyleId(unsigned) override
Definition CDRStylesCollector.h:46
libcdr::CDRStylesCollector::m_ps
CDRParserState & m_ps
Definition CDRStylesCollector.h:76
libcdr::CDRStylesCollector::collectText
void collectText(unsigned textId, unsigned styleId, const std::vector< unsigned char > &data, const std::vector< unsigned char > &charDescriptions, const std::map< unsigned, CDRStyle > &styleOverrides) override
Definition CDRStylesCollector.cpp:211
libcdr::CDRStylesCollector::collectVectorPattern
void collectVectorPattern(unsigned, const librevenge::RVNGBinaryData &) override
Definition CDRStylesCollector.h:63
libcdr::CDRStylesCollector::collectColorProfile
void collectColorProfile(const std::vector< unsigned char > &profile) override
Definition CDRStylesCollector.cpp:200
libcdr::CDRStylesCollector::collectBmpf
void collectBmpf(unsigned patternId, unsigned width, unsigned height, const std::vector< unsigned char > &pattern) override
Definition CDRStylesCollector.cpp:195
libcdr::CDRStylesCollector::CDRStylesCollector
CDRStylesCollector(const CDRStylesCollector &)
libcdr::CDRStylesCollector::collectRotate
void collectRotate(double, double, double) override
Definition CDRStylesCollector.h:47
libcdr::CDRStylesCollector::collectArtisticText
void collectArtisticText(double, double) override
Definition CDRStylesCollector.h:67
libcdr::CDRStylesCollector::collectBmp
void collectBmp(unsigned imageId, unsigned colorModel, unsigned width, unsigned height, unsigned bpp, const std::vector< unsigned > &palette, const std::vector< unsigned char > &bitmap) override
Definition CDRStylesCollector.cpp:29
libcdr::CDRStylesCollector::collectParagraphText
void collectParagraphText(double, double, double, double) override
Definition CDRStylesCollector.h:68
libcdr::CDRStylesCollector::collectFillStyleId
void collectFillStyleId(unsigned) override
Definition CDRStylesCollector.h:44
libcdr::CDRStylesCollector::collectOtherList
void collectOtherList() override
Definition CDRStylesCollector.h:39
libcdr::CDRStylesCollector::collectLineStyle
void collectLineStyle(unsigned id, const CDRLineStyle &lineStyle) override
Definition CDRStylesCollector.cpp:275
libcdr::CDRStylesCollector::m_page
CDRPage m_page
Definition CDRStylesCollector.h:77
libcdr::CDRStylesCollector::collectFlags
void collectFlags(unsigned, bool) override
Definition CDRStylesCollector.h:48
libcdr::CDRStylesCollector::collectBitmap
void collectBitmap(unsigned, double, double, double, double) override
Definition CDRStylesCollector.h:51
libcdr::CDRStylesCollector::collectTransform
void collectTransform(const CDRTransforms &, bool) override
Definition CDRStylesCollector.h:42
libcdr::CDRStylesCollector::collectPath
void collectPath(const CDRPath &) override
Definition CDRStylesCollector.h:40
libcdr::CDRStylesCollector::collectSpnd
void collectSpnd(unsigned) override
Definition CDRStylesCollector.h:62
libcdr::CDRStylesCollector::collectGroup
void collectGroup(unsigned) override
Definition CDRStylesCollector.h:37
libcdr::CDRStylesCollector::collectPolygonTransform
void collectPolygonTransform(unsigned, unsigned, double, double, double, double) override
Definition CDRStylesCollector.h:50
libcdr::CDRStylesCollector::collectVect
void collectVect(unsigned) override
Definition CDRStylesCollector.h:38
libcdr::CDRStylesCollector::collectBBox
void collectBBox(double, double, double, double) override
Definition CDRStylesCollector.h:61
libcdr::CDRTransforms
Definition CDRTransforms.h:51
libcdr
Definition CDRCollector.h:25
libcdr::CDRColor
Definition CDRTypes.h:54
libcdr::CDRFillStyle
Definition CDRTypes.h:106
libcdr::CDRLineStyle
Definition CDRTypes.h:118
libcdr::CDRPage
Definition CDRTypes.h:244
libcdr::CDRStyle
Definition CDRTypes.h:142