WP6GraphicsBoxStylePacket.h Source File documentation

WP6GraphicsBoxStylePacket.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 WP6GRAPHICSBOXSTYLEPACKET_H
27#define WP6GRAPHICSBOXSTYLEPACKET_H
28
29#include <libwpd/libwpd.h>
30#include <librevenge-stream/librevenge-stream.h>
31#include "WP6PrefixDataPacket.h"
32#include "WP6Listener.h"
33
34 class WP6GraphicsBoxStylePacket : public WP6PrefixDataPacket
35{
36public:
37 WP6GraphicsBoxStylePacket(librevenge::RVNGInputStream *input, WPXEncryption *encryption, int id, unsigned dataOffset, unsigned dataSize);
38 ~WP6GraphicsBoxStylePacket() override;
39 void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption) override;
40 void parse(WP6Listener * /*listener*/) const override {}
41
42 unsigned char getGeneralPositioningFlags() const
43 {
44 return m_generalPositioningFlags;
45 }
46 unsigned char getHorizontalPositioningFlags() const
47 {
48 return m_horizontalPositioningFlags;
49 }
50 signed short getHorizontalOffset() const
51 {
52 return m_horizontalOffset;
53 }
54 unsigned char getLeftColumn() const
55 {
56 return m_leftColumn;
57 }
58 unsigned char getRightColumn() const
59 {
60 return m_rightColumn;
61 }
62 unsigned char getVerticalPositioningFlags() const
63 {
64 return m_verticalPositioningFlags;
65 }
66 signed short getVerticalOffset() const
67 {
68 return m_verticalOffset;
69 }
70 unsigned char getWidthFlags() const
71 {
72 return m_widthFlags;
73 }
74 unsigned short getWidth() const
75 {
76 return m_width;
77 }
78 unsigned char getHeightFlags() const
79 {
80 return m_heightFlags;
81 }
82 unsigned short getHeight() const
83 {
84 return m_height;
85 }
86 unsigned char getContentType() const
87 {
88 return m_contentType;
89 }
90 unsigned short getNativeWidth() const
91 {
92 return m_nativeWidth;
93 }
94 unsigned short getNativeHeight() const
95 {
96 return m_nativeHeight;
97 }
98
99private:
100 WP6GraphicsBoxStylePacket(const WP6GraphicsBoxStylePacket &);
101 WP6GraphicsBoxStylePacket &operator=(const WP6GraphicsBoxStylePacket &);
102 bool m_isLibraryStyle;
103 librevenge::RVNGString m_boxStyleName;
104 unsigned char m_generalPositioningFlags;
105 unsigned char m_horizontalPositioningFlags;
106 signed short m_horizontalOffset;
107 unsigned char m_leftColumn, m_rightColumn;
108 unsigned char m_verticalPositioningFlags;
109 signed short m_verticalOffset;
110 unsigned char m_widthFlags;
111 unsigned short m_width;
112 unsigned char m_heightFlags;
113 unsigned short m_height;
114 unsigned char m_contentType, m_contentHAlign, m_contentVAlign;
115 bool m_contentPreserveAspectRatio;
116 unsigned short m_nativeWidth, m_nativeHeight;
117};
118#endif /* WP6GRAPHICSBOXSTYLEPACKET_H */
119/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
WP6Listener.h
WP6PrefixDataPacket.h
WP6GraphicsBoxStylePacket::m_heightFlags
unsigned char m_heightFlags
Definition WP6GraphicsBoxStylePacket.h:112
WP6GraphicsBoxStylePacket::m_contentVAlign
unsigned char m_contentVAlign
Definition WP6GraphicsBoxStylePacket.h:114
WP6GraphicsBoxStylePacket::m_nativeWidth
unsigned short m_nativeWidth
Definition WP6GraphicsBoxStylePacket.h:116
WP6GraphicsBoxStylePacket::~WP6GraphicsBoxStylePacket
~WP6GraphicsBoxStylePacket() override
Definition WP6GraphicsBoxStylePacket.cpp:56
WP6GraphicsBoxStylePacket::m_rightColumn
unsigned char m_rightColumn
Definition WP6GraphicsBoxStylePacket.h:107
WP6GraphicsBoxStylePacket::getContentType
unsigned char getContentType() const
Definition WP6GraphicsBoxStylePacket.h:86
WP6GraphicsBoxStylePacket::getWidthFlags
unsigned char getWidthFlags() const
Definition WP6GraphicsBoxStylePacket.h:70
WP6GraphicsBoxStylePacket::getVerticalOffset
signed short getVerticalOffset() const
Definition WP6GraphicsBoxStylePacket.h:66
WP6GraphicsBoxStylePacket::m_contentType
unsigned char m_contentType
Definition WP6GraphicsBoxStylePacket.h:114
WP6GraphicsBoxStylePacket::m_horizontalOffset
signed short m_horizontalOffset
Definition WP6GraphicsBoxStylePacket.h:106
WP6GraphicsBoxStylePacket::m_contentHAlign
unsigned char m_contentHAlign
Definition WP6GraphicsBoxStylePacket.h:114
WP6GraphicsBoxStylePacket::getHorizontalOffset
signed short getHorizontalOffset() const
Definition WP6GraphicsBoxStylePacket.h:50
WP6GraphicsBoxStylePacket::operator=
WP6GraphicsBoxStylePacket & operator=(const WP6GraphicsBoxStylePacket &)
WP6GraphicsBoxStylePacket::m_horizontalPositioningFlags
unsigned char m_horizontalPositioningFlags
Definition WP6GraphicsBoxStylePacket.h:105
WP6GraphicsBoxStylePacket::m_isLibraryStyle
bool m_isLibraryStyle
Definition WP6GraphicsBoxStylePacket.h:102
WP6GraphicsBoxStylePacket::m_boxStyleName
librevenge::RVNGString m_boxStyleName
Definition WP6GraphicsBoxStylePacket.h:103
WP6GraphicsBoxStylePacket::WP6GraphicsBoxStylePacket
WP6GraphicsBoxStylePacket(const WP6GraphicsBoxStylePacket &)
WP6GraphicsBoxStylePacket::m_verticalPositioningFlags
unsigned char m_verticalPositioningFlags
Definition WP6GraphicsBoxStylePacket.h:108
WP6GraphicsBoxStylePacket::getWidth
unsigned short getWidth() const
Definition WP6GraphicsBoxStylePacket.h:74
WP6GraphicsBoxStylePacket::parse
void parse(WP6Listener *) const override
Definition WP6GraphicsBoxStylePacket.h:40
WP6GraphicsBoxStylePacket::_readContents
void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption) override
Definition WP6GraphicsBoxStylePacket.cpp:60
WP6GraphicsBoxStylePacket::getRightColumn
unsigned char getRightColumn() const
Definition WP6GraphicsBoxStylePacket.h:58
WP6GraphicsBoxStylePacket::WP6GraphicsBoxStylePacket
WP6GraphicsBoxStylePacket(librevenge::RVNGInputStream *input, WPXEncryption *encryption, int id, unsigned dataOffset, unsigned dataSize)
Definition WP6GraphicsBoxStylePacket.cpp:31
WP6GraphicsBoxStylePacket::getGeneralPositioningFlags
unsigned char getGeneralPositioningFlags() const
Definition WP6GraphicsBoxStylePacket.h:42
WP6GraphicsBoxStylePacket::getNativeHeight
unsigned short getNativeHeight() const
Definition WP6GraphicsBoxStylePacket.h:94
WP6GraphicsBoxStylePacket::m_leftColumn
unsigned char m_leftColumn
Definition WP6GraphicsBoxStylePacket.h:107
WP6GraphicsBoxStylePacket::getVerticalPositioningFlags
unsigned char getVerticalPositioningFlags() const
Definition WP6GraphicsBoxStylePacket.h:62
WP6GraphicsBoxStylePacket::m_nativeHeight
unsigned short m_nativeHeight
Definition WP6GraphicsBoxStylePacket.h:116
WP6GraphicsBoxStylePacket::m_generalPositioningFlags
unsigned char m_generalPositioningFlags
Definition WP6GraphicsBoxStylePacket.h:104
WP6GraphicsBoxStylePacket::getLeftColumn
unsigned char getLeftColumn() const
Definition WP6GraphicsBoxStylePacket.h:54
WP6GraphicsBoxStylePacket::getHorizontalPositioningFlags
unsigned char getHorizontalPositioningFlags() const
Definition WP6GraphicsBoxStylePacket.h:46
WP6GraphicsBoxStylePacket::m_height
unsigned short m_height
Definition WP6GraphicsBoxStylePacket.h:113
WP6GraphicsBoxStylePacket::m_widthFlags
unsigned char m_widthFlags
Definition WP6GraphicsBoxStylePacket.h:110
WP6GraphicsBoxStylePacket::m_width
unsigned short m_width
Definition WP6GraphicsBoxStylePacket.h:111
WP6GraphicsBoxStylePacket::m_contentPreserveAspectRatio
bool m_contentPreserveAspectRatio
Definition WP6GraphicsBoxStylePacket.h:115
WP6GraphicsBoxStylePacket::getNativeWidth
unsigned short getNativeWidth() const
Definition WP6GraphicsBoxStylePacket.h:90
WP6GraphicsBoxStylePacket::getHeightFlags
unsigned char getHeightFlags() const
Definition WP6GraphicsBoxStylePacket.h:78
WP6GraphicsBoxStylePacket::m_verticalOffset
signed short m_verticalOffset
Definition WP6GraphicsBoxStylePacket.h:109
WP6GraphicsBoxStylePacket::getHeight
unsigned short getHeight() const
Definition WP6GraphicsBoxStylePacket.h:82
WP6Listener
Definition WP6Listener.h:41
WP6PrefixDataPacket::WP6PrefixDataPacket
WP6PrefixDataPacket(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition WP6PrefixDataPacket.cpp:45
WPXEncryption
Definition WPXEncryption.h:36
libwpd.h