~ubuntu-branches/ubuntu/jaunty/libwpd/jaunty

« back to all changes in this revision

Viewing changes to src/lib/WP3MiscellaneousGroup.cpp

  • 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
#include "WP3MiscellaneousGroup.h"
29
29
#include "WP3FileStructure.h"
30
30
#include "WPXFileStructure.h"
31
 
#include "libwpd_internal.h"
 
31
#include "WP3Listener.h"
32
32
 
33
33
WP3MiscellaneousGroup::WP3MiscellaneousGroup(WPXInputStream *input) :
34
34
        WP3VariableLengthGroup(),
35
35
        m_pageWidth(0),
36
36
        m_pageHeight(0),
37
 
        m_pageOrientation(PORTRAIT),
38
 
        m_isPersistent(true)
 
37
        m_pageOrientation(PORTRAIT)
39
38
{
40
39
        _read(input);
41
40
}
61
60
                m_pageWidth = fixedPointToWPUs(readU32(input, true));
62
61
                m_pageHeight = fixedPointToWPUs(readU32(input, true));
63
62
                
64
 
                // determine whether the orientation lasts only one page or is persistent
65
 
                if ((tmpPageOrientation & 0x8000) == 0x0000)
66
 
                        m_isPersistent = false;
67
 
                else 
68
 
                        m_isPersistent = true;
69
 
                
70
63
                // determine whether it is portrait or landscape
71
64
                if ((tmpPageOrientation & 0x0001) == 0x0000)
72
65
                        m_pageOrientation = PORTRAIT;
87
80
        switch (getSubGroup())
88
81
        {
89
82
        case WP3_MISCELLANEOUS_GROUP_PAGE_SIZE_OVERRIDE:
90
 
                listener->pageFormChange(m_pageHeight, m_pageWidth, m_pageOrientation, m_isPersistent);
 
83
                listener->pageFormChange(m_pageHeight, m_pageWidth, m_pageOrientation);
91
84
                break;
92
85
        default: // something else we don't support, since it isn't in the docs
93
86
                break;