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:75
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:132
double readCoordinate(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: CommonParser.cpp:22
CDRCollector * m_collector
Definition: CommonParser.h:49
unsigned readUnsigned(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: CommonParser.cpp:31
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:67
Definition: CDRCollector.h:29
CoordinatePrecision m_precision
Definition: CommonParser.h:50
double readAngle(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: CommonParser.cpp:58
int readInteger(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: CommonParser.cpp:49
unsigned short readUnsignedShort(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: CommonParser.cpp:40
Definition: CommonParser.h:20
virtual ~CommonParser()
Definition: CommonParser.cpp:18
void readBmpPattern(unsigned &width, unsigned &height, std::vector< unsigned char > &pattern, unsigned length, librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: CommonParser.cpp:172
Definition: CDRCollector.h:63