summaryrefslogtreecommitdiff
path: root/include/unotools/sharedunocomponent.hxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-04-06 19:45:36 +0300
committerTor Lillqvist <tml@collabora.com>2014-04-06 19:45:36 +0300
commit49ccde0d3d3edaac9473f915011a501058e64002 (patch)
tree1dcb8a25647eff7f740df8b0b8f589696e87f06d /include/unotools/sharedunocomponent.hxx
parentf4e8d2ad0e591b87d2c221761363a3042628d5ff (diff)
Kill superfluous vertical whitespace
Change-Id: Idadfa4d215cb4b789d4949ce850bbb13016350c6
Diffstat (limited to 'include/unotools/sharedunocomponent.hxx')
-rw-r--r--include/unotools/sharedunocomponent.hxx20
1 files changed, 0 insertions, 20 deletions
diff --git a/include/unotools/sharedunocomponent.hxx b/include/unotools/sharedunocomponent.hxx
index f4b3fc7fe056..3b8e164dc8a7 100644
--- a/include/unotools/sharedunocomponent.hxx
+++ b/include/unotools/sharedunocomponent.hxx
@@ -35,8 +35,6 @@ namespace com { namespace sun { namespace star {
namespace utl
{
-
-
//= DisposableComponent
/** is a class which controls lifetime of an UNO component via ->XComponent::dispose
@@ -71,7 +69,6 @@ namespace utl
DisposableComponent& operator=( const DisposableComponent& ); // never implemented
};
-
//= CloseableComponent
class CloseableComponentImpl;
@@ -113,7 +110,6 @@ namespace utl
CloseableComponent& operator=( const CloseableComponent& ); // never implemented
};
-
//= SharedUNOComponent
/** is a helper class for sharing ownership of a UNO component
@@ -236,14 +232,12 @@ namespace utl
}
};
-
template < class INTERFACE, class COMPONENT >
INTERFACE* SAL_CALL SharedUNOComponent< INTERFACE, COMPONENT >::operator->() const
{
return m_xTypedComponent.operator->();
}
-
// assignments
template < class INTERFACE, class COMPONENT >
void SharedUNOComponent< INTERFACE, COMPONENT >::reset( const ::com::sun::star::uno::Reference< INTERFACE >& _rxComponent, AssignmentMode _eMode )
@@ -252,7 +246,6 @@ namespace utl
m_xTypedComponent = _rxComponent;
}
-
// comparison operators
template < class INTERFACE, class COMPONENT >
bool operator==( const ::com::sun::star::uno::Reference< INTERFACE >& _rLHS, const SharedUNOComponent< INTERFACE, COMPONENT >& _rRHS )
@@ -266,7 +259,6 @@ namespace utl
return _rLHS.getTyped() == _rRHS;
}
-
// conversion to Any
template < class INTERFACE, class COMPONENT >
inline void SAL_CALL operator <<= ( ::com::sun::star::uno::Any & rAny, const SharedUNOComponent< INTERFACE, COMPONENT >& value ) SAL_THROW(())
@@ -274,49 +266,42 @@ namespace utl
rAny <<= value.getTyped();
}
-
template < class INTERFACE, class COMPONENT >
inline ::com::sun::star::uno::Any SAL_CALL makeAny( const SharedUNOComponent< INTERFACE, COMPONENT >& value ) SAL_THROW(())
{
return makeAny( value.getTyped() );
}
-
template < class INTERFACE, class COMPONENT >
void SharedUNOComponent< INTERFACE, COMPONENT >::set( const ::com::sun::star::uno::XInterface* _pInterface, ::com::sun::star::uno::UnoReference_QueryThrow _queryThrow )
{
reset( ::com::sun::star::uno::Reference< INTERFACE >( _pInterface, _queryThrow ), TakeOwnership );
}
-
template < class INTERFACE, class COMPONENT >
void SharedUNOComponent< INTERFACE, COMPONENT >::set( const ::com::sun::star::uno::BaseReference & _rRef, ::com::sun::star::uno::UnoReference_QueryThrow _queryThrow )
{
reset( ::com::sun::star::uno::Reference< INTERFACE >( _rRef, _queryThrow ), TakeOwnership );
}
-
template < class INTERFACE, class COMPONENT >
void SharedUNOComponent< INTERFACE, COMPONENT >::set( const ::com::sun::star::uno::Any& _rAny, ::com::sun::star::uno::UnoReference_QueryThrow _queryThrow )
{
reset( ::com::sun::star::uno::Reference< INTERFACE >( _rAny, _queryThrow ), TakeOwnership );
}
-
template < class INTERFACE, class COMPONENT >
void SharedUNOComponent< INTERFACE, COMPONENT >::set( const INTERFACE* _pInterface, ::com::sun::star::uno::UnoReference_SetThrow _setThrow )
{
reset( ::com::sun::star::uno::Reference< INTERFACE >( _pInterface, _setThrow ), TakeOwnership );
}
-
template < class INTERFACE, class COMPONENT >
void SharedUNOComponent< INTERFACE, COMPONENT >::set( const ::com::sun::star::uno::Reference< INTERFACE >& _rRef, ::com::sun::star::uno::UnoReference_SetThrow _setThrow )
{
reset( ::com::sun::star::uno::Reference< INTERFACE >( _rRef, _setThrow ), TakeOwnership );
}
-
template < class INTERFACE, class COMPONENT >
void SharedUNOComponent< INTERFACE, COMPONENT >::set( const SharedUNOComponent& _rComp, ::com::sun::star::uno::UnoReference_SetThrow _setThrow )
{
@@ -325,7 +310,6 @@ namespace utl
m_xTypedComponent.set( m_xTypedComponent, _setThrow );
}
-
template < class INTERFACE, class COMPONENT >
bool SharedUNOComponent< INTERFACE, COMPONENT >::set( ::com::sun::star::uno::XInterface* _pInterface, ::com::sun::star::uno::UnoReference_Query _query )
{
@@ -333,7 +317,6 @@ namespace utl
return is();
}
-
template < class INTERFACE, class COMPONENT >
bool SharedUNOComponent< INTERFACE, COMPONENT >::set( const ::com::sun::star::uno::BaseReference& _rRef, ::com::sun::star::uno::UnoReference_Query _query )
{
@@ -341,7 +324,6 @@ namespace utl
return is();
}
-
template < class INTERFACE, class COMPONENT >
bool SharedUNOComponent< INTERFACE, COMPONENT >::set( const ::com::sun::star::uno::Any& _rAny, ::com::sun::star::uno::UnoReference_Query _query )
{
@@ -349,10 +331,8 @@ namespace utl
return is();
}
-
} // namespace utl
-
#endif // INCLUDED_UNOTOOLS_SHAREDUNOCOMPONENT_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */