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.cxx32
1 files changed, 0 insertions, 32 deletions
diff --git a/dtrans/source/win32/clipb/WinClipboard.cxx b/dtrans/source/win32/clipb/WinClipboard.cxx
index 66b3f582eaf2..6870052c6b0f 100644
--- a/dtrans/source/win32/clipb/WinClipboard.cxx
+++ b/dtrans/source/win32/clipb/WinClipboard.cxx
@@ -25,10 +25,8 @@
#include <cppuhelper/supportsservice.hxx>
#include "WinClipbImpl.hxx"
-
// namespace directives
-
using namespace osl;
using namespace std;
using namespace cppu;
@@ -38,13 +36,10 @@ using namespace com::sun::star::datatransfer;
using namespace com::sun::star::datatransfer::clipboard;
using namespace com::sun::star::lang;
-
#define WINCLIPBOARD_IMPL_NAME "com.sun.star.datatransfer.clipboard.ClipboardW32"
-
// helper functions
-
namespace
{
Sequence< OUString > SAL_CALL WinClipboard_getSupportedServiceNames()
@@ -55,7 +50,6 @@ namespace
}
}
-
// ctor
/*XEventListener,*/
@@ -66,10 +60,7 @@ CWinClipboard::CWinClipboard( const Reference< XComponentContext >& rxContext, c
m_pImpl.reset( new CWinClipbImpl( aClipboardName, this ) );
}
-//========================================================================
// XClipboard
-//========================================================================
-
// getContent
// to avoid unecessary traffic we check first if there is a clipboard
@@ -78,7 +69,6 @@ CWinClipboard::CWinClipboard( const Reference< XComponentContext >& rxContext, c
// and so on, we simply return the orignial XTransferable instead of our
// DOTransferable
-
Reference< XTransferable > SAL_CALL CWinClipboard::getContents( ) throw( RuntimeException )
{
MutexGuard aGuard( m_aMutex );
@@ -93,10 +83,8 @@ Reference< XTransferable > SAL_CALL CWinClipboard::getContents( ) throw( Runtime
return Reference< XTransferable >( );
}
-
// setContent
-
void SAL_CALL CWinClipboard::setContents( const Reference< XTransferable >& xTransferable,
const Reference< XClipboardOwner >& xClipboardOwner )
throw( RuntimeException )
@@ -111,10 +99,8 @@ void SAL_CALL CWinClipboard::setContents( const Reference< XTransferable >& xTra
m_pImpl->setContents( xTransferable, xClipboardOwner );
}
-
// getName
-
OUString SAL_CALL CWinClipboard::getName( ) throw( RuntimeException )
{
if ( rBHelper.bDisposed )
@@ -127,9 +113,7 @@ OUString SAL_CALL CWinClipboard::getName( ) throw( RuntimeException )
return OUString("");
}
-//========================================================================
// XFlushableClipboard
-//========================================================================
void SAL_CALL CWinClipboard::flushClipboard( ) throw( RuntimeException )
{
@@ -143,9 +127,7 @@ void SAL_CALL CWinClipboard::flushClipboard( ) throw( RuntimeException )
m_pImpl->flushClipboard( );
}
-//========================================================================
// XClipboardEx
-//========================================================================
sal_Int8 SAL_CALL CWinClipboard::getRenderingCapabilities( ) throw( RuntimeException )
{
@@ -159,14 +141,10 @@ sal_Int8 SAL_CALL CWinClipboard::getRenderingCapabilities( ) throw( RuntimeExce
return 0;
}
-//========================================================================
// XClipboardNotifier
-//========================================================================
-
// getName
-
void SAL_CALL CWinClipboard::addClipboardListener( const Reference< XClipboardListener >& listener )
throw( RuntimeException )
{
@@ -183,10 +161,8 @@ void SAL_CALL CWinClipboard::addClipboardListener( const Reference< XClipboardLi
rBHelper.aLC.addInterface( getCppuType( &listener ), listener );
}
-
// getName
-
void SAL_CALL CWinClipboard::removeClipboardListener( const Reference< XClipboardListener >& listener )
throw( RuntimeException )
{
@@ -203,10 +179,8 @@ void SAL_CALL CWinClipboard::removeClipboardListener( const Reference< XClipboar
rBHelper.aLC.removeInterface( getCppuType( &listener ), listener );
}
-
// getName
-
void SAL_CALL CWinClipboard::notifyAllClipboardListener( )
{
if ( !rBHelper.bDisposed )
@@ -254,11 +228,9 @@ void SAL_CALL CWinClipboard::notifyAllClipboardListener( )
} // end if
}
-
// overwritten base class method which will be
// called by the base class dispose method
-
void SAL_CALL CWinClipboard::disposing()
{
// do my own stuff
@@ -268,10 +240,8 @@ void SAL_CALL CWinClipboard::disposing()
m_pImpl.reset();
}
-
// XServiceInfo
-
OUString SAL_CALL CWinClipboard::getImplementationName( )
throw(RuntimeException)
{
@@ -285,10 +255,8 @@ sal_Bool SAL_CALL CWinClipboard::supportsService( const OUString& ServiceName )
return cppu::supportsService(this, ServiceName);
}
-
// XServiceInfo
-
Sequence< OUString > SAL_CALL CWinClipboard::getSupportedServiceNames( )
throw(RuntimeException)
{