summaryrefslogtreecommitdiff
path: root/writerfilter/source/ooxml/OOXMLPropertySetImpl.hxx
diff options
context:
space:
mode:
authorHenning Brinkmann <hbrinkm@openoffice.org>2007-03-12 09:43:33 +0000
committerHenning Brinkmann <hbrinkm@openoffice.org>2007-03-12 09:43:33 +0000
commit29c401d2aca17b4821904592407e24a014cc76f4 (patch)
tree038ea8e21d04da8577e6e374486966a888f06c10 /writerfilter/source/ooxml/OOXMLPropertySetImpl.hxx
parentee636b61241ce292d2a84112ca69d02ec0bcfa33 (diff)
use std::set for modelling property set
Diffstat (limited to 'writerfilter/source/ooxml/OOXMLPropertySetImpl.hxx')
-rw-r--r--writerfilter/source/ooxml/OOXMLPropertySetImpl.hxx22
1 files changed, 18 insertions, 4 deletions
diff --git a/writerfilter/source/ooxml/OOXMLPropertySetImpl.hxx b/writerfilter/source/ooxml/OOXMLPropertySetImpl.hxx
index 4c732e656..c36e0f929 100644
--- a/writerfilter/source/ooxml/OOXMLPropertySetImpl.hxx
+++ b/writerfilter/source/ooxml/OOXMLPropertySetImpl.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: OOXMLPropertySetImpl.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: hbrinkm $ $Date: 2007-03-08 16:34:13 $
+ * last change: $Author: hbrinkm $ $Date: 2007-03-12 10:43:33 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -35,7 +35,7 @@
#ifndef INCLUDED_OOXML_PROPERTY_SET_IMPL_HXX
#define INCLUDED_OOXML_PROPERTY_SET_IMPL_HXX
-#include <vector>
+#include <set>
#include "OOXMLPropertySet.hxx"
namespace ooxml
@@ -112,9 +112,15 @@ public:
virtual OOXMLValue * clone() const;
};
+struct OOXMLPropertySetImplCompare
+{
+ bool operator()(const OOXMLProperty::Pointer_t x,
+ const OOXMLProperty::Pointer_t y) const;
+};
+
class OOXMLPropertySetImpl : public OOXMLPropertySet
{
- typedef vector<OOXMLProperty::Pointer_t> OOXMLProperties_t;
+ typedef set<OOXMLProperty::Pointer_t, OOXMLPropertySetImplCompare> OOXMLProperties_t;
OOXMLProperties_t mProperties;
public:
OOXMLPropertySetImpl();
@@ -140,6 +146,7 @@ public:
class OOXMLIntegerValue : public OOXMLValue
{
+protected:
sal_Int32 mnValue;
public:
OOXMLIntegerValue(sal_Int32 nValue);
@@ -150,6 +157,13 @@ public:
virtual OOXMLValue * clone() const;
};
+class OOXMLListValue : public OOXMLIntegerValue
+{
+public:
+ OOXMLListValue();
+ virtual ~OOXMLListValue();
+};
+
}
#endif // INCLUDED_OOXML_PROPERTY_SET_IMPL_HXX