QXP4Parser.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libqxp project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10 #ifndef QXP4PARSER_H_INCLUDED
11 #define QXP4PARSER_H_INCLUDED
12
13 #include "QXPParser.h"
14 #include <vector>
15
16 namespace libqxp
17 {
18
19 class QXP4Deobfuscator;
20 class QXP4Header;
21
22 class QXP4Parser : public QXPParser
23 {
24 public:
25 QXP4Parser(const std::shared_ptr<librevenge::RVNGInputStream> &input, librevenge::RVNGDrawingInterface *painter, const std::shared_ptr<QXP4Header> &header);
26
27 enum class ShapeType
28 {
29 UNKNOWN,
30 LINE,
31 ORTHOGONAL_LINE,
32 BEZIER_LINE,
33 RECTANGLE,
34 ROUNDED_RECTANGLE,
35 CONCAVE_RECTANGLE,
36 BEVELED_RECTANGLE,
37 OVAL,
38 BEZIER_BOX
39 };
40
41 struct ObjectHeader
42 {
43 boost::optional<Color> fillColor;
44 Color color;
45
46 unsigned contentIndex;
47 unsigned linkId;
48 unsigned oleId;
49 unsigned gradientId;
50
51 double rotation;
52 double skew;
53
54 bool hflip;
55 bool vflip;
56
57 ContentType contentType;
58 ShapeType shapeType;
59
60 BoxType boxType;
61 CornerType cornerType;
62
63 ObjectHeader()
64 : fillColor(), color(), contentIndex(0), linkId(0), oleId(0), gradientId(0),
65 rotation(0), skew(0), hflip(false), vflip(false),
66 contentType(ContentType::UNKNOWN), shapeType(ShapeType::UNKNOWN),
67 boxType(BoxType::UNKNOWN), cornerType(CornerType::DEFAULT)
68 { }
69 };
70
71 private:
72 struct ColorBlockSpec
73 {
74 unsigned offset;
75 unsigned padding;
76
77 ColorBlockSpec()
78 : offset(0), padding(0)
79 { }
80 };
81
82 const std::shared_ptr<QXP4Header> m_header;
83
84 std::vector<std::vector<TabStop>> m_paragraphTabStops;
85
86 bool parseDocument(const std::shared_ptr<librevenge::RVNGInputStream> &docStream, QXPCollector &collector) override;
87 bool parsePages(const std::shared_ptr<librevenge::RVNGInputStream> &stream, QXPCollector &collector) override;
88
89 void parseColors(const std::shared_ptr<librevenge::RVNGInputStream> &docStream);
90 ColorBlockSpec parseColorBlockSpec(const std::shared_ptr<librevenge::RVNGInputStream> &stream);
91 void parseColor(const std::shared_ptr<librevenge::RVNGInputStream> &stream, const std::vector<ColorBlockSpec> &blocks);
92 void skipParagraphStylesheets(const std::shared_ptr<librevenge::RVNGInputStream> &stream);
93 CharFormat parseCharFormat(const std::shared_ptr<librevenge::RVNGInputStream> &stream) override;
94 void parseLineStyles(const std::shared_ptr<librevenge::RVNGInputStream> &docStream);
95 void skipTemplates(const std::shared_ptr<librevenge::RVNGInputStream> &stream);
96 void parseTabStops(const std::shared_ptr<librevenge::RVNGInputStream> &stream);
97 ParagraphFormat parseParagraphFormat(const std::shared_ptr<librevenge::RVNGInputStream> &stream) override;
98 std::shared_ptr<HJ> parseHJ(const std::shared_ptr<librevenge::RVNGInputStream> &stream) override;
99
100 Page parsePage(const std::shared_ptr<librevenge::RVNGInputStream> &stream, QXP4Deobfuscator &deobfuscate);
101
102 void parseObject(const std::shared_ptr<librevenge::RVNGInputStream> &stream, QXP4Deobfuscator &deobfuscate, QXPCollector &collector, const Page &page, unsigned index);
103 ObjectHeader parseObjectHeader(const std::shared_ptr<librevenge::RVNGInputStream> &stream, QXP4Deobfuscator &deobfuscate);
104 void parseLine(const std::shared_ptr<librevenge::RVNGInputStream> &stream, const ObjectHeader &header, QXPCollector &collector);
105 void parseBezierLine(const std::shared_ptr<librevenge::RVNGInputStream> &stream, const ObjectHeader &header, QXPCollector &collector);
106 void parseBezierEmptyBox(const std::shared_ptr<librevenge::RVNGInputStream> &stream, const ObjectHeader &header, QXPCollector &collector);
107 void parseEmptyBox(const std::shared_ptr<librevenge::RVNGInputStream> &stream, const ObjectHeader &header, QXPCollector &collector);
108 void parseBezierPictureBox(const std::shared_ptr<librevenge::RVNGInputStream> &stream, const ObjectHeader &header, QXPCollector &collector);
109 void parsePictureBox(const std::shared_ptr<librevenge::RVNGInputStream> &stream, const ObjectHeader &header, QXPCollector &collector);
110 void parseLineText(const std::shared_ptr<librevenge::RVNGInputStream> &stream, const ObjectHeader &header, QXPCollector &collector);
111 void parseBezierText(const std::shared_ptr<librevenge::RVNGInputStream> &stream, const ObjectHeader &header, QXPCollector &collector);
112 void parseBezierTextBox(const std::shared_ptr<librevenge::RVNGInputStream> &stream, const ObjectHeader &header, QXPCollector &collector);
113 void parseTextBox(const std::shared_ptr<librevenge::RVNGInputStream> &stream, const ObjectHeader &header, QXPCollector &collector);
114 void parseGroup(const std::shared_ptr<librevenge::RVNGInputStream> &stream, const ObjectHeader &header, QXPCollector &collector, const Page &page, unsigned index);
115
116 Frame readFrame(const std::shared_ptr<librevenge::RVNGInputStream> &stream);
117 bool readRunaround(const std::shared_ptr<librevenge::RVNGInputStream> &stream);
118 void readLinkedTextSettings(const std::shared_ptr<librevenge::RVNGInputStream> &stream, LinkedTextSettings &settings);
119 void readTextSettings(const std::shared_ptr<librevenge::RVNGInputStream> &stream, TextSettings &settings);
120 void readTextPathSettings(const std::shared_ptr<librevenge::RVNGInputStream> &stream, TextPathSettings &settings);
121 void readOleObject(const std::shared_ptr<librevenge::RVNGInputStream> &stream);
122 void readPictureSettings(const std::shared_ptr<librevenge::RVNGInputStream> &stream, std::shared_ptr<PictureBox> &picturebox);
123 void readImageData(const std::shared_ptr<librevenge::RVNGInputStream> &stream);
124 void readBezierData(const std::shared_ptr<librevenge::RVNGInputStream> &stream, std::vector<CurveComponent> &curveComponents, Rect &bbox);
125 void skipTextObjectEnd(const std::shared_ptr<librevenge::RVNGInputStream> &stream, const ObjectHeader &header, const LinkedTextSettings &linkedTextSettings);
126 };
127
128 }
129
130 #endif // QXP4PARSER_H_INCLUDED
131
132 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libqxp::Color
Definition: QXPTypes.h:68
libqxp::TextPathAlignment::BASELINE
libqxp::QXP4Parser::parseBezierPictureBox
void parseBezierPictureBox(const std::shared_ptr< librevenge::RVNGInputStream > &stream, const ObjectHeader &header, QXPCollector &collector)
Definition: QXP4Parser.cpp:738
libqxp::QXP4Parser::readTextSettings
void readTextSettings(const std::shared_ptr< librevenge::RVNGInputStream > &stream, TextSettings &settings)
Definition: QXP4Parser.cpp:1036
libqxp::Page
Definition: QXPTypes.h:545
libqxp::QXP4Parser::ShapeType
ShapeType
Definition: QXP4Parser.h:27
libqxp::QXP4Parser::ObjectHeader
Definition: QXP4Parser.h:41
QXP4Parser.h
libqxp::QXP4Parser::ShapeType::CONCAVE_RECTANGLE
libqxp::QXP4Parser::ObjectHeader::cornerType
CornerType cornerType
Definition: QXP4Parser.h:61
libqxp::Frame::width
double width
Definition: QXPTypes.h:346
libqxp::readU16
uint16_t readU16(librevenge::RVNGInputStream *input, bool bigEndian)
Definition: libqxp_utils.cpp:111
libqxp::QXP4Parser::readImageData
void readImageData(const std::shared_ptr< librevenge::RVNGInputStream > &stream)
Definition: QXP4Parser.cpp:1109
libqxp::ContentType::OBJECTS
libqxp::QXP4Parser::ShapeType::OVAL
libqxp::QXP4Parser::ObjectHeader::gradientId
unsigned gradientId
Definition: QXP4Parser.h:49
libqxp::QXP4Parser::ColorBlockSpec::offset
unsigned offset
Definition: QXP4Parser.h:74
libqxp::QXP4Parser::parsePictureBox
void parsePictureBox(const std::shared_ptr< librevenge::RVNGInputStream > &stream, const ObjectHeader &header, QXPCollector &collector)
Definition: QXP4Parser.cpp:768
libqxp::QXPParser::getColor
Color getColor(unsigned id, Color defaultColor=Color(0, 0, 0)) const
Definition: QXPParser.cpp:83
libqxp::TextPathSettings::skew
bool skew
Definition: QXPTypes.h:418
libqxp::QXP4Parser::parseDocument
bool parseDocument(const std::shared_ptr< librevenge::RVNGInputStream > &docStream, QXPCollector &collector) override
Definition: QXP4Parser.cpp:57
libqxp::TextPathSettings::lineAlignment
TextPathLineAlignment lineAlignment
Definition: QXPTypes.h:420
libqxp::QXPParser::be
const bool be
Definition: QXPParser.h:45
libqxp::QXP4Parser::QXP4Parser
QXP4Parser(const std::shared_ptr< librevenge::RVNGInputStream > &input, librevenge::RVNGDrawingInterface *painter, const std::shared_ptr< QXP4Header > &header)
Definition: QXP4Parser.cpp:50
libqxp::QXPParser::readColorComp
uint8_t readColorComp(const std::shared_ptr< librevenge::RVNGInputStream > &stream)
Definition: QXPParser.cpp:324
libqxp::LineCapType::RECT
libqxp::QXP4Parser::parseBezierLine
void parseBezierLine(const std::shared_ptr< librevenge::RVNGInputStream > &stream, const ObjectHeader &header, QXPCollector &collector)
Definition: QXP4Parser.cpp:682
libqxp::QXP4Parser::readFrame
Frame readFrame(const std::shared_ptr< librevenge::RVNGInputStream > &stream)
Definition: QXP4Parser.cpp:999
libqxp::QXP4Parser::ObjectHeader::boxType
BoxType boxType
Definition: QXP4Parser.h:60
libqxp::QXP4Deobfuscator
Definition: QXP4Deobfuscator.h:19
libqxp::QXPCollector::collectBox
virtual void collectBox(const std::shared_ptr< Box > &)
Definition: QXPCollector.h:46
libqxp::QXP4Parser::readRunaround
bool readRunaround(const std::shared_ptr< librevenge::RVNGInputStream > &stream)
Definition: QXP4Parser.cpp:1023
libqxp
Definition: libqxp_utils.cpp:24
libqxp::BoxType::BEZIER
libqxp::QXPParser::readObjectFlags
uint8_t readObjectFlags(const std::shared_ptr< librevenge::RVNGInputStream > &stream, bool &noColor)
Definition: QXPParser.cpp:478
libqxp::QXPCollector::collectTextBox
virtual void collectTextBox(const std::shared_ptr< TextBox > &)
Definition: QXPCollector.h:47
libqxp::QXP4Parser::parseColorBlockSpec
ColorBlockSpec parseColorBlockSpec(const std::shared_ptr< librevenge::RVNGInputStream > &stream)
Definition: QXP4Parser.cpp:164
libqxp::QXP4Parser::parseCharFormat
CharFormat parseCharFormat(const std::shared_ptr< librevenge::RVNGInputStream > &stream) override
Definition: QXP4Parser.cpp:227
libqxp::QXP4Parser::ObjectHeader::skew
double skew
Definition: QXP4Parser.h:52
libqxp::TextSettings::columnsCount
unsigned columnsCount
Definition: QXPTypes.h:388
libqxp::ParagraphFormat::leading
double leading
Definition: QXPTypes.h:252
libqxp::TextPathAlignment::DESCENT
libqxp::QXP4Parser::parsePage
Page parsePage(const std::shared_ptr< librevenge::RVNGInputStream > &stream, QXP4Deobfuscator &deobfuscate)
Definition: QXP4Parser.cpp:458
libqxp::QXPParser::skipRecord
void skipRecord(const std::shared_ptr< librevenge::RVNGInputStream > &stream)
Definition: QXPParser.cpp:116
libqxp::QXP4Parser::ObjectHeader::rotation
double rotation
Definition: QXP4Parser.h:51
libqxp::QXP4Parser::parseObjectHeader
ObjectHeader parseObjectHeader(const std::shared_ptr< librevenge::RVNGInputStream > &stream, QXP4Deobfuscator &deobfuscate)
Definition: QXP4Parser.cpp:551
libqxp::LineJoinType::MITER
libqxp::QXP4Parser::readBezierData
void readBezierData(const std::shared_ptr< librevenge::RVNGInputStream > &stream, std::vector< CurveComponent > &curveComponents, Rect &bbox)
Definition: QXP4Parser.cpp:1115
libqxp::QXPParser
Definition: QXPParser.h:30
libqxp::QXPCollector::startPage
virtual void startPage(const Page &)
Definition: QXPCollector.h:40
libqxp::Frame
Definition: QXPTypes.h:344
libqxp::BoxType::RECTANGLE
libqxp::QXP4Parser::ColorBlockSpec
Definition: QXP4Parser.h:72
libqxp::QXPParser::parseTabStop
TabStop parseTabStop(const std::shared_ptr< librevenge::RVNGInputStream > &stream)
Definition: QXPParser.cpp:200
QXPCollector.h
libqxp::QXPParser::setArrow
void setArrow(const unsigned index, Frame &frame) const
Definition: QXPParser.cpp:492
libqxp::QXP4Parser::skipParagraphStylesheets
void skipParagraphStylesheets(const std::shared_ptr< librevenge::RVNGInputStream > &stream)
Definition: QXP4Parser.cpp:197
libqxp::TextSettings::gutterWidth
double gutterWidth
Definition: QXPTypes.h:389
libqxp::TextSettings::skew
double skew
Definition: QXPTypes.h:393
libqxp::ParagraphFormat::firstLineIndent
double firstLineIndent
Definition: QXPTypes.h:251
libqxp::ContentType::NONE
libqxp::QXP4Parser::ShapeType::BEZIER_LINE
libqxp::seek
void seek(librevenge::RVNGInputStream *const input, const unsigned long pos)
Definition: libqxp_utils.cpp:241
libqxp::BoxType::OVAL
libqxp::ContentType::TEXT
libqxp::QXP4Parser::ShapeType::LINE
libqxp::QXPCollector
Definition: QXPCollector.h:27
libqxp::QXPDummyCollector
Definition: QXPCollector.h:54
libqxp::QXP4Parser::parsePages
bool parsePages(const std::shared_ptr< librevenge::RVNGInputStream > &stream, QXPCollector &collector) override
Definition: QXP4Parser.cpp:95
libqxp::QXP4Parser::parseHJ
std::shared_ptr< HJ > parseHJ(const std::shared_ptr< librevenge::RVNGInputStream > &stream) override
Definition: QXP4Parser.cpp:447
libqxp::QXP4Parser::readPictureSettings
void readPictureSettings(const std::shared_ptr< librevenge::RVNGInputStream > &stream, std::shared_ptr< PictureBox > &picturebox)
Definition: QXP4Parser.cpp:1098
QXPMemoryStream.h
libqxp::TextPathAlignment::ASCENT
libqxp::QXP4Parser::ObjectHeader::contentIndex
unsigned contentIndex
Definition: QXP4Parser.h:46
libqxp::QXP4Parser::parseGroup
void parseGroup(const std::shared_ptr< librevenge::RVNGInputStream > &stream, const ObjectHeader &header, QXPCollector &collector, const Page &page, unsigned index)
Definition: QXP4Parser.cpp:976
libqxp::QXPParser::parseFonts
void parseFonts(const std::shared_ptr< librevenge::RVNGInputStream > &stream)
Definition: QXPParser.cpp:125
libqxp::ParagraphFormat::incrementalLeading
bool incrementalLeading
Definition: QXPTypes.h:253
QXP4Header.h
libqxp::QXP4Parser::parseBezierEmptyBox
void parseBezierEmptyBox(const std::shared_ptr< librevenge::RVNGInputStream > &stream, const ObjectHeader &header, QXPCollector &collector)
Definition: QXP4Parser.cpp:696
libqxp::QXP4Parser::parseBezierText
void parseBezierText(const std::shared_ptr< librevenge::RVNGInputStream > &stream, const ObjectHeader &header, QXPCollector &collector)
Definition: QXP4Parser.cpp:844
libqxp::LineCapType::BUTT
libqxp::BoxType
BoxType
Definition: QXPTypes.h:477
libqxp::ParagraphFormat::tabStops
std::vector< TabStop > tabStops
Definition: QXPTypes.h:256
libqxp::QXP4Deobfuscator::nextShift
void nextShift(uint16_t count)
Definition: QXP4Deobfuscator.cpp:59
libqxp::QXPParser::readObjectBBox
Rect readObjectBBox(const std::shared_ptr< librevenge::RVNGInputStream > &stream)
Definition: QXPParser.cpp:329
libqxp::QXPParser::getLineStyle
const LineStyle * getLineStyle(unsigned id) const
Definition: QXPParser.cpp:94
libqxp::QXPParser::readVertAlign
VerticalAlignment readVertAlign(const std::shared_ptr< librevenge::RVNGInputStream > &stream)
Definition: QXPParser.cpp:413
libqxp::QXP4Parser::ObjectHeader::oleId
unsigned oleId
Definition: QXP4Parser.h:48
libqxp::QXPParser::parseParagraphFormats
void parseParagraphFormats(const std::shared_ptr< librevenge::RVNGInputStream > &stream)
Definition: QXPParser.cpp:230
libqxp::QXPParser::readYX
Point readYX(const std::shared_ptr< librevenge::RVNGInputStream > &stream)
Definition: QXPParser.cpp:432
libqxp::LineCapType::ROUND
libqxp::readU32
uint32_t readU32(librevenge::RVNGInputStream *input, bool bigEndian)
Definition: libqxp_utils.cpp:127
libqxp::QXP4Parser::skipTemplates
void skipTemplates(const std::shared_ptr< librevenge::RVNGInputStream > &stream)
Definition: QXP4Parser.cpp:332
libqxp::QXPParser::m_hjs
std::deque< std::shared_ptr< HJ > > m_hjs
Definition: QXPParser.h:56
libqxp::QXP4Parser::ObjectHeader::linkId
unsigned linkId
Definition: QXP4Parser.h:47
libqxp::QXP4Parser::ObjectHeader::fillColor
boost::optional< Color > fillColor
Definition: QXP4Parser.h:43
libqxp::readFraction
double readFraction(librevenge::RVNGInputStream *input, bool bigEndian)
Definition: libqxp_utils.cpp:174
QXP_DEBUG_MSG
#define QXP_DEBUG_MSG(M)
Definition: libqxp_utils.h:53
QXP4Deobfuscator.h
QXP_FALLTHROUGH
#define QXP_FALLTHROUGH
Definition: libqxp_utils.h:40
libqxp::QXP4Parser::ColorBlockSpec::ColorBlockSpec
ColorBlockSpec()
Definition: QXP4Parser.h:77
libqxp::QXPCollector::collectLine
virtual void collectLine(const std::shared_ptr< Line > &)
Definition: QXPCollector.h:45
libqxp::Page::pageSettings
std::vector< PageSettings > pageSettings
Definition: QXPTypes.h:547
libqxp::TextPathSettings::alignment
TextPathAlignment alignment
Definition: QXPTypes.h:419
libqxp::QXP4Parser::m_paragraphTabStops
std::vector< std::vector< TabStop > > m_paragraphTabStops
Definition: QXP4Parser.h:84
libqxp::CornerType
CornerType
Definition: QXPTypes.h:469
libqxp::TextSettings::inset
Rect inset
Definition: QXPTypes.h:391
libqxp::QXPParser::readParagraphFlags
uint8_t readParagraphFlags(const std::shared_ptr< librevenge::RVNGInputStream > &stream, bool &incrementalLeading, bool &ruleAbove, bool &ruleBelow)
Definition: QXPParser.cpp:460
libqxp::CharFormat
Definition: QXPTypes.h:144
libqxp::Rect::top
double top
Definition: QXPTypes.h:48
libqxp::QXPCollector::collectTextPath
virtual void collectTextPath(const std::shared_ptr< TextPath > &)
Definition: QXPCollector.h:48
libqxp::QXP4Parser::parseParagraphFormat
ParagraphFormat parseParagraphFormat(const std::shared_ptr< librevenge::RVNGInputStream > &stream) override
Definition: QXP4Parser.cpp:395
libqxp::QXP4Parser::parseLine
void parseLine(const std::shared_ptr< librevenge::RVNGInputStream > &stream, const ObjectHeader &header, QXPCollector &collector)
Definition: QXP4Parser.cpp:666
libqxp::LineJoinType::BEVEL
libqxp::QXPParser::readParagraphRule
std::shared_ptr< ParagraphRule > readParagraphRule(const std::shared_ptr< librevenge::RVNGInputStream > &stream)
Definition: QXPParser.cpp:440
libqxp::CharFormat::color
Color color
Definition: QXPTypes.h:149
libqxp::QXP4Parser::parseObject
void parseObject(const std::shared_ptr< librevenge::RVNGInputStream > &stream, QXP4Deobfuscator &deobfuscate, QXPCollector &collector, const Page &page, unsigned index)
Definition: QXP4Parser.cpp:466
libqxp::QXP4Deobfuscator::next
void next(uint16_t block)
Definition: QXP4Deobfuscator.cpp:48
libqxp::LineStyle
Definition: QXPTypes.h:126
libqxp::QXPParser::readGradient
Gradient readGradient(const std::shared_ptr< librevenge::RVNGInputStream > &stream, const Color &color1)
Definition: QXPParser.cpp:339
libqxp::Frame::color
boost::optional< Color > color
Definition: QXPTypes.h:347
libqxp::CharFormat::baselineShift
double baselineShift
Definition: QXPTypes.h:148
libqxp::QXP4Parser::parseColor
void parseColor(const std::shared_ptr< librevenge::RVNGInputStream > &stream, const std::vector< ColorBlockSpec > &blocks)
Definition: QXP4Parser.cpp:173
libqxp::QXP4Parser::ObjectHeader::contentType
ContentType contentType
Definition: QXP4Parser.h:57
libqxp::QXPParser::readGroupElements
void readGroupElements(const std::shared_ptr< librevenge::RVNGInputStream > &stream, unsigned count, unsigned objectsCount, unsigned index, std::vector< unsigned > &elements)
Definition: QXPParser.cpp:560
libqxp::QXP4Parser::ObjectHeader::color
Color color
Definition: QXP4Parser.h:44
libqxp::LineCapType::STRETCH
libqxp::QXP4Parser::readLinkedTextSettings
void readLinkedTextSettings(const std::shared_ptr< librevenge::RVNGInputStream > &stream, LinkedTextSettings &settings)
Definition: QXP4Parser.cpp:1030
libqxp::HorizontalAlignment::CENTER
libqxp::Color::blue
uint8_t blue
Definition: QXPTypes.h:72
libqxp::LinkedTextSettings::nextLinkedIndex
unsigned nextLinkedIndex
Definition: QXPTypes.h:366
libqxp::QXP4Parser::ObjectHeader::hflip
bool hflip
Definition: QXP4Parser.h:54
libqxp::QXPParser::parseText
std::shared_ptr< Text > parseText(unsigned index, unsigned linkId, QXPCollector &collector)
Definition: QXPParser.cpp:303
libqxp::CharFormat::isControlChars
bool isControlChars
Definition: QXPTypes.h:163
libqxp::QXP4Parser::ShapeType::UNKNOWN
libqxp::QXPParser::parseCollection
void parseCollection(const std::shared_ptr< librevenge::RVNGInputStream >stream, std::function< void()> itemHandler)
Definition: QXPParser.cpp:239
libqxp::Rect::right
double right
Definition: QXPTypes.h:49
libqxp::Rect
Definition: QXPTypes.h:46
libqxp::ParagraphFormat::ruleAbove
std::shared_ptr< ParagraphRule > ruleAbove
Definition: QXPTypes.h:254
libqxp::readU8
uint8_t readU8(librevenge::RVNGInputStream *input, bool)
Definition: libqxp_utils.cpp:99
libqxp::QXPParser::skipFileInfo
void skipFileInfo(const std::shared_ptr< librevenge::RVNGInputStream > &stream)
Definition: QXPParser.cpp:517
libqxp::QXPParser::m_colors
std::map< unsigned, Color > m_colors
Definition: QXPParser.h:50
libqxp::QXPParser::readHorAlign
HorizontalAlignment readHorAlign(const std::shared_ptr< librevenge::RVNGInputStream > &stream)
Definition: QXPParser.cpp:392
libqxp::TextSettings::rotation
double rotation
Definition: QXPTypes.h:392
libqxp::QXP4Parser::ShapeType::RECTANGLE
libqxp::CornerType::BEVELED
libqxp::QXP4Parser::skipTextObjectEnd
void skipTextObjectEnd(const std::shared_ptr< librevenge::RVNGInputStream > &stream, const ObjectHeader &header, const LinkedTextSettings &linkedTextSettings)
Definition: QXP4Parser.cpp:1176
libqxp::Color::applyShade
Color applyShade(double shade) const
Definition: QXPTypes.cpp:105
libqxp::LinkedTextSettings::offsetIntoText
unsigned offsetIntoText
Definition: QXPTypes.h:364
libqxp::QXP4Parser::parseColors
void parseColors(const std::shared_ptr< librevenge::RVNGInputStream > &docStream)
Definition: QXP4Parser.cpp:121
libqxp::Rect::bottom
double bottom
Definition: QXPTypes.h:50
libqxp::readNBytes
const unsigned char * readNBytes(librevenge::RVNGInputStream *const input, const unsigned long numBytes)
Definition: libqxp_utils.cpp:180
libqxp::UNKNOWN
Definition: QXPHeader.h:24
libqxp::QXPCollector::endPage
virtual void endPage()
Definition: QXPCollector.h:41
libqxp::QXP4Parser::readOleObject
void readOleObject(const std::shared_ptr< librevenge::RVNGInputStream > &stream)
Definition: QXP4Parser.cpp:1092
libqxp::QXP4Parser::parseLineText
void parseLineText(const std::shared_ptr< librevenge::RVNGInputStream > &stream, const ObjectHeader &header, QXPCollector &collector)
Definition: QXP4Parser.cpp:802
libqxp::QXP4Parser::readTextPathSettings
void readTextPathSettings(const std::shared_ptr< librevenge::RVNGInputStream > &stream, TextPathSettings &settings)
Definition: QXP4Parser.cpp:1051
libqxp::QXP4Parser::ColorBlockSpec::padding
unsigned padding
Definition: QXP4Parser.h:75
libqxp::CornerType::ROUNDED
libqxp::ParagraphFormat::hj
std::shared_ptr< HJ > hj
Definition: QXPTypes.h:257
libqxp::QXPParser::parseCommonCharFormatProps
void parseCommonCharFormatProps(const std::shared_ptr< librevenge::RVNGInputStream > &stream, CharFormat &result)
Definition: QXPParser.cpp:189
libqxp::Color::green
uint8_t green
Definition: QXPTypes.h:71
libqxp::ParagraphFormat
Definition: QXPTypes.h:247
libqxp::Rect::left
double left
Definition: QXPTypes.h:51
libqxp::ContentType::PICTURE
libqxp::TextPathSettings
Definition: QXPTypes.h:415
libqxp::ContentType
ContentType
Definition: QXPTypes.h:265
libqxp::Frame::gapColor
boost::optional< Color > gapColor
Definition: QXPTypes.h:348
libqxp::skip
void skip(librevenge::RVNGInputStream *input, unsigned long numBytes)
Definition: libqxp_utils.cpp:234
QXPParser.h
libqxp::QXPParser::parseHJProps
void parseHJProps(const std::shared_ptr< librevenge::RVNGInputStream > &stream, HJ &result)
Definition: QXPParser.cpp:176
libqxp::QXPCollector::collectDocumentProperties
virtual void collectDocumentProperties(const QXPDocumentProperties &)
Definition: QXPCollector.h:43
libqxp::QXP4Parser::parseLineStyles
void parseLineStyles(const std::shared_ptr< librevenge::RVNGInputStream > &docStream)
Definition: QXP4Parser.cpp:253
libqxp::ParseError
Definition: libqxp_utils.h:142
libqxp::QXP4Parser::m_header
const std::shared_ptr< QXP4Header > m_header
Definition: QXP4Parser.h:82
libqxp::QXPParser::m_groupObjects
std::set< unsigned > m_groupObjects
Definition: QXPParser.h:58
libqxp::QXPParser::parseHJs
void parseHJs(const std::shared_ptr< librevenge::RVNGInputStream > &stream)
Definition: QXPParser.cpp:159
libqxp::QXPParser::parsePageSettings
std::vector< PageSettings > parsePageSettings(const std::shared_ptr< librevenge::RVNGInputStream > &stream)
Definition: QXPParser.cpp:264
libqxp::QXP4Parser::ObjectHeader::ObjectHeader
ObjectHeader()
Definition: QXP4Parser.h:63
libqxp::QXP4Parser::parseTabStops
void parseTabStops(const std::shared_ptr< librevenge::RVNGInputStream > &stream)
Definition: QXP4Parser.cpp:357
libqxp::CornerType::DEFAULT
libqxp::QXP4Parser::ShapeType::BEZIER_BOX
libqxp::GenericException
Definition: libqxp_utils.h:132
libqxp::ParagraphFormat::ruleBelow
std::shared_ptr< ParagraphRule > ruleBelow
Definition: QXPTypes.h:255
libqxp::QXP4Parser::ObjectHeader::vflip
bool vflip
Definition: QXP4Parser.h:55
libqxp::QXP4Parser::ShapeType::BEVELED_RECTANGLE
libqxp::VerticalAlignment::BOTTOM
libqxp::QXP4Parser::ObjectHeader::shapeType
ShapeType shapeType
Definition: QXP4Parser.h:58
libqxp::ParagraphFormat::margin
Rect margin
Definition: QXPTypes.h:250
libqxp::LinkedTextSettings
Definition: QXPTypes.h:361
libqxp::TextSettings::verticalAlignment
VerticalAlignment verticalAlignment
Definition: QXPTypes.h:390
libqxp::QXP4Parser::ShapeType::ORTHOGONAL_LINE
libqxp::Color::red
uint8_t red
Definition: QXPTypes.h:70
libqxp::QXP4Parser::parseBezierTextBox
void parseBezierTextBox(const std::shared_ptr< librevenge::RVNGInputStream > &stream, const ObjectHeader &header, QXPCollector &collector)
Definition: QXP4Parser.cpp:884
libqxp::QXP4Parser::ShapeType::ROUNDED_RECTANGLE
libqxp::TextSettings
Definition: QXPTypes.h:386
libqxp::QXPCollector::collectGroup
virtual void collectGroup(const std::shared_ptr< Group > &)
Definition: QXPCollector.h:49
libqxp::QXP4Parser::parseEmptyBox
void parseEmptyBox(const std::shared_ptr< librevenge::RVNGInputStream > &stream, const ObjectHeader &header, QXPCollector &collector)
Definition: QXP4Parser.cpp:715
libqxp::getRemainingLength
unsigned long getRemainingLength(librevenge::RVNGInputStream *const input)
Definition: libqxp_utils.cpp:259
libqxp::QXP4Parser
Definition: QXP4Parser.h:22
libqxp::TextPathSettings::rotate
bool rotate
Definition: QXPTypes.h:417
libqxp::QXP4Parser::parseTextBox
void parseTextBox(const std::shared_ptr< librevenge::RVNGInputStream > &stream, const ObjectHeader &header, QXPCollector &collector)
Definition: QXP4Parser.cpp:928
libqxp::Frame::lineStyle
const LineStyle * lineStyle
Definition: QXPTypes.h:349
libqxp::QXPParser::parseCharFormats
void parseCharFormats(const std::shared_ptr< librevenge::RVNGInputStream > &stream)
Definition: QXPParser.cpp:167
libqxp::QXPParser::m_lineStyles
std::map< unsigned, LineStyle > m_lineStyles
Definition: QXPParser.h:54
libqxp::Page::objectsCount
unsigned objectsCount
Definition: QXPTypes.h:548
libqxp::VerticalAlignment::TOP
libqxp::ParagraphFormat::alignment
HorizontalAlignment alignment
Definition: QXPTypes.h:249
libqxp::CornerType::CONCAVE