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) 2002 William Lachance (wrlach@gmail.com) 00011 * Copyright (C) 2002 Marc Maurer (uwog@uwog.net) 00012 * 00013 * For minor contributions see the git repository. 00014 * 00015 * Alternatively, the contents of this file may be used under the terms 00016 * of the GNU Lesser General Public License Version 2.1 or later 00017 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are 00018 * applicable instead of those above. 00019 * 00020 * For further information visit http://libwpd.sourceforge.net 00021 */ 00022 00023 /* "This product is not manufactured, approved, or supported by 00024 * Corel Corporation or Corel Corporation Limited." 00025 */ 00026 00027 #ifndef WP6PREFIXINDICE_H 00028 #define WP6PREFIXINDICE_H 00029 00030 #include <libwpd-stream/libwpd-stream.h> 00031 #include "libwpd_types.h" 00032 00033 class WPXEncryption; 00034 00035 class WP6PrefixIndice 00036 { 00037 public: 00038 WP6PrefixIndice(WPXInputStream *input, WPXEncryption *encryption, int id); 00039 int getID() const 00040 { 00041 return m_id; 00042 } 00043 uint8_t getType() const 00044 { 00045 return m_type; 00046 } 00047 uint8_t getFlags() const 00048 { 00049 return m_flags; 00050 } 00051 uint32_t getDataSize() const 00052 { 00053 return m_dataSize; 00054 } 00055 uint32_t getDataOffset() const 00056 { 00057 return m_dataOffset; 00058 } 00059 00060 protected: 00061 void _read(WPXInputStream *input, WPXEncryption *encryption); 00062 00063 private: 00064 int m_id; 00065 uint8_t m_type; 00066 uint8_t m_flags; 00067 uint16_t m_useCount; 00068 uint16_t m_hideCount; 00069 uint32_t m_dataSize; 00070 uint32_t m_dataOffset; 00071 00072 bool m_hasChildren; 00073 }; 00074 00075 #endif /* WP6PREFIXINDICE_H */ 00076 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */