WP6EOLGroup.h Source File documentation

WP6EOLGroup.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 WP6EOLGROUP_H
28 #define WP6EOLGROUP_H
29
30 #include <memory>
31
32 #include "WP6VariableLengthGroup.h"
33
34 class WP6EOLGroup : public WP6VariableLengthGroup
35 {
36 public:
37 WP6EOLGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
38 ~WP6EOLGroup() override;
39 void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption) override;
40 void parse(WP6Listener *listener) override;
41
42 private:
43 WP6EOLGroup(const WP6EOLGroup &);
44 WP6EOLGroup &operator=(const WP6EOLGroup &);
45 unsigned char m_colSpan, m_rowSpan;
46 bool m_boundFromAbove;
47
48 bool m_useCellAttributes, m_useCellJustification;
49 bool m_ignoreInCalculations, m_cellIsLocked;
50 unsigned m_cellAttributes;
51 unsigned char m_cellJustification;
52 WPXVerticalAlignment m_cellVerticalAlign;
53
54 // cell forground and background color
55 std::unique_ptr<RGBSColor> m_cellFgColor;
56 std::unique_ptr<RGBSColor> m_cellBgColor;
57 std::unique_ptr<RGBSColor> m_cellBorderColor;
58
59 unsigned char m_cellBorders;
60 bool m_isHeaderRow;
61 bool m_isMinimumHeight;
62 unsigned short m_rowHeight;
63
64 bool m_isDontEndAParagraphStyleForThisHardReturn;
65 };
66
67 #endif /* WP6EOLGROUP_H */
68 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
WP6_EOL_GROUP_TABLE_OFF
#define WP6_EOL_GROUP_TABLE_OFF
Definition: WP6FileStructure.h:237
WP6_EOL_GROUP_CELL_INFORMATION_SIZE
#define WP6_EOL_GROUP_CELL_INFORMATION_SIZE
Definition: WP6FileStructure.h:257
WP6_EOL_GROUP_CELL_FILL_COLORS
#define WP6_EOL_GROUP_CELL_FILL_COLORS
Definition: WP6FileStructure.h:260
WP6EOLGroup::m_cellVerticalAlign
WPXVerticalAlignment m_cellVerticalAlign
Definition: WP6EOLGroup.h:52
WP6EOLGroup::parse
void parse(WP6Listener *listener) override
Definition: WP6EOLGroup.cpp:243
WP6Listener.h
WP6_EOL_GROUP_SOFT_EOC
#define WP6_EOL_GROUP_SOFT_EOC
Definition: WP6FileStructure.h:222
WP6VariableLengthGroup::getSubGroup
unsigned char getSubGroup() const
Definition: WP6VariableLengthGroup.h:56
WP6_EOL_GROUP_CELL_NUMBER_TYPE_SIZE
#define WP6_EOL_GROUP_CELL_NUMBER_TYPE_SIZE
Definition: WP6FileStructure.h:265
WP6Listener::insertCharacter
virtual void insertCharacter(unsigned character)=0
WP6_EOL_GROUP_DONT_END_A_PARAGRAPH_STYLE_FOR_THIS_HARD_RETURN
#define WP6_EOL_GROUP_DONT_END_A_PARAGRAPH_STYLE_FOR_THIS_HARD_RETURN
Definition: WP6FileStructure.h:272
WPXVerticalAlignment
WPXVerticalAlignment
Definition: libwpd_internal.h:107
WP6EOLGroup::m_cellIsLocked
bool m_cellIsLocked
Definition: WP6EOLGroup.h:49
WP6_EOL_GROUP_CELL_RECALCULATION_ERROR_NUMBER
#define WP6_EOL_GROUP_CELL_RECALCULATION_ERROR_NUMBER
Definition: WP6FileStructure.h:270
WP6_EOL_GROUP_DELETABLE_HARD_EOC
#define WP6_EOL_GROUP_DELETABLE_HARD_EOC
Definition: WP6FileStructure.h:246
WP6_EOL_GROUP_CELL_INFORMATION
#define WP6_EOL_GROUP_CELL_INFORMATION
Definition: WP6FileStructure.h:256
WP6EOLGroup::_readContents
void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption) override
Definition: WP6EOLGroup.cpp:66
WP6_EOL_GROUP_TABLE_ROW_AT_EOC
#define WP6_EOL_GROUP_TABLE_ROW_AT_EOC
Definition: WP6FileStructure.h:232
WP6_EOL_GROUP_CELL_PREFIX_FLAG
#define WP6_EOL_GROUP_CELL_PREFIX_FLAG
Definition: WP6FileStructure.h:268
WP6Listener::getPrefixDataPacket
const WP6PrefixDataPacket * getPrefixDataPacket(const int prefixID) const
Definition: WP6Listener.cpp:44
WP6EOLGroup.h
FileException
Definition: libwpd_internal.h:209
WP6_EOL_GROUP_HARD_EOL_AT_EOC
#define WP6_EOL_GROUP_HARD_EOL_AT_EOC
Definition: WP6FileStructure.h:225
WP6_EOL_GROUP_CELL_FLOATING_POINT_NUMBER
#define WP6_EOL_GROUP_CELL_FLOATING_POINT_NUMBER
Definition: WP6FileStructure.h:266
RGBSColor
Definition: libwpd_internal.h:167
WP6_EOL_GROUP_HARD_EOC_AT_EOP
#define WP6_EOL_GROUP_HARD_EOC_AT_EOP
Definition: WP6FileStructure.h:228
WP6Listener::endTable
virtual void endTable()=0
WPD_DEBUG_MSG
#define WPD_DEBUG_MSG(M)
Definition: libwpd_internal.h:50
WP6EOLGroup::m_cellBorders
unsigned char m_cellBorders
Definition: WP6EOLGroup.h:59
WP6EOLGroup::m_cellJustification
unsigned char m_cellJustification
Definition: WP6EOLGroup.h:51
readU16
unsigned short readU16(librevenge::RVNGInputStream *input, WPXEncryption *encryption, bool bigendian)
Definition: libwpd_internal.cpp:119
WP6Listener::insertEOL
virtual void insertEOL()=0
WP6_EOL_GROUP_ROW_INFORMATION_SIZE
#define WP6_EOL_GROUP_ROW_INFORMATION_SIZE
Definition: WP6FileStructure.h:250
WP6EOLGroup::m_useCellAttributes
bool m_useCellAttributes
Definition: WP6EOLGroup.h:48
WP6_EOL_GROUP_TABLE_CELL
#define WP6_EOL_GROUP_TABLE_CELL
Definition: WP6FileStructure.h:230
WP6EOLGroup::WP6EOLGroup
WP6EOLGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6EOLGroup.cpp:34
WP6_EOL_GROUP_CELL_RECALCULATION_ERROR_NUMBER_SIZE
#define WP6_EOL_GROUP_CELL_RECALCULATION_ERROR_NUMBER_SIZE
Definition: WP6FileStructure.h:271
WP6_EOL_GROUP_TOP_GUTTER_SPACING_SIZE
#define WP6_EOL_GROUP_TOP_GUTTER_SPACING_SIZE
Definition: WP6FileStructure.h:253
WP6_EOL_GROUP_CELL_LINE_COLOR
#define WP6_EOL_GROUP_CELL_LINE_COLOR
Definition: WP6FileStructure.h:262
WP6_EOL_GROUP_CELL_SPANNING_INFORMATION
#define WP6_EOL_GROUP_CELL_SPANNING_INFORMATION
Definition: WP6FileStructure.h:258
WP6_EOL_GROUP_HARD_EOL
#define WP6_EOL_GROUP_HARD_EOL
Definition: WP6FileStructure.h:224
WP6EOLGroup::m_colSpan
unsigned char m_colSpan
Definition: WP6EOLGroup.h:45
WPX_SOFT_PAGE_BREAK
#define WPX_SOFT_PAGE_BREAK
Definition: libwpd_internal.h:156
WP6_EOL_GROUP_TABLE_ROW_AND_CELL
#define WP6_EOL_GROUP_TABLE_ROW_AND_CELL
Definition: WP6FileStructure.h:231
WP6EOLGroup::m_rowHeight
unsigned short m_rowHeight
Definition: WP6EOLGroup.h:62
WPX_PAGE_BREAK
#define WPX_PAGE_BREAK
Definition: libwpd_internal.h:155
WP6VariableLengthGroup
Definition: WP6VariableLengthGroup.h:43
WP6_EOL_GROUP_DELETABLE_HARD_EOL
#define WP6_EOL_GROUP_DELETABLE_HARD_EOL
Definition: WP6FileStructure.h:243
libwpd_internal.h
WP6_EOL_GROUP_ROW_INFORMATION
#define WP6_EOL_GROUP_ROW_INFORMATION
Definition: WP6FileStructure.h:249
WP6Listener
Definition: WP6Listener.h:41
WP6_EOL_GROUP_TABLE_OFF_AT_EOC
#define WP6_EOL_GROUP_TABLE_OFF_AT_EOC
Definition: WP6FileStructure.h:238
WP6VariableLengthGroup::getPrefixIDs
const unsigned short * getPrefixIDs() const
Definition: WP6VariableLengthGroup.h:72
WP6_EOL_GROUP_CELL_PREFIX_FLAG_SIZE
#define WP6_EOL_GROUP_CELL_PREFIX_FLAG_SIZE
Definition: WP6FileStructure.h:269
WP6_EOL_GROUP_CELL_FILL_COLORS_SIZE
#define WP6_EOL_GROUP_CELL_FILL_COLORS_SIZE
Definition: WP6FileStructure.h:261
WP6EOLGroup::operator=
WP6EOLGroup & operator=(const WP6EOLGroup &)
WP6EOLGroup::WP6EOLGroup
WP6EOLGroup(const WP6EOLGroup &)
WP6EOLGroup::m_isHeaderRow
bool m_isHeaderRow
Definition: WP6EOLGroup.h:60
WP6_EOL_GROUP_CELL_FORMULA
#define WP6_EOL_GROUP_CELL_FORMULA
Definition: WP6FileStructure.h:251
WP6Listener::insertBreak
virtual void insertBreak(const unsigned char breakType)=0
WP6VariableLengthGroup::_read
void _read(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: WP6VariableLengthGroup.cpp:132
WP6_EOL_GROUP_HARD_EOC
#define WP6_EOL_GROUP_HARD_EOC
Definition: WP6FileStructure.h:227
WP6_EOL_GROUP_HARD_EOL_AT_EOP
#define WP6_EOL_GROUP_HARD_EOL_AT_EOP
Definition: WP6FileStructure.h:226
WP6_EOL_GROUP_DONT_END_A_PARAGRAPH_STYLE_FOR_THIS_HARD_RETURN_SIZE
#define WP6_EOL_GROUP_DONT_END_A_PARAGRAPH_STYLE_FOR_THIS_HARD_RETURN_SIZE
Definition: WP6FileStructure.h:273
WP6Listener::insertRow
virtual void insertRow(const unsigned short rowHeight, const bool isMinimumHeight, const bool isHeaderRow)=0
MIDDLE
@ MIDDLE
Definition: libwpd_internal.h:107
WP6_EOL_GROUP_TOP_GUTTER_SPACING
#define WP6_EOL_GROUP_TOP_GUTTER_SPACING
Definition: WP6FileStructure.h:252
WP6EOLGroup::m_cellFgColor
std::unique_ptr< RGBSColor > m_cellFgColor
Definition: WP6EOLGroup.h:55
WP6EOLGroup
Definition: WP6EOLGroup.h:35
WP6_EOL_GROUP_BOTTOM_GUTTER_SPACING_SIZE
#define WP6_EOL_GROUP_BOTTOM_GUTTER_SPACING_SIZE
Definition: WP6FileStructure.h:255
WP6VariableLengthGroup::getSizeNonDeletable
unsigned short getSizeNonDeletable() const
Definition: WP6VariableLengthGroup.h:76
WP6EOLGroup::m_ignoreInCalculations
bool m_ignoreInCalculations
Definition: WP6EOLGroup.h:49
BOTTOM
@ BOTTOM
Definition: libwpd_internal.h:107
WP6_EOL_GROUP_HARD_EOP
#define WP6_EOL_GROUP_HARD_EOP
Definition: WP6FileStructure.h:229
WP6VariableLengthGroup::getNumPrefixIDs
unsigned char getNumPrefixIDs() const
Definition: WP6VariableLengthGroup.h:68
WP6EOLGroup::~WP6EOLGroup
~WP6EOLGroup() override
Definition: WP6EOLGroup.cpp:62
WP6FillStylePacket
Definition: WP6FillStylePacket.h:36
WP6_EOL_GROUP_BOTTOM_GUTTER_SPACING
#define WP6_EOL_GROUP_BOTTOM_GUTTER_SPACING
Definition: WP6FileStructure.h:254
WP6EOLGroup::m_cellBgColor
std::unique_ptr< RGBSColor > m_cellBgColor
Definition: WP6EOLGroup.h:56
WP6VariableLengthGroup.h
WPX_COLUMN_BREAK
#define WPX_COLUMN_BREAK
Definition: libwpd_internal.h:157
WP6_EOL_GROUP_CELL_LINE_COLOR_SIZE
#define WP6_EOL_GROUP_CELL_LINE_COLOR_SIZE
Definition: WP6FileStructure.h:263
WP6_EOL_GROUP_DELETABLE_SOFT_EOL
#define WP6_EOL_GROUP_DELETABLE_SOFT_EOL
Definition: WP6FileStructure.h:240
WP6EOLGroup::m_cellBorderColor
std::unique_ptr< RGBSColor > m_cellBorderColor
Definition: WP6EOLGroup.h:57
WP6_EOL_GROUP_DELETABLE_HARD_EOL_AT_EOC
#define WP6_EOL_GROUP_DELETABLE_HARD_EOL_AT_EOC
Definition: WP6FileStructure.h:244
WP6EOLGroup::m_isDontEndAParagraphStyleForThisHardReturn
bool m_isDontEndAParagraphStyleForThisHardReturn
Definition: WP6EOLGroup.h:64
TOP
@ TOP
Definition: libwpd_internal.h:107
WP6FillStylePacket.h
WP6_EOL_GROUP_TABLE_ROW_AT_HARD_EOC
#define WP6_EOL_GROUP_TABLE_ROW_AT_HARD_EOC
Definition: WP6FileStructure.h:234
WP6_EOL_GROUP_TABLE_ROW_AT_HARD_EOC_AT_HARD_EOP
#define WP6_EOL_GROUP_TABLE_ROW_AT_HARD_EOC_AT_HARD_EOP
Definition: WP6FileStructure.h:235
WP6_EOL_GROUP_SOFT_EOC_AT_EOP
#define WP6_EOL_GROUP_SOFT_EOC_AT_EOP
Definition: WP6FileStructure.h:223
WP6EOLGroup::m_cellAttributes
unsigned m_cellAttributes
Definition: WP6EOLGroup.h:50
WP6_EOL_GROUP_TABLE_ROW_AT_HARD_EOP
#define WP6_EOL_GROUP_TABLE_ROW_AT_HARD_EOP
Definition: WP6FileStructure.h:236
WP6Listener::insertCell
virtual void insertCell(const unsigned char colSpan, const unsigned char rowSpan, const unsigned char borderBits, const RGBSColor *cellFgColor, const RGBSColor *cellBgColor, const RGBSColor *cellBorderColor, const WPXVerticalAlignment cellVerticalAlignment, const bool useCellAttributes, const unsigned cellAttributes)=0
WP6_EOL_GROUP_CELL_NUMBER_TYPE
#define WP6_EOL_GROUP_CELL_NUMBER_TYPE
Definition: WP6FileStructure.h:264
WP6_EOL_GROUP_CELL_SPANNING_INFORMATION_SIZE
#define WP6_EOL_GROUP_CELL_SPANNING_INFORMATION_SIZE
Definition: WP6FileStructure.h:259
WP6Listener::handleLineBreak
virtual void handleLineBreak()=0
WP6EOLGroup::m_rowSpan
unsigned char m_rowSpan
Definition: WP6EOLGroup.h:45
WP6EOLGroup::m_boundFromAbove
bool m_boundFromAbove
Definition: WP6EOLGroup.h:46
WP6_EOL_GROUP_CELL_FLOATING_POINT_NUMBER_SIZE
#define WP6_EOL_GROUP_CELL_FLOATING_POINT_NUMBER_SIZE
Definition: WP6FileStructure.h:267
readU8
unsigned char readU8(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition: libwpd_internal.cpp:106
WP6EOLGroup::m_useCellJustification
bool m_useCellJustification
Definition: WP6EOLGroup.h:48
FULL
@ FULL
Definition: libwpd_internal.h:107
WP6_EOL_GROUP_DELETABLE_HARD_EOP
#define WP6_EOL_GROUP_DELETABLE_HARD_EOP
Definition: WP6FileStructure.h:248
WP6EOLGroup::m_isMinimumHeight
bool m_isMinimumHeight
Definition: WP6EOLGroup.h:61
WP6_EOL_GROUP_DELETABLE_HARD_EOC_AT_EOP
#define WP6_EOL_GROUP_DELETABLE_HARD_EOC_AT_EOP
Definition: WP6FileStructure.h:247
WPXEncryption
Definition: WPXEncryption.h:36
WP6_EOL_GROUP_TABLE_OFF_AT_EOC_AT_EOP
#define WP6_EOL_GROUP_TABLE_OFF_AT_EOC_AT_EOP
Definition: WP6FileStructure.h:239
WP6Listener::justificationChange
virtual void justificationChange(const unsigned char justification)=0
WP6_EOL_GROUP_TABLE_ROW_AT_EOP
#define WP6_EOL_GROUP_TABLE_ROW_AT_EOP
Definition: WP6FileStructure.h:233
WP6_EOL_GROUP_DELETABLE_HARD_EOL_AT_EOP
#define WP6_EOL_GROUP_DELETABLE_HARD_EOL_AT_EOP
Definition: WP6FileStructure.h:245
WP6_EOL_GROUP_SOFT_EOL
#define WP6_EOL_GROUP_SOFT_EOL
Definition: WP6FileStructure.h:221