~ubuntu-branches/ubuntu/lucid/libwpd/lucid

« back to all changes in this revision

Viewing changes to src/lib/WP1ContentListener.h

  • Committer: Bazaar Package Importer
  • Author(s): Rene Engelhard
  • Date: 2007-01-11 15:15:57 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20070111151557-rn1kysabqbccx3as
Tags: 0.8.8-2
run make check for stream check; build-depend on libcppunit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#define WP1CONTENTLISTENER_H
29
29
 
30
30
#include "WP1Listener.h"
31
 
#include "WP1SubDocument.h"
32
31
#include "WPXContentListener.h"
33
 
#include "WPXHLListenerImpl.h"
 
32
 
 
33
class WP1SubDocument;
34
34
 
35
35
typedef struct _WP1ContentParsingState WP1ContentParsingState;
36
36
struct _WP1ContentParsingState
58
58
        void attributeChange(const bool isOn, const uint8_t attribute);
59
59
        void fontPointSize(const uint8_t pointSize);
60
60
        void marginReset(const uint16_t leftMargin, const uint16_t rightMargin);
61
 
        void topMarginSet(const uint16_t topMargin) {}
62
 
        void bottomMarginSet(const uint16_t bottomMargin) {}
 
61
        void topMarginSet(const uint16_t /* topMargin */) {}
 
62
        void bottomMarginSet(const uint16_t /* bottomMargin */) {}
63
63
        void leftIndent(const uint16_t leftMarginOffset);
64
64
        void leftRightIndent(const uint16_t leftRightMarginOffset);
65
65
        void leftMarginRelease(const uint16_t release);
66
66
        void setTabs(const std::vector<WPXTabStop> tabStops);
67
67
        void headerFooterGroup(const uint8_t headerFooterDefinition, WP1SubDocument *subDocument);
68
 
        void suppressPageCharacteristics(const uint8_t suppressCode) {}
 
68
        void suppressPageCharacteristics(const uint8_t /* suppressCode */) {}
69
69
        void justificationChange(const uint8_t justification);
70
70
        void lineSpacingChange(const uint8_t spacing) { WPXContentListener::lineSpacingChange((float)((double)spacing/2.0f)); }
71
71
        void flushRightOn();
75
75
        void endDocument() { WPXContentListener::endDocument(); };
76
76
 
77
77
protected:
 
78
        using WPXContentListener::lineSpacingChange;
78
79
        void _handleSubDocument(const WPXSubDocument *subDocument, const bool isHeaderFooter, WPXTableList tableList, int nextTableIndice = 0);
79
80
 
80
81
        void _flushText();