| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
#ifndef __CDRSTYLESCOLLECTOR_H__ |
| 11 |
#define __CDRSTYLESCOLLECTOR_H__ |
| 12 |
|
| 13 |
#include <map> |
| 14 |
#include <utility> |
| 15 |
#include <vector> |
| 16 |
|
| 17 |
#include <librevenge/librevenge.h> |
| 18 |
|
| 19 |
#include "CDRTypes.h" |
| 20 |
#include "CDRCollector.h" |
| 21 |
|
| 22 |
namespace libcdr |
| 23 |
{ |
| 24 |
|
| 25 |
class CDRPath; |
| 26 |
class CDRTransforms; |
| 27 |
|
| 28 |
class CDRStylesCollector : public CDRCollector |
| 29 |
{ |
| 30 |
public: |
| 31 |
CDRStylesCollector(CDRParserState &ps); |
| 32 |
~CDRStylesCollector() override; |
| 33 |
|
| 34 |
|
| 35 |
void collectPage(unsigned level) override; |
| 36 |
void collectObject(unsigned) override {} |
| 37 |
void collectGroup(unsigned) override {} |
| 38 |
void collectVect(unsigned) override {} |
| 39 |
void collectOtherList() override {} |
| 40 |
void collectPath(const CDRPath &) override {} |
| 41 |
void collectLevel(unsigned) override {} |
| 42 |
void collectTransform(const CDRTransforms &, bool) override {} |
| 43 |
void collectFillStyle(unsigned id, const CDRFillStyle &fillStyle) override; |
| 44 |
void collectFillStyleId(unsigned) override {} |
| 45 |
void collectLineStyle(unsigned id, const CDRLineStyle &lineStyle) override; |
| 46 |
void collectLineStyleId(unsigned) override {} |
| 47 |
void collectRotate(double,double,double) override {} |
| 48 |
void collectFlags(unsigned, bool) override {} |
| 49 |
void collectPageSize(double width, double height, double offsetX, double offsetY) override; |
| 50 |
void collectPolygonTransform(unsigned, unsigned, double, double, double, double) override {} |
| 51 |
void collectBitmap(unsigned, double, double, double, double) override {} |
| 52 |
void collectBmp(unsigned imageId, unsigned colorModel, unsigned width, unsigned height, unsigned bpp, const std::vector<unsigned> &palette, const std::vector<unsigned char> &bitmap) override; |
| 53 |
void collectBmp(unsigned imageId, const std::vector<unsigned char> &bitmap) override; |
| 54 |
void collectBmpf(unsigned patternId, unsigned width, unsigned height, const std::vector<unsigned char> &pattern) override; |
| 55 |
void collectPpdt(const std::vector<std::pair<double, double> > &, const std::vector<unsigned> &) override {} |
| 56 |
void collectFillTransform(const CDRTransforms &) override {} |
| 57 |
void collectFillOpacity(double) override {} |
| 58 |
void collectPolygon() override {} |
| 59 |
void collectSpline() override {} |
| 60 |
void collectColorProfile(const std::vector<unsigned char> &profile) override; |
| 61 |
void collectBBox(double, double, double, double) override {} |
| 62 |
void collectSpnd(unsigned) override {} |
| 63 |
void collectVectorPattern(unsigned, const librevenge::RVNGBinaryData &) override {} |
| 64 |
void collectPaletteEntry(unsigned colorId, unsigned userId, const CDRColor &color) override; |
| 65 |
void collectText(unsigned textId, unsigned styleId, const std::vector<unsigned char> &data, |
| 66 |
const std::vector<unsigned char> &charDescriptions, const std::map<unsigned, CDRStyle> &styleOverrides) override; |
| 67 |
void collectArtisticText(double, double) override {} |
| 68 |
void collectParagraphText(double, double, double, double) override {} |
| 69 |
void collectStld(unsigned id, const CDRStyle &style) override; |
| 70 |
void collectStyleId(unsigned) override {} |
| 71 |
|
| 72 |
private: |
| 73 |
CDRStylesCollector(const CDRStylesCollector &); |
| 74 |
CDRStylesCollector &operator=(const CDRStylesCollector &); |
| 75 |
|
| 76 |
CDRParserState &m_ps; |
| 77 |
CDRPage m_page; |
| 78 |
}; |
| 79 |
|
| 80 |
} |
| 81 |
|
| 82 |
#endif |
| 83 |
|