10#ifndef __COMMONPARSER_H__
11#define __COMMONPARSER_H__
16#include <librevenge-stream/librevenge-stream.h>
40 double readCoordinate(librevenge::RVNGInputStream *input,
bool bigEndian =
false);
41 unsigned readUnsigned(librevenge::RVNGInputStream *input,
bool bigEndian =
false);
42 unsigned short readUnsignedShort(librevenge::RVNGInputStream *input,
bool bigEndian =
false);
43 int readInteger(librevenge::RVNGInputStream *input,
bool bigEndian =
false);
44 double readAngle(librevenge::RVNGInputStream *input,
bool bigEndian =
false);
45 void readRImage(
unsigned &colorModel,
unsigned &width,
unsigned &height,
unsigned &bpp,
46 std::vector<unsigned> &palette, std::vector<unsigned char> &bitmap,
47 librevenge::RVNGInputStream *input,
bool bigEndian =
false);
48 void readBmpPattern(
unsigned &width,
unsigned &height, std::vector<unsigned char> &pattern,
49 unsigned length, librevenge::RVNGInputStream *input,
bool bigEndian =
false);
51 void processPath(
const std::vector<std::pair<double, double> > &points,
const std::vector<unsigned char> &types,
CDRPath &path);
52 void outputPath(
const std::vector<std::pair<double, double> > &points,
const std::vector<unsigned char> &types);
Definition CDRCollector.h:62
double readCoordinate(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition CommonParser.cpp:25
CoordinatePrecision m_precision
Definition CommonParser.h:55
double readAngle(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition CommonParser.cpp:61
int readInteger(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition CommonParser.cpp:52
virtual ~CommonParser()
Definition CommonParser.cpp:21
CommonParser(CDRCollector *collector)
Definition CommonParser.cpp:18
void readRImage(unsigned &colorModel, unsigned &width, unsigned &height, unsigned &bpp, std::vector< unsigned > &palette, std::vector< unsigned char > &bitmap, librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition CommonParser.cpp:135
CDRCollector * m_collector
Definition CommonParser.h:54
void readBmpPattern(unsigned &width, unsigned &height, std::vector< unsigned char > &pattern, unsigned length, librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition CommonParser.cpp:175
CommonParser(const CommonParser &)
unsigned readUnsigned(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition CommonParser.cpp:34
unsigned short readUnsignedShort(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition CommonParser.cpp:43
void outputPath(const std::vector< std::pair< double, double > > &points, const std::vector< unsigned char > &types)
Definition CommonParser.cpp:70
CommonParser & operator=(const CommonParser &)
void processPath(const std::vector< std::pair< double, double > > &points, const std::vector< unsigned char > &types, CDRPath &path)
Definition CommonParser.cpp:78
Definition CDRCollector.h:25
CoordinatePrecision
Definition CommonParser.h:25
@ PRECISION_32BIT
Definition CommonParser.h:25
@ PRECISION_16BIT
Definition CommonParser.h:25
@ PRECISION_UNKNOWN
Definition CommonParser.h:25