(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

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!

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 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.