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-2003 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 WP6PREFIXDATA_H 00028 #define WP6PREFIXDATA_H 00029 #include "WP6PrefixDataPacket.h" 00030 #include <map> 00031 #include <vector> 00032 00033 typedef std::map<int, WP6PrefixDataPacket *> DPH; 00034 typedef std::multimap<int, WP6PrefixDataPacket *> MPDP; 00035 typedef MPDP::const_iterator MPDP_CIter; 00036 typedef MPDP::iterator MPDP_Iter; 00037 00038 class WP6PrefixData 00039 { 00040 public: 00041 WP6PrefixData(librevenge::RVNGInputStream *input, WPXEncryption *encryption, const int numPrefixIndices); 00042 virtual ~WP6PrefixData(); 00043 const WP6PrefixDataPacket *getPrefixDataPacket(const int prefixID) const; 00044 std::pair< MPDP_CIter, MPDP_CIter > getPrefixDataPacketsOfType(const int type) const; 00045 00046 unsigned short getDefaultInitialFontPID() const 00047 { 00048 return (unsigned short)m_defaultInitialFontPID; 00049 } 00050 00051 private: 00052 DPH m_prefixDataPacketHash; 00053 MPDP m_prefixDataPacketTypeHash; 00054 int m_defaultInitialFontPID; 00055 }; 00056 00057 #endif /* WP6PREFIXDATA_H */ 00058 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */