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 <memory>
31
33#include "WP6FileStructure.h"
34#include <vector>
35
37{
38public:
39 WP6ParagraphGroup_LineSpacingSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
40 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override;
41
42private:
44};
45
47{
48public:
49 WP6ParagraphGroup_JustificationModeSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
50 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override;
51
52private:
53 unsigned char m_justification;
54};
55
57{
58public:
59 WP6ParagraphGroup_SpacingAfterParagraphSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption, const unsigned short sizeNonDeletable);
60 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override;
61
62private:
65 unsigned short m_sizeNonDeletable;
66};
67
69{
70public:
71 WP6ParagraphGroup_TabSetSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
73 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override;
74
75private:
78 std::vector<bool> m_usePreWP9LeaderMethods;
79 std::vector<WPXTabStop> m_tabStops;
80};
81
83{
84public:
85 WP6ParagraphGroup_IndentFirstLineSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
86 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override;
87
88private:
89 signed short m_firstLineOffset;
90};
91
93{
94public:
95 WP6ParagraphGroup_LeftMarginAdjustmentSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
96 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override;
97
98private:
99 signed short m_leftMargin;
100};
101
103{
104public:
105 WP6ParagraphGroup_RightMarginAdjustmentSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
106 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override;
107
108private:
109 signed short m_rightMargin;
110};
111
113{
114public:
115 WP6ParagraphGroup_OutlineDefineSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
116 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override;
117
118private:
119 unsigned short m_outlineHash;
121 unsigned char m_tabBehaviourFlag;
122};
123
125{
126public:
127 WP6ParagraphGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
128 ~WP6ParagraphGroup() override;
129 void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption) override;
130 void parse(WP6Listener *listener) override;
131private:
134 std::unique_ptr<WP6VariableLengthGroup_SubGroup> m_subGroupData;
135};
136
137#endif /* WP6PARAGRAPHGROUP_H */
138/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
#define WP6_NUM_LIST_LEVELS
Definition WP6FileStructure.h:36
Definition WP6Listener.h:41
WP6ParagraphGroup_IndentFirstLineSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition WP6ParagraphGroup.cpp:236
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override
Definition WP6ParagraphGroup.cpp:243
signed short m_firstLineOffset
Definition WP6ParagraphGroup.h:89
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override
Definition WP6ParagraphGroup.cpp:284
WP6ParagraphGroup_JustificationModeSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition WP6ParagraphGroup.cpp:278
unsigned char m_justification
Definition WP6ParagraphGroup.h:53
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override
Definition WP6ParagraphGroup.cpp:257
WP6ParagraphGroup_LeftMarginAdjustmentSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition WP6ParagraphGroup.cpp:250
signed short m_leftMargin
Definition WP6ParagraphGroup.h:99
WP6ParagraphGroup_LineSpacingSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition WP6ParagraphGroup.cpp:86
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override
Definition WP6ParagraphGroup.cpp:97
double m_lineSpacing
Definition WP6ParagraphGroup.h:43
unsigned char m_numberingMethods[WP6_NUM_LIST_LEVELS]
Definition WP6ParagraphGroup.h:120
unsigned short m_outlineHash
Definition WP6ParagraphGroup.h:119
WP6ParagraphGroup_OutlineDefineSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition WP6ParagraphGroup.cpp:318
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override
Definition WP6ParagraphGroup.cpp:334
unsigned char m_tabBehaviourFlag
Definition WP6ParagraphGroup.h:121
WP6ParagraphGroup_RightMarginAdjustmentSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition WP6ParagraphGroup.cpp:264
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override
Definition WP6ParagraphGroup.cpp:271
signed short m_rightMargin
Definition WP6ParagraphGroup.h:109
WP6ParagraphGroup_SpacingAfterParagraphSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption, const unsigned short sizeNonDeletable)
Definition WP6ParagraphGroup.cpp:290
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override
Definition WP6ParagraphGroup.cpp:310
double m_spacingAfterParagraphRelative
Definition WP6ParagraphGroup.h:64
double m_spacingAfterParagraphAbsolute
Definition WP6ParagraphGroup.h:63
unsigned short m_sizeNonDeletable
Definition WP6ParagraphGroup.h:65
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override
Definition WP6ParagraphGroup.cpp:222
std::vector< WPXTabStop > m_tabStops
Definition WP6ParagraphGroup.h:79
double m_tabAdjustValue
Definition WP6ParagraphGroup.h:77
std::vector< bool > m_usePreWP9LeaderMethods
Definition WP6ParagraphGroup.h:78
WP6ParagraphGroup_TabSetSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition WP6ParagraphGroup.cpp:104
~WP6ParagraphGroup_TabSetSubGroup() override
Definition WP6ParagraphGroup.cpp:218
bool m_isRelative
Definition WP6ParagraphGroup.h:76
~WP6ParagraphGroup() override
Definition WP6ParagraphGroup.cpp:41
WP6ParagraphGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition WP6ParagraphGroup.cpp:34
WP6ParagraphGroup(const WP6ParagraphGroup &)
std::unique_ptr< WP6VariableLengthGroup_SubGroup > m_subGroupData
Definition WP6ParagraphGroup.h:134
void parse(WP6Listener *listener) override
Definition WP6ParagraphGroup.cpp:78
void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption) override
Definition WP6ParagraphGroup.cpp:45
WP6ParagraphGroup & operator=(const WP6ParagraphGroup &)
Definition WP6VariableLengthGroup.h:36
WP6VariableLengthGroup()
Definition WP6VariableLengthGroup.cpp:47
Definition WPXEncryption.h:36

Generated for libwpd by doxygen 1.14.0