(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: cppu ::

class OComponentHelper


Base Classes
com::sun::star::uno::XWeak (public)
  |  
  +--cppu::OWeakObject (public)
       |  
       |  com::sun::star::uno::XAggregation (public)
       |    |  
       +----+--cppu::OWeakAggObject (public)
                 |  
                 |  com::sun::star::lang::XTypeProvider (public)
                 |    |  
                 |    |  com::sun::star::lang::XComponent (public)
                 |    |    |  
                 +----+----+--OComponentHelper
Known Derived Classes
None.

virtual abstract interface template
YES YES YES NO
D E P R E C A T E D
Description
Deprecated.  Helper for implementing ::com::sun::star::lang::XComponent.
Upon disposing objects of this class, sub-classes receive a disposing() call.  Objects of
this class can be held weakly, i.e. by a ::com::sun::star::uno::WeakReference.  Object of
this class can be aggregated, i.e. incoming queryInterface() calls are delegated.

ATTENTION!
The life-cycle of the passed mutex reference has to be longer than objects of this class.

File
component.hxx

Public Members

Methods


OComponentHelper( ::osl::Mutex & rMutex ) throw( );
Constructor.
virtual
~OComponentHelper( ) throw( ::com::sun::star::uno::RuntimeException );
Dewstructor. If this object was not disposed previously, object will be disposed manually.
virtual ::com::sun::star::uno::Any
queryInterface( const ::com::sun::star::uno::Type & rType ) throw( ::com::sun::star::uno::RuntimeException );
virtual ::com::sun::star::uno::Any
queryAggregation( const ::com::sun::star::uno::Type & rType ) throw( ::com::sun::star::uno::RuntimeException );
virtual void
acquire( ) throw( );
virtual void
release( ) throw( );
virtual ::com::sun::star::uno::Sequence< sal_Int8 >
getImplementationId( ) throw( ::com::sun::star::uno::RuntimeException ) = 0;
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >
getTypes( ) throw( ::com::sun::star::uno::RuntimeException );
virtual void
dispose( ) throw( ::com::sun::star::uno::RuntimeException );
virtual void
addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener ) throw( ::com::sun::star::uno::RuntimeException );
virtual void
removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener ) throw( ::com::sun::star::uno::RuntimeException );

Protected Members

Methods

virtual void
disposing( );
Called in dispose method after the listeners were notified.

Top of Page

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.