dp_backend.cxx (cdf0e10c) | dp_backend.cxx (8402cd44) |
---|---|
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 * --- 359 unchanged lines hidden (view full) --- 368 static_cast<OWeakObject *>(const_cast<Package *>(this))); 369 } 370} 371 372// XComponent 373//______________________________________________________________________________ 374void Package::dispose() throw (RuntimeException) 375{ | 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 * --- 359 unchanged lines hidden (view full) --- 368 static_cast<OWeakObject *>(const_cast<Package *>(this))); 369 } 370} 371 372// XComponent 373//______________________________________________________________________________ 374void Package::dispose() throw (RuntimeException) 375{ |
376 check(); | 376 //Do not call check here. We must not throw an exception here if the object 377 //is being disposed or is already disposed. See com.sun.star.lang.XComponent |
377 WeakComponentImplHelperBase::dispose(); 378} 379 380//______________________________________________________________________________ 381void Package::addEventListener( 382 Reference<lang::XEventListener> const & xListener ) throw (RuntimeException) 383{ | 378 WeakComponentImplHelperBase::dispose(); 379} 380 381//______________________________________________________________________________ 382void Package::addEventListener( 383 Reference<lang::XEventListener> const & xListener ) throw (RuntimeException) 384{ |
384 check(); | 385 //Do not call check here. We must not throw an exception here if the object 386 //is being disposed or is already disposed. See com.sun.star.lang.XComponent |
385 WeakComponentImplHelperBase::addEventListener( xListener ); 386} 387 388//______________________________________________________________________________ 389void Package::removeEventListener( 390 Reference<lang::XEventListener> const & xListener ) throw (RuntimeException) 391{ | 387 WeakComponentImplHelperBase::addEventListener( xListener ); 388} 389 390//______________________________________________________________________________ 391void Package::removeEventListener( 392 Reference<lang::XEventListener> const & xListener ) throw (RuntimeException) 393{ |
392 check(); | 394 //Do not call check here. We must not throw an exception here if the object 395 //is being disposed or is already disposed. See com.sun.star.lang.XComponent |
393 WeakComponentImplHelperBase::removeEventListener( xListener ); 394} 395 396// XModifyBroadcaster 397//______________________________________________________________________________ 398void Package::addModifyListener( 399 Reference<util::XModifyListener> const & xListener ) 400 throw (RuntimeException) --- 423 unchanged lines hidden --- | 396 WeakComponentImplHelperBase::removeEventListener( xListener ); 397} 398 399// XModifyBroadcaster 400//______________________________________________________________________________ 401void Package::addModifyListener( 402 Reference<util::XModifyListener> const & xListener ) 403 throw (RuntimeException) --- 423 unchanged lines hidden --- |