WP3PageFormatGroup.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) 2002 William Lachance (wrlach@gmail.com)
11  * Copyright (C) 2002 Marc Maurer (uwog@uwog.net)
12  * Copyright (C) 2004 Fridrich Strba (fridrich.strba@bluewin.ch)
13  *
14  * For minor contributions see the git repository.
15  *
16  * Alternatively, the contents of this file may be used under the terms
17  * of the GNU Lesser General Public License Version 2.1 or later
18  * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
19  * applicable instead of those above.
20  *
21  * For further information visit http://libwpd.sourceforge.net
22  */
23 
24 /* "This product is not manufactured, approved, or supported by
25  * Corel Corporation or Corel Corporation Limited."
26  */
27 
28 #ifndef WP3PAGEFORMATGROUP_H
29 #define WP3PAGEFORMATGROUP_H
30 
31 #include "WP3VariableLengthGroup.h"
32 #include "libwpd_internal.h"
33 #include <vector>
34 
36 {
37 public:
38  WP3PageFormatGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
39  ~WP3PageFormatGroup() override;
40  void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption) override;
41  void parse(WP3Listener *listener) override;
42 
43 private:
44  // variables needed for subgroup 0x01 (Horizontal Margins)
45  unsigned m_leftMargin;
46  unsigned m_rightMargin;
47  // variable needed for subgroup 0x02 (Line Spacing)
48  double m_lineSpacing;
49  // variables needed for subgroup 0x04 (Set Tabs)
51  std::vector<WPXTabStop> m_tabStops;
52  // variables needed for subgroup 0x05 (Vertical Margins)
53  unsigned m_topMargin;
54  unsigned m_bottomMargin;
55  // variable needed for subgroup 0x06 (Justification Mode)
56  unsigned char m_justification;
57  // variable needed for subgroup 0x07 (Suppress Page)
58  unsigned short m_suppressCode;
59  // variable needed for subgroup 0x0C (Indent At Beginning of Line)
60  unsigned m_indent;
61 
62 };
63 
64 #endif /* WP3PAGEFORMATGROUP_H */
65 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
WP3PageFormatGroup::~WP3PageFormatGroup
~WP3PageFormatGroup() override
Definition: WP3PageFormatGroup.cpp:51
WP3PageFormatGroup.h
WP3_PAGE_FORMAT_GROUP_INDENT_AT_BEGINNING_OF_PARAGRAPH
#define WP3_PAGE_FORMAT_GROUP_INDENT_AT_BEGINNING_OF_PARAGRAPH
Definition: WP3FileStructure.h:98
WP3Listener::marginChange
virtual void marginChange(unsigned char side, unsigned short margin)=0
WP3VariableLengthGroup::_read
void _read(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP3VariableLengthGroup.cpp:124
WP3PageFormatGroup::m_topMargin
unsigned m_topMargin
Definition: WP3PageFormatGroup.h:53
WP3FileStructure.h
WP3_PAGE_FORMAT_GROUP_SET_TABS
#define WP3_PAGE_FORMAT_GROUP_SET_TABS
Definition: WP3FileStructure.h:94
FileException
Definition: libwpd_internal.h:209
WP3PageFormatGroup::m_lineSpacing
double m_lineSpacing
Definition: WP3PageFormatGroup.h:48
WP3PageFormatGroup::m_tabStops
std::vector< WPXTabStop > m_tabStops
Definition: WP3PageFormatGroup.h:51
WPX_RIGHT
#define WPX_RIGHT
Definition: libwpd_internal.h:161
WPD_DEBUG_MSG
#define WPD_DEBUG_MSG(M)
Definition: libwpd_internal.h:50
fixedPointToDouble
double fixedPointToDouble(const unsigned fixedPointNumber)
Definition: libwpd_internal.cpp:1172
readU16
unsigned short readU16(librevenge::RVNGInputStream *input, WPXEncryption *encryption, bool bigendian)
Definition: libwpd_internal.cpp:119
WPX_LEFT
#define WPX_LEFT
Definition: libwpd_internal.h:160
WP3PageFormatGroup::WP3PageFormatGroup
WP3PageFormatGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP3PageFormatGroup.cpp:35
WPX_TOP
#define WPX_TOP
Definition: libwpd_internal.h:163
WP3Listener::suppressPage
virtual void suppressPage(unsigned short suppressCode)=0
WP3Listener::justificationChange
virtual void justificationChange(unsigned char justification)=0
WP3Listener
Definition: WP3Listener.h:39
libwpd_internal.h
WP3PageFormatGroup
Definition: WP3PageFormatGroup.h:36
WP3PageFormatGroup::m_indent
unsigned m_indent
Definition: WP3PageFormatGroup.h:60
RIGHT
@ RIGHT
Definition: libwpd_internal.h:106
LEFT
@ LEFT
Definition: libwpd_internal.h:106
WP3PageFormatGroup::m_leftMargin
unsigned m_leftMargin
Definition: WP3PageFormatGroup.h:45
WP3PageFormatGroup::m_isRelative
bool m_isRelative
Definition: WP3PageFormatGroup.h:50
WP3PageFormatGroup::m_suppressCode
unsigned short m_suppressCode
Definition: WP3PageFormatGroup.h:58
WP3Listener.h
WP3PageFormatGroup::m_justification
unsigned char m_justification
Definition: WP3PageFormatGroup.h:56
fixedPointToWPUs
unsigned short fixedPointToWPUs(const unsigned fixedPointNumber)
Definition: libwpd_internal.cpp:1164
WP3PageFormatGroup::m_rightMargin
unsigned m_rightMargin
Definition: WP3PageFormatGroup.h:46
WPXTabStop
Definition: libwpd_internal.h:194
WPXTabStop::m_leaderNumSpaces
unsigned char m_leaderNumSpaces
Definition: libwpd_internal.h:199
BAR
@ BAR
Definition: libwpd_internal.h:106
libwpd_math.h
WP3Listener::setTabs
virtual void setTabs(bool isRelative, const std::vector< WPXTabStop > tabStops)=0
readU32
unsigned readU32(librevenge::RVNGInputStream *input, WPXEncryption *encryption, bool bigendian)
Definition: libwpd_internal.cpp:139
WPX_BOTTOM
#define WPX_BOTTOM
Definition: libwpd_internal.h:164
CENTER
@ CENTER
Definition: libwpd_internal.h:106
WPXTabStop::m_leaderCharacter
unsigned m_leaderCharacter
Definition: libwpd_internal.h:198
DECIMAL
@ DECIMAL
Definition: libwpd_internal.h:106
WP3_PAGE_FORMAT_GROUP_LINE_SPACING
#define WP3_PAGE_FORMAT_GROUP_LINE_SPACING
Definition: WP3FileStructure.h:93
WP3VariableLengthGroup::getSubGroup
unsigned char getSubGroup() const
Definition: WP3VariableLengthGroup.h:48
WP3Listener::lineSpacingChange
virtual void lineSpacingChange(double lineSpacing)=0
WP3_PAGE_FORMAT_GROUP_HORIZONTAL_MARGINS
#define WP3_PAGE_FORMAT_GROUP_HORIZONTAL_MARGINS
Definition: WP3FileStructure.h:92
WPXTabStop::m_position
double m_position
Definition: libwpd_internal.h:196
WP3Listener::indentFirstLineChange
virtual void indentFirstLineChange(double offset)=0
WP3PageFormatGroup::_readContents
void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption) override
Definition: WP3PageFormatGroup.cpp:55
WP3_PAGE_FORMAT_GROUP_JUSTIFICATION_MODE
#define WP3_PAGE_FORMAT_GROUP_JUSTIFICATION_MODE
Definition: WP3FileStructure.h:96
WP3PageFormatGroup::m_bottomMargin
unsigned m_bottomMargin
Definition: WP3PageFormatGroup.h:54
readU8
unsigned char readU8(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: libwpd_internal.cpp:106
WP3VariableLengthGroup
Definition: WP3VariableLengthGroup.h:35
WP3_PAGE_FORMAT_GROUP_VERTICAL_MARGINS
#define WP3_PAGE_FORMAT_GROUP_VERTICAL_MARGINS
Definition: WP3FileStructure.h:95
WP3_PAGE_FORMAT_GROUP_SUPPRESS_PAGE
#define WP3_PAGE_FORMAT_GROUP_SUPPRESS_PAGE
Definition: WP3FileStructure.h:97
WP3VariableLengthGroup.h
WPXEncryption
Definition: WPXEncryption.h:36
WP3PageFormatGroup::parse
void parse(WP3Listener *listener) override
Definition: WP3PageFormatGroup.cpp:202
WPXTabStop::m_alignment
WPXTabAlignment m_alignment
Definition: libwpd_internal.h:197
WP3Listener::pageMarginChange
virtual void pageMarginChange(unsigned char side, unsigned short margin)=0

Generated for libwpd by doxygen 1.8.20