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) 2005 William Lachance (wrlach@gmail.com) 00011 * Copyright (C) 2006 Fridrich Strba (fridrich.strba@bluewin.ch) 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 WPXPROPERTYLISTVECTOR_H 00028 #define WPXPROPERTYLISTVECTOR_H 00029 00030 #include "WPXPropertyList.h" 00031 00032 class WPXPropertyListVectorImpl; 00033 class WPXPropertyListVectorIterImpl; 00034 00035 class WPXPropertyListVector 00036 { 00037 public: 00038 WPXPropertyListVector(const WPXPropertyListVector &); 00039 WPXPropertyListVector(); 00040 virtual ~WPXPropertyListVector(); 00041 void append(const WPXPropertyList &elem); 00042 void append(const WPXPropertyListVector &vec); 00043 unsigned long count() const; 00044 const WPXPropertyList &operator[](unsigned long index) const; 00045 WPXPropertyListVector &operator=(const WPXPropertyListVector &vect); 00046 00047 class Iter 00048 { 00049 public: 00050 Iter(const WPXPropertyListVector &vect); 00051 virtual ~Iter(); 00052 void rewind(); 00053 bool next(); 00054 bool last(); 00055 const WPXPropertyList &operator()() const; 00056 00057 private: 00058 WPXPropertyListVectorIterImpl *m_iterImpl; 00059 Iter(const Iter &); 00060 Iter &operator=(const Iter &); 00061 }; 00062 00063 friend class WPXPropertyListVector::Iter; 00064 00065 private: 00066 WPXPropertyListVectorImpl *m_impl; 00067 }; 00068 00069 #endif /* WPXPROPERTYLISTVECTOR_H */ 00070 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */