00001 /* libwpd 00002 * Copyright (C) 2005 William Lachance (wrlach@gmail.com) 00003 * Copyright (C) 2005 Net Integration Technologies, Inc. (http://www.net-itech.com) 00004 * Copyright (C) 2006 Fridrich Strba (fridrich.strba@bluewin.ch) 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Library General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Library General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Library General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 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 */