summaryrefslogtreecommitdiff
path: root/extensions/source/propctrlr/formbrowsertools.hxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-11-16 11:05:44 +0000
committerOliver Bolte <obo@openoffice.org>2004-11-16 11:05:44 +0000
commit0db3e11c7cdb4524031b46468ecafb47887cd20c (patch)
treefded976d2ac93e106ec8d4e97c0e5701fbbcb2c7 /extensions/source/propctrlr/formbrowsertools.hxx
parent531f08b7d1fddf1658f43173f260a7c809b0ac19 (diff)
INTEGRATION: CWS eforms2 (1.2.156); FILE MERGED
2004/07/21 07:50:18 fs 1.2.156.2: #i31762# +LessPropertyByHandle 2004/04/26 11:43:39 fs 1.2.156.1: +FindPropertyByHandle
Diffstat (limited to 'extensions/source/propctrlr/formbrowsertools.hxx')
-rw-r--r--extensions/source/propctrlr/formbrowsertools.hxx31
1 files changed, 29 insertions, 2 deletions
diff --git a/extensions/source/propctrlr/formbrowsertools.hxx b/extensions/source/propctrlr/formbrowsertools.hxx
index 2320c354ab9e..d287b59bad4d 100644
--- a/extensions/source/propctrlr/formbrowsertools.hxx
+++ b/extensions/source/propctrlr/formbrowsertools.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: formbrowsertools.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: hr $ $Date: 2003-03-25 16:03:52 $
+ * last change: $Author: obo $ $Date: 2004-11-16 12:05:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -65,10 +65,15 @@
#ifndef _COM_SUN_STAR_UNO_ANY_HXX_
#include <com/sun/star/uno/Any.hxx>
#endif
+#ifndef _COM_SUN_STAR_BEANS_PROPERTY_HPP_
+#include <com/sun/star/beans/Property.hpp>
+#endif
#ifndef _RTL_USTRING_HXX_
#include <rtl/ustring.hxx>
#endif
+#include <functional>
+
//............................................................................
namespace pcr
{
@@ -76,6 +81,28 @@ namespace pcr
::rtl::OUString GetUIHeadlineName(sal_Int16 _nClassId, const ::com::sun::star::uno::Any& _rUnoObject);
+
+ struct FindPropertyByHandle : public ::std::unary_function< ::com::sun::star::beans::Property, bool >
+ {
+ private:
+ sal_Int32 m_nId;
+
+ public:
+ FindPropertyByHandle( sal_Int32 _nId ) : m_nId ( _nId ) { }
+ bool operator()( const ::com::sun::star::beans::Property& _rProp ) const
+ {
+ return m_nId == _rProp.Handle;
+ }
+ };
+
+ struct LessPropertyByHandle : public ::std::binary_function< ::com::sun::star::beans::Property, ::com::sun::star::beans::Property, bool >
+ {
+ bool operator()( const ::com::sun::star::beans::Property& _rLHS, const ::com::sun::star::beans::Property& _rRHS ) const
+ {
+ return _rLHS.Handle < _rRHS.Handle;
+ }
+ };
+
//............................................................................
} // namespace pcr
//............................................................................