summaryrefslogtreecommitdiff
path: root/comphelper/source/property
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/property')
-rw-r--r--comphelper/source/property/opropertybag.cxx64
-rw-r--r--comphelper/source/property/propagg.cxx88
-rw-r--r--comphelper/source/property/property.cxx10
-rw-r--r--comphelper/source/property/propertybag.cxx20
-rw-r--r--comphelper/source/property/propertycontainer.cxx14
-rw-r--r--comphelper/source/property/propertycontainerhelper.cxx36
-rw-r--r--comphelper/source/property/propertystatecontainer.cxx20
-rw-r--r--comphelper/source/property/propmultiplex.cxx24
-rw-r--r--comphelper/source/property/propstate.cxx34
9 files changed, 155 insertions, 155 deletions
diff --git a/comphelper/source/property/opropertybag.cxx b/comphelper/source/property/opropertybag.cxx
index fe724086670a..4fb1cc4c95ea 100644
--- a/comphelper/source/property/opropertybag.cxx
+++ b/comphelper/source/property/opropertybag.cxx
@@ -36,7 +36,7 @@
#include <iterator>
-//--------------------------------------------------------------------------
+
using namespace ::com::sun::star;
void createRegistryInfo_OPropertyBag()
@@ -58,7 +58,7 @@ namespace comphelper
//====================================================================
//= OPropertyBag
//====================================================================
- //--------------------------------------------------------------------
+
OPropertyBag::OPropertyBag()
:OPropertyBag_PBase( GetBroadcastHelper(), this )
,::cppu::IEventNotificationHook()
@@ -69,16 +69,16 @@ namespace comphelper
{
}
- //--------------------------------------------------------------------
+
OPropertyBag::~OPropertyBag()
{
}
- //--------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( OPropertyBag, OPropertyBag_Base, OPropertyBag_PBase )
IMPLEMENT_FORWARD_XTYPEPROVIDER2( OPropertyBag, OPropertyBag_Base, OPropertyBag_PBase )
- //--------------------------------------------------------------------
+
Sequence< OUString > OPropertyBag::getSupportedServiceNames_static() throw( RuntimeException )
{
Sequence< OUString > aServices(1);
@@ -86,7 +86,7 @@ namespace comphelper
return aServices;
}
- //--------------------------------------------------------------------
+
void SAL_CALL OPropertyBag::initialize( const Sequence< Any >& _rArguments ) throw (Exception, RuntimeException)
{
Sequence< Type > aTypes;
@@ -125,19 +125,19 @@ namespace comphelper
}
}
- //--------------------------------------------------------------------
+
OUString OPropertyBag::getImplementationName_static() throw( RuntimeException )
{
return OUString( "com.sun.star.comp.comphelper.OPropertyBag" );
}
- //--------------------------------------------------------------------
+
Reference< XInterface > SAL_CALL OPropertyBag::Create( SAL_UNUSED_PARAMETER const Reference< XComponentContext >& )
{
return *new OPropertyBag;
}
- //--------------------------------------------------------------------
+
OUString SAL_CALL OPropertyBag::getImplementationName() throw (RuntimeException)
{
return getImplementationName_static();
@@ -148,13 +148,13 @@ namespace comphelper
return cppu::supportsService(this, rServiceName);
}
- //--------------------------------------------------------------------
+
Sequence< OUString > SAL_CALL OPropertyBag::getSupportedServiceNames( ) throw (RuntimeException)
{
return getSupportedServiceNames_static();
}
- //--------------------------------------------------------------------
+
void OPropertyBag::fireEvents(
sal_Int32 * /*pnHandles*/,
sal_Int32 nCount,
@@ -189,7 +189,7 @@ namespace comphelper
}
}
- //--------------------------------------------------------------------
+
::sal_Bool SAL_CALL OPropertyBag::isModified()
throw (RuntimeException)
{
@@ -217,13 +217,13 @@ namespace comphelper
m_NotifyListeners.removeInterface(xListener);
}
- //--------------------------------------------------------------------
+
Reference< XPropertySetInfo > SAL_CALL OPropertyBag::getPropertySetInfo( ) throw(RuntimeException)
{
return createPropertySetInfo( getInfoHelper() );
}
- //--------------------------------------------------------------------
+
::sal_Bool SAL_CALL OPropertyBag::has( const Any& /*aElement*/ ) throw (RuntimeException)
{
// XSet is only a workaround for addProperty not being able to add default-void properties.
@@ -231,7 +231,7 @@ namespace comphelper
return sal_False;
}
- //--------------------------------------------------------------------
+
void SAL_CALL OPropertyBag::insert( const Any& _element ) throw (IllegalArgumentException, ElementExistException, RuntimeException)
{
// This is a workaround for addProperty not being able to add default-void properties.
@@ -258,7 +258,7 @@ namespace comphelper
setModified(sal_True);
}
- //--------------------------------------------------------------------
+
void SAL_CALL OPropertyBag::remove( const Any& /*aElement*/ ) throw (IllegalArgumentException, NoSuchElementException, RuntimeException)
{
// XSet is only a workaround for addProperty not being able to add default-void properties.
@@ -267,7 +267,7 @@ namespace comphelper
}
- //--------------------------------------------------------------------
+
Reference< XEnumeration > SAL_CALL OPropertyBag::createEnumeration( ) throw (RuntimeException)
{
// XSet is only a workaround for addProperty not being able to add default-void properties.
@@ -275,7 +275,7 @@ namespace comphelper
return NULL;
}
- //--------------------------------------------------------------------
+
Type SAL_CALL OPropertyBag::getElementType( ) throw (RuntimeException)
{
// XSet is only a workaround for addProperty not being able to add default-void properties.
@@ -283,7 +283,7 @@ namespace comphelper
return Type();
}
- //--------------------------------------------------------------------
+
::sal_Bool SAL_CALL OPropertyBag::hasElements( ) throw (RuntimeException)
{
// XSet is only a workaround for addProperty not being able to add default-void properties.
@@ -291,25 +291,25 @@ namespace comphelper
return sal_False;
}
- //--------------------------------------------------------------------
+
void SAL_CALL OPropertyBag::getFastPropertyValue( Any& _rValue, sal_Int32 _nHandle ) const
{
m_aDynamicProperties.getFastPropertyValue( _nHandle, _rValue );
}
- //--------------------------------------------------------------------
+
sal_Bool SAL_CALL OPropertyBag::convertFastPropertyValue( Any& _rConvertedValue, Any& _rOldValue, sal_Int32 _nHandle, const Any& _rValue ) throw (IllegalArgumentException)
{
return m_aDynamicProperties.convertFastPropertyValue( _nHandle, _rValue, _rConvertedValue, _rOldValue );
}
- //--------------------------------------------------------------------
+
void SAL_CALL OPropertyBag::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const Any& rValue ) throw (Exception)
{
m_aDynamicProperties.setFastPropertyValue( nHandle, rValue );
}
- //--------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper& SAL_CALL OPropertyBag::getInfoHelper()
{
if ( !m_pArrayHelper.get() )
@@ -322,7 +322,7 @@ namespace comphelper
}
- //--------------------------------------------------------------------
+
sal_Int32 OPropertyBag::findFreeHandle() const
{
const sal_Int32 nPrime = 1009;
@@ -344,7 +344,7 @@ namespace comphelper
return nCheck;
}
- //--------------------------------------------------------------------
+
void SAL_CALL OPropertyBag::addProperty( const OUString& _rName, ::sal_Int16 _nAttributes, const Any& _rInitialValue ) throw (PropertyExistException, IllegalTypeException, IllegalArgumentException, RuntimeException)
{
::osl::ClearableMutexGuard g( m_aMutex );
@@ -367,7 +367,7 @@ namespace comphelper
setModified(sal_True);
}
- //--------------------------------------------------------------------
+
void SAL_CALL OPropertyBag::removeProperty( const OUString& _rName ) throw (UnknownPropertyException, NotRemoveableException, RuntimeException)
{
::osl::ClearableMutexGuard g( m_aMutex );
@@ -381,7 +381,7 @@ namespace comphelper
setModified(sal_True);
}
- //--------------------------------------------------------------------
+
namespace
{
struct ComparePropertyValueByName : public ::std::binary_function< PropertyValue, PropertyValue, bool >
@@ -410,7 +410,7 @@ namespace comphelper
};
}
- //--------------------------------------------------------------------
+
Sequence< PropertyValue > SAL_CALL OPropertyBag::getPropertyValues( ) throw (RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -465,7 +465,7 @@ namespace comphelper
return aPropertyValues;
}
- //--------------------------------------------------------------------
+
void OPropertyBag::impl_setPropertyValues_throw( const Sequence< PropertyValue >& _rProps )
{
// sort (the XMultiPropertySet interface requires this)
@@ -543,14 +543,14 @@ namespace comphelper
}
}
- //--------------------------------------------------------------------
+
void SAL_CALL OPropertyBag::setPropertyValues( const Sequence< PropertyValue >& _rProps ) throw (UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
impl_setPropertyValues_throw( _rProps );
}
- //--------------------------------------------------------------------
+
PropertyState OPropertyBag::getPropertyStateByHandle( sal_Int32 _nHandle )
{
// for properties which do not support the MAYBEDEFAULT attribute, don't rely on the base class, but
@@ -570,7 +570,7 @@ namespace comphelper
return OPropertyBag_PBase::getPropertyStateByHandle( _nHandle );
}
- //--------------------------------------------------------------------
+
Any OPropertyBag::getPropertyDefaultByHandle( sal_Int32 _nHandle ) const
{
Any aDefault;
diff --git a/comphelper/source/property/propagg.cxx b/comphelper/source/property/propagg.cxx
index 664d2bfbbb5a..c4a66b68d4cb 100644
--- a/comphelper/source/property/propagg.cxx
+++ b/comphelper/source/property/propagg.cxx
@@ -42,7 +42,7 @@ namespace comphelper
using namespace internal;
- //------------------------------------------------------------------------------
+
namespace
{
const Property* lcl_findPropertyByName( const Sequence< Property >& _rProps, const OUString& _rName )
@@ -61,7 +61,7 @@ namespace comphelper
//= OPropertyArrayAggregationHelper
//==================================================================
-//------------------------------------------------------------------------------
+
OPropertyArrayAggregationHelper::OPropertyArrayAggregationHelper(
const Sequence< Property >& _rProperties, const Sequence< Property >& _rAggProperties,
IPropertyInfoService* _pInfoService, sal_Int32 _nFirstAggregateId )
@@ -147,7 +147,7 @@ OPropertyArrayAggregationHelper::OPropertyArrayAggregationHelper(
m_aPropertyAccessors[ pMergedProps->Handle ].nPos = nMPLoop;
}
-//------------------------------------------------------------------
+
OPropertyArrayAggregationHelper::PropertyOrigin OPropertyArrayAggregationHelper::classifyProperty( const OUString& _rName )
{
PropertyOrigin eOrigin = UNKNOWN_PROPERTY;
@@ -166,7 +166,7 @@ OPropertyArrayAggregationHelper::PropertyOrigin OPropertyArrayAggregationHelper:
return eOrigin;
}
-//------------------------------------------------------------------
+
Property OPropertyArrayAggregationHelper::getPropertyByName( const OUString& _rPropertyName ) throw( UnknownPropertyException )
{
const Property* pProperty = findPropertyByName( _rPropertyName );
@@ -177,26 +177,26 @@ Property OPropertyArrayAggregationHelper::getPropertyByName( const OUString& _rP
return *pProperty;
}
-//------------------------------------------------------------------------------
+
sal_Bool OPropertyArrayAggregationHelper::hasPropertyByName(const OUString& _rPropertyName)
{
return NULL != findPropertyByName( _rPropertyName );
}
-//------------------------------------------------------------------------------
+
const Property* OPropertyArrayAggregationHelper::findPropertyByName(const :: OUString& _rName ) const
{
return lcl_findPropertyByName( m_aProperties, _rName );
}
-//------------------------------------------------------------------------------
+
sal_Int32 OPropertyArrayAggregationHelper::getHandleByName(const OUString& _rPropertyName)
{
const Property* pProperty = findPropertyByName( _rPropertyName );
return pProperty ? pProperty->Handle : -1;
}
-//------------------------------------------------------------------------------
+
sal_Bool OPropertyArrayAggregationHelper::fillPropertyMembersByHandle(
OUString* _pPropName, sal_Int16* _pAttributes, sal_Int32 _nHandle)
{
@@ -213,7 +213,7 @@ sal_Bool OPropertyArrayAggregationHelper::fillPropertyMembersByHandle(
return bRet;
}
-//------------------------------------------------------------------------------
+
bool OPropertyArrayAggregationHelper::getPropertyByHandle( sal_Int32 _nHandle, Property& _rProperty ) const
{
ConstPropertyAccessorMapIterator pos = m_aPropertyAccessors.find(_nHandle);
@@ -225,7 +225,7 @@ bool OPropertyArrayAggregationHelper::getPropertyByHandle( sal_Int32 _nHandle, P
return false;
}
-//------------------------------------------------------------------------------
+
bool OPropertyArrayAggregationHelper::fillAggregatePropertyInfoByHandle(
OUString* _pPropName, sal_Int32* _pOriginalHandle, sal_Int32 _nHandle) const
{
@@ -246,14 +246,14 @@ bool OPropertyArrayAggregationHelper::fillAggregatePropertyInfoByHandle(
}
-//------------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property> OPropertyArrayAggregationHelper::getProperties()
{
return m_aProperties;
}
-//------------------------------------------------------------------------------
+
sal_Int32 OPropertyArrayAggregationHelper::fillHandles(
sal_Int32* _pHandles, const ::com::sun::star::uno::Sequence< OUString >& _rPropNames )
{
@@ -382,31 +382,31 @@ namespace internal
sal_Int32 getCurrentlyForwardedProperty( ) const { return m_nCurrentlyForwarding; }
};
- //--------------------------------------------------------------------------
+
PropertyForwarder::PropertyForwarder( OPropertySetAggregationHelper& _rAggregationHelper )
:m_rAggregationHelper( _rAggregationHelper )
,m_nCurrentlyForwarding( -1 )
{
}
- //--------------------------------------------------------------------------
+
PropertyForwarder::~PropertyForwarder()
{
}
- //--------------------------------------------------------------------------
+
void PropertyForwarder::takeResponsibilityFor( sal_Int32 _nHandle )
{
m_aProperties.insert( _nHandle );
}
- //--------------------------------------------------------------------------
+
bool PropertyForwarder::isResponsibleFor( sal_Int32 _nHandle )
{
return m_aProperties.find( _nHandle ) != m_aProperties.end();
}
- //--------------------------------------------------------------------------
+
void PropertyForwarder::doForward( sal_Int32 _nHandle, const Any& _rValue ) throw ( Exception )
{
OSL_ENSURE( m_rAggregationHelper.m_xAggregateSet.is(), "PropertyForwarder::doForward: no property set!" );
@@ -439,7 +439,7 @@ namespace internal
//= OPropertySetAggregationHelper
//==================================================================
-//------------------------------------------------------------------------------
+
OPropertySetAggregationHelper::OPropertySetAggregationHelper( ::cppu::OBroadcastHelper& rBHlp )
:OPropertyStateHelper( rBHlp )
,m_bListening( false )
@@ -447,13 +447,13 @@ OPropertySetAggregationHelper::OPropertySetAggregationHelper( ::cppu::OBroadcast
m_pForwarder = new PropertyForwarder( *this );
}
-//------------------------------------------------------------------------------
+
OPropertySetAggregationHelper::~OPropertySetAggregationHelper()
{
delete m_pForwarder;
}
-//------------------------------------------------------------------------------
+
::com::sun::star::uno::Any SAL_CALL OPropertySetAggregationHelper::queryInterface(const ::com::sun::star::uno::Type& _rType) throw( ::com::sun::star::uno::RuntimeException)
{
::com::sun::star::uno::Any aReturn = OPropertyStateHelper::queryInterface(_rType);
@@ -468,7 +468,7 @@ OPropertySetAggregationHelper::~OPropertySetAggregationHelper()
return aReturn;
}
-//------------------------------------------------------------------------------
+
void OPropertySetAggregationHelper::disposing()
{
osl::MutexGuard aGuard(rBHelper.rMutex);
@@ -484,7 +484,7 @@ void OPropertySetAggregationHelper::disposing()
OPropertyStateHelper::disposing();
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::disposing(const ::com::sun::star::lang::EventObject& _rSource) throw ( ::com::sun::star::uno::RuntimeException)
{
OSL_ENSURE(m_xAggregateSet.is(), "OPropertySetAggregationHelper::disposing : don't have an aggregate anymore !");
@@ -492,7 +492,7 @@ void SAL_CALL OPropertySetAggregationHelper::disposing(const ::com::sun::star::
m_bListening = false;
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::propertiesChange(const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyChangeEvent>& _rEvents) throw( ::com::sun::star::uno::RuntimeException)
{
OSL_ENSURE(m_xAggregateSet.is(), "OPropertySetAggregationHelper::propertiesChange : have no aggregate !");
@@ -544,7 +544,7 @@ void SAL_CALL OPropertySetAggregationHelper::propertiesChange(const ::com::sun:
}
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::vetoableChange(const ::com::sun::star::beans::PropertyChangeEvent& _rEvent) throw( ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::uno::RuntimeException)
{
OSL_ENSURE(m_xAggregateSet.is(), "OPropertySetAggregationHelper::vetoableChange : have no aggregate !");
@@ -555,7 +555,7 @@ void SAL_CALL OPropertySetAggregationHelper::vetoableChange(const ::com::sun::s
fire(&nHandle, &_rEvent.NewValue, &_rEvent.OldValue, 1, sal_True);
}
-//------------------------------------------------------------------------------
+
void OPropertySetAggregationHelper::setAggregation(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxDelegate)
throw( ::com::sun::star::lang::IllegalArgumentException )
{
@@ -578,7 +578,7 @@ void OPropertySetAggregationHelper::setAggregation(const ::com::sun::star::uno:
throw ::com::sun::star::lang::IllegalArgumentException();
}
-//------------------------------------------------------------------------------
+
void OPropertySetAggregationHelper::startListening()
{
osl::MutexGuard aGuard(rBHelper.rMutex);
@@ -594,7 +594,7 @@ void OPropertySetAggregationHelper::startListening()
}
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::addVetoableChangeListener(const OUString& _rPropertyName,
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener>& _rxListener)
throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException)
@@ -604,7 +604,7 @@ void SAL_CALL OPropertySetAggregationHelper::addVetoableChangeListener(const OUS
startListening();
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::addPropertyChangeListener(const OUString& _rPropertyName,
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener>& _rxListener)
throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException)
@@ -614,7 +614,7 @@ void SAL_CALL OPropertySetAggregationHelper::addPropertyChangeListener(const OUS
startListening();
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::addPropertiesChangeListener(const ::com::sun::star::uno::Sequence< OUString >& _rPropertyNames,
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener>& _rxListener)
throw( ::com::sun::star::uno::RuntimeException)
@@ -624,7 +624,7 @@ void SAL_CALL OPropertySetAggregationHelper::addPropertiesChangeListener(const
startListening();
}
-//------------------------------------------------------------------------------
+
sal_Int32 OPropertySetAggregationHelper::getOriginalHandle(sal_Int32 nHandle) const
{
OPropertyArrayAggregationHelper& rPH = (OPropertyArrayAggregationHelper&)const_cast<OPropertySetAggregationHelper*>(this)->getInfoHelper();
@@ -633,7 +633,7 @@ sal_Int32 OPropertySetAggregationHelper::getOriginalHandle(sal_Int32 nHandle) co
return nOriginalHandle;
}
-//--------------------------------------------------------------------------
+
OUString OPropertySetAggregationHelper::getPropertyName( sal_Int32 _nHandle ) const
{
OPropertyArrayAggregationHelper& rPH = static_cast< OPropertyArrayAggregationHelper& >( const_cast<OPropertySetAggregationHelper*>(this)->getInfoHelper() );
@@ -642,7 +642,7 @@ OUString OPropertySetAggregationHelper::getPropertyName( sal_Int32 _nHandle ) co
return aProperty.Name;
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::setFastPropertyValue(sal_Int32 _nHandle, const ::com::sun::star::uno::Any& _rValue)
throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException,
::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException,
@@ -662,7 +662,7 @@ void SAL_CALL OPropertySetAggregationHelper::setFastPropertyValue(sal_Int32 _nHa
OPropertySetHelper::setFastPropertyValue(_nHandle, _rValue);
}
-//------------------------------------------------------------------------------
+
void OPropertySetAggregationHelper::getFastPropertyValue( ::com::sun::star::uno::Any& rValue, sal_Int32 nHandle) const
{
OPropertyArrayAggregationHelper& rPH = (OPropertyArrayAggregationHelper&)const_cast<OPropertySetAggregationHelper*>(this)->getInfoHelper();
@@ -684,7 +684,7 @@ void OPropertySetAggregationHelper::getFastPropertyValue( ::com::sun::star::uno:
}
}
-//------------------------------------------------------------------------------
+
::com::sun::star::uno::Any SAL_CALL OPropertySetAggregationHelper::getFastPropertyValue(sal_Int32 nHandle)
throw( ::com::sun::star::beans::UnknownPropertyException,
::com::sun::star::lang::WrappedTargetException,
@@ -708,7 +708,7 @@ void OPropertySetAggregationHelper::getFastPropertyValue( ::com::sun::star::uno:
return aValue;
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::setPropertyValues(
const Sequence< OUString >& _rPropertyNames, const Sequence< Any >& _rValues )
throw ( PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException )
@@ -895,7 +895,7 @@ void SAL_CALL OPropertySetAggregationHelper::setPropertyValues(
}
// XPropertyState
-//------------------------------------------------------------------------------
+
::com::sun::star::beans::PropertyState SAL_CALL OPropertySetAggregationHelper::getPropertyState(const OUString& _rPropertyName)
throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException)
{
@@ -920,7 +920,7 @@ void SAL_CALL OPropertySetAggregationHelper::setPropertyValues(
return getPropertyStateByHandle(nHandle);
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::setPropertyToDefault(const OUString& _rPropertyName)
throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException)
{
@@ -953,7 +953,7 @@ void SAL_CALL OPropertySetAggregationHelper::setPropertyToDefault(const OUString
}
}
-//------------------------------------------------------------------------------
+
::com::sun::star::uno::Any SAL_CALL OPropertySetAggregationHelper::getPropertyDefault(const OUString& aPropertyName)
throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException)
{
@@ -976,7 +976,7 @@ void SAL_CALL OPropertySetAggregationHelper::setPropertyToDefault(const OUString
return getPropertyDefaultByHandle(nHandle);
}
-//------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OPropertySetAggregationHelper::convertFastPropertyValue( Any& _rConvertedValue, Any& _rOldValue, sal_Int32 _nHandle, const Any& _rValue ) throw(IllegalArgumentException)
{
bool bModified = false;
@@ -997,7 +997,7 @@ sal_Bool SAL_CALL OPropertySetAggregationHelper::convertFastPropertyValue( Any&
return bModified;
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::setFastPropertyValue_NoBroadcast( sal_Int32 _nHandle, const Any& _rValue ) throw ( Exception )
{
OSL_ENSURE( m_pForwarder->isResponsibleFor( _nHandle ), "OPropertySetAggregationHelper::setFastPropertyValue_NoBroadcast: this is no forwarded property - did you use declareForwardedProperty for it?" );
@@ -1005,26 +1005,26 @@ void SAL_CALL OPropertySetAggregationHelper::setFastPropertyValue_NoBroadcast( s
m_pForwarder->doForward( _nHandle, _rValue );
}
-//------------------------------------------------------------------------------
+
void OPropertySetAggregationHelper::declareForwardedProperty( sal_Int32 _nHandle )
{
OSL_ENSURE( !m_pForwarder->isResponsibleFor( _nHandle ), "OPropertySetAggregationHelper::declareForwardedProperty: already declared!" );
m_pForwarder->takeResponsibilityFor( _nHandle );
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::forwardingPropertyValue( sal_Int32 )
{
// not interested in
}
-//------------------------------------------------------------------------------
+
void SAL_CALL OPropertySetAggregationHelper::forwardedPropertyValue( sal_Int32, bool )
{
// not interested in
}
-//------------------------------------------------------------------------------
+
bool OPropertySetAggregationHelper::isCurrentlyForwardingProperty( sal_Int32 _nHandle ) const
{
return m_pForwarder->getCurrentlyForwardedProperty() == _nHandle;
diff --git a/comphelper/source/property/property.cxx b/comphelper/source/property/property.cxx
index 2eaec9af986c..872857a0d008 100644
--- a/comphelper/source/property/property.cxx
+++ b/comphelper/source/property/property.cxx
@@ -58,7 +58,7 @@ namespace comphelper
namespace PropertyAttribute = ::com::sun::star::beans::PropertyAttribute;
-//------------------------------------------------------------------
+
void copyProperties(const Reference<XPropertySet>& _rxSource,
const Reference<XPropertySet>& _rxDest)
{
@@ -129,7 +129,7 @@ void copyProperties(const Reference<XPropertySet>& _rxSource,
}
}
-//------------------------------------------------------------------
+
bool hasProperty(const OUString& _rName, const Reference<XPropertySet>& _rxSet)
{
if (_rxSet.is())
@@ -140,7 +140,7 @@ bool hasProperty(const OUString& _rName, const Reference<XPropertySet>& _rxSet)
return false;
}
-//------------------------------------------------------------------
+
void RemoveProperty(Sequence<Property>& _rProps, const OUString& _rPropName)
{
sal_Int32 nLen = _rProps.getLength();
@@ -158,7 +158,7 @@ void RemoveProperty(Sequence<Property>& _rProps, const OUString& _rPropName)
}
}
-//------------------------------------------------------------------
+
void ModifyPropertyAttributes(Sequence<Property>& seqProps, const OUString& sPropName, sal_Int16 nAddAttrib, sal_Int16 nRemoveAttrib)
{
sal_Int32 nLen = seqProps.getLength();
@@ -176,7 +176,7 @@ void ModifyPropertyAttributes(Sequence<Property>& seqProps, const OUString& sPro
}
}
-//------------------------------------------------------------------
+
bool tryPropertyValue(Any& _rConvertedValue, Any& _rOldValue, const Any& _rValueToSet, const Any& _rCurrentValue, const Type& _rExpectedType)
{
bool bModified(false);
diff --git a/comphelper/source/property/propertybag.cxx b/comphelper/source/property/propertybag.cxx
index 79225fc492e6..95471eab0925 100644
--- a/comphelper/source/property/propertybag.cxx
+++ b/comphelper/source/property/propertybag.cxx
@@ -58,7 +58,7 @@ namespace comphelper
//====================================================================
//= PropertyBag
//====================================================================
- //--------------------------------------------------------------------
+
PropertyBag::PropertyBag()
:m_pImpl( new PropertyBag_Impl )
{
@@ -68,13 +68,13 @@ namespace comphelper
{
}
- //--------------------------------------------------------------------
+
void PropertyBag::setAllowEmptyPropertyName( bool i_isAllowed )
{
m_pImpl->m_bAllowEmptyPropertyName = i_isAllowed;
}
- //--------------------------------------------------------------------
+
namespace
{
void lcl_checkForEmptyName( const bool _allowEmpty, const OUString& _name )
@@ -99,7 +99,7 @@ namespace comphelper
}
}
- //--------------------------------------------------------------------
+
void PropertyBag::addVoidProperty( const OUString& _rName, const Type& _rType, sal_Int32 _nHandle, sal_Int32 _nAttributes )
{
if ( _rType.getTypeClass() == TypeClass_VOID )
@@ -122,7 +122,7 @@ namespace comphelper
m_pImpl->aDefaults.insert( MapInt2Any::value_type( _nHandle, Any() ) );
}
- //--------------------------------------------------------------------
+
void PropertyBag::addProperty( const OUString& _rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, const Any& _rInitialValue )
{
// check type sanity
@@ -145,7 +145,7 @@ namespace comphelper
m_pImpl->aDefaults.insert( MapInt2Any::value_type( _nHandle, _rInitialValue ) );
}
- //--------------------------------------------------------------------
+
void PropertyBag::removeProperty( const OUString& _rName )
{
const Property& rProp = getProperty( _rName );
@@ -159,7 +159,7 @@ namespace comphelper
m_pImpl->aDefaults.erase( nHandle );
}
- //--------------------------------------------------------------------
+
void PropertyBag::getFastPropertyValue( sal_Int32 _nHandle, Any& _out_rValue ) const
{
if ( !hasPropertyByHandle( _nHandle ) )
@@ -168,7 +168,7 @@ namespace comphelper
OPropertyContainerHelper::getFastPropertyValue( _out_rValue, _nHandle );
}
- //--------------------------------------------------------------------
+
bool PropertyBag::convertFastPropertyValue( sal_Int32 _nHandle, const Any& _rNewValue, Any& _out_rConvertedValue, Any& _out_rCurrentValue ) const
{
if ( !hasPropertyByHandle( _nHandle ) )
@@ -178,7 +178,7 @@ namespace comphelper
_out_rConvertedValue, _out_rCurrentValue, _nHandle, _rNewValue );
}
- //--------------------------------------------------------------------
+
void PropertyBag::setFastPropertyValue( sal_Int32 _nHandle, const Any& _rValue )
{
if ( !hasPropertyByHandle( _nHandle ) )
@@ -187,7 +187,7 @@ namespace comphelper
OPropertyContainerHelper::setFastPropertyValue( _nHandle, _rValue );
}
- //--------------------------------------------------------------------
+
void PropertyBag::getPropertyDefaultByHandle( sal_Int32 _nHandle, Any& _out_rValue ) const
{
if ( !hasPropertyByHandle( _nHandle ) )
diff --git a/comphelper/source/property/propertycontainer.cxx b/comphelper/source/property/propertycontainer.cxx
index 98e9439a687b..c8cc99004556 100644
--- a/comphelper/source/property/propertycontainer.cxx
+++ b/comphelper/source/property/propertycontainer.cxx
@@ -40,18 +40,18 @@ using namespace ::com::sun::star::beans;
//==========================================================================
//= OPropertyContainer
//==========================================================================
-//--------------------------------------------------------------------------
+
OPropertyContainer::OPropertyContainer(::cppu::OBroadcastHelper& _rBHelper)
:OPropertySetHelper(_rBHelper)
{
}
-// -------------------------------------------------------------------------
+
OPropertyContainer::~OPropertyContainer()
{
}
-//--------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OPropertyContainer::getTypes() throw (RuntimeException)
{
// just the types from our one and only base class
@@ -63,27 +63,27 @@ Sequence< Type > SAL_CALL OPropertyContainer::getTypes() throw (RuntimeException
return aTypes.getTypes();
}
-//--------------------------------------------------------------------------
+
void SAL_CALL OPropertyContainer::setFastPropertyValue( sal_Int32 nHandle, const Any& rValue ) throw ( UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException)
{
OPropertySetHelper::setFastPropertyValue( nHandle, rValue );
}
-//--------------------------------------------------------------------------
+
sal_Bool OPropertyContainer::convertFastPropertyValue(
Any& _rConvertedValue, Any& _rOldValue, sal_Int32 _nHandle, const Any& _rValue ) throw (IllegalArgumentException)
{
return OPropertyContainerHelper::convertFastPropertyValue( _rConvertedValue, _rOldValue, _nHandle, _rValue );
}
-//--------------------------------------------------------------------------
+
void OPropertyContainer::setFastPropertyValue_NoBroadcast(sal_Int32 _nHandle, const Any& _rValue)
throw (Exception, std::exception)
{
OPropertyContainerHelper::setFastPropertyValue( _nHandle, _rValue );
}
-//--------------------------------------------------------------------------
+
void OPropertyContainer::getFastPropertyValue(Any& _rValue, sal_Int32 _nHandle) const
{
OPropertyContainerHelper::getFastPropertyValue( _rValue, _nHandle );
diff --git a/comphelper/source/property/propertycontainerhelper.cxx b/comphelper/source/property/propertycontainerhelper.cxx
index 0a859ef2ff91..d0e783d7dc6f 100644
--- a/comphelper/source/property/propertycontainerhelper.cxx
+++ b/comphelper/source/property/propertycontainerhelper.cxx
@@ -37,7 +37,7 @@ using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::beans;
-//--------------------------------------------------------------------------
+
namespace
{
// comparing two property descriptions
@@ -64,18 +64,18 @@ namespace
//==========================================================================
//= OPropertyContainerHelper
//==========================================================================
-//--------------------------------------------------------------------------
+
OPropertyContainerHelper::OPropertyContainerHelper()
:m_bUnused(false)
{
}
-// -------------------------------------------------------------------------
+
OPropertyContainerHelper::~OPropertyContainerHelper()
{
}
-//--------------------------------------------------------------------------
+
void OPropertyContainerHelper::registerProperty(const OUString& _rName, sal_Int32 _nHandle,
sal_Int32 _nAttributes, void* _pPointerToMember, const Type& _rMemberType)
{
@@ -94,7 +94,7 @@ void OPropertyContainerHelper::registerProperty(const OUString& _rName, sal_Int3
implPushBackProperty(aNewProp);
}
-//--------------------------------------------------------------------------
+
void OPropertyContainerHelper::revokeProperty( sal_Int32 _nHandle )
{
PropertiesIterator aPos = searchHandle( _nHandle );
@@ -103,7 +103,7 @@ void OPropertyContainerHelper::revokeProperty( sal_Int32 _nHandle )
m_aProperties.erase( aPos );
}
-//--------------------------------------------------------------------------
+
void OPropertyContainerHelper::registerMayBeVoidProperty(const OUString& _rName, sal_Int32 _nHandle, sal_Int32 _nAttributes,
Any* _pPointerToMember, const Type& _rExpectedType)
{
@@ -125,7 +125,7 @@ void OPropertyContainerHelper::registerMayBeVoidProperty(const OUString& _rName,
}
-//--------------------------------------------------------------------------
+
void OPropertyContainerHelper::registerPropertyNoMember(const OUString& _rName, sal_Int32 _nHandle, sal_Int32 _nAttributes,
const Type& _rType, const void* _pInitialValue)
{
@@ -146,13 +146,13 @@ void OPropertyContainerHelper::registerPropertyNoMember(const OUString& _rName,
implPushBackProperty(aNewProp);
}
-//--------------------------------------------------------------------------
+
bool OPropertyContainerHelper::isRegisteredProperty( sal_Int32 _nHandle ) const
{
return const_cast< OPropertyContainerHelper* >( this )->searchHandle( _nHandle ) != m_aProperties.end();
}
-//--------------------------------------------------------------------------
+
bool OPropertyContainerHelper::isRegisteredProperty( const OUString& _rName ) const
{
// TODO: the current structure is from a time where properties were
@@ -168,7 +168,7 @@ bool OPropertyContainerHelper::isRegisteredProperty( const OUString& _rName ) co
return pos != m_aProperties.end();
}
-//--------------------------------------------------------------------------
+
namespace
{
struct ComparePropertyHandles
@@ -180,7 +180,7 @@ namespace
};
}
-//--------------------------------------------------------------------------
+
void OPropertyContainerHelper::implPushBackProperty(const PropertyDescription& _rProp)
{
#ifdef DBG_UTIL
@@ -201,7 +201,7 @@ void OPropertyContainerHelper::implPushBackProperty(const PropertyDescription& _
m_aProperties.insert( pos, _rProp );
}
-//--------------------------------------------------------------------------
+
namespace
{
void lcl_throwIllegalPropertyValueTypeException( const PropertyDescription& _rProperty, const Any& _rValue )
@@ -219,7 +219,7 @@ namespace
}
}
-//--------------------------------------------------------------------------
+
bool OPropertyContainerHelper::convertFastPropertyValue(
Any& _rConvertedValue, Any& _rOldValue, sal_Int32 _nHandle, const Any& _rValue ) SAL_THROW( (IllegalArgumentException) )
{
@@ -365,7 +365,7 @@ bool OPropertyContainerHelper::convertFastPropertyValue(
return bModified;
}
-//--------------------------------------------------------------------------
+
void OPropertyContainerHelper::setFastPropertyValue(sal_Int32 _nHandle, const Any& _rValue) SAL_THROW( (Exception) )
{
// get the property somebody is asking for
@@ -407,7 +407,7 @@ void OPropertyContainerHelper::setFastPropertyValue(sal_Int32 _nHandle, const An
}
}
-//--------------------------------------------------------------------------
+
void OPropertyContainerHelper::getFastPropertyValue(Any& _rValue, sal_Int32 _nHandle) const
{
// get the property somebody is asking for
@@ -436,7 +436,7 @@ void OPropertyContainerHelper::getFastPropertyValue(Any& _rValue, sal_Int32 _nHa
}
}
-//--------------------------------------------------------------------------
+
OPropertyContainerHelper::PropertiesIterator OPropertyContainerHelper::searchHandle(sal_Int32 _nHandle)
{
PropertyDescription aHandlePropDesc;
@@ -455,7 +455,7 @@ OPropertyContainerHelper::PropertiesIterator OPropertyContainerHelper::searchHan
return aLowerBound;
}
-//--------------------------------------------------------------------------
+
const Property& OPropertyContainerHelper::getProperty( const OUString& _rName ) const
{
ConstPropertiesIterator pos = ::std::find_if(
@@ -469,7 +469,7 @@ const Property& OPropertyContainerHelper::getProperty( const OUString& _rName )
return pos->aProperty;
}
-//--------------------------------------------------------------------------
+
void OPropertyContainerHelper::describeProperties(Sequence< Property >& _rProps) const
{
Sequence< Property > aOwnProps(m_aProperties.size());
diff --git a/comphelper/source/property/propertystatecontainer.cxx b/comphelper/source/property/propertystatecontainer.cxx
index e93c6bb04199..ab7774887d00 100644
--- a/comphelper/source/property/propertystatecontainer.cxx
+++ b/comphelper/source/property/propertystatecontainer.cxx
@@ -48,13 +48,13 @@ namespace comphelper
//=====================================================================
//= OPropertyStateContainer
//=====================================================================
- //---------------------------------------------------------------------
+
OPropertyStateContainer::OPropertyStateContainer( ::cppu::OBroadcastHelper& _rBHelper )
:OPropertyContainer( _rBHelper )
{
}
- //--------------------------------------------------------------------
+
Any SAL_CALL OPropertyStateContainer::queryInterface( const Type& _rType ) throw (RuntimeException)
{
Any aReturn = OPropertyContainer::queryInterface( _rType );
@@ -63,10 +63,10 @@ namespace comphelper
return aReturn;
}
- //--------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XTYPEPROVIDER2( OPropertyStateContainer, OPropertyContainer, OPropertyStateContainer_TBase )
- //--------------------------------------------------------------------
+
sal_Int32 OPropertyStateContainer::getHandleForName( const OUString& _rPropertyName ) SAL_THROW( ( UnknownPropertyException ) )
{
// look up the handle for the name
@@ -79,13 +79,13 @@ namespace comphelper
return nHandle;
}
- //--------------------------------------------------------------------
+
PropertyState SAL_CALL OPropertyStateContainer::getPropertyState( const OUString& _rPropertyName ) throw (UnknownPropertyException, RuntimeException)
{
return getPropertyStateByHandle( getHandleForName( _rPropertyName ) );
}
- //--------------------------------------------------------------------
+
Sequence< PropertyState > SAL_CALL OPropertyStateContainer::getPropertyStates( const Sequence< OUString >& _rPropertyNames ) throw (UnknownPropertyException, RuntimeException)
{
sal_Int32 nProperties = _rPropertyNames.getLength();
@@ -138,13 +138,13 @@ namespace comphelper
return aStates;
}
- //--------------------------------------------------------------------
+
void SAL_CALL OPropertyStateContainer::setPropertyToDefault( const OUString& _rPropertyName ) throw (UnknownPropertyException, RuntimeException)
{
setPropertyToDefaultByHandle( getHandleForName( _rPropertyName ) );
}
- //--------------------------------------------------------------------
+
Any SAL_CALL OPropertyStateContainer::getPropertyDefault( const OUString& _rPropertyName ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException)
{
Any aDefault;
@@ -152,7 +152,7 @@ namespace comphelper
return aDefault;
}
- //--------------------------------------------------------------------
+
PropertyState OPropertyStateContainer::getPropertyStateByHandle( sal_Int32 _nHandle )
{
// simply compare the current and the default value
@@ -171,7 +171,7 @@ namespace comphelper
return PropertyState_DIRECT_VALUE;
}
- //--------------------------------------------------------------------
+
void OPropertyStateContainer::setPropertyToDefaultByHandle( sal_Int32 _nHandle )
{
Any aDefault;
diff --git a/comphelper/source/property/propmultiplex.cxx b/comphelper/source/property/propmultiplex.cxx
index 08d27c6c8343..f04a4cc88097 100644
--- a/comphelper/source/property/propmultiplex.cxx
+++ b/comphelper/source/property/propmultiplex.cxx
@@ -32,20 +32,20 @@ using namespace ::com::sun::star::beans;
//========================================================================
//= OPropertyChangeListener
//========================================================================
-//------------------------------------------------------------------------
+
OPropertyChangeListener::~OPropertyChangeListener()
{
if (m_pAdapter)
m_pAdapter->dispose();
}
-//------------------------------------------------------------------
+
void OPropertyChangeListener::_disposing(const EventObject&) throw( RuntimeException)
{
// nothing to do here
}
-//------------------------------------------------------------------
+
void OPropertyChangeListener::disposeAdapter()
{
if ( m_pAdapter )
@@ -55,7 +55,7 @@ void OPropertyChangeListener::disposeAdapter()
OSL_ENSURE( !m_pAdapter, "OPropertyChangeListener::disposeAdapter: what did dispose do?" );
}
-//------------------------------------------------------------------
+
void OPropertyChangeListener::setAdapter(OPropertyChangeMultiplexer* pAdapter)
{
if (m_pAdapter)
@@ -76,7 +76,7 @@ void OPropertyChangeListener::setAdapter(OPropertyChangeMultiplexer* pAdapter)
//========================================================================
//= OPropertyChangeMultiplexer
//========================================================================
-//------------------------------------------------------------------
+
OPropertyChangeMultiplexer::OPropertyChangeMultiplexer(OPropertyChangeListener* _pListener, const Reference< XPropertySet>& _rxSet, bool _bAutoReleaseSet)
:m_xSet(_rxSet)
,m_pListener(_pListener)
@@ -87,24 +87,24 @@ OPropertyChangeMultiplexer::OPropertyChangeMultiplexer(OPropertyChangeListener*
m_pListener->setAdapter(this);
}
-//------------------------------------------------------------------
+
OPropertyChangeMultiplexer::~OPropertyChangeMultiplexer()
{
}
-//------------------------------------------------------------------
+
void OPropertyChangeMultiplexer::lock()
{
++m_nLockCount;
}
-//------------------------------------------------------------------
+
void OPropertyChangeMultiplexer::unlock()
{
--m_nLockCount;
}
-//------------------------------------------------------------------
+
void OPropertyChangeMultiplexer::dispose()
{
if (m_bListening)
@@ -126,7 +126,7 @@ void OPropertyChangeMultiplexer::dispose()
}
// XEventListener
-//------------------------------------------------------------------
+
void SAL_CALL OPropertyChangeMultiplexer::disposing( const EventObject& _rSource) throw( RuntimeException)
{
if (m_pListener)
@@ -147,14 +147,14 @@ void SAL_CALL OPropertyChangeMultiplexer::disposing( const EventObject& _rSourc
}
// XPropertyChangeListener
-//------------------------------------------------------------------
+
void SAL_CALL OPropertyChangeMultiplexer::propertyChange( const PropertyChangeEvent& _rEvent ) throw( RuntimeException)
{
if (m_pListener && !locked())
m_pListener->_propertyChanged(_rEvent);
}
-//------------------------------------------------------------------
+
void OPropertyChangeMultiplexer::addProperty(const OUString& _sPropertyName)
{
if (m_xSet.is())
diff --git a/comphelper/source/property/propstate.cxx b/comphelper/source/property/propstate.cxx
index f2d0500af1eb..bafdf1c5b37f 100644
--- a/comphelper/source/property/propstate.cxx
+++ b/comphelper/source/property/propstate.cxx
@@ -43,7 +43,7 @@ namespace comphelper
// OPropertyStateHelper
//=====================================================================
- //---------------------------------------------------------------------
+
::com::sun::star::uno::Any SAL_CALL OPropertyStateHelper::queryInterface(const ::com::sun::star::uno::Type& _rType) throw( ::com::sun::star::uno::RuntimeException)
{
::com::sun::star::uno::Any aReturn = OPropertySetHelper2::queryInterface(_rType);
@@ -54,7 +54,7 @@ namespace comphelper
return aReturn;
}
- //---------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> OPropertyStateHelper::getTypes() throw( ::com::sun::star::uno::RuntimeException)
{
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> aTypes(4);
@@ -75,14 +75,14 @@ namespace comphelper
OPropertyStateHelper::~OPropertyStateHelper() {}
- //---------------------------------------------------------------------
+
void OPropertyStateHelper::firePropertyChange(sal_Int32 nHandle, const ::com::sun::star::uno::Any& aNewValue, const ::com::sun::star::uno::Any& aOldValue)
{
fire(&nHandle, &aNewValue, &aOldValue, 1, sal_False);
}
// XPropertyState
- //---------------------------------------------------------------------
+
::com::sun::star::beans::PropertyState SAL_CALL OPropertyStateHelper::getPropertyState(const OUString& _rsName) throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException)
{
cppu::IPropertyArrayHelper& rPH = getInfoHelper();
@@ -94,7 +94,7 @@ namespace comphelper
return getPropertyStateByHandle(nHandle);
}
- //---------------------------------------------------------------------
+
void SAL_CALL OPropertyStateHelper::setPropertyToDefault(const OUString& _rsName) throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException)
{
cppu::IPropertyArrayHelper& rPH = getInfoHelper();
@@ -106,7 +106,7 @@ namespace comphelper
setPropertyToDefaultByHandle(nHandle);
}
- //---------------------------------------------------------------------
+
::com::sun::star::uno::Any SAL_CALL OPropertyStateHelper::getPropertyDefault(const OUString& _rsName) throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException)
{
cppu::IPropertyArrayHelper& rPH = getInfoHelper();
@@ -118,7 +118,7 @@ namespace comphelper
return getPropertyDefaultByHandle(nHandle);
}
- //---------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState> SAL_CALL OPropertyStateHelper::getPropertyStates(const ::com::sun::star::uno::Sequence< OUString >& _rPropertyNames) throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException)
{
sal_Int32 nLen = _rPropertyNames.getLength();
@@ -148,7 +148,7 @@ namespace comphelper
return aRet;
}
- //---------------------------------------------------------------------
+
::com::sun::star::beans::PropertyState OPropertyStateHelper::getPropertyStateByHandle( sal_Int32 _nHandle )
{
// simply compare the current and the default value
@@ -164,13 +164,13 @@ namespace comphelper
return bEqual ? PropertyState_DEFAULT_VALUE : PropertyState_DIRECT_VALUE;
}
- //---------------------------------------------------------------------
+
void OPropertyStateHelper::setPropertyToDefaultByHandle( sal_Int32 _nHandle )
{
setFastPropertyValue( _nHandle, getPropertyDefaultByHandle( _nHandle ) );
}
- //---------------------------------------------------------------------
+
::com::sun::star::uno::Any OPropertyStateHelper::getPropertyDefaultByHandle( sal_Int32 ) const
{
return ::com::sun::star::uno::Any();
@@ -179,18 +179,18 @@ namespace comphelper
//=====================================================================
// OStatefulPropertySet
//=====================================================================
- //---------------------------------------------------------------------
+
OStatefulPropertySet::OStatefulPropertySet()
:OPropertyStateHelper( GetBroadcastHelper() )
{
}
- //---------------------------------------------------------------------
+
OStatefulPropertySet::~OStatefulPropertySet()
{
}
- //---------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OStatefulPropertySet::getTypes() throw(RuntimeException)
{
Sequence< Type > aOwnTypes( 2 );
@@ -205,14 +205,14 @@ namespace comphelper
namespace { struct lcl_ImplId : public rtl::Static< ::cppu::OImplementationId, lcl_ImplId > {}; }
- //---------------------------------------------------------------------
+
Sequence< sal_Int8 > SAL_CALL OStatefulPropertySet::getImplementationId() throw(RuntimeException)
{
::cppu::OImplementationId &rID = lcl_ImplId::get();
return rID.getImplementationId();
}
- //---------------------------------------------------------------------
+
Any SAL_CALL OStatefulPropertySet::queryInterface( const Type& _rType ) throw(RuntimeException)
{
Any aReturn = OWeakObject::queryInterface( _rType );
@@ -223,13 +223,13 @@ namespace comphelper
return aReturn;
}
- //---------------------------------------------------------------------
+
void SAL_CALL OStatefulPropertySet::acquire() throw()
{
::cppu::OWeakObject::acquire();
}
- //---------------------------------------------------------------------
+
void SAL_CALL OStatefulPropertySet::release() throw()
{
::cppu::OWeakObject::release();