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