diff options
Diffstat (limited to 'extensions/source/propctrlr/xsddatatypes.cxx')
-rw-r--r-- | extensions/source/propctrlr/xsddatatypes.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/extensions/source/propctrlr/xsddatatypes.cxx b/extensions/source/propctrlr/xsddatatypes.cxx index 76a1796a038b..30073ac652c2 100644 --- a/extensions/source/propctrlr/xsddatatypes.cxx +++ b/extensions/source/propctrlr/xsddatatypes.cxx @@ -37,7 +37,7 @@ namespace pcr //==================================================================== //= helper //==================================================================== - //-------------------------------------------------------------------- + template< typename INTERFACE, typename ARGUMENT > void setSave( INTERFACE* pObject, void ( SAL_CALL INTERFACE::*pSetter )( ARGUMENT ), ARGUMENT _rArg ) { @@ -51,7 +51,7 @@ namespace pcr } } - //-------------------------------------------------------------------- + template< typename INTERFACE, typename ARGUMENT > ARGUMENT getSave( INTERFACE* pObject, ARGUMENT ( SAL_CALL INTERFACE::*pGetter )( ) ) { @@ -85,7 +85,7 @@ namespace pcr //==================================================================== //= XSDDataType //==================================================================== - //-------------------------------------------------------------------- + XSDDataType::XSDDataType( const Reference< XDataType >& _rxDataType ) :m_xDataType( _rxDataType ) ,m_refCount( 0 ) @@ -95,13 +95,13 @@ namespace pcr m_xFacetInfo = m_xDataType->getPropertySetInfo(); } - //-------------------------------------------------------------------- + oslInterlockedCount SAL_CALL XSDDataType::acquire() { return osl_atomic_increment( &m_refCount ); } - //-------------------------------------------------------------------- + oslInterlockedCount SAL_CALL XSDDataType::release() { if ( 0 == osl_atomic_decrement( &m_refCount ) ) @@ -112,12 +112,12 @@ namespace pcr return m_refCount; } - //-------------------------------------------------------------------- + XSDDataType::~XSDDataType() { } - //-------------------------------------------------------------------- + sal_Int16 XSDDataType::classify() const SAL_THROW(()) { sal_Int16 nTypeClass = DataTypeClass::STRING; @@ -133,19 +133,19 @@ namespace pcr return nTypeClass; } - //-------------------------------------------------------------------- + bool XSDDataType::isBasicType() const SAL_THROW(()) { return getSave( m_xDataType.get(), &XDataType::getIsBasic ); } - //-------------------------------------------------------------------- + OUString XSDDataType::getName() const SAL_THROW(()) { return getSave( m_xDataType.get(), &XDataType::getName ); } - //-------------------------------------------------------------------- + void XSDDataType::setFacet( const OUString& _rFacetName, const Any& _rValue ) SAL_THROW(()) { try @@ -158,7 +158,7 @@ namespace pcr } } - //-------------------------------------------------------------------- + bool XSDDataType::hasFacet( const OUString& _rFacetName ) const SAL_THROW(()) { bool bReturn = false; @@ -172,7 +172,7 @@ namespace pcr } return bReturn; } - //-------------------------------------------------------------------- + Any XSDDataType::getFacet( const OUString& _rFacetName ) SAL_THROW(()) { Any aReturn; @@ -187,7 +187,7 @@ namespace pcr return aReturn; } - //-------------------------------------------------------------------- + namespace { void lcl_copyProperties( const Reference< XPropertySet >& _rxSource, const Reference< XPropertySet >& _rxDest ) @@ -213,7 +213,7 @@ namespace pcr } } - //-------------------------------------------------------------------- + void XSDDataType::copyFacetsFrom( const ::rtl::Reference< XSDDataType >& _pSourceType ) { OSL_ENSURE( _pSourceType.is(), "XSDDataType::copyFacetsFrom: invalid source type!" ); |