- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

WP6ParagraphGroup.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 *
13 * For minor contributions see the git repository.
14 *
15 * Alternatively, the contents of this file may be used under the terms
16 * of the GNU Lesser General Public License Version 2.1 or later
17 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
18 * applicable instead of those above.
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 WP6PARAGRAPHGROUP_H
28 #define WP6PARAGRAPHGROUP_H
29
30 #include "WP6VariableLengthGroup.h"
31 #include "WP6FileStructure.h"
32 #include <vector>
33
34 class WP6ParagraphGroup_LineSpacingSubGroup : public WP6VariableLengthGroup_SubGroup
35 {
36 public:
37 WP6ParagraphGroup_LineSpacingSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
38 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const;
39
40 private:
41 double m_lineSpacing;
42 };
43
44 class WP6ParagraphGroup_JustificationModeSubGroup : public WP6VariableLengthGroup_SubGroup
45 {
46 public:
47 WP6ParagraphGroup_JustificationModeSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
48 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const;
49
50 private:
51 unsigned char m_justification;
52 };
53
54 class WP6ParagraphGroup_SpacingAfterParagraphSubGroup : public WP6VariableLengthGroup_SubGroup
55 {
56 public:
57 WP6ParagraphGroup_SpacingAfterParagraphSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption, const unsigned short sizeNonDeletable);
58 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const;
59
60 private:
61 double m_spacingAfterParagraphAbsolute;
62 double m_spacingAfterParagraphRelative;
63 unsigned short m_sizeNonDeletable;
64 };
65
66 class WP6ParagraphGroup_TabSetSubGroup : public WP6VariableLengthGroup_SubGroup
67 {
68 public:
69 WP6ParagraphGroup_TabSetSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
70 ~WP6ParagraphGroup_TabSetSubGroup();
71 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const;
72
73 private:
74 bool m_isRelative;
75 double m_tabAdjustValue;
76 std::vector<bool> m_usePreWP9LeaderMethods;
77 std::vector<WPXTabStop> m_tabStops;
78 };
79
80 class WP6ParagraphGroup_IndentFirstLineSubGroup : public WP6VariableLengthGroup_SubGroup
81 {
82 public:
83 WP6ParagraphGroup_IndentFirstLineSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
84 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const;
85
86 private:
87 signed short m_firstLineOffset;
88 };
89
90 class WP6ParagraphGroup_LeftMarginAdjustmentSubGroup : public WP6VariableLengthGroup_SubGroup
91 {
92 public:
93 WP6ParagraphGroup_LeftMarginAdjustmentSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
94 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const;
95
96 private:
97 signed short m_leftMargin;
98 };
99
100 class WP6ParagraphGroup_RightMarginAdjustmentSubGroup : public WP6VariableLengthGroup_SubGroup
101 {
102 public:
103 WP6ParagraphGroup_RightMarginAdjustmentSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
104 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const;
105
106 private:
107 signed short m_rightMargin;
108 };
109
110 class WP6ParagraphGroup_OutlineDefineSubGroup : public WP6VariableLengthGroup_SubGroup
111 {
112 public:
113 WP6ParagraphGroup_OutlineDefineSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
114 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const;
115
116 private:
117 unsigned short m_outlineHash;
118 unsigned char m_numberingMethods[WP6_NUM_LIST_LEVELS];
119 unsigned char m_tabBehaviourFlag;
120 };
121
122 class WP6ParagraphGroup : public WP6VariableLengthGroup
123 {
124 public:
125 WP6ParagraphGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
126 ~WP6ParagraphGroup();
127 void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
128 void parse(WP6Listener *listener);
129 private:
130 WP6ParagraphGroup(const WP6ParagraphGroup &);
131 WP6ParagraphGroup &operator=(const WP6ParagraphGroup &);
132 WP6VariableLengthGroup_SubGroup *m_subGroupData;
133 };
134
135 #endif /* WP6PARAGRAPHGROUP_H */
136 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
WP6ParagraphGroup::operator=
WP6ParagraphGroup & operator=(const WP6ParagraphGroup &)
WP6FileStructure.h
WP6Listener
Definition: WP6Listener.h:40
WP6ParagraphGroup_LineSpacingSubGroup
Definition: WP6ParagraphGroup.h:34
WP6ParagraphGroup_JustificationModeSubGroup
Definition: WP6ParagraphGroup.h:44
WP6ParagraphGroup_IndentFirstLineSubGroup::WP6ParagraphGroup_IndentFirstLineSubGroup
WP6ParagraphGroup_IndentFirstLineSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6ParagraphGroup.cpp:236
WP6ParagraphGroup_LineSpacingSubGroup::WP6ParagraphGroup_LineSpacingSubGroup
WP6ParagraphGroup_LineSpacingSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6ParagraphGroup.cpp:88
WP6ParagraphGroup::WP6ParagraphGroup
WP6ParagraphGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6ParagraphGroup.cpp:34
WP6ParagraphGroup_TabSetSubGroup::m_usePreWP9LeaderMethods
std::vector< bool > m_usePreWP9LeaderMethods
Definition: WP6ParagraphGroup.h:76
WP6ParagraphGroup_LineSpacingSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const
Definition: WP6ParagraphGroup.cpp:99
WP6ParagraphGroup_RightMarginAdjustmentSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const
Definition: WP6ParagraphGroup.cpp:271
WP6ParagraphGroup_TabSetSubGroup
Definition: WP6ParagraphGroup.h:66
WP6ParagraphGroup_OutlineDefineSubGroup::WP6ParagraphGroup_OutlineDefineSubGroup
WP6ParagraphGroup_OutlineDefineSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6ParagraphGroup.cpp:318
WP6ParagraphGroup_SpacingAfterParagraphSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const
Definition: WP6ParagraphGroup.cpp:310
WP6VariableLengthGroup_SubGroup
Definition: WP6VariableLengthGroup.h:33
WP6ParagraphGroup_RightMarginAdjustmentSubGroup
Definition: WP6ParagraphGroup.h:100
WP6ParagraphGroup_OutlineDefineSubGroup::m_numberingMethods
unsigned char m_numberingMethods[WP6_NUM_LIST_LEVELS]
Definition: WP6ParagraphGroup.h:118
WP6ParagraphGroup_TabSetSubGroup::m_tabAdjustValue
double m_tabAdjustValue
Definition: WP6ParagraphGroup.h:75
WP6ParagraphGroup_TabSetSubGroup::WP6ParagraphGroup_TabSetSubGroup
WP6ParagraphGroup_TabSetSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6ParagraphGroup.cpp:106
WP6ParagraphGroup_SpacingAfterParagraphSubGroup::m_spacingAfterParagraphRelative
double m_spacingAfterParagraphRelative
Definition: WP6ParagraphGroup.h:62
WP6ParagraphGroup_OutlineDefineSubGroup::m_tabBehaviourFlag
unsigned char m_tabBehaviourFlag
Definition: WP6ParagraphGroup.h:119
WP6ParagraphGroup::~WP6ParagraphGroup
~WP6ParagraphGroup()
Definition: WP6ParagraphGroup.cpp:41
WP6ParagraphGroup_TabSetSubGroup::m_tabStops
std::vector< WPXTabStop > m_tabStops
Definition: WP6ParagraphGroup.h:77
WP6ParagraphGroup_RightMarginAdjustmentSubGroup::m_rightMargin
signed short m_rightMargin
Definition: WP6ParagraphGroup.h:107
WP6ParagraphGroup_IndentFirstLineSubGroup::m_firstLineOffset
signed short m_firstLineOffset
Definition: WP6ParagraphGroup.h:87
WP6ParagraphGroup_LeftMarginAdjustmentSubGroup::m_leftMargin
signed short m_leftMargin
Definition: WP6ParagraphGroup.h:97
WP6ParagraphGroup_SpacingAfterParagraphSubGroup::m_sizeNonDeletable
unsigned short m_sizeNonDeletable
Definition: WP6ParagraphGroup.h:63
WP6ParagraphGroup_JustificationModeSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const
Definition: WP6ParagraphGroup.cpp:284
WP6ParagraphGroup_OutlineDefineSubGroup
Definition: WP6ParagraphGroup.h:110
WP6ParagraphGroup_JustificationModeSubGroup::WP6ParagraphGroup_JustificationModeSubGroup
WP6ParagraphGroup_JustificationModeSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6ParagraphGroup.cpp:278
WP6VariableLengthGroup.h
WP6ParagraphGroup_IndentFirstLineSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const
Definition: WP6ParagraphGroup.cpp:243
WP6ParagraphGroup_OutlineDefineSubGroup::m_outlineHash
unsigned short m_outlineHash
Definition: WP6ParagraphGroup.h:117
WP6ParagraphGroup_SpacingAfterParagraphSubGroup::WP6ParagraphGroup_SpacingAfterParagraphSubGroup
WP6ParagraphGroup_SpacingAfterParagraphSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption, const unsigned short sizeNonDeletable)
Definition: WP6ParagraphGroup.cpp:290
WP6_NUM_LIST_LEVELS
#define WP6_NUM_LIST_LEVELS
Definition: WP6FileStructure.h:36
WP6ParagraphGroup_LeftMarginAdjustmentSubGroup::WP6ParagraphGroup_LeftMarginAdjustmentSubGroup
WP6ParagraphGroup_LeftMarginAdjustmentSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6ParagraphGroup.cpp:250
WPXEncryption
Definition: WPXEncryption.h:33
WP6ParagraphGroup_TabSetSubGroup::~WP6ParagraphGroup_TabSetSubGroup
~WP6ParagraphGroup_TabSetSubGroup()
Definition: WP6ParagraphGroup.cpp:218
WP6ParagraphGroup_TabSetSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const
Definition: WP6ParagraphGroup.cpp:222
WP6ParagraphGroup
Definition: WP6ParagraphGroup.h:122
WP6ParagraphGroup_TabSetSubGroup::m_isRelative
bool m_isRelative
Definition: WP6ParagraphGroup.h:74
WP6ParagraphGroup_RightMarginAdjustmentSubGroup::WP6ParagraphGroup_RightMarginAdjustmentSubGroup
WP6ParagraphGroup_RightMarginAdjustmentSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6ParagraphGroup.cpp:264
WP6ParagraphGroup_LeftMarginAdjustmentSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const
Definition: WP6ParagraphGroup.cpp:257
WP6ParagraphGroup_SpacingAfterParagraphSubGroup
Definition: WP6ParagraphGroup.h:54
WP6ParagraphGroup::_readContents
void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6ParagraphGroup.cpp:47
WP6ParagraphGroup::m_subGroupData
WP6VariableLengthGroup_SubGroup * m_subGroupData
Definition: WP6ParagraphGroup.h:132
WP6ParagraphGroup_LeftMarginAdjustmentSubGroup
Definition: WP6ParagraphGroup.h:90
WP6ParagraphGroup_LineSpacingSubGroup::m_lineSpacing
double m_lineSpacing
Definition: WP6ParagraphGroup.h:41
WP6ParagraphGroup_JustificationModeSubGroup::m_justification
unsigned char m_justification
Definition: WP6ParagraphGroup.h:51
WP6ParagraphGroup_OutlineDefineSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const
Definition: WP6ParagraphGroup.cpp:334
WP6VariableLengthGroup
Definition: WP6VariableLengthGroup.h:40
WP6ParagraphGroup_SpacingAfterParagraphSubGroup::m_spacingAfterParagraphAbsolute
double m_spacingAfterParagraphAbsolute
Definition: WP6ParagraphGroup.h:61
WP6ParagraphGroup_IndentFirstLineSubGroup
Definition: WP6ParagraphGroup.h:80
WP6ParagraphGroup::parse
void parse(WP6Listener *listener)
Definition: WP6ParagraphGroup.cpp:80