summaryrefslogtreecommitdiff
path: root/comphelper/inc
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2012-01-17 11:41:14 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-01-17 12:12:19 +0100
commit2fe402cefb5d06bc33b4e0794b7da0b62be68432 (patch)
tree5c63aaaa245a94a44390763c327d9a1a363a8397 /comphelper/inc
parent1c7a5c1fd7d2aa65d7daea25bd2375a04c8a43d0 (diff)
Switch flag sequence of OpenCommandArg3 to NamedValue.
Based on feedback for 09954fc863c8ee900f157cab4458e1dcf51493d3, using the less-bulky NamedValue type instead of PropertyValue. Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
Diffstat (limited to 'comphelper/inc')
-rw-r--r--comphelper/inc/comphelper/stl_types.hxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/comphelper/inc/comphelper/stl_types.hxx b/comphelper/inc/comphelper/stl_types.hxx
index 79c4a17de291..477ee67c5204 100644
--- a/comphelper/inc/comphelper/stl_types.hxx
+++ b/comphelper/inc/comphelper/stl_types.hxx
@@ -48,6 +48,7 @@
#include <rtl/ustrbuf.hxx>
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
+#include <com/sun/star/beans/NamedValue.hpp>
//... namespace comphelper ................................................
namespace comphelper
@@ -130,6 +131,17 @@ public:
}
};
//------------------------------------------------------------------------
+class TNamedValueEqualFunctor : public ::std::binary_function< ::com::sun::star::beans::NamedValue,::rtl::OUString,bool>
+{
+public:
+ TNamedValueEqualFunctor()
+ {}
+ bool operator() (const ::com::sun::star::beans::NamedValue& lhs, const ::rtl::OUString& rhs) const
+ {
+ return !!(lhs.Name == rhs);
+ }
+};
+//------------------------------------------------------------------------
class UStringMixHash
{
sal_Bool m_bCaseSensitive;