LibreOffice Module cli_ure (master) 1
Public Member Functions | Static Protected Attributes | Private Member Functions | Private Attributes | List of all members
uno.util.WeakBase Class Reference

This class can be used as a base class for UNO objects. More...

Inheritance diagram for uno.util.WeakBase:
[legend]
Collaboration diagram for uno.util.WeakBase:
[legend]

Public Member Functions

XAdapter queryAdapter ()
 The returned XAdapter implementation can be used to keap a weak reference to this object. More...
 
Type[] getTypes ()
 Returns an array of Type objects which represent all implemented UNO interfaces of this object. More...
 
byte[] getImplementationId ()
 
override String ToString ()
 

Static Protected Attributes

static Hashtable s_types = new Hashtable()
 
static Hashtable s_impl_ids = new Hashtable()
 

Private Member Functions

 ~WeakBase ()
 Overrides of Object.Finalize method. More...
 

Private Attributes

WeakAdapter m_adapter = null
 

Detailed Description

This class can be used as a base class for UNO objects.

It implements the capability to be kept weakly (unoidl.com.sun.star.uno.XWeak) and it implements unoidl.com.sun.star.lang.XTypeProvider which is necessary for using the object from StarBasic.

Definition at line 33 of file WeakBase.cs.

Constructor & Destructor Documentation

◆ ~WeakBase()

uno.util.WeakBase.~WeakBase ( )
inlineprivate

Overrides of Object.Finalize method.

When there are no references to this object anymore, then the garbage collector calls this method, thereby causing the adapter object to be notified. The adapter, in turn, notifies all listeners (unoidl.com.sun.star.uno.XReference).

Definition at line 67 of file WeakBase.cs.

References uno.util.WeakBase.m_adapter.

Member Function Documentation

◆ getImplementationId()

byte[] uno.util.WeakBase.getImplementationId ( )
inline

Definition at line 112 of file WeakBase.cs.

◆ getTypes()

Type[] uno.util.WeakBase.getTypes ( )
inline

Returns an array of Type objects which represent all implemented UNO interfaces of this object.

Returns
Type objects of all implemented interfaces.

Definition at line 80 of file WeakBase.cs.

References lock(), pos, uno.util.WeakBase.s_types, and type.

Referenced by uno.util.WeakBase.ToString().

◆ queryAdapter()

XAdapter uno.util.WeakBase.queryAdapter ( )
inline

The returned XAdapter implementation can be used to keap a weak reference to this object.

Returns
a weak adapter

Definition at line 48 of file WeakBase.cs.

References lock(), and uno.util.WeakBase.m_adapter.

◆ ToString()

override String uno.util.WeakBase.ToString ( )
inline

Definition at line 118 of file WeakBase.cs.

References base, FullName, uno.util.WeakBase.getTypes(), pos, String, and System.

Member Data Documentation

◆ m_adapter

WeakAdapter uno.util.WeakBase.m_adapter = null
private

Definition at line 37 of file WeakBase.cs.

Referenced by uno.util.WeakBase.queryAdapter(), and uno.util.WeakBase.~WeakBase().

◆ s_impl_ids

Hashtable uno.util.WeakBase.s_impl_ids = new Hashtable()
staticprotected

Definition at line 40 of file WeakBase.cs.

◆ s_types

Hashtable uno.util.WeakBase.s_types = new Hashtable()
staticprotected

Definition at line 39 of file WeakBase.cs.

Referenced by uno.util.WeakBase.getTypes().


The documentation for this class was generated from the following file: