10 #ifndef __CDRPARSER_H__ 11 #define __CDRPARSER_H__ 17 #include <librevenge-stream/librevenge-stream.h> 29 explicit CDRParser(
const std::vector<std::unique_ptr<librevenge::RVNGInputStream>> &externalStreams,
CDRCollector *collector);
31 bool parseRecords(librevenge::RVNGInputStream *input,
const std::vector<unsigned> &blockLengths = std::vector<unsigned>(),
unsigned level = 0);
32 bool parseWaldo(librevenge::RVNGInputStream *input);
38 bool parseWaldoStructure(librevenge::RVNGInputStream *input, std::stack<WaldoRecordType1> &waldoStack,
39 const std::map<unsigned, WaldoRecordType1> &records1,
40 std::map<unsigned, WaldoRecordInfo> &records2);
41 bool gatherWaldoInformation(librevenge::RVNGInputStream *input, std::vector<WaldoRecordInfo> &records, std::map<unsigned, WaldoRecordInfo> &records2,
42 std::map<unsigned, WaldoRecordInfo> &records3, std::map<unsigned, WaldoRecordInfo> &records4,
43 std::map<unsigned, WaldoRecordInfo> &records6, std::map<unsigned, WaldoRecordInfo> &records7,
44 std::map<unsigned, WaldoRecordInfo> &records8, std::map<unsigned, WaldoRecordInfo> recordsOther);
46 bool parseRecord(librevenge::RVNGInputStream *input,
const std::vector<unsigned> &blockLengths = std::vector<unsigned>(),
unsigned level = 0);
47 void readRecord(
unsigned fourCC,
unsigned length, librevenge::RVNGInputStream *input);
52 void readEllipse(librevenge::RVNGInputStream *input);
54 void readBitmap(librevenge::RVNGInputStream *input);
56 void readWaldoBmp(librevenge::RVNGInputStream *input,
unsigned length,
unsigned id);
57 void readWaldoBmpf(librevenge::RVNGInputStream *input,
unsigned id);
61 void readWaldoLoda(librevenge::RVNGInputStream *input,
unsigned length);
62 void readOpacity(librevenge::RVNGInputStream *input,
unsigned length);
63 void readTrfd(librevenge::RVNGInputStream *input,
unsigned length);
64 void readFild(librevenge::RVNGInputStream *input,
unsigned length);
65 void readOutl(librevenge::RVNGInputStream *input,
unsigned length);
66 void readLoda(librevenge::RVNGInputStream *input,
unsigned length);
67 void readFlags(librevenge::RVNGInputStream *input,
unsigned length);
68 void readMcfg(librevenge::RVNGInputStream *input,
unsigned length);
69 void readPath(librevenge::RVNGInputStream *input);
70 void readArrw(librevenge::RVNGInputStream *input,
unsigned length);
73 void readBmp(librevenge::RVNGInputStream *input,
unsigned length);
74 void readBmpf(librevenge::RVNGInputStream *input,
unsigned length);
75 void readPpdt(librevenge::RVNGInputStream *input,
unsigned length);
76 void readFtil(librevenge::RVNGInputStream *input,
unsigned length);
77 void readDisp(librevenge::RVNGInputStream *input,
unsigned length);
78 void readVersion(librevenge::RVNGInputStream *input,
unsigned length);
79 void readIccd(librevenge::RVNGInputStream *input,
unsigned length);
80 void readBBox(librevenge::RVNGInputStream *input,
unsigned length);
81 void readSpnd(librevenge::RVNGInputStream *input,
unsigned length);
82 void readVpat(librevenge::RVNGInputStream *input,
unsigned length);
83 void readUidr(librevenge::RVNGInputStream *input,
unsigned length);
84 void readFont(librevenge::RVNGInputStream *input,
unsigned length);
85 void readStlt(librevenge::RVNGInputStream *input,
unsigned length);
86 void readStyd(librevenge::RVNGInputStream *input);
87 void readTxsm(librevenge::RVNGInputStream *input,
unsigned length);
88 void readTxsm16(librevenge::RVNGInputStream *input);
89 void readTxsm6(librevenge::RVNGInputStream *input);
90 void readTxsm5(librevenge::RVNGInputStream *input);
91 void readUdta(librevenge::RVNGInputStream *input);
95 bool _redirectX6Chunk(librevenge::RVNGInputStream **input,
unsigned &length);
113 #endif // __CDRPARSER_H__ bool _redirectX6Chunk(librevenge::RVNGInputStream **input, unsigned &length)
Definition: CDRParser.cpp:2401
Definition: CommonParser.h:27
~CDRParser() override
Definition: CDRParser.cpp:164
void readLineAndCurve(librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:1381
void readFlags(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:2162
void readFont(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:2485
void readMcfg(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:2170
void readUidr(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:2474
void readLoda(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:2064
void readWaldoBmpf(librevenge::RVNGInputStream *input, unsigned id)
Definition: CDRParser.cpp:2327
void readEllipse(librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:1281
void readPolygonCoords(librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:2200
void readVersion(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:2390
unsigned m_waldoOutlId
Definition: CDRParser.h:106
bool parseRecord(librevenge::RVNGInputStream *input, const std::vector< unsigned > &blockLengths=std::vector< unsigned >(), unsigned level=0)
Definition: CDRParser.cpp:506
void readFild(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:1759
void readBmpf(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:2316
unsigned m_version
Definition: CDRParser.h:105
void readIccd(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:2426
void readArtisticText(librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:3360
double readRectCoord(librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:682
void readTxsm16(librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:2983
bool parseWaldoStructure(librevenge::RVNGInputStream *input, std::stack< WaldoRecordType1 > &waldoStack, const std::map< unsigned, WaldoRecordType1 > &records1, std::map< unsigned, WaldoRecordInfo > &records2)
Definition: CDRParser.cpp:342
unsigned m_waldoFillId
Definition: CDRParser.h:107
void readOpacity(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:2306
std::map< unsigned, CDRFont > m_fonts
Definition: CDRParser.h:100
void readWaldoBmp(librevenge::RVNGInputStream *input, unsigned length, unsigned id)
Definition: CDRParser.cpp:2252
void readStyd(librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:3255
void readWaldoFill(librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:1572
void readWaldoTrfd(librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:414
void readVpat(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:2460
void readDisp(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:1338
Definition: CDRCollector.h:24
void readRecord(unsigned fourCC, unsigned length, librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:600
std::map< unsigned, CDRFillStyle > m_fillStyles
Definition: CDRParser.h:101
void readWaldoRecord(librevenge::RVNGInputStream *input, const WaldoRecordInfo &info)
Definition: CDRParser.cpp:388
std::map< unsigned, CDRPath > m_arrows
Definition: CDRParser.h:103
void readPpdt(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:2350
void readTxsm6(librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:3088
void readTxsm(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:2809
Definition: CDRTypes.h:269
void readParagraphText(librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:3367
void readFtil(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:2375
void readArrw(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:1435
void readWaldoOutl(librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:1539
void readPath(librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:1406
void readStlt(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:2533
Definition: CDRParser.h:26
void readSpnd(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:2452
void readTrfd(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:1666
CDRParser & operator=(const CDRParser &)
CDRColor readColor(librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:689
bool gatherWaldoInformation(librevenge::RVNGInputStream *input, std::vector< WaldoRecordInfo > &records, std::map< unsigned, WaldoRecordInfo > &records2, std::map< unsigned, WaldoRecordInfo > &records3, std::map< unsigned, WaldoRecordInfo > &records4, std::map< unsigned, WaldoRecordInfo > &records6, std::map< unsigned, WaldoRecordInfo > &records7, std::map< unsigned, WaldoRecordInfo > &records8, std::map< unsigned, WaldoRecordInfo > recordsOther)
Definition: CDRParser.cpp:291
std::map< unsigned, CDRLineStyle > m_lineStyles
Definition: CDRParser.h:102
void readTxsm5(librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:3162
void readOutl(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:2003
Definition: CDRTypes.h:53
void readWaldoLoda(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:454
void readPageSize(librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:2245
void readPolygonTransform(librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:2226
bool parseRecords(librevenge::RVNGInputStream *input, const std::vector< unsigned > &blockLengths=std::vector< unsigned >(), unsigned level=0)
Definition: CDRParser.cpp:491
void readBitmap(librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:1471
void readRectangle(librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:1165
bool parseWaldo(librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:169
void readBBox(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:2441
void _readX6StyleString(librevenge::RVNGInputStream *input, unsigned length, CDRStyle &style)
Definition: CDRParser.cpp:3375
void readBmp(librevenge::RVNGInputStream *input, unsigned length)
Definition: CDRParser.cpp:2271
Definition: CDRTypes.h:137
void readUdta(librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:3236
Definition: CDRCollector.h:61
const std::vector< std::unique_ptr< librevenge::RVNGInputStream > > & m_externalStreams
Definition: CDRParser.h:98