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  * Copyright (C) 2007 Fridrich Strba (fridrich.strba@bluewin.ch)
4  * Copyright (C) 2007 Novell Inc. (http://www.novell.com)
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19  *
20  * For further information visit http://libwpd.sourceforge.net
21  */
22 
23 /* "This product is not manufactured, approved, or supported by
24  * Corel Corporation or Corel Corporation Limited."
25  */
26 
27 #ifndef WP6GRAPHICSBOXSTYLEPACKET_H
28 #define WP6GRAPHICSBOXSTYLEPACKET_H
29 #include "WP6PrefixDataPacket.h"
30 #include "WP6Listener.h"
31 #include "WPXStream.h"
32 #include "WPXString.h"
33 
35 {
36 public:
37  WP6GraphicsBoxStylePacket(WPXInputStream *input, WPXEncryption *encryption, int id, uint32_t dataOffset, uint32_t dataSize);
39  void _readContents(WPXInputStream *input, WPXEncryption *encryption);
40  void parse(WP6Listener * /*listener*/) const {}
41 
43  {
45  }
47  {
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  }
63  {
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:
110  uint8_t m_widthFlags;
111  uint16_t m_width;
112  uint8_t m_heightFlags;
113  uint16_t m_height;
117 };
118 #endif /* WP6GRAPHICSBOXSTYLEPACKET_H */
119 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */

Generated for libwpd by doxygen 1.8.3