dndlcon.cxx (cdf0e10c) dndlcon.cxx (adad3ae8)
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 *

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

188 DropTargetEvent aDTEvent( static_cast < XDropTarget * > (this), 0 );
189 xListener->dragExit( aDTEvent );
190 }
191
192 nRet++;
193 }
194 }
195
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 *

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

188 DropTargetEvent aDTEvent( static_cast < XDropTarget * > (this), 0 );
189 xListener->dragExit( aDTEvent );
190 }
191
192 nRet++;
193 }
194 }
195
196 catch( RuntimeException exc )
196 catch( RuntimeException&)
197 {
198 pContainer->removeInterface( xElement );
199 }
200 }
201
202 // if context still valid, then reject drop
203 if( m_xDropTargetDropContext.is() )
204 {
205 m_xDropTargetDropContext.clear();
206
207 try
208 {
209 context->rejectDrop();
210 }
211
197 {
198 pContainer->removeInterface( xElement );
199 }
200 }
201
202 // if context still valid, then reject drop
203 if( m_xDropTargetDropContext.is() )
204 {
205 m_xDropTargetDropContext.clear();
206
207 try
208 {
209 context->rejectDrop();
210 }
211
212 catch( RuntimeException exc )
212 catch( RuntimeException&)
213 {
214 }
215 }
216 }
217
218 return nRet;
219}
220

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

248
249 if( xListener.is() )
250 {
251 xListener->dragExit( aEvent );
252 nRet++;
253 }
254 }
255
213 {
214 }
215 }
216 }
217
218 return nRet;
219}
220

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

248
249 if( xListener.is() )
250 {
251 xListener->dragExit( aEvent );
252 nRet++;
253 }
254 }
255
256 catch( RuntimeException exc )
256 catch( RuntimeException&)
257 {
258 pContainer->removeInterface( xElement );
259 }
260 }
261 }
262
263 return nRet;
264}

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

300 if( xListener.is() )
301 {
302 if( m_xDropTargetDragContext.is() )
303 xListener->dragOver( aEvent );
304 nRet++;
305 }
306 }
307
257 {
258 pContainer->removeInterface( xElement );
259 }
260 }
261 }
262
263 return nRet;
264}

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

300 if( xListener.is() )
301 {
302 if( m_xDropTargetDragContext.is() )
303 xListener->dragOver( aEvent );
304 nRet++;
305 }
306 }
307
308 catch( RuntimeException exc )
308 catch( RuntimeException&)
309 {
310 pContainer->removeInterface( xElement );
311 }
312 }
313
314 // if context still valid, then reject drag
315 if( m_xDropTargetDragContext.is() )
316 {
317 m_xDropTargetDragContext.clear();
318
319 try
320 {
321 context->rejectDrag();
322 }
323
309 {
310 pContainer->removeInterface( xElement );
311 }
312 }
313
314 // if context still valid, then reject drag
315 if( m_xDropTargetDragContext.is() )
316 {
317 m_xDropTargetDragContext.clear();
318
319 try
320 {
321 context->rejectDrag();
322 }
323
324 catch( RuntimeException exc )
324 catch( RuntimeException&)
325 {
326 }
327 }
328 }
329
330 return nRet;
331}
332

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

368 if( xListener.is() )
369 {
370 if( m_xDropTargetDragContext.is() )
371 xListener->dragEnter( aEvent );
372 nRet++;
373 }
374 }
375
325 {
326 }
327 }
328 }
329
330 return nRet;
331}
332

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

368 if( xListener.is() )
369 {
370 if( m_xDropTargetDragContext.is() )
371 xListener->dragEnter( aEvent );
372 nRet++;
373 }
374 }
375
376 catch( RuntimeException exc )
376 catch( RuntimeException&)
377 {
378 pContainer->removeInterface( xElement );
379 }
380 }
381
382 // if context still valid, then reject drag
383 if( m_xDropTargetDragContext.is() )
384 {
385 m_xDropTargetDragContext.clear();
386
387 try
388 {
389 context->rejectDrag();
390 }
391
377 {
378 pContainer->removeInterface( xElement );
379 }
380 }
381
382 // if context still valid, then reject drag
383 if( m_xDropTargetDragContext.is() )
384 {
385 m_xDropTargetDragContext.clear();
386
387 try
388 {
389 context->rejectDrag();
390 }
391
392 catch( RuntimeException exc )
392 catch( RuntimeException&)
393 {
394 }
395 }
396 }
397
398 return nRet;
399}
400

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

435 if( xListener.is() )
436 {
437 if( m_xDropTargetDragContext.is() )
438 xListener->dropActionChanged( aEvent );
439 nRet++;
440 }
441 }
442
393 {
394 }
395 }
396 }
397
398 return nRet;
399}
400

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

435 if( xListener.is() )
436 {
437 if( m_xDropTargetDragContext.is() )
438 xListener->dropActionChanged( aEvent );
439 nRet++;
440 }
441 }
442
443 catch( RuntimeException exc )
443 catch( RuntimeException&)
444 {
445 pContainer->removeInterface( xElement );
446 }
447 }
448
449 // if context still valid, then reject drag
450 if( m_xDropTargetDragContext.is() )
451 {
452 m_xDropTargetDragContext.clear();
453
454 try
455 {
456 context->rejectDrag();
457 }
458
444 {
445 pContainer->removeInterface( xElement );
446 }
447 }
448
449 // if context still valid, then reject drag
450 if( m_xDropTargetDragContext.is() )
451 {
452 m_xDropTargetDragContext.clear();
453
454 try
455 {
456 context->rejectDrag();
457 }
458
459 catch( RuntimeException exc )
459 catch( RuntimeException&)
460 {
461 }
462 }
463 }
464
465 return nRet;
466}
467

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

497
498 if( xListener.is() )
499 {
500 xListener->dragGestureRecognized( aEvent );
501 nRet++;
502 }
503 }
504
460 {
461 }
462 }
463 }
464
465 return nRet;
466}
467

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

497
498 if( xListener.is() )
499 {
500 xListener->dragGestureRecognized( aEvent );
501 nRet++;
502 }
503 }
504
505 catch( RuntimeException exc )
505 catch( RuntimeException&)
506 {
507 pContainer->removeInterface( xElement );
508 }
509 }
510 }
511
512 return nRet;
513}

--- 54 unchanged lines hidden ---
506 {
507 pContainer->removeInterface( xElement );
508 }
509 }
510 }
511
512 return nRet;
513}

--- 54 unchanged lines hidden ---