diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-25 19:06:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-01 09:51:32 -0600 |
commit | 8792ec7b2129650777b7b4bfacaa7c13d923279b (patch) | |
tree | f181e37b61533b460397cc68625fd21f46bb6393 /include/comphelper/property.hxx | |
parent | dff29fadfe418421f2af9fd4f1dccc8a9b4cd545 (diff) |
Remove visual noise from include
Conflicts:
include/framework/preventduplicateinteraction.hxx
include/sfx2/sfxbasecontroller.hxx
include/sfx2/sfxbasemodel.hxx
include/toolkit/awt/vclxtabpagemodel.hxx
include/vcl/field.hxx
include/vcl/settings.hxx
Change-Id: Ibccf9f88c68267a3d7e656012b51eaf644c418c2
Reviewed-on: https://gerrit.libreoffice.org/8272
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/comphelper/property.hxx')
-rw-r--r-- | include/comphelper/property.hxx | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/include/comphelper/property.hxx b/include/comphelper/property.hxx index ab2e795902c2..5dc53bc33ac0 100644 --- a/include/comphelper/property.hxx +++ b/include/comphelper/property.hxx @@ -28,21 +28,21 @@ #include <comphelper/comphelperdllapi.h> #include <cppu/unotype.hxx> -//========================================================================= + //= property helper classes -//========================================================================= + //... namespace comphelper ....................................................... namespace comphelper { -//......................................................................... + namespace starbeans = ::com::sun::star::beans; namespace staruno = ::com::sun::star::uno; /** compare two properties by name */ - //-------------------------------------------------------------------------- + // comparing two property instances struct PropertyCompareByName : public ::std::binary_function< ::com::sun::star::beans::Property, ::com::sun::star::beans::Property, bool > { @@ -52,23 +52,23 @@ namespace comphelper } }; - //-------------------------------------------------------------------------- + /** compare two properties by name */ struct PropertyStringEqualFunctor : ::std::binary_function< ::com::sun::star::beans::Property, OUString, bool > { - // ................................................................ + inline bool operator()( const ::com::sun::star::beans::Property& lhs, const OUString& rhs ) const { return lhs.Name == rhs ; } - // ................................................................ + inline bool operator()( const OUString& lhs, const ::com::sun::star::beans::Property& rhs ) const { return lhs == rhs.Name ; } }; - //-------------------------------------------------------------------------- + // comparing two property instances struct PropertyEqualByName : public ::std::binary_function< ::com::sun::star::beans::Property, ::com::sun::star::beans::Property, bool > { @@ -78,11 +78,11 @@ namespace comphelper } }; -//------------------------------------------------------------------ + /// remove the property with the given name from the given sequence COMPHELPER_DLLPUBLIC void RemoveProperty(staruno::Sequence<starbeans::Property>& seqProps, const OUString& _rPropName); -//------------------------------------------------------------------ + /** within the given property sequence, modify attributes of a special property @param _rProps the sequence of properties to search in @param _sPropName the name of the property which's attributes should be modified @@ -91,21 +91,21 @@ COMPHELPER_DLLPUBLIC void RemoveProperty(staruno::Sequence<starbeans::Property>& */ COMPHELPER_DLLPUBLIC void ModifyPropertyAttributes(staruno::Sequence<starbeans::Property>& _rProps, const OUString& _sPropName, sal_Int16 _nAddAttrib, sal_Int16 _nRemoveAttrib); -//------------------------------------------------------------------ + /** check if the given set has the given property. */ COMPHELPER_DLLPUBLIC bool hasProperty(const OUString& _rName, const staruno::Reference<starbeans::XPropertySet>& _rxSet); -//------------------------------------------------------------------ + /** copy properties between property sets, in compliance with the property attributes of the target object */ COMPHELPER_DLLPUBLIC void copyProperties(const staruno::Reference<starbeans::XPropertySet>& _rxSource, const staruno::Reference<starbeans::XPropertySet>& _rxDest); -//================================================================== + //= property conversion helpers -//================================================================== + /** helper for implementing ::cppu::OPropertySetHelper::convertFastPropertyValue @param _rConvertedValue the conversion result (if successful) @@ -196,7 +196,7 @@ inline bool tryPropertyValue(staruno::Any& /*out*/_rConvertedValue, staruno::Any */ COMPHELPER_DLLPUBLIC bool tryPropertyValue(staruno::Any& _rConvertedValue, staruno::Any& _rOldValue, const staruno::Any& _rValueToSet, const staruno::Any& _rCurrentValue, const staruno::Type& _rExpectedType); -//......................................................................... + } //... namespace comphelper ....................................................... |