Go to the documentation of this file.
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);
59 #endif // __COMMONPARSER_H__
uint8_t readU8(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: libcdr_utils.cpp:163
#define CDR_DEBUG_MSG(M)
Definition: libcdr_utils.h:56
int readInteger(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: CommonParser.cpp:52
CoordinatePrecision m_precision
Definition: CommonParser.h:55
Definition: CDRCollector.h:61
double readAngle(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: CommonParser.cpp:61
int32_t readS32(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: libcdr_utils.cpp:224
uint16_t readU16(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: libcdr_utils.cpp:179
unsigned short readUnsignedShort(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: CommonParser.cpp:43
void appendCubicBezierTo(double x1, double y1, double x2, double y2, double x, double y)
Definition: CDRPath.cpp:646
void readBmpPattern(unsigned &width, unsigned &height, std::vector< unsigned char > &pattern, unsigned length, librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: CommonParser.cpp:175
virtual ~CommonParser()
Definition: CommonParser.cpp:21
Definition: libcdr_utils.h:107
CoordinatePrecision
Definition: CommonParser.h:24
int16_t readS16(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: libcdr_utils.cpp:199
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
Definition: CDRCollector.h:24
void processPath(const std::vector< std::pair< double, double > > &points, const std::vector< unsigned char > &types, CDRPath &path)
Definition: CommonParser.cpp:78
double readCoordinate(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: CommonParser.cpp:25
void appendClosePath()
Definition: CDRPath.cpp:666
CDRCollector * m_collector
Definition: CommonParser.h:54
void appendMoveTo(double x, double y)
Definition: CDRPath.cpp:636
Definition: CommonParser.h:25
unsigned readUnsigned(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: CommonParser.cpp:34
Definition: CommonParser.h:27
CommonParser & operator=(const CommonParser &)
Definition: CommonParser.h:25
#define M_PI
Definition: libcdr_utils.h:27
void appendLineTo(double x, double y)
Definition: CDRPath.cpp:641
void outputPath(const std::vector< std::pair< double, double > > &points, const std::vector< unsigned char > &types)
Definition: CommonParser.cpp:70
Definition: CommonParser.h:25
unsigned long getRemainingLength(librevenge::RVNGInputStream *input)
Definition: libcdr_utils.cpp:301
uint32_t readU32(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: libcdr_utils.cpp:204
Generated for libcdr by
doxygen 1.8.16