window.cxx (a3b4383e) | window.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 * --- 4429 unchanged lines hidden (view full) --- 4438 uno::Reference< XComponent > xComponent( mpWindowImpl->mpFrameData->mxDropTarget, UNO_QUERY ); 4439 4440 // DNDEventDispatcher does not hold a reference of the DropTarget, 4441 // so it's ok if it does not support XComponent 4442 if( xComponent.is() ) 4443 xComponent->dispose(); 4444 } 4445 | 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 * --- 4429 unchanged lines hidden (view full) --- 4438 uno::Reference< XComponent > xComponent( mpWindowImpl->mpFrameData->mxDropTarget, UNO_QUERY ); 4439 4440 // DNDEventDispatcher does not hold a reference of the DropTarget, 4441 // so it's ok if it does not support XComponent 4442 if( xComponent.is() ) 4443 xComponent->dispose(); 4444 } 4445 |
4446 catch ( Exception exc ) | 4446 catch ( Exception&) |
4447 { 4448 // can be safely ignored here. 4449 } 4450 } 4451 4452 UnoWrapperBase* pWrapper = Application::GetUnoWrapper( sal_False ); 4453 if ( pWrapper ) 4454 pWrapper->WindowDestroyed( this ); --- 4061 unchanged lines hidden (view full) --- 8516 xDragGestureRecognizer->addDragGestureListener( 8517 uno::Reference< XDragGestureListener > (mpWindowImpl->mpFrameData->mxDropTargetListener, UNO_QUERY)); 8518 } 8519 else 8520 mpWindowImpl->mpFrameData->mbInternalDragGestureRecognizer = sal_True; 8521 8522 } 8523 | 4447 { 4448 // can be safely ignored here. 4449 } 4450 } 4451 4452 UnoWrapperBase* pWrapper = Application::GetUnoWrapper( sal_False ); 4453 if ( pWrapper ) 4454 pWrapper->WindowDestroyed( this ); --- 4061 unchanged lines hidden (view full) --- 8516 xDragGestureRecognizer->addDragGestureListener( 8517 uno::Reference< XDragGestureListener > (mpWindowImpl->mpFrameData->mxDropTargetListener, UNO_QUERY)); 8518 } 8519 else 8520 mpWindowImpl->mpFrameData->mbInternalDragGestureRecognizer = sal_True; 8521 8522 } 8523 |
8524 catch( RuntimeException exc ) | 8524 catch( RuntimeException&) |
8525 { 8526 // release all instances 8527 mpWindowImpl->mpFrameData->mxDropTarget.clear(); 8528 mpWindowImpl->mpFrameData->mxDragSource.clear(); 8529 } 8530 } 8531 } 8532 --- 56 unchanged lines hidden (view full) --- 8589 8590 if( aDropTargetSN.getLength() ) 8591 mpWindowImpl->mpFrameData->mxDropTarget = uno::Reference< XDropTarget > ( xFactory->createInstanceWithArguments( aDropTargetSN, aDropTargetAL ), UNO_QUERY ); 8592 } 8593 } 8594 } 8595 8596 // createInstance can throw any exception | 8525 { 8526 // release all instances 8527 mpWindowImpl->mpFrameData->mxDropTarget.clear(); 8528 mpWindowImpl->mpFrameData->mxDragSource.clear(); 8529 } 8530 } 8531 } 8532 --- 56 unchanged lines hidden (view full) --- 8589 8590 if( aDropTargetSN.getLength() ) 8591 mpWindowImpl->mpFrameData->mxDropTarget = uno::Reference< XDropTarget > ( xFactory->createInstanceWithArguments( aDropTargetSN, aDropTargetAL ), UNO_QUERY ); 8592 } 8593 } 8594 } 8595 8596 // createInstance can throw any exception |
8597 catch( Exception exc ) | 8597 catch( Exception&) |
8598 { 8599 // release all instances 8600 mpWindowImpl->mpFrameData->mxDropTarget.clear(); 8601 mpWindowImpl->mpFrameData->mxDragSource.clear(); 8602 } 8603 } 8604 8605 return mpWindowImpl->mpFrameData->mxDragSource; --- 63 unchanged lines hidden (view full) --- 8669 xInit->initialize( aArgumentList ); 8670 } 8671 } 8672#endif 8673 } 8674 } 8675 8676 // createInstance can throw any exception | 8598 { 8599 // release all instances 8600 mpWindowImpl->mpFrameData->mxDropTarget.clear(); 8601 mpWindowImpl->mpFrameData->mxDragSource.clear(); 8602 } 8603 } 8604 8605 return mpWindowImpl->mpFrameData->mxDragSource; --- 63 unchanged lines hidden (view full) --- 8669 xInit->initialize( aArgumentList ); 8670 } 8671 } 8672#endif 8673 } 8674 } 8675 8676 // createInstance can throw any exception |
8677 catch( Exception exc ) | 8677 catch( Exception&) |
8678 { 8679 // release all instances 8680 mpWindowImpl->mpFrameData->mxClipboard.clear(); 8681 } 8682 } 8683 8684 return mpWindowImpl->mpFrameData->mxClipboard; 8685 } --- 35 unchanged lines hidden (view full) --- 8721 s_xSelection = uno::Reference< XClipboard >( xFactory->createInstance( OUString::createFromAscii( "com.sun.star.datatransfer.clipboard.GenericClipboard" ) ), UNO_QUERY ); 8722 8723 mpWindowImpl->mpFrameData->mxSelection = s_xSelection; 8724# endif 8725 } 8726 } 8727 8728 // createInstance can throw any exception | 8678 { 8679 // release all instances 8680 mpWindowImpl->mpFrameData->mxClipboard.clear(); 8681 } 8682 } 8683 8684 return mpWindowImpl->mpFrameData->mxClipboard; 8685 } --- 35 unchanged lines hidden (view full) --- 8721 s_xSelection = uno::Reference< XClipboard >( xFactory->createInstance( OUString::createFromAscii( "com.sun.star.datatransfer.clipboard.GenericClipboard" ) ), UNO_QUERY ); 8722 8723 mpWindowImpl->mpFrameData->mxSelection = s_xSelection; 8724# endif 8725 } 8726 } 8727 8728 // createInstance can throw any exception |
8729 catch( Exception exc ) | 8729 catch( Exception&) |
8730 { 8731 // release all instances 8732 mpWindowImpl->mpFrameData->mxSelection.clear(); 8733 } 8734 } 8735 8736 return mpWindowImpl->mpFrameData->mxSelection; 8737 } --- 1264 unchanged lines hidden --- | 8730 { 8731 // release all instances 8732 mpWindowImpl->mpFrameData->mxSelection.clear(); 8733 } 8734 } 8735 8736 return mpWindowImpl->mpFrameData->mxSelection; 8737 } --- 1264 unchanged lines hidden --- |