~ubuntu-branches/ubuntu/trusty/libwpd/trusty

« back to all changes in this revision

Viewing changes to src/lib/WP3StylesListener.h

  • Committer: Bazaar Package Importer
  • Author(s): Rene Engelhard
  • Date: 2006-07-15 11:58:12 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060715115812-v18efmdayby4clau
Tags: 0.8.6-1
* New upstream release
* swap maintainer/uploader

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#include "WPXPageSpan.h"
34
34
#include "WPXTable.h"
35
35
 
36
 
class WP3StylesListener : public WP3Listener, public WPXStylesListener
 
36
class WP3StylesListener : public WP3Listener, protected WPXStylesListener
37
37
{
38
38
public:
39
39
        WP3StylesListener(std::list<WPXPageSpan> &pageList, WPXTableList tableList, std::vector<WP3SubDocument *> &subDocuments);
40
40
 
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);
84
77
 
85
78
protected:
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() {}
89
80
 
90
81
private:
91
 
        void _flushText() {};
92
 
        void _changeList() {};
93
 
        
94
82
        WPXPageSpan m_currentPage;
95
83
 
96
84
        WPXTableList m_tableList;