Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15
 Overview   Namespace   Class   Index   Help 

Methods of Class OWeakAggObject


OWeakAggObject
OWeakAggObject() throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO

Summary
Constructor. No delegator set.

acquire
virtual void acquire() throw();

virtual abstract const volatile template static inline C-linkage
YES NO NO NO NO NO NO NO

Summary
If a delegator is set, then the delegators gets acquired. Otherwise call is delegated to base class ::cppu::OWeakObject.

release
virtual void release() throw();

virtual abstract const volatile template static inline C-linkage
YES NO NO NO NO NO NO NO

Summary
If a delegator is set, then the delegators gets released. Otherwise call is delegated to base class ::cppu::OWeakObject.

queryInterface
virtual ::com::sun::star::uno::Any queryInterface(
const ::com::sun::star::uno::Type & rType )
throw( ::com::sun::star::uno::RuntimeException );

virtual abstract const volatile template static inline C-linkage
YES NO NO NO NO NO NO NO

Description
If a delegator is set, then the delegator is queried for the demanded interface. If the delegator cannot provide the demanded interface, it calls queryAggregation() on its aggregated objects.
Parameters
rType
demanded interface type
Return
demanded type or empty any
See Also
queryAggregation.

setDelegator
virtual void setDelegator(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & Delegator )
throw( ::com::sun::star::uno::RuntimeException );

virtual abstract const volatile template static inline C-linkage
YES NO NO NO NO NO NO NO

Summary
Set the delegator. The delegator member reference is a weak reference.
Parameters
Delegator
the object that delegate its queryInterface to this aggregate.

queryAggregation
virtual ::com::sun::star::uno::Any queryAggregation(
const ::com::sun::star::uno::Type & rType )
throw( ::com::sun::star::uno::RuntimeException );

virtual abstract const volatile template static inline C-linkage
YES NO NO NO NO NO NO NO

Summary
Called by the delegator or queryInterface. Re-implement this method instead of queryInterface.
See Also
queryInterface

~OWeakAggObject
virtual ~OWeakAggObject()
throw( ::com::sun::star::uno::RuntimeException );

virtual abstract const volatile template static inline C-linkage
YES NO NO NO NO NO NO NO

Summary
Virtual dtor. Called when reference count is 0.
ATTENTION!
Despite the fact that a RuntimeException is allowed to be thrown, you must not throw any exception upon destruction!

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.