~ubuntu-branches/ubuntu/wily/libwpd/wily-proposed

« back to all changes in this revision

Viewing changes to src/lib/WP5TabGroup.cpp

  • Committer: Package Import Robot
  • Author(s): Rene Engelhard
  • Date: 2014-08-08 00:35:26 UTC
  • mfrom: (11.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20140808003526-7pku3062w50cnsod
Tags: 0.10.0-2
* upload to unstable

* fix debian/copyright for MPL-2.0 | LGPL-2.1+ dual-license 

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include "WP5Listener.h"
30
30
#include "WPXFileStructure.h"
31
31
 
32
 
WP5TabGroup::WP5TabGroup(WPXInputStream *input, WPXEncryption *encryption, uint8_t groupID) :
 
32
WP5TabGroup::WP5TabGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption, unsigned char groupID) :
33
33
        WP5FixedLengthGroup(groupID),
34
34
        m_tabType(0),
35
35
        m_tabPosition(0.0)
37
37
        _read(input, encryption);
38
38
}
39
39
 
40
 
void WP5TabGroup::_readContents(WPXInputStream *input, WPXEncryption *encryption)
 
40
void WP5TabGroup::_readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
41
41
{
42
42
        m_tabType = readU8(input, encryption);
43
 
        input->seek(2, WPX_SEEK_CUR);
44
 
        uint16_t tmpTabPosition = readU16(input, encryption);
 
43
        input->seek(2, librevenge::RVNG_SEEK_CUR);
 
44
        unsigned short tmpTabPosition = readU16(input, encryption);
45
45
        m_tabPosition = (double)((double)tmpTabPosition/(double)WPX_NUM_WPUS_PER_INCH);
46
46
}
47
47