summaryrefslogtreecommitdiff
path: root/dtrans/source/win32/clipb/WinClipboard.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dtrans/source/win32/clipb/WinClipboard.cxx')
-rw-r--r--dtrans/source/win32/clipb/WinClipboard.cxx58
1 files changed, 29 insertions, 29 deletions
diff --git a/dtrans/source/win32/clipb/WinClipboard.cxx b/dtrans/source/win32/clipb/WinClipboard.cxx
index 8439040a6337..36f05bee534d 100644
--- a/dtrans/source/win32/clipb/WinClipboard.cxx
+++ b/dtrans/source/win32/clipb/WinClipboard.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -77,8 +77,8 @@ namespace
// ctor
//------------------------------------------------------------------------
/*XEventListener,*/
-CWinClipboard::CWinClipboard( const Reference< XMultiServiceFactory >& rServiceManager, const OUString& aClipboardName ) :
- WeakComponentImplHelper4< XClipboardEx, XFlushableClipboard, XClipboardNotifier, XServiceInfo >( m_aCbListenerMutex ),
+CWinClipboard::CWinClipboard( const Reference< XMultiServiceFactory >& rServiceManager, const OUString& aClipboardName ) :
+ WeakComponentImplHelper4< XClipboardEx, XFlushableClipboard, XClipboardNotifier, XServiceInfo >( m_aCbListenerMutex ),
m_SrvMgr( rServiceManager )
{
m_pImpl.reset( new CWinClipbImpl( aClipboardName, this ) );
@@ -91,7 +91,7 @@ CWinClipboard::CWinClipboard( const Reference< XMultiServiceFactory >& rServiceM
//------------------------------------------------------------------------
// getContent
// to avoid unecessary traffic we check first if there is a clipboard
-// content which was set via setContent, in this case we don't need
+// content which was set via setContent, in this case we don't need
// to query the content from the clipboard, create a new wrapper object
// and so on, we simply return the orignial XTransferable instead of our
// DOTransferable
@@ -100,7 +100,7 @@ CWinClipboard::CWinClipboard( const Reference< XMultiServiceFactory >& rServiceM
Reference< XTransferable > SAL_CALL CWinClipboard::getContents( ) throw( RuntimeException )
{
MutexGuard aGuard( m_aMutex );
-
+
if ( rBHelper.bDisposed )
throw DisposedException( OUString::createFromAscii( "object is already disposed" ),
static_cast< XClipboardEx* >( this ) );
@@ -116,7 +116,7 @@ Reference< XTransferable > SAL_CALL CWinClipboard::getContents( ) throw( Runtime
//------------------------------------------------------------------------
void SAL_CALL CWinClipboard::setContents( const Reference< XTransferable >& xTransferable,
- const Reference< XClipboardOwner >& xClipboardOwner )
+ const Reference< XClipboardOwner >& xClipboardOwner )
throw( RuntimeException )
{
MutexGuard aGuard( m_aMutex );
@@ -166,26 +166,26 @@ void SAL_CALL CWinClipboard::flushClipboard( ) throw( RuntimeException )
//========================================================================
sal_Int8 SAL_CALL CWinClipboard::getRenderingCapabilities( ) throw( RuntimeException )
-{
+{
if ( rBHelper.bDisposed )
throw DisposedException( OUString::createFromAscii( "object is already disposed" ),
static_cast< XClipboardEx* >( this ) );
if ( NULL != m_pImpl.get( ) )
- return m_pImpl->getRenderingCapabilities( );
+ return m_pImpl->getRenderingCapabilities( );
return 0;
}
//========================================================================
-// XClipboardNotifier
+// XClipboardNotifier
//========================================================================
//------------------------------------------------------------------------
// getName
//------------------------------------------------------------------------
-void SAL_CALL CWinClipboard::addClipboardListener( const Reference< XClipboardListener >& listener )
+void SAL_CALL CWinClipboard::addClipboardListener( const Reference< XClipboardListener >& listener )
throw( RuntimeException )
{
if ( rBHelper.bDisposed )
@@ -194,18 +194,18 @@ void SAL_CALL CWinClipboard::addClipboardListener( const Reference< XClipboardLi
// check input parameter
if ( !listener.is( ) )
- throw IllegalArgumentException( OUString::createFromAscii( "empty reference" ),
- static_cast< XClipboardEx* >( this ),
+ throw IllegalArgumentException( OUString::createFromAscii( "empty reference" ),
+ static_cast< XClipboardEx* >( this ),
1 );
- rBHelper.aLC.addInterface( getCppuType( &listener ), listener );
+ rBHelper.aLC.addInterface( getCppuType( &listener ), listener );
}
//------------------------------------------------------------------------
// getName
//------------------------------------------------------------------------
-void SAL_CALL CWinClipboard::removeClipboardListener( const Reference< XClipboardListener >& listener )
+void SAL_CALL CWinClipboard::removeClipboardListener( const Reference< XClipboardListener >& listener )
throw( RuntimeException )
{
if ( rBHelper.bDisposed )
@@ -218,7 +218,7 @@ void SAL_CALL CWinClipboard::removeClipboardListener( const Reference< XClipboar
static_cast< XClipboardEx* >( this ),
1 );
- rBHelper.aLC.removeInterface( getCppuType( &listener ), listener );
+ rBHelper.aLC.removeInterface( getCppuType( &listener ), listener );
}
//------------------------------------------------------------------------
@@ -234,17 +234,17 @@ void SAL_CALL CWinClipboard::notifyAllClipboardListener( )
{
aGuard.clear( );
- OInterfaceContainerHelper* pICHelper = rBHelper.aLC.getContainer(
+ OInterfaceContainerHelper* pICHelper = rBHelper.aLC.getContainer(
getCppuType( ( Reference< XClipboardListener > * ) 0 ) );
if ( pICHelper )
- {
+ {
try
{
OInterfaceIteratorHelper iter(*pICHelper);
Reference<XTransferable> rXTransf(m_pImpl->getContents());
ClipboardEvent aClipbEvent(static_cast<XClipboard*>(this), rXTransf);
-
+
while(iter.hasMoreElements())
{
try
@@ -256,24 +256,24 @@ void SAL_CALL CWinClipboard::notifyAllClipboardListener( )
catch(RuntimeException&)
{
OSL_ENSURE( false, "RuntimeException caught" );
- }
- }
+ }
+ }
}
catch(const ::com::sun::star::lang::DisposedException&)
- {
+ {
OSL_ENSURE(false, "Service Manager disposed");
-
+
// no further clipboard changed notifications
m_pImpl->unregisterClipboardViewer();
}
-
+
} // end if
} // end if
} // end if
}
//------------------------------------------------
-// overwritten base class method which will be
+// overwritten base class method which will be
// called by the base class dispose method
//------------------------------------------------
@@ -290,17 +290,17 @@ void SAL_CALL CWinClipboard::disposing()
// XServiceInfo
// -------------------------------------------------
-OUString SAL_CALL CWinClipboard::getImplementationName( )
+OUString SAL_CALL CWinClipboard::getImplementationName( )
throw(RuntimeException)
{
return OUString::createFromAscii( WINCLIPBOARD_IMPL_NAME );
}
// -------------------------------------------------
-// XServiceInfo
+// XServiceInfo
// -------------------------------------------------
-sal_Bool SAL_CALL CWinClipboard::supportsService( const OUString& ServiceName )
+sal_Bool SAL_CALL CWinClipboard::supportsService( const OUString& ServiceName )
throw(RuntimeException)
{
Sequence < OUString > SupportedServicesNames = WinClipboard_getSupportedServiceNames();
@@ -313,10 +313,10 @@ sal_Bool SAL_CALL CWinClipboard::supportsService( const OUString& ServiceName )
}
// -------------------------------------------------
-// XServiceInfo
+// XServiceInfo
// -------------------------------------------------
-Sequence< OUString > SAL_CALL CWinClipboard::getSupportedServiceNames( )
+Sequence< OUString > SAL_CALL CWinClipboard::getSupportedServiceNames( )
throw(RuntimeException)
{
return WinClipboard_getSupportedServiceNames();