libwpd: WP5DefinitionGroup.h Source File documentation

Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

# WP5DefinitionGroup.h

Go to the documentation of this file.

    00001 /* libwpd
    00002  * Copyright (C) 2005 Fridrich Strba (fridrich.strba@bluewin.ch)
    00003  *
    00004  * This library is free software; you can redistribute it and/or
    00005  * modify it under the terms of the GNU Lesser General Public
    00006  * License as published by the Free Software Foundation; either
    00007  * version 2 of the License, or (at your option) any later version.
    00008  *
    00009  * This library is distributed in the hope that it will be useful,
    00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00012  * Library General Public License for more details.
    00013  *
    00014  * You should have received a copy of the GNU Library General Public
    00015  * License along with this library; if not, write to the Free Software
    00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
    00017  *
    00018  * For further information visit http://libwpd.sourceforge.net
    00019  */
    00020
    00021 /* "This product is not manufactured, approved, or supported by
    00022  * Corel Corporation or Corel Corporation Limited."
    00023  */
    00024
    00025 #ifndef WP5DEFINITIONGROUP_H
    00026 #define WP5DEFINITIONGROUP_H
    00027
    00028 #include "WP5VariableLengthGroup.h"
    00029 #include "WP5FileStructure.h"
    00030
    00031 class WP5DefinitionGroup_DefineTablesSubGroup : public WP5VariableLengthGroup_SubGroup
    00032 {
    00033 public:
    00034         WP5DefinitionGroup_DefineTablesSubGroup(WPXInputStream *input);
    00035         virtual void parse(WP5Listener *listener);
    00036
    00037 private:
    00038         uint8_t m_position;
    00039         uint16_t m_numColumns;
    00040         uint16_t m_leftOffset;
    00041         uint16_t m_leftGutter;
    00042         uint16_t m_rightGutter;
    00043         uint16_t m_columnWidth[32];
    00044         uint16_t m_attributeBits[32];
    00045         uint8_t m_columnAlignment[32];
    00046
    00047 };
    00048
    00049 class WP5DefinitionGroup : public WP5VariableLengthGroup
    00050 {
    00051 public:
    00052         WP5DefinitionGroup(WPXInputStream *input);
    00053         ~WP5DefinitionGroup();
    00054         virtual void parse(WP5Listener *listener);
    00055
    00056 protected:
    00057         virtual void _readContents(WPXInputStream *input);
    00058
    00059 private:
    00060         WP5VariableLengthGroup_SubGroup * m_subGroupData;
    00061
    00062 };
    00063
    00064 #endif /* WP5DEFINITIONGROUP_H */