vcl: add/unify some clipboard SAL_INFO tracing

Change-Id: I4989da02cbc82d253a486a7adde95551eddb45b3
This commit is contained in:
Thorsten Behrens
2016-11-15 03:30:52 +01:00
parent 074f0ab1d7
commit d55bbd9ea2
2 changed files with 3 additions and 2 deletions

View File

@@ -769,6 +769,7 @@ void SelectionManager::convertTypeToNative( const OUString& rType, Atom selectio
int nTabEntries = selection == m_nXdndSelection ? SAL_N_ELEMENTS(aXdndConversionTab) : SAL_N_ELEMENTS(aNativeConversionTab);
OString aType( OUStringToOString( rType, RTL_TEXTENCODING_ISO_8859_1 ) );
SAL_INFO( "vcl.unx.dtrans", "convertTypeToNative " << aType );
rFormat = 0;
for( int i = 0; i < nTabEntries; i++ )
{
@@ -1457,7 +1458,7 @@ bool SelectionManager::sendData( SelectionAdaptor* pAdaptor,
// conversion succeeded, so aData contains image/bmp now
if( pPixmap->needsConversion( reinterpret_cast<const sal_uInt8*>(aData.getConstArray()) ) )
{
SAL_INFO( "vcl", "trying bitmap conversion" );
SAL_INFO( "vcl.unx.dtrans", "trying bitmap conversion" );
int depth = pPixmap->getDepth();
aGuard.clear();
aData = convertBitmapDepth(aData, depth);

View File

@@ -62,7 +62,7 @@ Any SAL_CALL X11Transferable::getTransferData( const DataFlavor& rFlavor )
if( reinterpret_cast<sal_Unicode const *>(aData.getConstArray())[nLen-1] == 0 )
nLen--;
OUString aString( reinterpret_cast<sal_Unicode const *>(aData.getConstArray()), nLen );
SAL_INFO( "vcl", "X11Transferable::getTransferData( \"" << rFlavor.MimeType << "\" )\n -> \"" << aString << "\"\n");
SAL_INFO( "vcl.unx.dtrans", "X11Transferable::getTransferData( \"" << rFlavor.MimeType << "\" )\n -> \"" << aString << "\"\n");
aRet <<= aString.replaceAll("\r\n", "\n");
}
else