WP5ContentListener.h Source File documentation

WP5ContentListener.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* libwpd
3 * Version: MPL 2.0 / LGPLv2.1+
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 * Major Contributor(s):
10 * Copyright (C) 2003 William Lachance (wrlach@gmail.com)
11 * Copyright (C) 2003 Marc Maurer (uwog@uwog.net)
12 * Copyright (C) 2005-2007 Fridrich Strba (fridrich.strba@bluewin.ch)
13 *
14 * For minor contributions see the git repository.
15 *
16 * Alternatively, the contents of this file may be used under the terms
17 * of the GNU Lesser General Public License Version 2.1 or later
18 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
19 * applicable instead of those above.
20 *
21 * For further information visit http://libwpd.sourceforge.net
22 */
23
24 /* "This product is not manufactured, approved, or supported by
25 * Corel Corporation or Corel Corporation Limited."
26 */
27
28 #ifndef WP5CONTENTLISTENER_H
29 #define WP5CONTENTLISTENER_H
30
31 #include "WP5Listener.h"
32 #include "WPXContentListener.h"
33 #include "WP5SubDocument.h"
34 #include "libwpd_internal.h"
35 #include <memory>
36
37 struct WP5ContentParsingState
38 {
39 WP5ContentParsingState();
40 ~WP5ContentParsingState();
41 librevenge::RVNGString m_textBuffer;
42 librevenge::RVNGString m_noteReference;
43
44 WPXTableList m_tableList;
45
46 bool m_isFrameOpened;
47 };
48
49 class WP5ContentListener : public WP5Listener, protected WPXContentListener
50 {
51 public:
52 WP5ContentListener(std::list<WPXPageSpan> &pageList, librevenge::RVNGTextInterface *documentInterface);
53 ~WP5ContentListener() override;
54
55 void startDocument() override
56 {
57 WPXContentListener::startDocument();
58 }
59 void startSubDocument() override
60 {
61 WPXContentListener::startSubDocument();
62 }
63 void setFont(const librevenge::RVNGString &fontName, double fontSize) override;
64 void setTabs(const std::vector<WPXTabStop> &tabStops, unsigned short tabOffset) override;
65 void insertCharacter(unsigned character) override;
66 void insertTab(unsigned char tabType, double tabPosition) override;
67 void insertIndent(unsigned char indentType, double indentPosition) override;
68 void insertEOL() override;
69 void insertBreak(unsigned char breakType) override
70 {
71 WPXContentListener::insertBreak(breakType);
72 }
73 void lineSpacingChange(double lineSpacing) override
74 {
75 WPXContentListener::lineSpacingChange(lineSpacing);
76 }
77 void justificationChange(unsigned char justification) override
78 {
79 WPXContentListener::justificationChange(justification);
80 }
81 void characterColorChange(unsigned char red, unsigned char green, unsigned char blue) override;
82 void attributeChange(bool isOn, unsigned char attribute) override;
83 void pageMarginChange(unsigned char /* side */, unsigned short /* margin */) override {}
84 void pageFormChange(unsigned short /* length */, unsigned short /* width */, WPXFormOrientation /* orientation */) override {}
85 void marginChange(unsigned char side, unsigned short margin) override;
86 void paragraphMarginChange(unsigned char /* side */, signed short /* margin */) {}
87 void endDocument() override
88 {
89 WPXContentListener::endDocument();
90 }
91 void endSubDocument() override
92 {
93 WPXContentListener::endSubDocument();
94 }
95
96 void defineTable(unsigned char position, unsigned short leftOffset) override;
97 void addTableColumnDefinition(unsigned width, unsigned leftGutter, unsigned rightGutter,
98 unsigned attributes, unsigned char alignment) override;
99 void startTable() override;
100 void insertRow(unsigned short rowHeight, bool isMinimumHeight, bool isHeaderRow) override;
101 void insertCell(unsigned char colSpan, unsigned char rowSpan, unsigned char borderBits,
102 const RGBSColor *cellFgColor, const RGBSColor *cellBgColor,
103 const RGBSColor *cellBorderColor, WPXVerticalAlignment cellVerticalAlignment,
104 bool useCellAttributes, unsigned cellAttributes) override;
105 void endTable() override;
106
107 void insertNoteReference(const librevenge::RVNGString &noteReference) override;
108 void insertNote(WPXNoteType noteType, const WP5SubDocument *subDocument) override;
109 void headerFooterGroup(unsigned char headerFooterType, unsigned char occurrenceBits, const std::shared_ptr<WP5SubDocument> &subDocument) override;
110 void suppressPageCharacteristics(unsigned char /* suppressCode */) override {}
111
112 void setDefaultFont(const librevenge::RVNGString &fontName, double fontSize);
113
114 void boxOn(unsigned char positionAndType, unsigned char alignment, unsigned short width, unsigned short height, unsigned short x, unsigned short y) override;
115 void boxOff() override;
116 void insertGraphicsData(const librevenge::RVNGBinaryData *data) override;
117
118 protected:
119 void _handleSubDocument(const WPXSubDocument *subDocument, WPXSubDocumentType subDocumentType, WPXTableList tableList, unsigned nextTableIndice = 0) override;
120
121 void _flushText() override;
122 void _changeList() override {}
123
124 private:
125 WP5ContentListener(const WP5ContentListener &);
126 WP5ContentListener &operator=(const WP5ContentListener &);
127 std::unique_ptr<WP5ContentParsingState> m_parseState;
128 double m_defaultFontSize;
129 librevenge::RVNGString m_defaultFontName;
130 };
131
132 #endif /* WP5CONTENTLISTENER_H */
133 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
WPXContentListener::_closeSpan
void _closeSpan()
Definition: WPXContentListener.cpp:899
WPXContentListener::endDocument
void endDocument()
Definition: WPXContentListener.cpp:159
WPXColumnDefinition::m_rightGutter
double m_rightGutter
Definition: libwpd_internal.h:183
WP5ContentListener::pageMarginChange
void pageMarginChange(unsigned char, unsigned short) override
Definition: WP5ContentListener.h:83
WP5_ATTRIBUTE_STRIKE_OUT
#define WP5_ATTRIBUTE_STRIKE_OUT
Definition: WP5FileStructure.h:47
WP5ContentListener::setFont
void setFont(const librevenge::RVNGString &fontName, double fontSize) override
Definition: WP5ContentListener.cpp:496
WP5_INDENT_GROUP_LEFT_RIGHT_INDENT
#define WP5_INDENT_GROUP_LEFT_RIGHT_INDENT
Definition: WP5FileStructure.h:160
WPXContentListener::_closeListElement
void _closeListElement()
Definition: WPXContentListener.cpp:772
WP5_ATTRIBUTE_SHADOW
#define WP5_ATTRIBUTE_SHADOW
Definition: WP5FileStructure.h:43
WP5ContentParsingState
Definition: WP5ContentListener.h:38
WPXContentListener::lineSpacingChange
void lineSpacingChange(const double lineSpacing)
Definition: WPXContentListener.cpp:1296
WP5ContentListener::addTableColumnDefinition
void addTableColumnDefinition(unsigned width, unsigned leftGutter, unsigned rightGutter, unsigned attributes, unsigned char alignment) override
Definition: WP5ContentListener.cpp:273
WP5_TAB_GROUP_FLUSH_RIGHT
#define WP5_TAB_GROUP_FLUSH_RIGHT
Definition: WP5FileStructure.h:152
WPX_SUPERSCRIPT_BIT
#define WPX_SUPERSCRIPT_BIT
Definition: libwpd_internal.h:119
WP5ContentListener::insertRow
void insertRow(unsigned short rowHeight, bool isMinimumHeight, bool isHeaderRow) override
Definition: WP5ContentListener.cpp:319
WPXContentListener::_openSpan
void _openSpan()
Definition: WPXContentListener.cpp:791
WPX_REDLINE_BIT
#define WPX_REDLINE_BIT
Definition: libwpd_internal.h:124
WP5_ATTRIBUTE_DOUBLE_UNDERLINE
#define WP5_ATTRIBUTE_DOUBLE_UNDERLINE
Definition: WP5FileStructure.h:45
WPXVerticalAlignment
WPXVerticalAlignment
Definition: libwpd_internal.h:107
WP5ContentParsingState::WP5ContentParsingState
WP5ContentParsingState()
Definition: WP5ContentListener.cpp:34
WP5_ATTRIBUTE_BOLD
#define WP5_ATTRIBUTE_BOLD
Definition: WP5FileStructure.h:46
WPXContentListener::_openParagraph
virtual void _openParagraph()
Definition: WPXContentListener.cpp:496
WP5ContentListener::~WP5ContentListener
~WP5ContentListener() override
Definition: WP5ContentListener.cpp:55
WP5_TAB_GROUP_RIGHT_TAB
#define WP5_TAB_GROUP_RIGHT_TAB
Definition: WP5FileStructure.h:151
WPX_PARAGRAPH_JUSTIFICATION_RIGHT
#define WPX_PARAGRAPH_JUSTIFICATION_RIGHT
Definition: libwpd_internal.h:137
WPXFormOrientation
WPXFormOrientation
Definition: libwpd_internal.h:105
WPX_UNDERLINE_BIT
#define WPX_UNDERLINE_BIT
Definition: libwpd_internal.h:128
WP5ContentParsingState::m_isFrameOpened
bool m_isFrameOpened
Definition: WP5ContentListener.h:46
WPXColumnProperties
Definition: libwpd_internal.h:187
WP5ContentListener::pageFormChange
void pageFormChange(unsigned short, unsigned short, WPXFormOrientation) override
Definition: WP5ContentListener.h:84
WPX_DOUBLE_UNDERLINE_BIT
#define WPX_DOUBLE_UNDERLINE_BIT
Definition: libwpd_internal.h:125
WPX_SMALL_PRINT_BIT
#define WPX_SMALL_PRINT_BIT
Definition: libwpd_internal.h:117
RGBSColor
Definition: libwpd_internal.h:167
WP5_ATTRIBUTE_EXTRA_LARGE
#define WP5_ATTRIBUTE_EXTRA_LARGE
Definition: WP5FileStructure.h:34
WP5_ATTRIBUTE_UNDERLINE
#define WP5_ATTRIBUTE_UNDERLINE
Definition: WP5FileStructure.h:48
WPX_RIGHT
#define WPX_RIGHT
Definition: libwpd_internal.h:161
WP5ContentListener::marginChange
void marginChange(unsigned char side, unsigned short margin) override
Definition: WP5ContentListener.cpp:440
WPXContentListener::_openListElement
void _openListElement()
Definition: WPXContentListener.cpp:742
WP5ContentListener::m_defaultFontName
librevenge::RVNGString m_defaultFontName
Definition: WP5ContentListener.h:129
WPXContentListener::_closeTable
void _closeTable()
Definition: WPXContentListener.cpp:970
WPX_SHADOW_BIT
#define WPX_SHADOW_BIT
Definition: libwpd_internal.h:123
WPXContentListener::endSubDocument
void endSubDocument()
Definition: WPXContentListener.cpp:180
WPXSubDocument
Definition: WPXSubDocument.h:37
WPX_LEFT
#define WPX_LEFT
Definition: libwpd_internal.h:160
WP5_INDENT_GROUP_LEFT_INDENT
#define WP5_INDENT_GROUP_LEFT_INDENT
Definition: WP5FileStructure.h:159
WP5_TAB_GROUP_CENTER_TAB
#define WP5_TAB_GROUP_CENTER_TAB
Definition: WP5FileStructure.h:155
WPX_SUBSCRIPT_BIT
#define WPX_SUBSCRIPT_BIT
Definition: libwpd_internal.h:120
WP5_ATTRIBUTE_REDLINE
#define WP5_ATTRIBUTE_REDLINE
Definition: WP5FileStructure.h:44
WPXColumnDefinition::m_width
double m_width
Definition: libwpd_internal.h:181
WPXContentListener::_closeParagraph
void _closeParagraph()
Definition: WPXContentListener.cpp:725
WP5_TAB_GROUP_CENTER_ON_MARGINS
#define WP5_TAB_GROUP_CENTER_ON_MARGINS
Definition: WP5FileStructure.h:156
WP5_ATTRIBUTE_ITALICS
#define WP5_ATTRIBUTE_ITALICS
Definition: WP5FileStructure.h:42
WP5ContentListener::suppressPageCharacteristics
void suppressPageCharacteristics(unsigned char) override
Definition: WP5ContentListener.h:110
WPX_SUBDOCUMENT_NOTE
@ WPX_SUBDOCUMENT_NOTE
Definition: libwpd_internal.h:111
WPXContentListener::_openSection
void _openSection()
Definition: WPXContentListener.cpp:193
WPXContentListener::justificationChange
void justificationChange(const unsigned char justification)
Definition: WPXContentListener.cpp:1304
WP5ContentListener::operator=
WP5ContentListener & operator=(const WP5ContentListener &)
WP5ContentListener::insertEOL
void insertEOL() override
Definition: WP5ContentListener.cpp:225
WPXContentListener::m_ps
std::unique_ptr< WPXContentParsingState > m_ps
Definition: WPXContentListener.h:162
WP5ContentListener::lineSpacingChange
void lineSpacingChange(double lineSpacing) override
Definition: WP5ContentListener.h:73
WPXColumnProperties::m_attributes
unsigned m_attributes
Definition: libwpd_internal.h:189
libwpd_internal.h
WP5Listener
Definition: WP5Listener.h:41
WPXNoteType
WPXNoteType
Definition: libwpd_internal.h:93
WPXColumnDefinition
Definition: libwpd_internal.h:179
WPXContentListener::startDocument
void startDocument()
Definition: WPXContentListener.cpp:138
WPX_FINE_PRINT_BIT
#define WPX_FINE_PRINT_BIT
Definition: libwpd_internal.h:118
WPX_BOLD_BIT
#define WPX_BOLD_BIT
Definition: libwpd_internal.h:126
WP5ContentListener::insertBreak
void insertBreak(unsigned char breakType) override
Definition: WP5ContentListener.h:69
WPXContentListener
Definition: WPXContentListener.h:148
WP5ContentParsingState::~WP5ContentParsingState
~WP5ContentParsingState()
Definition: WP5ContentListener.cpp:42
WPX_SUBDOCUMENT_HEADER_FOOTER
@ WPX_SUBDOCUMENT_HEADER_FOOTER
Definition: libwpd_internal.h:111
WPX_NUM_WPUS_PER_INCH
#define WPX_NUM_WPUS_PER_INCH
Definition: WPXFileStructure.h:30
WP5ContentListener::defineTable
void defineTable(unsigned char position, unsigned short leftOffset) override
Definition: WP5ContentListener.cpp:238
WPXContentListener::_openTableCell
void _openTableCell(const unsigned char colSpan, const unsigned char rowSpan, const unsigned char borderBits, const RGBSColor *cellFgColor, const RGBSColor *cellBgColor, const RGBSColor *cellBorderColor, const WPXVerticalAlignment cellVerticalAlignment)
Definition: WPXContentListener.cpp:1101
WPXContentListener::insertBreak
void insertBreak(const unsigned char breakType)
Definition: WPXContentListener.cpp:1242
WP5ContentListener::_flushText
void _flushText() override
Definition: WP5ContentListener.cpp:823
ARABIC
@ ARABIC
Definition: libwpd_internal.h:92
WP5ContentListener::paragraphMarginChange
void paragraphMarginChange(unsigned char, signed short)
Definition: WP5ContentListener.h:86
WPXContentListener::m_documentInterface
librevenge::RVNGTextInterface * m_documentInterface
Definition: WPXContentListener.h:163
WP5ContentListener::startSubDocument
void startSubDocument() override
Definition: WP5ContentListener.h:59
WPXContentListener::_mapNonUnicodeCharacter
unsigned _mapNonUnicodeCharacter(unsigned character)
Definition: WPXContentListener.cpp:1450
WP5ContentParsingState::m_noteReference
librevenge::RVNGString m_noteReference
Definition: WP5ContentListener.h:42
WP5ContentListener::endTable
void endTable() override
Definition: WP5ContentListener.cpp:352
WP5ContentListener::insertCell
void insertCell(unsigned char colSpan, unsigned char rowSpan, unsigned char borderBits, const RGBSColor *cellFgColor, const RGBSColor *cellBgColor, const RGBSColor *cellBorderColor, WPXVerticalAlignment cellVerticalAlignment, bool useCellAttributes, unsigned cellAttributes) override
Definition: WP5ContentListener.cpp:329
WPXContentListener::handleSubDocument
void handleSubDocument(const WPXSubDocument *subDocument, WPXSubDocumentType subDocumentType, WPXTableList tableList, unsigned nextTableIndice)
Creates an new document state.
Definition: WPXContentListener.cpp:1195
WP5ContentListener::setDefaultFont
void setDefaultFont(const librevenge::RVNGString &fontName, double fontSize)
Definition: WP5ContentListener.cpp:599
WP5ContentListener::insertNote
void insertNote(WPXNoteType noteType, const WP5SubDocument *subDocument) override
Definition: WP5ContentListener.cpp:524
WPX_TABLE_POSITION_ABSOLUTE_FROM_LEFT_MARGIN
#define WPX_TABLE_POSITION_ABSOLUTE_FROM_LEFT_MARGIN
Definition: libwpd_internal.h:146
WPX_VERY_LARGE_BIT
#define WPX_VERY_LARGE_BIT
Definition: libwpd_internal.h:115
WPXColumnProperties::m_alignment
unsigned char m_alignment
Definition: libwpd_internal.h:190
_extractWPXNumberingTypeFromBuf
WPXNumberingType _extractWPXNumberingTypeFromBuf(const librevenge::RVNGString &buf, const WPXNumberingType putativeWPXNumberingType)
Definition: libwpd_internal.cpp:1303
WP5ContentListener::boxOff
void boxOff() override
Definition: WP5ContentListener.cpp:795
WP5ContentListener::startTable
void startTable() override
Definition: WP5ContentListener.cpp:298
WPXContentListener::_openPageSpan
void _openPageSpan()
Definition: WPXContentListener.cpp:295
WPXTableList
Definition: WPXTableList.h:36
WP5Listener.h
WPX_ITALICS_BIT
#define WPX_ITALICS_BIT
Definition: libwpd_internal.h:122
WP5ContentListener::insertIndent
void insertIndent(unsigned char indentType, double indentPosition) override
Definition: WP5ContentListener.cpp:167
WPXContentListener::_openTable
void _openTable()
Definition: WPXContentListener.cpp:911
WP5ContentListener::endSubDocument
void endSubDocument() override
Definition: WP5ContentListener.h:91
WPXColumnDefinition::m_leftGutter
double m_leftGutter
Definition: libwpd_internal.h:182
WPXContentListener::startSubDocument
void startSubDocument()
Definition: WPXContentListener.cpp:153
WP5ContentListener::insertGraphicsData
void insertGraphicsData(const librevenge::RVNGBinaryData *data) override
Definition: WP5ContentListener.cpp:804
WPXContentListener::_closeSection
void _closeSection()
Definition: WPXContentListener.cpp:233
WP5_ATTRIBUTE_SUBSCRIPT
#define WP5_ATTRIBUTE_SUBSCRIPT
Definition: WP5FileStructure.h:40
WPXListener::isUndoOn
bool isUndoOn()
Definition: WPXListener.h:40
WP5_ATTRIBUTE_OUTLINE
#define WP5_ATTRIBUTE_OUTLINE
Definition: WP5FileStructure.h:41
WP5ContentListener::headerFooterGroup
void headerFooterGroup(unsigned char headerFooterType, unsigned char occurrenceBits, const std::shared_ptr< WP5SubDocument > &subDocument) override
Definition: WP5ContentListener.cpp:594
WP5SubDocument
Definition: WP5SubDocument.h:34
WPX_TABLE_POSITION_CENTER_BETWEEN_MARGINS
#define WPX_TABLE_POSITION_CENTER_BETWEEN_MARGINS
Definition: libwpd_internal.h:144
WP5FileStructure.h
WPX_PARAGRAPH_JUSTIFICATION_CENTER
#define WPX_PARAGRAPH_JUSTIFICATION_CENTER
Definition: libwpd_internal.h:136
WPX_OUTLINE_BIT
#define WPX_OUTLINE_BIT
Definition: libwpd_internal.h:121
WPX_TABLE_POSITION_ALIGN_WITH_LEFT_MARGIN
#define WPX_TABLE_POSITION_ALIGN_WITH_LEFT_MARGIN
Definition: libwpd_internal.h:142
WPXFileStructure.h
WP5ContentListener::m_defaultFontSize
double m_defaultFontSize
Definition: WP5ContentListener.h:128
WP5ContentListener::WP5ContentListener
WP5ContentListener(const WP5ContentListener &)
WPX_STRIKEOUT_BIT
#define WPX_STRIKEOUT_BIT
Definition: libwpd_internal.h:127
WP5_TAB_GROUP_CENTER_ON_CURRENT_POSITION
#define WP5_TAB_GROUP_CENTER_ON_CURRENT_POSITION
Definition: WP5FileStructure.h:154
WP5ContentParsingState::m_tableList
WPXTableList m_tableList
Definition: WP5ContentListener.h:44
WPXNumberingType
WPXNumberingType
Definition: libwpd_internal.h:92
WP5_ATTRIBUTE_VERY_LARGE
#define WP5_ATTRIBUTE_VERY_LARGE
Definition: WP5FileStructure.h:35
WP5_ATTRIBUTE_SMALL_CAPS
#define WP5_ATTRIBUTE_SMALL_CAPS
Definition: WP5FileStructure.h:49
WP5ContentListener::_handleSubDocument
void _handleSubDocument(const WPXSubDocument *subDocument, WPXSubDocumentType subDocumentType, WPXTableList tableList, unsigned nextTableIndice=0) override
Definition: WP5ContentListener.cpp:558
WP5ContentListener::insertCharacter
void insertCharacter(unsigned character) override
Definition: WP5ContentListener.cpp:64
WP5_ATTRIBUTE_LARGE
#define WP5_ATTRIBUTE_LARGE
Definition: WP5FileStructure.h:36
WP5_TAB_GROUP_DECIMAL_TAB
#define WP5_TAB_GROUP_DECIMAL_TAB
Definition: WP5FileStructure.h:150
WP5_ATTRIBUTE_SUPERSCRIPT
#define WP5_ATTRIBUTE_SUPERSCRIPT
Definition: WP5FileStructure.h:39
WPXSubDocumentType
WPXSubDocumentType
Definition: libwpd_internal.h:111
WPX_SMALL_CAPS_BIT
#define WPX_SMALL_CAPS_BIT
Definition: libwpd_internal.h:129
WP5ContentListener::justificationChange
void justificationChange(unsigned char justification) override
Definition: WP5ContentListener.h:77
WPX_TABLE_POSITION_ALIGN_WITH_RIGHT_MARGIN
#define WPX_TABLE_POSITION_ALIGN_WITH_RIGHT_MARGIN
Definition: libwpd_internal.h:143
WP5ContentListener::endDocument
void endDocument() override
Definition: WP5ContentListener.h:87
WP5ContentListener::attributeChange
void attributeChange(bool isOn, unsigned char attribute) override
Definition: WP5ContentListener.cpp:370
WP5SubDocument.h
WP5ContentListener::WP5ContentListener
WP5ContentListener(std::list< WPXPageSpan > &pageList, librevenge::RVNGTextInterface *documentInterface)
Definition: WP5ContentListener.cpp:46
WP5ContentListener::_changeList
void _changeList() override
Definition: WP5ContentListener.h:122
appendUCS4
void appendUCS4(librevenge::RVNGString &str, unsigned ucs4)
Definition: libwpd_internal.cpp:154
WP5ContentListener::insertNoteReference
void insertNoteReference(const librevenge::RVNGString &noteReference) override
Definition: WP5ContentListener.cpp:516
WPXContentListener::_openTableRow
void _openTableRow(const double height, const bool isMinimumHeight, const bool isHeaderRow)
Definition: WPXContentListener.cpp:999
_extractDisplayReferenceNumberFromBuf
int _extractDisplayReferenceNumberFromBuf(const librevenge::RVNGString &buf, const WPXNumberingType listType)
Definition: libwpd_internal.cpp:1257
WP5ContentListener::setTabs
void setTabs(const std::vector< WPXTabStop > &tabStops, unsigned short tabOffset) override
Definition: WP5ContentListener.cpp:506
WP5ContentListener::characterColorChange
void characterColorChange(unsigned char red, unsigned char green, unsigned char blue) override
Definition: WP5ContentListener.cpp:485
WPXContentListener::_insertText
void _insertText(const librevenge::RVNGString &textBuffer)
Definition: WPXContentListener.cpp:624
WP5_ATTRIBUTE_SMALL_PRINT
#define WP5_ATTRIBUTE_SMALL_PRINT
Definition: WP5FileStructure.h:37
WP5ContentListener
Definition: WP5ContentListener.h:50
WP5ContentListener::startDocument
void startDocument() override
Definition: WP5ContentListener.h:55
WP5_TAB_GROUP_BACK_TAB
#define WP5_TAB_GROUP_BACK_TAB
Definition: WP5FileStructure.h:153
FOOTNOTE
@ FOOTNOTE
Definition: libwpd_internal.h:93
WP5_ATTRIBUTE_FINE_PRINT
#define WP5_ATTRIBUTE_FINE_PRINT
Definition: WP5FileStructure.h:38
WP5ContentListener::insertTab
void insertTab(unsigned char tabType, double tabPosition) override
Definition: WP5ContentListener.cpp:72
WPX_LARGE_BIT
#define WPX_LARGE_BIT
Definition: libwpd_internal.h:116
WPXContentListener.h
WP5ContentParsingState::m_textBuffer
librevenge::RVNGString m_textBuffer
Definition: WP5ContentListener.h:41
WP5ContentListener::boxOn
void boxOn(unsigned char positionAndType, unsigned char alignment, unsigned short width, unsigned short height, unsigned short x, unsigned short y) override
Definition: WP5ContentListener.cpp:605
WP5_TAB_GROUP_LEFT_TAB
#define WP5_TAB_GROUP_LEFT_TAB
Definition: WP5FileStructure.h:149
WP5ContentListener::m_parseState
std::unique_ptr< WP5ContentParsingState > m_parseState
Definition: WP5ContentListener.h:127
WPX_EXTRA_LARGE_BIT
#define WPX_EXTRA_LARGE_BIT
Definition: libwpd_internal.h:114
WPX_TABLE_POSITION_FULL
#define WPX_TABLE_POSITION_FULL
Definition: libwpd_internal.h:145
ParseException
Definition: libwpd_internal.h:213
WP5ContentListener.h