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
33 class WP6Listener;
34
35 class WP6BoxGroup : public WP6VariableLengthGroup
36 {
37 public:
38 WP6BoxGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
39 void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption) override;
40 void parse(WP6Listener *listener) override;
41
42 private:
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: */
WP6BoxGroup::m_hasZOrderInformation
bool m_hasZOrderInformation
Definition: WP6BoxGroup.h:57
WP6BoxGroup::m_verticalPositioningFlags
unsigned char m_verticalPositioningFlags
Definition: WP6BoxGroup.h:49
WP6VariableLengthGroup::getFlags
unsigned char getFlags() const
Definition: WP6VariableLengthGroup.h:64
WP6BoxGroup::m_zOrderFlags
unsigned char m_zOrderFlags
Definition: WP6BoxGroup.h:58
WP6Listener.h
WP6VariableLengthGroup::getSubGroup
unsigned char getSubGroup() const
Definition: WP6VariableLengthGroup.h:56
WP6_BOX_GROUP_GRAPHICS_RULE
#define WP6_BOX_GROUP_GRAPHICS_RULE
Definition: WP6FileStructure.h:454
WP6Listener::insertGraphicsData
virtual void insertGraphicsData(const unsigned short packetId)=0
WP6GraphicsFilenamePacket
Definition: WP6GraphicsFilenamePacket.h:35
WPX_CHARACTER
#define WPX_CHARACTER
Definition: WPXFileStructure.h:49
WP6FileStructure.h
WP6GraphicsBoxStylePacket::getRightColumn
unsigned char getRightColumn() const
Definition: WP6GraphicsBoxStylePacket.h:58
WP6GraphicsBoxStylePacket::getVerticalOffset
signed short getVerticalOffset() const
Definition: WP6GraphicsBoxStylePacket.h:66
WP6BoxGroup::m_nativeHeight
unsigned short m_nativeHeight
Definition: WP6BoxGroup.h:61
WP6_BOX_GROUP_BOX_GROUPING_DATA_BIT
#define WP6_BOX_GROUP_BOX_GROUPING_DATA_BIT
Definition: WP6FileStructure.h:465
WP6BoxGroup::m_width
unsigned short m_width
Definition: WP6BoxGroup.h:53
WP6BoxGroup::m_hasHorizontalPositioning
bool m_hasHorizontalPositioning
Definition: WP6BoxGroup.h:44
WP6BoxGroup
Definition: WP6BoxGroup.h:36
WP6Listener::getPrefixDataPacket
const WP6PrefixDataPacket * getPrefixDataPacket(const int prefixID) const
Definition: WP6Listener.cpp:44
WP6GraphicsBoxStylePacket::getWidth
unsigned short getWidth() const
Definition: WP6GraphicsBoxStylePacket.h:74
WP6BoxGroup::m_generalPositioningFlagsMask
unsigned char m_generalPositioningFlagsMask
Definition: WP6BoxGroup.h:43
WP6BoxGroup::m_horizontalOffset
signed short m_horizontalOffset
Definition: WP6BoxGroup.h:46
WP6BoxGroup::m_hasBoxContentType
bool m_hasBoxContentType
Definition: WP6BoxGroup.h:59
WP6GraphicsBoxStylePacket::getHeightFlags
unsigned char getHeightFlags() const
Definition: WP6GraphicsBoxStylePacket.h:78
WPD_DEBUG_MSG
#define WPD_DEBUG_MSG(M)
Definition: libwpd_internal.h:50
readU16
unsigned short readU16(librevenge::RVNGInputStream *input, WPXEncryption *encryption, bool bigendian)
Definition: libwpd_internal.cpp:119
WP6BoxGroup::m_rightColumn
unsigned char m_rightColumn
Definition: WP6BoxGroup.h:47
WP6_BOX_GROUP_BOX_BOX_WRAPPING_DATA_BIT
#define WP6_BOX_GROUP_BOX_BOX_WRAPPING_DATA_BIT
Definition: WP6FileStructure.h:462
WP6GraphicsBoxStylePacket::getWidthFlags
unsigned char getWidthFlags() const
Definition: WP6GraphicsBoxStylePacket.h:70
WP6_BOX_GROUP_BOX_POSITIONING_DATA_BIT
#define WP6_BOX_GROUP_BOX_POSITIONING_DATA_BIT
Definition: WP6FileStructure.h:457
WP6GeneralTextPacket
Definition: WP6GeneralTextPacket.h:40
WP6GraphicsBoxStylePacket::getHorizontalPositioningFlags
unsigned char getHorizontalPositioningFlags() const
Definition: WP6GraphicsBoxStylePacket.h:46
WP6VariableLengthGroup
Definition: WP6VariableLengthGroup.h:43
libwpd_internal.h
WP6Listener
Definition: WP6Listener.h:41
WP6GraphicsBoxStylePacket::getNativeHeight
unsigned short getNativeHeight() const
Definition: WP6GraphicsBoxStylePacket.h:94
WP6VariableLengthGroup::getPrefixIDs
const unsigned short * getPrefixIDs() const
Definition: WP6VariableLengthGroup.h:72
WP6GraphicsBoxStylePacket::getLeftColumn
unsigned char getLeftColumn() const
Definition: WP6GraphicsBoxStylePacket.h:54
WP6GeneralTextPacket.h
WP6_BOX_GROUP_BOX_CONTENT_DATA_BIT
#define WP6_BOX_GROUP_BOX_CONTENT_DATA_BIT
Definition: WP6FileStructure.h:458
WP6_BOX_GROUP_PARAGRAPH_ANCHORED_BOX
#define WP6_BOX_GROUP_PARAGRAPH_ANCHORED_BOX
Definition: WP6FileStructure.h:452
WP6GraphicsBoxStylePacket::getHorizontalOffset
signed short getHorizontalOffset() const
Definition: WP6GraphicsBoxStylePacket.h:50
WP6_BOX_GROUP_BOX_BORDER_DATA_BIT
#define WP6_BOX_GROUP_BOX_BORDER_DATA_BIT
Definition: WP6FileStructure.h:460
WP6BoxGroup.h
WP6BoxGroup::m_hasHeightInformation
bool m_hasHeightInformation
Definition: WP6BoxGroup.h:54
WP6VariableLengthGroup::_read
void _read(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6VariableLengthGroup.cpp:132
WP6GraphicsBoxStylePacket::getNativeWidth
unsigned short getNativeWidth() const
Definition: WP6GraphicsBoxStylePacket.h:90
WP6_BOX_GROUP_BOX_DRAW_OBJECT_DATA_BIT
#define WP6_BOX_GROUP_BOX_DRAW_OBJECT_DATA_BIT
Definition: WP6FileStructure.h:466
WP6_BOX_GROUP_BOX_HTML_BIT
#define WP6_BOX_GROUP_BOX_HTML_BIT
Definition: WP6FileStructure.h:464
WP6_BOX_GROUP_CHARACTER_ANCHORED_BOX
#define WP6_BOX_GROUP_CHARACTER_ANCHORED_BOX
Definition: WP6FileStructure.h:451
WPX_PARAGRAPH
#define WPX_PARAGRAPH
Definition: WPXFileStructure.h:50
WP6VariableLengthGroup::getNumPrefixIDs
unsigned char getNumPrefixIDs() const
Definition: WP6VariableLengthGroup.h:68
WP6BoxGroup::WP6BoxGroup
WP6BoxGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6BoxGroup.cpp:37
WP6BoxGroup::parse
void parse(WP6Listener *listener) override
Definition: WP6BoxGroup.cpp:279
WP6VariableLengthGroup.h
WP6_BOX_GROUP_BOX_FILL_DATA_BIT
#define WP6_BOX_GROUP_BOX_FILL_DATA_BIT
Definition: WP6FileStructure.h:461
WP6BoxGroup::_readContents
void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption) override
Definition: WP6BoxGroup.cpp:65
WP6BoxGroup::m_nativeWidth
unsigned short m_nativeWidth
Definition: WP6BoxGroup.h:61
WPXFileStructure.h
WP6_BOX_GROUP_BOX_CAPTION_DATA_BIT
#define WP6_BOX_GROUP_BOX_CAPTION_DATA_BIT
Definition: WP6FileStructure.h:459
WP6GraphicsBoxStylePacket
Definition: WP6GraphicsBoxStylePacket.h:35
WP6GraphicsFilenamePacket.h
WP6BoxGroup::m_hasWidthInformation
bool m_hasWidthInformation
Definition: WP6BoxGroup.h:51
WP6GraphicsBoxStylePacket::getContentType
unsigned char getContentType() const
Definition: WP6GraphicsBoxStylePacket.h:86
WP6HyperlinkPacket::getTarget
const librevenge::RVNGString & getTarget() const
Definition: WP6HyperlinkPacket.cpp:53
WP6BoxGroup::m_height
unsigned short m_height
Definition: WP6BoxGroup.h:56
WP6_BOX_GROUP_BOX_COUNTER_DATA_BIT
#define WP6_BOX_GROUP_BOX_COUNTER_DATA_BIT
Definition: WP6FileStructure.h:456
WP6Listener::boxOn
virtual void boxOn(const unsigned char anchoringType, const unsigned char generalPositioningFlags, const unsigned char horizontalPositioningFlags, const signed short horizontalOffset, const unsigned char leftColumn, const unsigned char rightColumn, const unsigned char verticalPositioningFlags, const signed short verticalOffset, const unsigned char widthFlags, const unsigned short width, const unsigned char heightFlags, const unsigned short height, const unsigned char boxContentType, const unsigned short nativeWidth, const unsigned short nativeHeight, const librevenge::RVNGString &linkTarget)=0
WP6HyperlinkPacket.h
WP6BoxGroup::m_verticalOffset
signed short m_verticalOffset
Definition: WP6BoxGroup.h:50
WPX_PAGE
#define WPX_PAGE
Definition: WPXFileStructure.h:51
WP6GraphicsBoxStylePacket::getVerticalPositioningFlags
unsigned char getVerticalPositioningFlags() const
Definition: WP6GraphicsBoxStylePacket.h:62
WP6BoxGroup::m_leftColumn
unsigned char m_leftColumn
Definition: WP6BoxGroup.h:47
WP6GraphicsBoxStylePacket::getGeneralPositioningFlags
unsigned char getGeneralPositioningFlags() const
Definition: WP6GraphicsBoxStylePacket.h:42
WP6BoxGroup::m_widthFlags
unsigned char m_widthFlags
Definition: WP6BoxGroup.h:52
WP6BoxGroup::m_hasVerticalPositioning
bool m_hasVerticalPositioning
Definition: WP6BoxGroup.h:48
WP6_BOX_GROUP_BOX_BOX_HYPERTEXT_WRAPPING_DATA_BIT
#define WP6_BOX_GROUP_BOX_BOX_HYPERTEXT_WRAPPING_DATA_BIT
Definition: WP6FileStructure.h:463
WP6Listener::insertTextBox
virtual void insertTextBox(const WP6SubDocument *subDocument)=0
WP6BoxGroup::m_heightFlags
unsigned char m_heightFlags
Definition: WP6BoxGroup.h:55
readU8
unsigned char readU8(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: libwpd_internal.cpp:106
WP6GraphicsBoxStylePacket.h
WP6HyperlinkPacket
Definition: WP6HyperlinkPacket.h:34
WP6Listener::boxOff
virtual void boxOff()=0
WP6BoxGroup::m_generalPositioningFlagsData
unsigned char m_generalPositioningFlagsData
Definition: WP6BoxGroup.h:43
WP6_BOX_GROUP_PAGE_ANCHORED_BOX
#define WP6_BOX_GROUP_PAGE_ANCHORED_BOX
Definition: WP6FileStructure.h:453
WP6GraphicsBoxStylePacket::getHeight
unsigned short getHeight() const
Definition: WP6GraphicsBoxStylePacket.h:82
WPXEncryption
Definition: WPXEncryption.h:36
WP6BoxGroup::m_horizontalPositioningFlags
unsigned char m_horizontalPositioningFlags
Definition: WP6BoxGroup.h:45
WP6BoxGroup::m_boxContentType
unsigned char m_boxContentType
Definition: WP6BoxGroup.h:60