Language:

The Free and Open Productivity Suite
Apache OpenOffice 4.1.4 released

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous


Methods of Class OWeakObject


~OWeakObject
virtual ~OWeakObject()
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.
ATTENTION!
Despite the fact that a RuntimeException is allowed to be thrown, you must not throw any exception upon destruction!

disposeWeakConnectionPoint
void disposeWeakConnectionPoint();

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

Summary
disposes and resets m_pWeakConnectionPoint
Precondition
m_refCount equals 0

OWeakObject
OWeakObject() throw();

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

Summary
Default Constructor. Sets the reference count to zero. Accidentally occurs in msvc mapfile = > had to be outlined.

OWeakObject
OWeakObject() throw();

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

Summary
Default Constructor. Sets the reference count to zero.

OWeakObject
OWeakObject(
const OWeakObject & ) throw();

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

Summary
Dummy copy constructor. Set the reference count to zero.
Parameters
rObj
dummy param

operator=
OWeakObject & operator=(
const OWeakObject & ) throw();

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

Summary
Dummy assignment operator. Does not affect reference count.
Return
this 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

Summary
Basic queryInterface() implementation supporting ::com::sun::star::uno::XWeak and ::com::sun::star::uno::XInterface.
Parameters
rType
demanded type
Return
demanded type or empty any

acquire
virtual void acquire() throw();

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

Summary
increasing m_refCount

release
virtual void release() throw();

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

Summary
decreasing m_refCount

queryAdapter
virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XAdapter > queryAdapter()
throw( ::com::sun::star::uno::RuntimeException );

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

Summary
XWeak::queryAdapter()implementation
Return
a ::com::sun::star::uno::XAdapter reference

operator ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
operator ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >() throw();

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

Summary
Cast operator to XInterface reference.
Return
XInterface reference

Top of Page

Apache Software Foundation

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

Apache and the Apache feather logo are trademarks of The Apache Software Foundation. OpenOffice, 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.