10 #ifndef __COMMONPARSER_H__ 11 #define __COMMONPARSER_H__ 35 double readCoordinate(librevenge::RVNGInputStream *input,
bool bigEndian =
false);
36 unsigned readUnsigned(librevenge::RVNGInputStream *input,
bool bigEndian =
false);
37 unsigned short readUnsignedShort(librevenge::RVNGInputStream *input,
bool bigEndian =
false);
38 int readInteger(librevenge::RVNGInputStream *input,
bool bigEndian =
false);
39 double readAngle(librevenge::RVNGInputStream *input,
bool bigEndian =
false);
40 void readRImage(
unsigned &colorModel,
unsigned &width,
unsigned &height,
unsigned &bpp,
41 std::vector<unsigned> &palette, std::vector<unsigned char> &bitmap,
42 librevenge::RVNGInputStream *input,
bool bigEndian =
false);
43 void readBmpPattern(
unsigned &width,
unsigned &height, std::vector<unsigned char> &pattern,
44 unsigned length, librevenge::RVNGInputStream *input,
bool bigEndian =
false);
46 void processPath(
const std::vector<std::pair<double, double> > &points,
const std::vector<unsigned char> &types,
CDRPath &path);
47 void outputPath(
const std::vector<std::pair<double, double> > &points,
const std::vector<unsigned char> &types);
54 #endif // __COMMONPARSER_H__ Definition: CommonParser.h:22
void processPath(const std::vector< std::pair< double, double > > &points, const std::vector< unsigned char > &types, CDRPath &path)
Definition: CommonParser.cpp:79
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:136
double readCoordinate(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: CommonParser.cpp:26
CDRCollector * m_collector
Definition: CommonParser.h:49
unsigned readUnsigned(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: CommonParser.cpp:35
Definition: CommonParser.h:20
CommonParser & operator=(const CommonParser &)
Definition: CommonParser.h:20
CoordinatePrecision
Definition: CommonParser.h:19
void outputPath(const std::vector< std::pair< double, double > > &points, const std::vector< unsigned char > &types)
Definition: CommonParser.cpp:71
Definition: CDRCollector.h:29
CoordinatePrecision m_precision
Definition: CommonParser.h:50
double readAngle(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: CommonParser.cpp:62
int readInteger(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: CommonParser.cpp:53
unsigned short readUnsignedShort(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: CommonParser.cpp:44
Definition: CommonParser.h:20
virtual ~CommonParser()
Definition: CommonParser.cpp:22
void readBmpPattern(unsigned &width, unsigned &height, std::vector< unsigned char > &pattern, unsigned length, librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: CommonParser.cpp:176
Definition: CDRCollector.h:63