00001 /* libwps 00002 * Copyright (C) 2002 William Lachance (william.lachance@sympatico.ca) 00003 * Copyright (C) 2002-2003 Marc Maurer (uwog@uwog.net) 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Library General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Library General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Library General Public 00016 * License along with this library; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 00018 * 00019 * For further information visit http://libwps.sourceforge.net 00020 */ 00021 00022 /* 00023 * This file is in sync with CVS 00024 * /libwpd2/src/lib/WPXHeader.cpp 1.17 00025 */ 00026 00027 #ifndef WPSHEADER_H 00028 #define WPSHEADER_H 00029 00030 #include "libwps_internal.h" 00031 #include <libwpd-stream/libwpd-stream.h> 00032 00033 class WPSHeader 00034 { 00035 public: 00036 WPSHeader(WPXInputStream *input, uint8_t majorVersion); 00037 virtual ~WPSHeader(); 00038 00039 static WPSHeader * constructHeader(WPXInputStream *input); 00040 00041 WPXInputStream * getInput() const { return m_input; } 00042 uint8_t getMajorVersion() const { return m_majorVersion; } 00043 00044 private: 00045 WPSHeader(const WPSHeader&); 00046 WPSHeader& operator=(const WPSHeader&); 00047 WPXInputStream * m_input; 00048 uint8_t m_majorVersion; 00049 }; 00050 00051 #endif /* WPSHEADER_H */