WP6StyleGroup.h
Go to the documentation of this file.
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* libwpd
* Version: MPL 2.0 / LGPLv2.1+
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Major Contributor(s):
* Copyright (C) 2002 William Lachance (wrlach@gmail.com)
* Copyright (C) 2002 Marc Maurer (uwog@uwog.net)
*
* For minor contributions see the git repository.
*
* Alternatively, the contents of this file may be used under the terms
* of the GNU Lesser General Public License Version 2.1 or later
* (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
* applicable instead of those above.
*
* For further information visit http://libwpd.sourceforge.net
*/
/* "This product is not manufactured, approved, or supported by
* Corel Corporation or Corel Corporation Limited."
*/
#ifndef WP6STYLEGROUP_H
#define WP6STYLEGROUP_H
#include <memory>
#include "WP6VariableLengthGroup.h"
class WP6StyleGroup_GlobalOnSubGroup : public WP6VariableLengthGroup_SubGroup
{
public:
WP6StyleGroup_GlobalOnSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override;
private:
unsigned short m_hash;
unsigned char m_systemStyleNumber;
};
class WP6StyleGroup : public WP6VariableLengthGroup
{
public:
WP6StyleGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
~WP6StyleGroup() override;
void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption) override;
void parse(WP6Listener *listener) override;
private:
WP6StyleGroup(const WP6StyleGroup &);
WP6StyleGroup &operator=(const WP6StyleGroup &);
std::unique_ptr<WP6VariableLengthGroup_SubGroup> m_subGroupData;
};
#endif /* WP6STYLEGROUP_H */
/* 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