WP6BoxGroup.h Source File documentation

WP6BoxGroup.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) 2007 Fridrich Strba (fridrich.strba@bluewin.ch)
11 *
12 * For minor contributions see the git repository.
13 *
14 * Alternatively, the contents of this file may be used under the terms
15 * of the GNU Lesser General Public License Version 2.1 or later
16 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
17 * applicable instead of those above.
18 *
19 * For further information visit http://libwpd.sourceforge.net
20 */
21
22/* "This product is not manufactured, approved, or supported by
23 * Corel Corporation or Corel Corporation Limited."
24 */
25
26#ifndef WP6BOXGROUP_H
27#define WP6BOXGROUP_H
28
29#include <librevenge/librevenge.h>
30#include "WP6VariableLengthGroup.h"
31#include "libwpd_internal.h"
32
33class WP6Listener;
34
35 class WP6BoxGroup : public WP6VariableLengthGroup
36{
37public:
38 WP6BoxGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
39 void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption) override;
40 void parse(WP6Listener *listener) override;
41
42private:
43 unsigned char m_generalPositioningFlagsMask, m_generalPositioningFlagsData;
44 bool m_hasHorizontalPositioning;
45 unsigned char m_horizontalPositioningFlags;
46 signed short m_horizontalOffset;
47 unsigned char m_leftColumn, m_rightColumn;
48 bool m_hasVerticalPositioning;
49 unsigned char m_verticalPositioningFlags;
50 signed short m_verticalOffset;
51 bool m_hasWidthInformation;
52 unsigned char m_widthFlags;
53 unsigned short m_width;
54 bool m_hasHeightInformation;
55 unsigned char m_heightFlags;
56 unsigned short m_height;
57 bool m_hasZOrderInformation;
58 unsigned char m_zOrderFlags;
59 bool m_hasBoxContentType;
60 unsigned char m_boxContentType;
61 unsigned short m_nativeWidth, m_nativeHeight;
62};
63
64#endif /* WP6BOXGROUP_H */
65/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
WP6VariableLengthGroup.h
WP6BoxGroup::m_zOrderFlags
unsigned char m_zOrderFlags
Definition WP6BoxGroup.h:58
WP6BoxGroup::m_nativeWidth
unsigned short m_nativeWidth
Definition WP6BoxGroup.h:61
WP6BoxGroup::m_width
unsigned short m_width
Definition WP6BoxGroup.h:53
WP6BoxGroup::m_height
unsigned short m_height
Definition WP6BoxGroup.h:56
WP6BoxGroup::m_hasVerticalPositioning
bool m_hasVerticalPositioning
Definition WP6BoxGroup.h:48
WP6BoxGroup::m_hasZOrderInformation
bool m_hasZOrderInformation
Definition WP6BoxGroup.h:57
WP6BoxGroup::m_rightColumn
unsigned char m_rightColumn
Definition WP6BoxGroup.h:47
WP6BoxGroup::m_heightFlags
unsigned char m_heightFlags
Definition WP6BoxGroup.h:55
WP6BoxGroup::m_nativeHeight
unsigned short m_nativeHeight
Definition WP6BoxGroup.h:61
WP6BoxGroup::m_horizontalOffset
signed short m_horizontalOffset
Definition WP6BoxGroup.h:46
WP6BoxGroup::m_leftColumn
unsigned char m_leftColumn
Definition WP6BoxGroup.h:47
WP6BoxGroup::m_hasWidthInformation
bool m_hasWidthInformation
Definition WP6BoxGroup.h:51
WP6BoxGroup::m_hasHorizontalPositioning
bool m_hasHorizontalPositioning
Definition WP6BoxGroup.h:44
WP6BoxGroup::m_verticalOffset
signed short m_verticalOffset
Definition WP6BoxGroup.h:50
WP6BoxGroup::m_hasHeightInformation
bool m_hasHeightInformation
Definition WP6BoxGroup.h:54
WP6BoxGroup::m_boxContentType
unsigned char m_boxContentType
Definition WP6BoxGroup.h:60
WP6BoxGroup::m_generalPositioningFlagsData
unsigned char m_generalPositioningFlagsData
Definition WP6BoxGroup.h:43
WP6BoxGroup::m_generalPositioningFlagsMask
unsigned char m_generalPositioningFlagsMask
Definition WP6BoxGroup.h:43
WP6BoxGroup::m_hasBoxContentType
bool m_hasBoxContentType
Definition WP6BoxGroup.h:59
WP6BoxGroup::m_widthFlags
unsigned char m_widthFlags
Definition WP6BoxGroup.h:52
WP6BoxGroup::parse
void parse(WP6Listener *listener) override
Definition WP6BoxGroup.cpp:279
WP6BoxGroup::m_verticalPositioningFlags
unsigned char m_verticalPositioningFlags
Definition WP6BoxGroup.h:49
WP6BoxGroup::m_horizontalPositioningFlags
unsigned char m_horizontalPositioningFlags
Definition WP6BoxGroup.h:45
WP6BoxGroup::_readContents
void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption) override
Definition WP6BoxGroup.cpp:65
WP6BoxGroup::WP6BoxGroup
WP6BoxGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition WP6BoxGroup.cpp:37
WP6Listener
Definition WP6Listener.h:41
WP6VariableLengthGroup::WP6VariableLengthGroup
WP6VariableLengthGroup()
Definition WP6VariableLengthGroup.cpp:47
WPXEncryption
Definition WPXEncryption.h:36
libwpd_internal.h