- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

WP6CharacterGroup.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 WP6CHARACTERGROUP_H
28 #define WP6CHARACTERGROUP_H
29
30 #include "WP6VariableLengthGroup.h"
31 #include "WP6FontDescriptorPacket.h"
32
33 class WP6CharacterGroup_SetAlignmentCharacterSubGroup: public WP6VariableLengthGroup_SubGroup
34 {
35 public:
36 WP6CharacterGroup_SetAlignmentCharacterSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
37 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const;
38
39 private:
40 unsigned char m_character;
41 unsigned char m_characterSet;
42 };
43
44 class WP6CharacterGroup_ColorSubGroup: public WP6VariableLengthGroup_SubGroup
45 {
46 public:
47 WP6CharacterGroup_ColorSubGroup(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_red;
52 unsigned char m_green;
53 unsigned char m_blue;
54 };
55
56 class WP6CharacterGroup_CharacterShadingChangeSubGroup: public WP6VariableLengthGroup_SubGroup
57 {
58 public:
59 WP6CharacterGroup_CharacterShadingChangeSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
60 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const;
61
62 private:
63 unsigned char m_shading;
64 };
65
66 class WP6CharacterGroup_FontFaceChangeSubGroup : public WP6VariableLengthGroup_SubGroup
67 {
68 public:
69 WP6CharacterGroup_FontFaceChangeSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption, unsigned short sizeDeletable);
70 ~WP6CharacterGroup_FontFaceChangeSubGroup();
71 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const;
72
73 private:
74 unsigned short m_oldMatchedPointSize;
75 unsigned short m_hash;
76 unsigned short m_matchedFontIndex;
77 unsigned short m_matchedFontPointSize;
78 WP6FontDescriptorPacket *m_packet;
79 // Unimplemented to prevent compiler from creating crasher ones
80 WP6CharacterGroup_FontFaceChangeSubGroup(const WP6CharacterGroup_FontFaceChangeSubGroup &);
81 WP6CharacterGroup_FontFaceChangeSubGroup &operator=(const WP6CharacterGroup_FontFaceChangeSubGroup &);
82
83 };
84
85 class WP6CharacterGroup_FontSizeChangeSubGroup : public WP6VariableLengthGroup_SubGroup
86 {
87 public:
88 WP6CharacterGroup_FontSizeChangeSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
89 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const;
90
91 private:
92 unsigned short m_desiredFontPointSize;
93 };
94
95 class WP6CharacterGroup_SetDotLeaderCharactersSubGroup: public WP6VariableLengthGroup_SubGroup
96 {
97 public:
98 WP6CharacterGroup_SetDotLeaderCharactersSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
99 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const;
100
101 private:
102 unsigned char m_character;
103 unsigned char m_characterSet;
104 unsigned char m_numberOfSpaces;
105 };
106
107 class WP6CharacterGroup_ParagraphNumberOnSubGroup : public WP6VariableLengthGroup_SubGroup
108 {
109 public:
110 WP6CharacterGroup_ParagraphNumberOnSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
111 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const;
112
113 private:
114 unsigned short m_outlineHash;
115 unsigned char m_level;
116 unsigned char m_flag;
117 };
118
119 class WP6CharacterGroup_TableDefinitionOnSubGroup : public WP6VariableLengthGroup_SubGroup
120 {
121 public:
122 WP6CharacterGroup_TableDefinitionOnSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
123 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const;
124
125 private:
126 unsigned char m_flags;
127 unsigned char m_position;
128 unsigned short m_leftOffset;
129 };
130
131 class WP6CharacterGroup_TableDefinitionOffSubGroup : public WP6VariableLengthGroup_SubGroup
132 {
133 public:
134 WP6CharacterGroup_TableDefinitionOffSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
135 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const;
136
137 private:
138
139 };
140
141 class WP6CharacterGroup_TableColumnSubGroup : public WP6VariableLengthGroup_SubGroup
142 {
143 public:
144 WP6CharacterGroup_TableColumnSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
145 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const;
146
147 private:
148 unsigned char m_flags;
149 unsigned short m_width;
150 unsigned short m_leftGutter;
151 unsigned short m_rightGutter;
152 unsigned m_attributes;
153 unsigned char m_alignment;
154 unsigned short m_absPosFromRight;
155 unsigned short m_numberType;
156 unsigned char m_currencyIndex;
157 };
158
159 class WP6CharacterGroup_CommentSubGroup : public WP6VariableLengthGroup_SubGroup
160 {
161 public:
162 WP6CharacterGroup_CommentSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
163 void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const;
164
165 private:
166
167 };
168
169 class WP6CharacterGroup : public WP6VariableLengthGroup
170 {
171 public:
172 WP6CharacterGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
173 ~WP6CharacterGroup();
174 void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
175 void parse(WP6Listener *listener);
176
177 private:
178 WP6CharacterGroup(const WP6CharacterGroup &);
179 WP6CharacterGroup &operator=(const WP6CharacterGroup &);
180 WP6VariableLengthGroup_SubGroup *m_subGroupData;
181
182 };
183
184 #endif /* WP6CHARACTERGROUP_H */
185 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
WP6CharacterGroup_CharacterShadingChangeSubGroup::WP6CharacterGroup_CharacterShadingChangeSubGroup
WP6CharacterGroup_CharacterShadingChangeSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6CharacterGroup.cpp:79
WP6CharacterGroup_FontFaceChangeSubGroup::WP6CharacterGroup_FontFaceChangeSubGroup
WP6CharacterGroup_FontFaceChangeSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption, unsigned short sizeDeletable)
Definition: WP6CharacterGroup.cpp:96
WP6CharacterGroup_FontFaceChangeSubGroup::m_matchedFontIndex
unsigned short m_matchedFontIndex
Definition: WP6CharacterGroup.h:76
WP6CharacterGroup_TableColumnSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const
Definition: WP6CharacterGroup.cpp:245
WP6CharacterGroup
Definition: WP6CharacterGroup.h:169
WP6CharacterGroup_SetDotLeaderCharactersSubGroup::m_characterSet
unsigned char m_characterSet
Definition: WP6CharacterGroup.h:103
WP6Listener
Definition: WP6Listener.h:40
WP6CharacterGroup_FontFaceChangeSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const
Definition: WP6CharacterGroup.cpp:120
WP6CharacterGroup_ColorSubGroup::WP6CharacterGroup_ColorSubGroup
WP6CharacterGroup_ColorSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6CharacterGroup.cpp:61
WP6CharacterGroup_ParagraphNumberOnSubGroup
Definition: WP6CharacterGroup.h:107
WP6CharacterGroup_TableColumnSubGroup::WP6CharacterGroup_TableColumnSubGroup
WP6CharacterGroup_TableColumnSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6CharacterGroup.cpp:228
WP6CharacterGroup_TableDefinitionOffSubGroup
Definition: WP6CharacterGroup.h:131
WP6CharacterGroup_SetAlignmentCharacterSubGroup::WP6CharacterGroup_SetAlignmentCharacterSubGroup
WP6CharacterGroup_SetAlignmentCharacterSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6CharacterGroup.cpp:39
WP6CharacterGroup_TableDefinitionOffSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const
Definition: WP6CharacterGroup.cpp:217
WP6CharacterGroup_TableDefinitionOnSubGroup::m_position
unsigned char m_position
Definition: WP6CharacterGroup.h:127
WP6CharacterGroup_CharacterShadingChangeSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const
Definition: WP6CharacterGroup.cpp:86
WP6CharacterGroup_CharacterShadingChangeSubGroup
Definition: WP6CharacterGroup.h:56
WP6CharacterGroup_ParagraphNumberOnSubGroup::m_level
unsigned char m_level
Definition: WP6CharacterGroup.h:115
WP6CharacterGroup_ColorSubGroup
Definition: WP6CharacterGroup.h:44
WP6CharacterGroup_FontSizeChangeSubGroup::WP6CharacterGroup_FontSizeChangeSubGroup
WP6CharacterGroup_FontSizeChangeSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6CharacterGroup.cpp:132
WP6CharacterGroup_ColorSubGroup::m_green
unsigned char m_green
Definition: WP6CharacterGroup.h:52
WP6CharacterGroup_TableDefinitionOnSubGroup::m_leftOffset
unsigned short m_leftOffset
Definition: WP6CharacterGroup.h:128
WP6CharacterGroup_CharacterShadingChangeSubGroup::m_shading
unsigned char m_shading
Definition: WP6CharacterGroup.h:63
WP6CharacterGroup_SetDotLeaderCharactersSubGroup::m_character
unsigned char m_character
Definition: WP6CharacterGroup.h:102
WP6CharacterGroup::WP6CharacterGroup
WP6CharacterGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6CharacterGroup.cpp:278
WP6CharacterGroup_FontFaceChangeSubGroup::m_matchedFontPointSize
unsigned short m_matchedFontPointSize
Definition: WP6CharacterGroup.h:77
WP6CharacterGroup_TableDefinitionOnSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const
Definition: WP6CharacterGroup.cpp:203
WP6CharacterGroup_TableDefinitionOnSubGroup::m_flags
unsigned char m_flags
Definition: WP6CharacterGroup.h:126
WP6VariableLengthGroup_SubGroup
Definition: WP6VariableLengthGroup.h:33
WP6CharacterGroup_TableColumnSubGroup::m_width
unsigned short m_width
Definition: WP6CharacterGroup.h:149
WP6CharacterGroup_SetDotLeaderCharactersSubGroup::WP6CharacterGroup_SetDotLeaderCharactersSubGroup
WP6CharacterGroup_SetDotLeaderCharactersSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6CharacterGroup.cpp:151
WP6CharacterGroup_SetDotLeaderCharactersSubGroup
Definition: WP6CharacterGroup.h:95
WP6CharacterGroup_SetAlignmentCharacterSubGroup
Definition: WP6CharacterGroup.h:33
WP6CharacterGroup_CommentSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const
Definition: WP6CharacterGroup.cpp:258
WP6CharacterGroup_SetDotLeaderCharactersSubGroup::m_numberOfSpaces
unsigned char m_numberOfSpaces
Definition: WP6CharacterGroup.h:104
WP6CharacterGroup_ParagraphNumberOnSubGroup::WP6CharacterGroup_ParagraphNumberOnSubGroup
WP6CharacterGroup_ParagraphNumberOnSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6CharacterGroup.cpp:176
WP6CharacterGroup_FontFaceChangeSubGroup::m_hash
unsigned short m_hash
Definition: WP6CharacterGroup.h:75
WP6CharacterGroup::parse
void parse(WP6Listener *listener)
Definition: WP6CharacterGroup.cpp:334
WP6CharacterGroup::m_subGroupData
WP6VariableLengthGroup_SubGroup * m_subGroupData
Definition: WP6CharacterGroup.h:180
WP6CharacterGroup_TableDefinitionOnSubGroup
Definition: WP6CharacterGroup.h:119
WP6FontDescriptorPacket.h
WP6CharacterGroup_ColorSubGroup::m_blue
unsigned char m_blue
Definition: WP6CharacterGroup.h:53
WP6CharacterGroup_TableColumnSubGroup::m_absPosFromRight
unsigned short m_absPosFromRight
Definition: WP6CharacterGroup.h:154
WP6CharacterGroup::_readContents
void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6CharacterGroup.cpp:290
WP6CharacterGroup_FontSizeChangeSubGroup::m_desiredFontPointSize
unsigned short m_desiredFontPointSize
Definition: WP6CharacterGroup.h:92
WP6CharacterGroup_SetAlignmentCharacterSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const
Definition: WP6CharacterGroup.cpp:48
WP6CharacterGroup_TableColumnSubGroup::m_currencyIndex
unsigned char m_currencyIndex
Definition: WP6CharacterGroup.h:156
WP6CharacterGroup_FontFaceChangeSubGroup::operator=
WP6CharacterGroup_FontFaceChangeSubGroup & operator=(const WP6CharacterGroup_FontFaceChangeSubGroup &)
WP6VariableLengthGroup.h
WP6CharacterGroup_FontSizeChangeSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const
Definition: WP6CharacterGroup.cpp:139
WP6CharacterGroup_ParagraphNumberOnSubGroup::m_flag
unsigned char m_flag
Definition: WP6CharacterGroup.h:116
WP6CharacterGroup::operator=
WP6CharacterGroup & operator=(const WP6CharacterGroup &)
WP6CharacterGroup_TableColumnSubGroup::m_flags
unsigned char m_flags
Definition: WP6CharacterGroup.h:148
WP6CharacterGroup_TableColumnSubGroup::m_numberType
unsigned short m_numberType
Definition: WP6CharacterGroup.h:155
WP6CharacterGroup_FontFaceChangeSubGroup::m_packet
WP6FontDescriptorPacket * m_packet
Definition: WP6CharacterGroup.h:78
WP6CharacterGroup_SetAlignmentCharacterSubGroup::m_character
unsigned char m_character
Definition: WP6CharacterGroup.h:40
WP6CharacterGroup::~WP6CharacterGroup
~WP6CharacterGroup()
Definition: WP6CharacterGroup.cpp:285
WP6FontDescriptorPacket
Definition: WP6FontDescriptorPacket.h:34
WP6CharacterGroup_TableDefinitionOnSubGroup::WP6CharacterGroup_TableDefinitionOnSubGroup
WP6CharacterGroup_TableDefinitionOnSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6CharacterGroup.cpp:194
WP6CharacterGroup_SetDotLeaderCharactersSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const
Definition: WP6CharacterGroup.cpp:162
WP6CharacterGroup_TableColumnSubGroup
Definition: WP6CharacterGroup.h:141
WP6CharacterGroup_SetAlignmentCharacterSubGroup::m_characterSet
unsigned char m_characterSet
Definition: WP6CharacterGroup.h:41
WP6CharacterGroup_TableColumnSubGroup::m_attributes
unsigned m_attributes
Definition: WP6CharacterGroup.h:152
WP6CharacterGroup_FontSizeChangeSubGroup
Definition: WP6CharacterGroup.h:85
WPXEncryption
Definition: WPXEncryption.h:33
WP6CharacterGroup_FontFaceChangeSubGroup
Definition: WP6CharacterGroup.h:66
WP6CharacterGroup_TableColumnSubGroup::m_leftGutter
unsigned short m_leftGutter
Definition: WP6CharacterGroup.h:150
WP6CharacterGroup_ColorSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const
Definition: WP6CharacterGroup.cpp:70
WP6CharacterGroup_FontFaceChangeSubGroup::m_oldMatchedPointSize
unsigned short m_oldMatchedPointSize
Definition: WP6CharacterGroup.h:74
WP6CharacterGroup_CommentSubGroup::WP6CharacterGroup_CommentSubGroup
WP6CharacterGroup_CommentSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6CharacterGroup.cpp:254
WP6CharacterGroup_CommentSubGroup
Definition: WP6CharacterGroup.h:159
WP6CharacterGroup_FontFaceChangeSubGroup::~WP6CharacterGroup_FontFaceChangeSubGroup
~WP6CharacterGroup_FontFaceChangeSubGroup()
Definition: WP6CharacterGroup.cpp:113
WP6CharacterGroup_ParagraphNumberOnSubGroup::parse
void parse(WP6Listener *listener, const unsigned char numPrefixIDs, unsigned short const *prefixIDs) const
Definition: WP6CharacterGroup.cpp:184
WP6CharacterGroup_ParagraphNumberOnSubGroup::m_outlineHash
unsigned short m_outlineHash
Definition: WP6CharacterGroup.h:114
WP6CharacterGroup_TableDefinitionOffSubGroup::WP6CharacterGroup_TableDefinitionOffSubGroup
WP6CharacterGroup_TableDefinitionOffSubGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6CharacterGroup.cpp:213
WP6CharacterGroup_ColorSubGroup::m_red
unsigned char m_red
Definition: WP6CharacterGroup.h:51
WP6CharacterGroup_TableColumnSubGroup::m_alignment
unsigned char m_alignment
Definition: WP6CharacterGroup.h:153
WP6VariableLengthGroup
Definition: WP6VariableLengthGroup.h:40
WP6CharacterGroup_TableColumnSubGroup::m_rightGutter
unsigned short m_rightGutter
Definition: WP6CharacterGroup.h:151