33
33
#include "WPXPageSpan.h"
34
34
#include "WPXTable.h"
36
class WP3StylesListener : public WP3Listener, public WPXStylesListener
36
class WP3StylesListener : public WP3Listener, protected WPXStylesListener
39
39
WP3StylesListener(std::list<WPXPageSpan> &pageList, WPXTableList tableList, std::vector<WP3SubDocument *> &subDocuments);
41
41
void startDocument() {}
42
void setAlignmentCharacter(const uint16_t character) {}
43
void setLeaderCharacter(const uint16_t character, const uint8_t numberOfSpaces) {}
44
void defineTabStops(const bool isRelative, const std::vector<WPXTabStop> &tabStops,
45
const std::vector<bool> &usePreWP9LeaderMethods) {}
46
42
void insertCharacter(const uint16_t character) { if (!isUndoOn()) m_currentPageHasContent = true; }
47
43
void insertTab(const uint8_t tabType, float tabPosition) { if (!isUndoOn()) m_currentPageHasContent = true; }
48
void handleLineBreak() { if (!isUndoOn()) m_currentPageHasContent = true; };
49
44
void insertEOL() { if (!isUndoOn()) m_currentPageHasContent = true; }
50
45
void insertBreak(const uint8_t breakType);
51
46
void attributeChange(const bool isOn, const uint8_t attribute) {}
52
47
void lineSpacingChange(const float lineSpacing) {}
53
void spacingAfterParagraphChange(const float spacingRelative, const float spacingAbsolute) {}
54
48
void justificationChange(const uint8_t justification) {}
55
49
void pageMarginChange(const uint8_t side, const uint16_t margin);
56
50
void pageFormChange(const uint16_t length, const uint16_t width, const WPXFormOrientation orientation, const bool isPersistent);
57
51
void marginChange(const uint8_t side, const uint16_t margin);
58
void paragraphMarginChange(const uint8_t side, const int16_t margin) {}
59
52
void indentFirstLineChange(const int16_t offset) {}
60
53
void columnChange(const WPXTextColumnType columnType, const uint8_t numColumns, const std::vector<float> &columnWidth,
61
54
const std::vector<bool> &isFixedWidth) {}
83
76
void suppressPage(const uint16_t suppressCode);
86
void _openPageSpan() { /* FIXME: REMOVE ME WHEN IMPLEMENTED IN WPXListener */ };
87
79
void _handleSubDocument(const WPXSubDocument *subDocument, const bool isHeaderFooter, WPXTableList tableList, int nextTableIndice = 0);
88
void _openParagraph() {}
92
void _changeList() {};
94
82
WPXPageSpan m_currentPage;
96
84
WPXTableList m_tableList;