WP3TablesGroup.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
00002 /* libwpd
00003  * Version: MPL 2.0 / LGPLv2.1+
00004  *
00005  * This Source Code Form is subject to the terms of the Mozilla Public
00006  * License, v. 2.0. If a copy of the MPL was not distributed with this
00007  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
00008  *
00009  * Major Contributor(s):
00010  * Copyright (C) 2005 Fridrich Strba (fridrich.strba@bluewin.ch)
00011  *
00012  * For minor contributions see the git repository.
00013  *
00014  * Alternatively, the contents of this file may be used under the terms
00015  * of the GNU Lesser General Public License Version 2.1 or later
00016  * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
00017  * applicable instead of those above.
00018  *
00019  * For further information visit http://libwpd.sourceforge.net
00020  */
00021 
00022 /* "This product is not manufactured, approved, or supported by
00023  * Corel Corporation or Corel Corporation Limited."
00024  */
00025 
00026 #ifndef WP3TABLESGROUP_H
00027 #define WP3TABLESGROUP_H
00028 
00029 #include <vector>
00030 #include "WP3VariableLengthGroup.h"
00031 #include "libwpd_internal.h"
00032 
00033 class WP3TablesGroup : public WP3VariableLengthGroup
00034 {
00035 public:
00036         WP3TablesGroup(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
00037         ~WP3TablesGroup();
00038         void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption);
00039         void parse(WP3Listener *listener);
00040 
00041 private:
00042         // variables needed for subgroup 1 (Table Function)
00043         unsigned char m_tableMode;
00044         unsigned m_offsetFromLeftEdge;
00045         unsigned m_topGutterSpacing;
00046         unsigned m_leftGutterSpacing;
00047         unsigned m_bottomGutterSpacing;
00048         unsigned m_rightGutterSpacing;
00049         unsigned char m_numColumns;
00050         std::vector<unsigned char> m_columnMode;
00051         std::vector<unsigned char> m_numberFormat;
00052         std::vector<unsigned> m_columnWidth;
00053         std::vector<unsigned> m_rightOffsetForDecimalAlign;
00054 
00055         // variables needed for subgroup 2 (Set Table Cell Span)
00056         unsigned short m_colSpan;
00057         unsigned short m_rowSpan;
00058 
00059         // variables needed for subgroup 0x0B (Set Table Cell Fill Color/Patern)
00060         RGBSColor m_cellFillColor;
00061 };
00062 
00063 #endif /* WP3TABLESGROUP_H */
00064 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */