Os2Clipboard.cxx (e18b2daf) Os2Clipboard.cxx (1ac7a910)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 284 unchanged lines hidden (view full) ---

293 {
294 hbm = OOoBmpToOS2Handle( aAnyB);
295 debug_printf("Os2Clipboard::setContents SetClipbrdData bitmap done\n");
296 }
297 } catch ( UnsupportedFlavorException&) {
298 debug_printf("Os2Clipboard::setContents UnsupportedFlavorException (no bitmap)\n");
299 }
300
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 284 unchanged lines hidden (view full) ---

293 {
294 hbm = OOoBmpToOS2Handle( aAnyB);
295 debug_printf("Os2Clipboard::setContents SetClipbrdData bitmap done\n");
296 }
297 } catch ( UnsupportedFlavorException&) {
298 debug_printf("Os2Clipboard::setContents UnsupportedFlavorException (no bitmap)\n");
299 }
300
301 // copy to clipboard
302 if ( UWinOpenClipbrd( hAB) && (pSharedText || hbm))
301 // copy to clipboard only if we have data available, otherwise clipboard
302 // remains in use and locks all other applications.
303 if ( (pSharedText || hbm) && UWinOpenClipbrd( hAB) )
303 {
304 // set the flag, so we will ignore the next WM_DRAWCLIPBOARD
305 // since we generate it with following code.
306 m_bInSetClipboardData = sal_True;
307 UWinEmptyClipbrd( hAB);
308 // give pointer to clipboard (it will become owner of pSharedText!)
309 if (pSharedText) {
310 UWinSetClipbrdData( hAB, (ULONG) pSharedText, UCLIP_CF_UNICODETEXT, CFI_POINTER);

--- 135 unchanged lines hidden ---
304 {
305 // set the flag, so we will ignore the next WM_DRAWCLIPBOARD
306 // since we generate it with following code.
307 m_bInSetClipboardData = sal_True;
308 UWinEmptyClipbrd( hAB);
309 // give pointer to clipboard (it will become owner of pSharedText!)
310 if (pSharedText) {
311 UWinSetClipbrdData( hAB, (ULONG) pSharedText, UCLIP_CF_UNICODETEXT, CFI_POINTER);

--- 135 unchanged lines hidden ---