Os2Transferable.cxx (d2a43be3) | Os2Transferable.cxx (a7e9c4d8) |
---|---|
1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * --- 99 unchanged lines hidden (view full) --- 108 aRet <<= aString; 109 } 110 UWinCloseClipbrd( hAB ); 111 if (pszText) 112 return aRet; 113 } 114 } 115 | 1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * --- 99 unchanged lines hidden (view full) --- 108 aRet <<= aString; 109 } 110 UWinCloseClipbrd( hAB ); 111 if (pszText) 112 return aRet; 113 } 114 } 115 |
116 // retrieve bitmap 117 if( rFlavor.MimeType.equalsIgnoreAsciiCase( OUString::createFromAscii( "application/x-openoffice-bitmap;windows_formatname=\"Bitmap\"" ) ) ) 118 { 119 if( UWinOpenClipbrd( hAB ) ) 120 { 121 // check if clipboard has text format 122 ULONG handle = UWinQueryClipbrdData( hAB, UCLIP_CF_BITMAP); 123 if (handle) { 124 Sequence< sal_Int8 > winDIBStream; 125 // convert to oustring and return it 126 if (OS2HandleToOOoBmp( handle, &winDIBStream)) 127 aRet <<= winDIBStream; 128 else 129 handle = 0; 130 } 131 UWinCloseClipbrd( hAB ); 132 if (handle) 133 return aRet; 134 } 135 } 136 |
|
116 // clipboard format unsupported, throw exception 117 throw UnsupportedFlavorException( rFlavor.MimeType, static_cast < XTransferable * > ( this ) ); 118} 119 120//================================================================================================== 121 122Sequence< DataFlavor > SAL_CALL Os2Transferable::getTransferDataFlavors() 123 throw(RuntimeException) --- 32 unchanged lines hidden --- | 137 // clipboard format unsupported, throw exception 138 throw UnsupportedFlavorException( rFlavor.MimeType, static_cast < XTransferable * > ( this ) ); 139} 140 141//================================================================================================== 142 143Sequence< DataFlavor > SAL_CALL Os2Transferable::getTransferDataFlavors() 144 throw(RuntimeException) --- 32 unchanged lines hidden --- |