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 
32 #include "WP6VariableLengthGroup.h"
33 #include "WP6FileStructure.h"
34 #include <vector>
35 
37 {
38 public:
39  WP6ParagraphGroup_LineSpacingSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
40  void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override;
41 
42 private:
43  double m_lineSpacing;
44 };
45 
47 {
48 public:
49  WP6ParagraphGroup_JustificationModeSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
50  void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override;
51 
52 private:
53  unsigned char m_justification;
54 };
55 
57 {
58 public:
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 
62 private:
65  unsigned short m_sizeNonDeletable;
66 };
67 
69 {
70 public:
71  WP6ParagraphGroup_TabSetSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
73  void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override;
74 
75 private:
78  std::vector<bool> m_usePreWP9LeaderMethods;
79  std::vector<WPXTabStop> m_tabStops;
80 };
81 
83 {
84 public:
85  WP6ParagraphGroup_IndentFirstLineSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
86  void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override;
87 
88 private:
89  signed short m_firstLineOffset;
90 };
91 
93 {
94 public:
95  WP6ParagraphGroup_LeftMarginAdjustmentSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
96  void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override;
97 
98 private:
99  signed short m_leftMargin;
100 };
101 
103 {
104 public:
105  WP6ParagraphGroup_RightMarginAdjustmentSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
106  void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override;
107 
108 private:
109  signed short m_rightMargin;
110 };
111 
113 {
114 public:
115  WP6ParagraphGroup_OutlineDefineSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
116  void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override;
117 
118 private:
119  unsigned short m_outlineHash;
121  unsigned char m_tabBehaviourFlag;
122 };
123 
125 {
126 public:
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;
131 private:
134  std::unique_ptr<WP6VariableLengthGroup_SubGroup> m_subGroupData;
135 };
136 
137 #endif /* WP6PARAGRAPHGROUP_H */
138 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
WP6Listener.h
WP6ParagraphGroup_TabSetSubGroup::m_usePreWP9LeaderMethods
std::vector< bool > m_usePreWP9LeaderMethods
Definition: WP6ParagraphGroup.h:78
WP6VariableLengthGroup::getSubGroup
unsigned char getSubGroup() const
Definition: WP6VariableLengthGroup.h:56
WP6ParagraphGroup_JustificationModeSubGroup
Definition: WP6ParagraphGroup.h:47
WP6ParagraphGroup_TabSetSubGroup::WP6ParagraphGroup_TabSetSubGroup
WP6ParagraphGroup_TabSetSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6ParagraphGroup.cpp:104
WP6Listener::spacingAfterParagraphChange
virtual void spacingAfterParagraphChange(const double spacingRelative, const double spacingAbsolute)=0
WP6ParagraphGroup_OutlineDefineSubGroup::m_tabBehaviourFlag
unsigned char m_tabBehaviourFlag
Definition: WP6ParagraphGroup.h:121
WP6ParagraphGroup_TabSetSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override
Definition: WP6ParagraphGroup.cpp:222
WP6FileStructure.h
WP6ParagraphGroup::parse
void parse(WP6Listener *listener) override
Definition: WP6ParagraphGroup.cpp:78
WP6ParagraphGroup::m_subGroupData
std::unique_ptr< WP6VariableLengthGroup_SubGroup > m_subGroupData
Definition: WP6ParagraphGroup.h:134
WP6ParagraphGroup::WP6ParagraphGroup
WP6ParagraphGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6ParagraphGroup.cpp:34
WPX_RIGHT
#define WPX_RIGHT
Definition: libwpd_internal.h:161
WP6Listener::updateOutlineDefinition
virtual void updateOutlineDefinition(const unsigned short outlineHash, const unsigned char *numberingMethods, const unsigned char tabBehaviourFlag)=0
WP6ParagraphGroup_OutlineDefineSubGroup::m_numberingMethods
unsigned char m_numberingMethods[WP6_NUM_LIST_LEVELS]
Definition: WP6ParagraphGroup.h:120
WP6ParagraphGroup_IndentFirstLineSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override
Definition: WP6ParagraphGroup.cpp:243
WPD_DEBUG_MSG
#define WPD_DEBUG_MSG(M)
Definition: libwpd_internal.h:50
readU16
unsigned short readU16(librevenge::RVNGInputStream *input, WPXEncryption *encryption, bool bigendian)
Definition: libwpd_internal.cpp:119
WP6ParagraphGroup_TabSetSubGroup::m_tabAdjustValue
double m_tabAdjustValue
Definition: WP6ParagraphGroup.h:77
WP6ParagraphGroup_SpacingAfterParagraphSubGroup
Definition: WP6ParagraphGroup.h:57
WP6ParagraphGroup_LineSpacingSubGroup
Definition: WP6ParagraphGroup.h:37
WPX_LEFT
#define WPX_LEFT
Definition: libwpd_internal.h:160
WP6ParagraphGroup_JustificationModeSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override
Definition: WP6ParagraphGroup.cpp:284
WP6Listener::paragraphMarginChange
virtual void paragraphMarginChange(const unsigned char side, const signed short margin)=0
WP6Listener::indentFirstLineChange
virtual void indentFirstLineChange(const signed short offset)=0
WP6ParagraphGroup_TabSetSubGroup
Definition: WP6ParagraphGroup.h:69
WP6ParagraphGroup_SpacingAfterParagraphSubGroup::WP6ParagraphGroup_SpacingAfterParagraphSubGroup
WP6ParagraphGroup_SpacingAfterParagraphSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption, const unsigned short sizeNonDeletable)
Definition: WP6ParagraphGroup.cpp:290
WP6ParagraphGroup_TabSetSubGroup::m_tabStops
std::vector< WPXTabStop > m_tabStops
Definition: WP6ParagraphGroup.h:79
WP6_PARAGRAPH_GROUP_JUSTIFICATION
#define WP6_PARAGRAPH_GROUP_JUSTIFICATION
Definition: WP6FileStructure.h:291
WP6VariableLengthGroup
Definition: WP6VariableLengthGroup.h:43
WP6ParagraphGroup_SpacingAfterParagraphSubGroup::m_sizeNonDeletable
unsigned short m_sizeNonDeletable
Definition: WP6ParagraphGroup.h:65
WP6ParagraphGroup_IndentFirstLineSubGroup
Definition: WP6ParagraphGroup.h:83
WP6ParagraphGroup_TabSetSubGroup::~WP6ParagraphGroup_TabSetSubGroup
~WP6ParagraphGroup_TabSetSubGroup() override
Definition: WP6ParagraphGroup.cpp:218
libwpd_internal.h
WP6Listener
Definition: WP6Listener.h:41
WP6ParagraphGroup::~WP6ParagraphGroup
~WP6ParagraphGroup() override
Definition: WP6ParagraphGroup.cpp:41
RIGHT
@ RIGHT
Definition: libwpd_internal.h:106
WP6_PARAGRAPH_GROUP_INDENT_FIRST_LINE_OF_PARAGRAPH
#define WP6_PARAGRAPH_GROUP_INDENT_FIRST_LINE_OF_PARAGRAPH
Definition: WP6FileStructure.h:293
WP6VariableLengthGroup::getPrefixIDs
const unsigned short * getPrefixIDs() const
Definition: WP6VariableLengthGroup.h:72
WP6ParagraphGroup_OutlineDefineSubGroup::WP6ParagraphGroup_OutlineDefineSubGroup
WP6ParagraphGroup_OutlineDefineSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6ParagraphGroup.cpp:318
WP6ParagraphGroup_LeftMarginAdjustmentSubGroup::m_leftMargin
signed short m_leftMargin
Definition: WP6ParagraphGroup.h:99
LEFT
@ LEFT
Definition: libwpd_internal.h:106
WP6ParagraphGroup_IndentFirstLineSubGroup::m_firstLineOffset
signed short m_firstLineOffset
Definition: WP6ParagraphGroup.h:89
WP6ParagraphGroup_LeftMarginAdjustmentSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override
Definition: WP6ParagraphGroup.cpp:257
WPX_NUM_WPUS_PER_INCH
#define WPX_NUM_WPUS_PER_INCH
Definition: WPXFileStructure.h:30
WP6ParagraphGroup
Definition: WP6ParagraphGroup.h:125
WP6ParagraphGroup_JustificationModeSubGroup::m_justification
unsigned char m_justification
Definition: WP6ParagraphGroup.h:53
WP6ParagraphGroup_RightMarginAdjustmentSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override
Definition: WP6ParagraphGroup.cpp:271
WP6ParagraphGroup_LineSpacingSubGroup::m_lineSpacing
double m_lineSpacing
Definition: WP6ParagraphGroup.h:43
WP6Listener::defineTabStops
virtual void defineTabStops(const bool isRelative, const std::vector< WPXTabStop > &tabStops, const std::vector< bool > &usePreWP9LeaderMethods)=0
WP6VariableLengthGroup::_read
void _read(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6VariableLengthGroup.cpp:132
WP6ParagraphGroup_IndentFirstLineSubGroup::WP6ParagraphGroup_IndentFirstLineSubGroup
WP6ParagraphGroup_IndentFirstLineSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6ParagraphGroup.cpp:236
WP6ParagraphGroup_SpacingAfterParagraphSubGroup::m_spacingAfterParagraphRelative
double m_spacingAfterParagraphRelative
Definition: WP6ParagraphGroup.h:64
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
WP6ParagraphGroup_SpacingAfterParagraphSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override
Definition: WP6ParagraphGroup.cpp:310
WP6VariableLengthGroup::getSizeNonDeletable
unsigned short getSizeNonDeletable() const
Definition: WP6VariableLengthGroup.h:76
WP6ParagraphGroup_OutlineDefineSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override
Definition: WP6ParagraphGroup.cpp:334
WP6_PARAGRAPH_GROUP_SPACING_AFTER_PARAGRAPH
#define WP6_PARAGRAPH_GROUP_SPACING_AFTER_PARAGRAPH
Definition: WP6FileStructure.h:292
WP6ParagraphGroup_LineSpacingSubGroup::WP6ParagraphGroup_LineSpacingSubGroup
WP6ParagraphGroup_LineSpacingSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6ParagraphGroup.cpp:86
WP6ParagraphGroup_LeftMarginAdjustmentSubGroup
Definition: WP6ParagraphGroup.h:93
WP6ParagraphGroup_OutlineDefineSubGroup::m_outlineHash
unsigned short m_outlineHash
Definition: WP6ParagraphGroup.h:119
readU32
unsigned readU32(librevenge::RVNGInputStream *input, WPXEncryption *encryption, bool bigendian)
Definition: libwpd_internal.cpp:139
WP6VariableLengthGroup::getNumPrefixIDs
unsigned char getNumPrefixIDs() const
Definition: WP6VariableLengthGroup.h:68
WP6ParagraphGroup_LeftMarginAdjustmentSubGroup::WP6ParagraphGroup_LeftMarginAdjustmentSubGroup
WP6ParagraphGroup_LeftMarginAdjustmentSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6ParagraphGroup.cpp:250
CENTER
@ CENTER
Definition: libwpd_internal.h:106
WP6VariableLengthGroup.h
WPXTabStop::m_leaderCharacter
unsigned m_leaderCharacter
Definition: libwpd_internal.h:198
WP6_NUM_LIST_LEVELS
#define WP6_NUM_LIST_LEVELS
Definition: WP6FileStructure.h:36
WP6_PARAGRAPH_GROUP_RIGHT_MARGIN_ADJUSTMENT
#define WP6_PARAGRAPH_GROUP_RIGHT_MARGIN_ADJUSTMENT
Definition: WP6FileStructure.h:295
WP6ParagraphGroup_SpacingAfterParagraphSubGroup::m_spacingAfterParagraphAbsolute
double m_spacingAfterParagraphAbsolute
Definition: WP6ParagraphGroup.h:63
DECIMAL
@ DECIMAL
Definition: libwpd_internal.h:106
WP6ParagraphGroup_OutlineDefineSubGroup
Definition: WP6ParagraphGroup.h:113
WP6ParagraphGroup_RightMarginAdjustmentSubGroup::WP6ParagraphGroup_RightMarginAdjustmentSubGroup
WP6ParagraphGroup_RightMarginAdjustmentSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6ParagraphGroup.cpp:264
WP6ParagraphGroup::_readContents
void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption) override
Definition: WP6ParagraphGroup.cpp:45
WPXFileStructure.h
WP6ParagraphGroup_RightMarginAdjustmentSubGroup::m_rightMargin
signed short m_rightMargin
Definition: WP6ParagraphGroup.h:109
WPXTabStop::m_position
double m_position
Definition: libwpd_internal.h:196
WP6ParagraphGroup_JustificationModeSubGroup::WP6ParagraphGroup_JustificationModeSubGroup
WP6ParagraphGroup_JustificationModeSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6ParagraphGroup.cpp:278
WP6ParagraphGroup_LineSpacingSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const override
Definition: WP6ParagraphGroup.cpp:97
WP6Listener::lineSpacingChange
virtual void lineSpacingChange(const double lineSpacing)=0
WP6_PARAGRAPH_GROUP_LINE_SPACING
#define WP6_PARAGRAPH_GROUP_LINE_SPACING
Definition: WP6FileStructure.h:289
WP6ParagraphGroup_RightMarginAdjustmentSubGroup
Definition: WP6ParagraphGroup.h:103
WP6VariableLengthGroup_SubGroup
Definition: WP6VariableLengthGroup.h:36
WP6_PARAGRAPH_GROUP_LEFT_MARGIN_ADJUSTMENT
#define WP6_PARAGRAPH_GROUP_LEFT_MARGIN_ADJUSTMENT
Definition: WP6FileStructure.h:294
WP6ParagraphGroup.h
readU8
unsigned char readU8(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: libwpd_internal.cpp:106
WP6_PARAGRAPH_GROUP_OUTLINE_DEFINE
#define WP6_PARAGRAPH_GROUP_OUTLINE_DEFINE
Definition: WP6FileStructure.h:296
WP6_PARAGRAPH_GROUP_TAB_SET
#define WP6_PARAGRAPH_GROUP_TAB_SET
Definition: WP6FileStructure.h:290
WP6ParagraphGroup_TabSetSubGroup::m_isRelative
bool m_isRelative
Definition: WP6ParagraphGroup.h:76
WPXEncryption
Definition: WPXEncryption.h:36
WPXTabStop::m_alignment
WPXTabAlignment m_alignment
Definition: libwpd_internal.h:197
WP6Listener::justificationChange
virtual void justificationChange(const unsigned char justification)=0
WP6ParagraphGroup::WP6ParagraphGroup
WP6ParagraphGroup(const WP6ParagraphGroup &)
WP6ParagraphGroup::operator=
WP6ParagraphGroup & operator=(const WP6ParagraphGroup &)

Generated for libwpd by doxygen 1.8.20