WP5PageFormatGroup.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  * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
00004  * Copyright (C) 2002 Marc Maurer (uwog@uwog.net)
00005  * Copyright (C) 2007 Fridrich Strba (fridrich.strba@bluewin.ch)
00006  * Copyright (C) 2007 Novell, Inc. (http://www.novell.com)
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public
00010  * License as published by the Free Software Foundation; either
00011  * version 2 of the License, or (at your option) any later version.
00012  *
00013  * This library is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * Library General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Library General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
00021  *
00022  * For further information visit http://libwpd.sourceforge.net
00023  */
00024 
00025 /* "This product is not manufactured, approved, or supported by
00026  * Corel Corporation or Corel Corporation Limited."
00027  */
00028 
00029 #ifndef WP5PAGEFORMATGROUP_H
00030 #define WP5PAGEFORMATGROUP_H
00031 
00032 #include "WP5VariableLengthGroup.h"
00033 #include <vector>
00034 
00035 class WP5PageFormatGroup : public WP5VariableLengthGroup
00036 {
00037 public:
00038         WP5PageFormatGroup(WPXInputStream *input, WPXEncryption *encryption);
00039         ~WP5PageFormatGroup();
00040         void _readContents(WPXInputStream *input, WPXEncryption *encryption);
00041         void parse(WP5Listener *listener);
00042 
00043 private:
00044         // variables needed for subgroup 1 (Left/Right Margin Set)
00045         uint16_t m_leftMargin;
00046         uint16_t m_rightMargin;
00047         // variable needed for subgroup 2 (Spacing Set)
00048         double m_lineSpacing;
00049         // variables needed for subbroup 4 (Tab Set)
00050         std::vector<WPXTabStop> m_tabStops;
00051         uint16_t m_marginOffset;
00052         // variables needed for subgroup 5 (Top/Bottom Margin Set)
00053         uint16_t m_topMargin;
00054         uint16_t m_bottomMargin;
00055         // variables needed for subgroup 6 (Justification)
00056         uint8_t m_justification;
00057         // variable needed for subgroup 7 (Suppress Page Characteristics)
00058         uint8_t m_suppressCode;
00059         // variables needed for subgroup 11 (Form)
00060         uint16_t m_formLength;
00061         uint16_t m_formWidth;
00062         WPXFormOrientation m_formOrientation;
00063 
00064 };
00065 
00066 #endif /* WP5PAGEFORMATGROUP_H */
00067 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */