~ubuntu-branches/ubuntu/wily/libwpd/wily-proposed

« back to all changes in this revision

Viewing changes to src/lib/WPXPropertyListVector.h

  • Committer: Package Import Robot
  • Author(s): Rene Engelhard
  • Date: 2013-05-14 11:01:45 UTC
  • mfrom: (1.5.4)
  • Revision ID: package-import@ubuntu.com-20130514110145-8g97krfs7eoqyuwl
Tags: 0.9.8-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2
 
/* libwpd
3
 
 * Version: MPL 2.0 / LGPLv2.1+
4
 
 *
5
 
 * This Source Code Form is subject to the terms of the Mozilla Public
6
 
 * License, v. 2.0. If a copy of the MPL was not distributed with this
7
 
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
 
 *
9
 
 * Major Contributor(s):
10
 
 * Copyright (C) 2005 William Lachance (wrlach@gmail.com)
11
 
 * Copyright (C) 2006 Fridrich Strba (fridrich.strba@bluewin.ch)
12
 
 *
13
 
 * For minor contributions see the git repository.
14
 
 *
15
 
 * Alternatively, the contents of this file may be used under the terms
16
 
 * of the GNU Lesser General Public License Version 2.1 or later
17
 
 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
18
 
 * applicable instead of those above.
19
 
 *
20
 
 * For further information visit http://libwpd.sourceforge.net
21
 
 */
22
 
 
23
 
/* "This product is not manufactured, approved, or supported by
24
 
 * Corel Corporation or Corel Corporation Limited."
25
 
 */
26
 
 
27
 
#ifndef WPXPROPERTYLISTVECTOR_H
28
 
#define WPXPROPERTYLISTVECTOR_H
29
 
 
30
 
#include "WPXPropertyList.h"
31
 
 
32
 
class WPXPropertyListVectorImpl;
33
 
class WPXPropertyListVectorIterImpl;
34
 
 
35
 
class WPXPropertyListVector
36
 
{
37
 
public:
38
 
        WPXPropertyListVector(const WPXPropertyListVector &);
39
 
        WPXPropertyListVector();
40
 
        virtual ~WPXPropertyListVector();
41
 
        void append(const WPXPropertyList &elem);
42
 
        void append(const WPXPropertyListVector &vec);
43
 
        unsigned long count() const;
44
 
        const WPXPropertyList &operator[](unsigned long index) const;
45
 
        WPXPropertyListVector &operator=(const WPXPropertyListVector &vect);
46
 
 
47
 
        class Iter
48
 
        {
49
 
        public:
50
 
                Iter(const WPXPropertyListVector &vect);
51
 
                virtual ~Iter();
52
 
                void rewind();
53
 
                bool next();
54
 
                bool last();
55
 
                const WPXPropertyList &operator()() const;
56
 
 
57
 
        private:
58
 
                WPXPropertyListVectorIterImpl *m_iterImpl;
59
 
                Iter(const Iter &);
60
 
                Iter &operator=(const Iter &);
61
 
        };
62
 
 
63
 
        friend class WPXPropertyListVector::Iter;
64
 
 
65
 
private:
66
 
        WPXPropertyListVectorImpl *m_impl;
67
 
};
68
 
 
69
 
#endif /* WPXPROPERTYLISTVECTOR_H */
70
 
/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */