~ubuntu-branches/ubuntu/saucy/libwpd/saucy

« back to all changes in this revision

Viewing changes to src/lib/WP3MiscellaneousGroup.cpp

  • Committer: Package Import Robot
  • Author(s): Rene Engelhard
  • Date: 2011-11-29 23:31:13 UTC
  • mfrom: (1.2.5)
  • Revision ID: package-import@ubuntu.com-20111129233113-xdtwca9h0y6wdxst
Tags: 0.9.4-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
1
2
/* libwpd
2
3
 * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
3
4
 * Copyright (C) 2002 Marc Maurer (uwog@uwog.net)
51
52
        {
52
53
        case WP3_MISCELLANEOUS_GROUP_PAGE_SIZE_OVERRIDE:
53
54
                uint16_t tmpPageOrientation;
54
 
                
 
55
 
55
56
                // skip 20 bytes of old values
56
57
                input->seek(20, WPX_SEEK_CUR);
57
 
                
 
58
 
58
59
                // read the new values
59
60
                tmpPageOrientation = readU16(input, encryption, true);
60
61
                m_pageWidth = fixedPointToWPUs(readU32(input, encryption, true));
61
62
                m_pageHeight = fixedPointToWPUs(readU32(input, encryption, true));
62
 
                
 
63
 
63
64
                // determine whether it is portrait or landscape
64
65
                if ((tmpPageOrientation & 0x0001) == 0x0000)
65
66
                        m_pageOrientation = PORTRAIT;
67
68
                        m_pageOrientation = LANDSCAPE;
68
69
 
69
70
                break;
70
 
                
 
71
 
71
72
        default: /* something else we don't support, since it isn't in the docs */
72
73
                break;
73
74
        }
86
87
                break;
87
88
        }
88
89
}
 
90
/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */