2
* Copyright (C) 2003 William Lachance (william.lachance@sympatico.ca)
3
* Copyright (C) 2003 Marc Maurer (uwog@uwog.net)
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2 of the License, or (at your option) any later version.
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Library General Public License for more details.
15
* You should have received a copy of the GNU Library General Public
16
* License along with this library; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19
* For further information visit http://libwpd.sourceforge.net
22
/* "This product is not manufactured, approved, or supported by
23
* Corel Corporation or Corel Corporation Limited."
26
#include "WP42VariableLengthGroup.h"
27
#include "WP42UnsupportedVariableLengthGroup.h"
28
#include "libwpd_internal.h"
30
WP42VariableLengthGroup::WP42VariableLengthGroup(uint8_t group)
35
WP42VariableLengthGroup * WP42VariableLengthGroup::constructVariableLengthGroup(WPXInputStream *input, uint8_t group)
40
// this is an unhandled group, just skip it
41
return new WP42UnsupportedVariableLengthGroup(input, group);
45
void WP42VariableLengthGroup::_read(WPXInputStream *input)
49
// skip over the remaining bytes of the group, if any
50
while (!input->atEOS())
53
readNextVal = readU8(input);
54
if (readNextVal == getGroup())