WP6StyleGroup.h Source File documentation

WP6StyleGroup.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2/* libwpd
3 * Version: MPL 2.0 / LGPLv2.1+
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * Major Contributor(s):
10 * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
11 * Copyright (C) 2002 Marc Maurer (uwog@uwog.net)
12 *
13 * For minor contributions see the git repository.
14 *
15 * Alternatively, the contents of this file may be used under the terms
16 * of the GNU Lesser General Public License Version 2.1 or later
17 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
18 * applicable instead of those above.
19 *
20 * For further information visit http://libwpd.sourceforge.net
21 */
22
23/* "This product is not manufactured, approved, or supported by
24 * Corel Corporation or Corel Corporation Limited."
25 */
26
27#ifndef WP6STYLEGROUP_H
28#define WP6STYLEGROUP_H
29
30#include <memory>
31
32#include "WP6VariableLengthGroup.h"
33
34 class WP6StyleGroup_GlobalOnSubGroup : public WP6VariableLengthGroup_SubGroup
35{
36public:
37 WP6StyleGroup_GlobalOnSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
38 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override;
39
40private:
41 unsigned short m_hash;
42 unsigned char m_systemStyleNumber;
43};
44
45 class WP6StyleGroup : public WP6VariableLengthGroup
46{
47public:
48 WP6StyleGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
49 ~WP6StyleGroup() override;
50 void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption) override;
51 void parse(WP6Listener *listener) override;
52
53private:
54 WP6StyleGroup(const WP6StyleGroup &);
55 WP6StyleGroup &operator=(const WP6StyleGroup &);
56 std::unique_ptr<WP6VariableLengthGroup_SubGroup> m_subGroupData;
57};
58
59#endif /* WP6STYLEGROUP_H */
60/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
WP6VariableLengthGroup.h
WP6Listener
Definition WP6Listener.h:41
WP6StyleGroup_GlobalOnSubGroup::WP6StyleGroup_GlobalOnSubGroup
WP6StyleGroup_GlobalOnSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition WP6StyleGroup.cpp:32
WP6StyleGroup_GlobalOnSubGroup::m_systemStyleNumber
unsigned char m_systemStyleNumber
Definition WP6StyleGroup.h:42
WP6StyleGroup_GlobalOnSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override
Definition WP6StyleGroup.cpp:39
WP6StyleGroup_GlobalOnSubGroup::m_hash
unsigned short m_hash
Definition WP6StyleGroup.h:41
WP6StyleGroup::operator=
WP6StyleGroup & operator=(const WP6StyleGroup &)
WP6StyleGroup::WP6StyleGroup
WP6StyleGroup(const WP6StyleGroup &)
WP6StyleGroup::parse
void parse(WP6Listener *listener) override
Definition WP6StyleGroup.cpp:69
WP6StyleGroup::m_subGroupData
std::unique_ptr< WP6VariableLengthGroup_SubGroup > m_subGroupData
Definition WP6StyleGroup.h:56
WP6StyleGroup::~WP6StyleGroup
~WP6StyleGroup() override
Definition WP6StyleGroup.cpp:51
WP6StyleGroup::WP6StyleGroup
WP6StyleGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition WP6StyleGroup.cpp:44
WP6StyleGroup::_readContents
void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption) override
Definition WP6StyleGroup.cpp:55
WP6VariableLengthGroup_SubGroup
Definition WP6VariableLengthGroup.h:36
WP6VariableLengthGroup::WP6VariableLengthGroup
WP6VariableLengthGroup()
Definition WP6VariableLengthGroup.cpp:47
WPXEncryption
Definition WPXEncryption.h:36