summaryrefslogtreecommitdiff
path: root/vcl/unx/generic/dtrans/X11_selection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/unx/generic/dtrans/X11_selection.cxx')
-rw-r--r--vcl/unx/generic/dtrans/X11_selection.cxx117
1 files changed, 0 insertions, 117 deletions
diff --git a/vcl/unx/generic/dtrans/X11_selection.cxx b/vcl/unx/generic/dtrans/X11_selection.cxx
index 396f49619a90..9922696d8b7b 100644
--- a/vcl/unx/generic/dtrans/X11_selection.cxx
+++ b/vcl/unx/generic/dtrans/X11_selection.cxx
@@ -87,7 +87,6 @@ using namespace cppu;
using namespace x11;
-
// stubs to satisfy solaris compiler's rather rigid linking warning
extern "C"
{
@@ -102,7 +101,6 @@ extern "C"
}
}
-
static const long nXdndProtocolRevision = 5;
// mapping between mime types (or what the office thinks of mime types)
@@ -202,16 +200,12 @@ rtl_TextEncoding x11::getTextPlainEncoding( const OUString& rMimeType )
return aEncoding;
}
-
-
::boost::unordered_map< OUString, SelectionManager*, OUStringHash >& SelectionManager::getInstances()
{
static ::boost::unordered_map< OUString, SelectionManager*, OUStringHash > aInstances;
return aInstances;
}
-
-
SelectionManager::SelectionManager() :
m_nIncrementalThreshold( 15*1024 ),
m_pDisplay( NULL ),
@@ -436,9 +430,6 @@ void SelectionManager::initialize( const Sequence< Any >& arguments ) throw (::c
nodrop_curs_x_hot,
nodrop_curs_y_hot );
-
-
-
// just interested in SelectionClear/Notify/Request and PropertyChange
XSelectInput( m_pDisplay, m_aWindow, PropertyChangeMask );
// create the transferable for Drag operations
@@ -464,8 +455,6 @@ void SelectionManager::initialize( const Sequence< Any >& arguments ) throw (::c
}
}
-
-
SelectionManager::~SelectionManager()
{
#if OSL_DEBUG_LEVEL > 1
@@ -529,8 +518,6 @@ SelectionManager::~SelectionManager()
}
}
-
-
SelectionAdaptor* SelectionManager::getAdaptor( Atom selection )
{
::boost::unordered_map< Atom, Selection* >::iterator it =
@@ -538,8 +525,6 @@ SelectionAdaptor* SelectionManager::getAdaptor( Atom selection )
return it != m_aSelections.end() ? it->second->m_pAdaptor : NULL;
}
-
-
OUString SelectionManager::convertFromCompound( const char* pText, int nLen )
{
osl::MutexGuard aGuard( m_aMutex );
@@ -569,8 +554,6 @@ OUString SelectionManager::convertFromCompound( const char* pText, int nLen )
return aRet;
}
-
-
OString SelectionManager::convertToCompound( const OUString& rText )
{
osl::MutexGuard aGuard( m_aMutex );
@@ -609,8 +592,6 @@ OString SelectionManager::convertToCompound( const OUString& rText )
return aRet;
}
-
-
bool SelectionManager::convertData(
const css::uno::Reference< XTransferable >& xTransferable,
Atom nType,
@@ -689,8 +670,6 @@ bool SelectionManager::convertData(
return bSuccess;
}
-
-
SelectionManager& SelectionManager::get( const OUString& rDisplayName )
{
osl::MutexGuard aGuard( *osl::Mutex::getGlobalMutex() );
@@ -708,8 +687,6 @@ SelectionManager& SelectionManager::get( const OUString& rDisplayName )
return *pInstance;
}
-
-
const OUString& SelectionManager::getString( Atom aAtom )
{
osl::MutexGuard aGuard(m_aMutex);
@@ -729,8 +706,6 @@ const OUString& SelectionManager::getString( Atom aAtom )
return m_aAtomToString[ aAtom ];
}
-
-
Atom SelectionManager::getAtom( const OUString& rString )
{
osl::MutexGuard aGuard(m_aMutex);
@@ -746,8 +721,6 @@ Atom SelectionManager::getAtom( const OUString& rString )
return m_aStringToAtom[ rString ];
}
-
-
bool SelectionManager::requestOwnership( Atom selection )
{
bool bSuccess = false;
@@ -790,8 +763,6 @@ bool SelectionManager::requestOwnership( Atom selection )
return bSuccess;
}
-
-
void SelectionManager::convertTypeToNative( const OUString& rType, Atom selection, int& rFormat, ::std::list< Atom >& rConversions, bool bPushFront )
{
NativeTypeEntry* pTab = selection == m_nXdndSelection ? aXdndConversionTab : aNativeConversionTab;
@@ -833,8 +804,6 @@ void SelectionManager::convertTypeToNative( const OUString& rType, Atom selectio
rConversions.push_back( getAtom( rType ) );
};
-
-
void SelectionManager::getNativeTypeList( const Sequence< DataFlavor >& rTypes, std::list< Atom >& rOutTypeList, Atom targetselection )
{
rOutTypeList.clear();
@@ -864,8 +833,6 @@ void SelectionManager::getNativeTypeList( const Sequence< DataFlavor >& rTypes,
rOutTypeList.push_back( m_nMULTIPLEAtom );
}
-
-
OUString SelectionManager::convertTypeFromNative( Atom nType, Atom selection, int& rFormat )
{
NativeTypeEntry* pTab = (selection == m_nXdndSelection) ? aXdndConversionTab : aNativeConversionTab;
@@ -885,8 +852,6 @@ OUString SelectionManager::convertTypeFromNative( Atom nType, Atom selection, in
return getString( nType );
}
-
-
bool SelectionManager::getPasteData( Atom selection, Atom type, Sequence< sal_Int8 >& rData )
{
osl::ResettableMutexGuard aGuard(m_aMutex);
@@ -1023,8 +988,6 @@ bool SelectionManager::getPasteData( Atom selection, Atom type, Sequence< sal_In
return bSuccess;
}
-
-
bool SelectionManager::getPasteData( Atom selection, const OUString& rType, Sequence< sal_Int8 >& rData )
{
bool bSuccess = false;
@@ -1238,8 +1201,6 @@ bool SelectionManager::getPasteData( Atom selection, const OUString& rType, Sequ
return bSuccess;
}
-
-
bool SelectionManager::getPasteDataTypes( Atom selection, Sequence< DataFlavor >& rTypes )
{
::boost::unordered_map< Atom, Selection* >::iterator it;
@@ -1443,8 +1404,6 @@ bool SelectionManager::getPasteDataTypes( Atom selection, Sequence< DataFlavor >
return bSuccess;
}
-
-
PixmapHolder* SelectionManager::getPixmapHolder( Atom selection )
{
boost::unordered_map< Atom, Selection* >::const_iterator it = m_aSelections.find( selection );
@@ -1603,8 +1562,6 @@ bool SelectionManager::sendData( SelectionAdaptor* pAdaptor,
return bConverted;
}
-
-
bool SelectionManager::handleSelectionRequest( XSelectionRequestEvent& rRequest )
{
osl::ResettableMutexGuard aGuard( m_aMutex );
@@ -1812,8 +1769,6 @@ bool SelectionManager::handleSelectionRequest( XSelectionRequestEvent& rRequest
return true;
}
-
-
bool SelectionManager::handleReceivePropertyNotify( XPropertyEvent& rNotify )
{
osl::MutexGuard aGuard( m_aMutex );
@@ -1931,8 +1886,6 @@ bool SelectionManager::handleReceivePropertyNotify( XPropertyEvent& rNotify )
return bHandled;
}
-
-
bool SelectionManager::handleSendPropertyNotify( XPropertyEvent& rNotify )
{
osl::MutexGuard aGuard( m_aMutex );
@@ -2031,8 +1984,6 @@ bool SelectionManager::handleSendPropertyNotify( XPropertyEvent& rNotify )
return bHandled;
}
-
-
bool SelectionManager::handleSelectionNotify( XSelectionEvent& rNotify )
{
osl::MutexGuard aGuard( m_aMutex );
@@ -2124,8 +2075,6 @@ bool SelectionManager::handleSelectionNotify( XSelectionEvent& rNotify )
return bHandled;
}
-
-
bool SelectionManager::handleDropEvent( XClientMessageEvent& rMessage )
{
osl::ResettableMutexGuard aGuard(m_aMutex);
@@ -2374,8 +2323,6 @@ void SelectionManager::dropComplete( bool bSuccess, XLIB_Window aDropWindow, XLI
* methods for XDropTargetDragContext
*/
-
-
void SelectionManager::sendDragStatus( Atom nDropAction )
{
osl::ClearableMutexGuard aGuard(m_aMutex);
@@ -2443,15 +2390,11 @@ void SelectionManager::sendDragStatus( Atom nDropAction )
}
}
-
-
sal_Int8 SelectionManager::getUserDragAction() const
{
return (m_nTargetAcceptAction != DNDConstants::ACTION_DEFAULT) ? m_nTargetAcceptAction : m_nUserDragAction;
}
-
-
bool SelectionManager::updateDragAction( int modifierState )
{
bool bRet = false;
@@ -2503,8 +2446,6 @@ bool SelectionManager::updateDragAction( int modifierState )
return bRet;
}
-
-
void SelectionManager::sendDropPosition( bool bForce, XLIB_Time eventTime )
{
osl::ClearableMutexGuard aGuard(m_aMutex);
@@ -2563,8 +2504,6 @@ void SelectionManager::sendDropPosition( bool bForce, XLIB_Time eventTime )
}
}
-
-
bool SelectionManager::handleDragEvent( XEvent& rMessage )
{
if( ! m_xDragSourceListener.is() )
@@ -2884,8 +2823,6 @@ bool SelectionManager::handleDragEvent( XEvent& rMessage )
return bHandled;
}
-
-
void SelectionManager::accept( sal_Int8 dragOperation, XLIB_Window aDropWindow, XLIB_Time )
{
if( aDropWindow == m_aCurrentDropWindow )
@@ -2906,8 +2843,6 @@ void SelectionManager::accept( sal_Int8 dragOperation, XLIB_Window aDropWindow,
}
}
-
-
void SelectionManager::reject( XLIB_Window aDropWindow, XLIB_Time )
{
if( aDropWindow == m_aCurrentDropWindow )
@@ -2940,8 +2875,6 @@ sal_Bool SelectionManager::isDragImageSupported() throw(std::exception)
return false;
}
-
-
sal_Int32 SelectionManager::getDefaultCursor( sal_Int8 dragAction ) throw(std::exception)
{
XLIB_Cursor aCursor = m_aNoneCursor;
@@ -2954,8 +2887,6 @@ sal_Int32 SelectionManager::getDefaultCursor( sal_Int8 dragAction ) throw(std::e
return aCursor;
}
-
-
int SelectionManager::getXdndVersion( XLIB_Window aWindow, XLIB_Window& rProxy )
{
Atom* pProperties = NULL;
@@ -3025,8 +2956,6 @@ int SelectionManager::getXdndVersion( XLIB_Window aWindow, XLIB_Window& rProxy )
return nVersion;
}
-
-
void SelectionManager::updateDragWindow( int nX, int nY, XLIB_Window aRoot )
{
osl::ResettableMutexGuard aGuard( m_aMutex );
@@ -3071,7 +3000,6 @@ void SelectionManager::updateDragWindow( int nX, int nY, XLIB_Window aRoot )
}
}
-
DragSourceDragEvent dsde;
dsde.Source = static_cast< OWeakObject* >(this);
dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
@@ -3184,8 +3112,6 @@ void SelectionManager::updateDragWindow( int nX, int nY, XLIB_Window aRoot )
}
}
-
-
void SelectionManager::startDrag(
const DragGestureEvent& trigger,
sal_Int8 sourceActions,
@@ -3280,7 +3206,6 @@ void SelectionManager::startDrag(
aParent = aChild;
} while( aChild != None );
-
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "try to grab pointer ... " );
#endif
@@ -3534,8 +3459,6 @@ sal_Int32 SelectionManager::getCurrentCursor()
return m_aCurrentCursor;
}
-
-
void SelectionManager::setCursor( sal_Int32 cursor, XLIB_Window aDropWindow, XLIB_Time )
{
osl::MutexGuard aGuard( m_aMutex );
@@ -3550,14 +3473,10 @@ void SelectionManager::setCursor( sal_Int32 cursor, XLIB_Window aDropWindow, XLI
}
}
-
-
void SelectionManager::setImage( sal_Int32, XLIB_Window, XLIB_Time )
{
}
-
-
void SelectionManager::transferablesFlavorsChanged()
{
osl::MutexGuard aGuard(m_aMutex);
@@ -3609,8 +3528,6 @@ void SelectionManager::transferablesFlavorsChanged()
* dispatch loop
*/
-
-
bool SelectionManager::handleXEvent( XEvent& rEvent )
{
/*
@@ -3695,8 +3612,6 @@ bool SelectionManager::handleXEvent( XEvent& rEvent )
return bHandled;
}
-
-
void SelectionManager::dispatchEvent( int millisec )
{
// acquire the mutex to prevent other threads
@@ -3737,8 +3652,6 @@ void SelectionManager::dispatchEvent( int millisec )
}
}
-
-
void SelectionManager::run( void* pThis )
{
#if OSL_DEBUG_LEVEL > 1
@@ -3862,8 +3775,6 @@ void SelectionManager::shutdown() throw()
m_xDropTransferable.clear();
}
-
-
sal_Bool SelectionManager::handleEvent( const Any& event ) throw(std::exception)
{
Sequence< sal_Int8 > aSeq;
@@ -3922,8 +3833,6 @@ void SAL_CALL SelectionManager::notifyTermination( const ::com::sun::star::lang:
disposing(rEvent);
}
-
-
void SelectionManager::registerHandler( Atom selection, SelectionAdaptor& rAdaptor )
{
osl::MutexGuard aGuard(m_aMutex);
@@ -3934,8 +3843,6 @@ void SelectionManager::registerHandler( Atom selection, SelectionAdaptor& rAdapt
m_aSelections[ selection ] = pNewSelection;
}
-
-
void SelectionManager::deregisterHandler( Atom selection )
{
osl::MutexGuard aGuard(m_aMutex);
@@ -3950,8 +3857,6 @@ void SelectionManager::deregisterHandler( Atom selection )
}
}
-
-
static bool bWasError = false;
extern "C"
@@ -4006,8 +3911,6 @@ void SelectionManager::registerDropTarget( XLIB_Window aWindow, DropTarget* pTar
OSL_FAIL( "attempt to register None as drop target" );
}
-
-
void SelectionManager::deregisterDropTarget( XLIB_Window aWindow )
{
osl::ClearableMutexGuard aGuard(m_aMutex);
@@ -4062,28 +3965,20 @@ css::uno::Reference< XTransferable > SelectionManager::getTransferable() throw()
return m_xDragSourceTransferable;
}
-
-
void SelectionManager::clearTransferable() throw()
{
m_xDragSourceTransferable.clear();
}
-
-
void SelectionManager::fireContentsChanged() throw()
{
}
-
-
css::uno::Reference< XInterface > SelectionManager::getReference() throw()
{
return css::uno::Reference< XInterface >( static_cast<OWeakObject*>(this) );
}
-
-
/*
* SelectionManagerHolder
*/
@@ -4096,14 +3991,10 @@ SelectionManagerHolder::SelectionManagerHolder() :
{
}
-
-
SelectionManagerHolder::~SelectionManagerHolder()
{
}
-
-
void SelectionManagerHolder::initialize( const Sequence< Any >& arguments ) throw( ::com::sun::star::uno::Exception, std::exception )
{
OUString aDisplayName;
@@ -4133,15 +4024,11 @@ sal_Bool SelectionManagerHolder::isDragImageSupported() throw(std::exception)
return m_xRealDragSource.is() ? m_xRealDragSource->isDragImageSupported() : false;
}
-
-
sal_Int32 SelectionManagerHolder::getDefaultCursor( sal_Int8 dragAction ) throw(std::exception)
{
return m_xRealDragSource.is() ? m_xRealDragSource->getDefaultCursor( dragAction ) : 0;
}
-
-
void SelectionManagerHolder::startDrag(
const ::com::sun::star::datatransfer::dnd::DragGestureEvent& trigger,
sal_Int8 sourceActions, sal_Int32 cursor, sal_Int32 image,
@@ -4153,14 +4040,10 @@ void SelectionManagerHolder::startDrag(
m_xRealDragSource->startDrag( trigger, sourceActions, cursor, image, transferable, listener );
}
-
-
/*
* XServiceInfo
*/
-
-
OUString SelectionManagerHolder::getImplementationName() throw(std::exception)
{
return OUString(XDND_IMPLEMENTATION_NAME);