| DatabaseForm.cxx (07a3d7f1) | DatabaseForm.cxx (2df387e6) |
|---|---|
| 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 --- 2792 unchanged lines hidden (view full) --- 2801 OSL_ENSURE( xSharedConn.is(), "ODatabaseForm::stopSharingConnection: there's no conn!" ); 2802 2803 // remove ourself as event listener 2804 Reference< XComponent > xSharedConnComp( xSharedConn, UNO_QUERY ); 2805 if ( xSharedConnComp.is() ) 2806 xSharedConnComp->removeEventListener( static_cast< XLoadListener* >( this ) ); 2807 2808 // no need to dispose the conn: we're not the owner, this is our parent | 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 --- 2792 unchanged lines hidden (view full) --- 2801 OSL_ENSURE( xSharedConn.is(), "ODatabaseForm::stopSharingConnection: there's no conn!" ); 2802 2803 // remove ourself as event listener 2804 Reference< XComponent > xSharedConnComp( xSharedConn, UNO_QUERY ); 2805 if ( xSharedConnComp.is() ) 2806 xSharedConnComp->removeEventListener( static_cast< XLoadListener* >( this ) ); 2807 2808 // no need to dispose the conn: we're not the owner, this is our parent |
| 2809 // (in addition, this method may be called if the connection is beeing disposed while we use it) | 2809 // (in addition, this method may be called if the connection is being disposed while we use it) |
| 2810 2811 // reset the property 2812 xSharedConn.clear(); 2813 m_bForwardingConnection = sal_True; 2814 m_xAggregateSet->setPropertyValue( PROPERTY_ACTIVE_CONNECTION, makeAny( xSharedConn ) ); 2815 m_bForwardingConnection = sal_False; 2816 2817 // reset the flag --- 1341 unchanged lines hidden --- | 2810 2811 // reset the property 2812 xSharedConn.clear(); 2813 m_bForwardingConnection = sal_True; 2814 m_xAggregateSet->setPropertyValue( PROPERTY_ACTIVE_CONNECTION, makeAny( xSharedConn ) ); 2815 m_bForwardingConnection = sal_False; 2816 2817 // reset the flag --- 1341 unchanged lines hidden --- |