Fix previous commit (vcl part)
Change-Id: Ic46dae26076b87b0ef021c926604cbb2dfe6e198
This commit is contained in:
@@ -615,7 +615,7 @@ bool SelectionManager::convertData(
|
||||
if( aFlavor.MimeType.getToken( 0, ';', nIndex ).equalsAscii( "text/plain" ) )
|
||||
{
|
||||
if( aFlavor.MimeType.getToken( 0, ';', nIndex ).equalsAscii( "charset=utf-16" ) )
|
||||
aFlavor.DataType = cppu::UnoType<OUString>::get() 0 );
|
||||
aFlavor.DataType = cppu::UnoType<OUString>::get();
|
||||
else
|
||||
aFlavor.DataType = getCppuType( (Sequence< sal_Int8 >*)0 );
|
||||
}
|
||||
@@ -649,7 +649,7 @@ bool SelectionManager::convertData(
|
||||
if( aEncoding != RTL_TEXTENCODING_DONTKNOW || bCompoundText )
|
||||
{
|
||||
aFlavor.MimeType = "text/plain;charset=utf-16";
|
||||
aFlavor.DataType = cppu::UnoType<OUString>::get() 0 );
|
||||
aFlavor.DataType = cppu::UnoType<OUString>::get();
|
||||
if( xTransferable->isDataFlavorSupported( aFlavor ) )
|
||||
{
|
||||
Any aValue( xTransferable->getTransferData( aFlavor ) );
|
||||
@@ -1331,7 +1331,7 @@ bool SelectionManager::getPasteDataTypes( Atom selection, Sequence< DataFlavor >
|
||||
if( aToken.equalsAscii( "charset=utf-16" ) )
|
||||
{
|
||||
bHaveUTF16 = true;
|
||||
pFlavors->DataType = cppu::UnoType<OUString>::get()0 );
|
||||
pFlavors->DataType = cppu::UnoType<OUString>::get();
|
||||
}
|
||||
else if( aToken.equalsAscii( "charset=utf-8" ) )
|
||||
{
|
||||
@@ -1356,7 +1356,7 @@ bool SelectionManager::getPasteDataTypes( Atom selection, Sequence< DataFlavor >
|
||||
for( i = 0; i < nNewFlavors-1; i++ )
|
||||
aTemp.getArray()[i+1] = rTypes.getConstArray()[i];
|
||||
aTemp.getArray()[0].MimeType = "text/plain;charset=utf-16";
|
||||
aTemp.getArray()[0].DataType = cppu::UnoType<OUString>::get()0 );
|
||||
aTemp.getArray()[0].DataType = cppu::UnoType<OUString>::get();
|
||||
rTypes = aTemp;
|
||||
|
||||
std::vector< Atom > aNativeTemp( nNewFlavors );
|
||||
|
@@ -95,7 +95,7 @@ sal_Bool SAL_CALL X11Transferable::isDataFlavorSupported( const DataFlavor& aFla
|
||||
if( aFlavor.DataType != getCppuType( (Sequence< sal_Int8 >*)0 ) )
|
||||
{
|
||||
if( ! aFlavor.MimeType.equalsIgnoreAsciiCase( "text/plain;charset=utf-16" ) &&
|
||||
aFlavor.DataType == cppu::UnoType<OUString>::get()0 ) )
|
||||
aFlavor.DataType == cppu::UnoType<OUString>::get() )
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user