Overview | Namespace | Class | Index | Help |
DEFINES | MACROS |
Defines and Macros
- COMPONENT_CANUNLOAD
Defined As "component_canUnload"
In File unload.h
- Description
- A library which supports unloading has to implement and export a function
called
component_canUnload
.If the function returns
sal_True
then the module can be safely unloaded. That is the case when there are no external references to code within the library. In case a module houses UNO components then the function must returnsal_False
after the first factory has been handed out. The function then continues to returnsal_False
as long as there is at least one object (factory or service instance) which originated from the module.Libraries which not only contain UNO components (or none at all) have to provide a means to control whether they can be unloaded or not, e.g. However, there is no concept yet.
The argument
pTime
is an optional out-parameter. If the return value issal_True
thenpTime
reflects a point in time since when the module could have been unloaded. Since that time the function would have continually returnedsal_True
up to the present. The value ofpTime
is important for the decision as to a module will be unloaded. When someone initiates the unloading of modules by callingrtl_unloadUnusedModules
then the caller can specify a time span with the effect that only those modules are unloaded which are unused at least for that amount of time. Ifcomponent_canUnload
does not fill inpTime
then the module is unloaded immediately.component_canUnload
is implicitly called byrtl_unloadUnusedModules
. There is no need to call the function directly.
- CONT_HASHMAP
Defined As ::std::hash_map< key , void* , hashImpl , equalImpl >
In File interfacecontainer.hxx
- CPPU_CURRENT_NAMESPACE
Defined As CPPU_ENV
In File macros.hxx
- Summary
- Namespace name for compiler/ platform, e.g. gcc3, msci
- MODULE_COUNT_INIT
Defined As \ { {rtl_moduleCount_acquire,rtl_moduleCount_release}, rtl_moduleCount_canUnload, 0, {0, 0}}
In File unload.h
- OSTRING_TO_OUSTRING_CVTFLAGS
Defined As (RTL_TEXTTOUNICODE_FLAGS_UNDEFINED_MAPTOPRIVATE |\ RTL_TEXTTOUNICODE_FLAGS_MBUNDEFINED_DEFAULT |\ RTL_TEXTTOUNICODE_FLAGS_INVALID_DEFAULT)
In File ustring.h
- OUSTRING_TO_OSTRING_CVTFLAGS
Defined As (RTL_UNICODETOTEXT_FLAGS_UNDEFINED_DEFAULT |\ RTL_UNICODETOTEXT_FLAGS_INVALID_DEFAULT |\ RTL_UNICODETOTEXT_FLAGS_UNDEFINED_REPLACE |\ RTL_UNICODETOTEXT_FLAGS_PRIVATE_MAPTO0 |\ RTL_UNICODETOTEXT_FLAGS_NOCOMPOSITE)
In File string.h
- osl_Pipe_CREATE
Defined As 0x0001 /* create pipe and open it, fails if already existst */
In File pipe.h
- REGISTRY_CALLTYPE
Defined As SAL_CALL
In File regtype.h
- Summary
- specify the calling convention for the registry API
- REGISTRY_INIT_FUNCTION_NAME
Defined As "initRegistry_Api"
In File registry.hxx
- Summary
- spedifies the name of the API initialization function.
- Description
- This function will be searched by the load on call mechanism specified in 'salhelper/dynload.hxx'.
- REGISTRY_TYPE_READER_INIT_FUNCTION_NAME
Defined As "initRegistryTypeReader_Api"
In File reflread.hxx
- Summary
- spedifies the name of the API initialization function.
- Description
- This function will be searched by the load on call mechanism specified in 'salhelper/dynload.hxx'.
- REGISTRY_TYPE_WRITER_INIT_FUNCTION_NAME
Defined As "initRegistryTypeWriter_Api"
In File reflwrit.hxx
- Summary
- spedifies the name of the API initialization function.
- Description
- This function will be searched by the load on call mechanism specified in 'salhelper/dynload.hxx'.
- REG_READONLY
Defined As 0x0001
In File regtype.h
- Summary
- Flag to specify the open mode of a registry. This mode allows readonly access.
- REG_READWRITE
Defined As 0x0002
In File regtype.h
- Summary
- Flag to specify the open mode of a registry. This mode allows read and write access.
- RTL_UUID_NAMESPACE_DNS
Defined As {\ 0x6b,0xa7,0xb8,0x10,\ 0x9d,0xad,\ 0x11,0xd1,\ 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\ }
In File uuid.h
- Summary
- namesapce DNS
- Description
-
(Use them the following way : sal_uInt8 aNsDNS[16]) = RTL_UUID_NAMESPACE_DNS;
6ba7b810-9dad-11d1-80b4-00c04fd430c8
- RTL_UUID_NAMESPACE_OID
Defined As {\ 0x6b, 0xa7, 0xb8, 0x12,\ 0x9d, 0xad,\ 0x11, 0xd1,\ 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\ }
In File uuid.h
- Summary
- namespace oid
- Description
-
6ba7b812-9dad-11d1-80b4-00c04fd430c8
- RTL_UUID_NAMESPACE_URL
Defined As { \ 0x6b, 0xa7, 0xb8, 0x11,\ 0x9d, 0xad,\ 0x11, 0xd1,\ 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\ }
In File uuid.h
- Summary
- namespace URL
- Description
-
6ba7b811-9dad-11d1-80b4-00c04fd430c8
- RTL_UUID_NAMESPACE_X500
Defined As {\ 0x6b, 0xa7, 0xb8, 0x14,\ 0x9d, 0xad,\ 0x11, 0xd1,\ 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\ }
In File uuid.h
- Summary
- namespace X500
- Description
-
6ba7b814-9dad-11d1-80b4-00c04fd430c8
- RT_ACCESS_ATTRIBUTE
Defined As 0x0200
In File refltype.hxx
- See Also
- com::sun::star::beans::PropertyAttribute
- RT_ACCESS_BOUND
Defined As 0x0008
In File refltype.hxx
- See Also
- com::sun::star::beans::PropertyAttribute
- RT_ACCESS_CONST
Defined As 0x0800
In File refltype.hxx
- Summary
- specifies that the field is a constant or enum value
- RT_ACCESS_CONSTRAINED
Defined As 0x0010
In File refltype.hxx
- See Also
- com::sun::star::beans::PropertyAttribute
- RT_ACCESS_DEFAULT
Defined As 0x2000
In File refltype.hxx
- Summary
- only to describe a union default label
- RT_ACCESS_MAYBEAMBIGUOUS
Defined As 0x0040
In File refltype.hxx
- See Also
- com::sun::star::beans::PropertyAttribute
- RT_ACCESS_MAYBEDEFAULT
Defined As 0x0080
In File refltype.hxx
- See Also
- com::sun::star::beans::PropertyAttribute
- RT_ACCESS_MAYBEVOID
Defined As 0x0004
In File refltype.hxx
- See Also
- com::sun::star::beans::PropertyAttribute
- RT_ACCESS_OPTIONAL
Defined As 0x0002
In File refltype.hxx
- Summary
- specifies a property as optional that means that it must not be implemented.
- RT_ACCESS_PROPERTY
Defined As 0x0400
In File refltype.hxx
- Summary
- specifies that the field is a property
- RT_ACCESS_READONLY
Defined As 0x0001
In File refltype.hxx
- Summary
- specifies a readonly property/attribute
- RT_ACCESS_READWRITE
Defined As 0x1000
In File refltype.hxx
- Summary
- specifies that the property/attribute has read/write access
- RT_ACCESS_REMOVEABLE
Defined As 0x0100
In File refltype.hxx
- See Also
- com::sun::star::beans::PropertyAttribute
- RT_ACCESS_TRANSIENT
Defined As 0x0020
In File refltype.hxx
- See Also
- com::sun::star::beans::PropertyAttribute
- SAL_NO_VTABLE
Defined As __declspec(novtable)
In File types.h
- Description
Use this for pure virtual classes, e.g. class SAL_NO_VTABLE Foo { ... This hinders the compiler from setting a generic vtable stating that a pure virtual function was called and thus slightly reduces code size.
- STORE_ATTRIB_ISLINK
Defined As 0x10000000UL
In File types.h
- Summary
- Attributes (predefined).
- See Also
- store_attrib()
- STORE_DEFAULT_PAGESIZE
Defined As ((sal_uInt16)0x0400)
In File types.h
- Summary
- PageSize (recommended) default.
- See Also
- store_openFile()
- STORE_MAXIMUM_NAMESIZE
Defined As 256
In File types.h
- Summary
- NameSize (enforced) limit.
- See Also
- any
param
pName
store_E_NameTooLong
- STORE_MINIMUM_PAGESIZE
Defined As ((sal_uInt16)0x0200)
In File types.h
- Summary
- PageSize (enforced) limits.
- See Also
- store_openFile()
- TYPEREG_CALLTYPE
Defined As SAL_CALL
In File refltype.hxx
- Summary
- specifies the calling onvention for type reader/wrter api
- UNO_INIT_ENVIRONMENT
Defined As "uno_initEnvironment"
In File environment.h
- Summary
- Function exported by some bridge library providing acquireInterface(), releaseInterface(); may set a disposing callback.
- Parameters
pEnv environment to be initialized
- WRITE_COMPONENT_INFO_FUNCTION
Defined As "writeComponentInfo"
In File factory.hxx
- Summary
- Function pointer declaration. Retrieves a factory to create component instances.
- Parameters
pImplName desired implementation name
pServiceManager a service manager (the type is XMultiServiceFactory that can be used by the environment returned by component_getImplementationEnvironment)
pRegistryKey a registry key (the type is XRegistryKey that can be used by the environment returned by component_getImplementationEnvironment)
- Return
- acquired component factory (the type is lang::XSingleComponentFactory or lang::XSingleServiceFactory to be used by the environment returned by component_getImplementationEnvironment)
- _REGISTRY_REFLTYPE_HXX_
Defined As In File refltype.hxx
- Summary
- ***********************************************************************
- Description
- Source Code Control System - Update $Log: def-all.html,v $ Revision 1.2 2003/12/07 00:23:18 edk update HTML post-upgrade to include start html, head, body tags and to specify the charset as UTF-8 where possible Revision 1.1.1.1 2002/03/07 15:57:44 jsc updated c++ reference files Revision 1.6 2001/11/15 18:01:32 jsc #88337# review docu Revision 1.5 2001/05/18 15:30:58 jsc #87233# insert enum value Revision 1.4 2001/03/14 09:37:08 jsc remove vos dependencies Revision 1.3 2000/10/09 14:48:24 hr #65293#: syntax Revision 1.2 2000/10/09 11:53:09 jsc change the binary typelibrary format, make it extendable Revision 1.1.1.1 2000/09/18 15:18:42 hr initial import Revision 1.19 2000/09/17 12:30:32 willem.vandorp OpenOffice header added. Revision 1.18 2000/08/04 15:31:39 jsc extend biniary type format Revision 1.17 2000/07/26 17:44:32 willem.vandorp Headers/footers replaced Revision 1.16 2000/03/24 15:00:36 jsc modified for unicode changes Revision 1.15 2000/02/08 16:01:09 hr #70473# changes for unicode ( patched by automated patchtool ) Revision 1.14 1999/10/22 09:58:47 jsc TYPEREG_CALLTYPE = SAL_CALL Revision 1.13 1999/10/21 15:48:50 jsc optional flag now in registry Revision 1.12 1999/10/15 11:05:51 dbo short RTConstValue from sal_uInt16 to sal_Int16 Revision 1.11 1999/07/02 09:25:40 jsc #67179# Binaerblop der CoreReflection ist erweitert worden Revision 1.10 1999/03/12 14:16:38 jsc #61011# Anpassung an osl-Typen Revision 1.9 1998/07/03 12:36:16 ts added SERVICE and OBJECT Revision 1.8 1998/07/03 11:20:07 ts prefixen von typen Revision 1.7 1998/07/03 10:55:41 ts added RT_TYPE_TYPEDEF Revision 1.6 1998/07/03 08:41:02 ts bugs und set/getUik() Revision 1.5 1998/07/02 11:58:47 jsc Typ Anpassung, Schnittstelle frei von solar.h Revision 1.4 1998/07/01 16:55:19 ts alignment unter soaris beachten Revision 1.3 1998/07/01 13:39:01 ts bugs, bugs, bugs Revision 1.2 1998/06/30 13:42:27 ts Anpassung an SOLARIS Revision 1.1.1.1 1998/06/30 11:17:45 jsc neu
- __CLASS_IFC10
Defined As class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8, class Ifc9, class Ifc10
In File implbase10.hxx
- __CLASS_IFC11
Defined As class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8, class Ifc9, class Ifc10, class Ifc11
In File implbase11.hxx
- __CLASS_IFC12
Defined As class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8, class Ifc9, class Ifc10, class Ifc11, class Ifc12
In File implbase12.hxx
- __CLASS_IFC5
Defined As class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5
In File implbase5.hxx
- __CLASS_IFC6
Defined As class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6
In File implbase6.hxx
- __CLASS_IFC7
Defined As class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7
In File implbase7.hxx
- __CLASS_IFC8
Defined As class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8
In File implbase8.hxx
- __CLASS_IFC9
Defined As class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8, class Ifc9
In File implbase9.hxx
- __IFC10
Defined As Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10
In File implbase10.hxx
- __IFC11
Defined As Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11
In File implbase11.hxx
- __IFC12
Defined As Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, Ifc12
In File implbase12.hxx
- __PUBLIC_IFC10
Defined As public Ifc1, public Ifc2, public Ifc3, public Ifc4, public Ifc5, public Ifc6, public Ifc7, public Ifc8, public Ifc9, public Ifc10
In File implbase10.hxx
- __PUBLIC_IFC11
Defined As public Ifc1, public Ifc2, public Ifc3, public Ifc4, public Ifc5, public Ifc6, public Ifc7, public Ifc8, public Ifc9, public Ifc10, public Ifc11
In File implbase11.hxx
- __PUBLIC_IFC12
Defined As public Ifc1, public Ifc2, public Ifc3, public Ifc4, public Ifc5, public Ifc6, public Ifc7, public Ifc8, public Ifc9, public Ifc10, public Ifc11, public Ifc12
In File implbase12.hxx
- __PUBLIC_IFC5
Defined As public Ifc1, public Ifc2, public Ifc3, public Ifc4, public Ifc5
In File implbase5.hxx
- __PUBLIC_IFC6
Defined As public Ifc1, public Ifc2, public Ifc3, public Ifc4, public Ifc5, public Ifc6
In File implbase6.hxx
- __PUBLIC_IFC7
Defined As public Ifc1, public Ifc2, public Ifc3, public Ifc4, public Ifc5, public Ifc6, public Ifc7
In File implbase7.hxx
- __PUBLIC_IFC8
Defined As public Ifc1, public Ifc2, public Ifc3, public Ifc4, public Ifc5, public Ifc6, public Ifc7, public Ifc8
In File implbase8.hxx
- __PUBLIC_IFC9
Defined As public Ifc1, public Ifc2, public Ifc3, public Ifc4, public Ifc5, public Ifc6, public Ifc7, public Ifc8, public Ifc9
In File implbase9.hxx
- CPPU_GCC3_ALIGN( base_struct)
Defined As __attribute__ ((aligned (__alignof__ (base_struct))))
In File macros.hxx
- Description
- Patching the gcc 3 incomatible alignment change for linux intel. This pragma macro is appended by the cppumaker tool to every first member of a struct, iff the struct inherits from a base struct the first member is no double or [unsigned] long long.
- CUNO_CALL( interface_pointer)
Defined As (*interface_pointer)
In File cuno.h
- Summary
- macro to call on a C interface
- Parameters
interface_pointer interface pointer
- CUNO_EXCEPTION_OCCURED( return_code)
Defined As (0 != ((return_code) & CUNO_ERROR_EXCEPTION))
In File cuno.h
- Summary
- macro to test if an exception was signalled.
- Parameters
return_code return code of call
- RTL_CONSTASCII_STRINGPARAM( constAsciiStr)
Defined As constAsciiStr, sizeof( constAsciiStr )-1
In File string.h
- RTL_CONSTASCII_USTRINGPARAM( constAsciiStr)
Defined As constAsciiStr, sizeof( constAsciiStr )-1, RTL_TEXTENCODING_ASCII_US
In File ustring.h
- RTL_LOGFILE_CONTEXT_AUTHOR( instance, project, author, name)
Defined As ::rtl::Logfile instance(project, author, name )
In File logfile.hxx
- RTL_LOGFILE_CONTEXT_AUTHOR( instance, project, author, name)
Defined As ((void)0)
In File logfile.hxx
- RTL_LOGFILE_CONTEXT_TRACE( instance, message)
Defined As \ rtl_logfile_trace( "%06lu %lu | %s : %s\n", \ osl_getGlobalTimer(), \ osl_getThreadIdentifier( 0 ), \ instance.getName(), \ message )
In File logfile.hxx
- RTL_LOGFILE_CONTEXT_TRACE1( instance, frmt, arg1)
Defined As \ rtl_logfile_trace( "%06lu %lu | %s : ", \ osl_getGlobalTimer(), \ osl_getThreadIdentifier( 0 ), \ instance.getName() ); \ rtl_logfile_trace( frmt , arg1 ); \ rtl_logfile_trace( "\n" )
In File logfile.hxx
- RTL_LOGFILE_CONTEXT_TRACE2( instance, frmt, arg1, arg2)
Defined As \ rtl_logfile_trace( "%06lu %lu | %s : ", \ osl_getGlobalTimer(), \ osl_getThreadIdentifier( 0 ), \ instance.getName() ); \ rtl_logfile_trace( frmt , arg1 , arg2 ); \ rtl_logfile_trace( "\n" )
In File logfile.hxx
- RTL_LOGFILE_CONTEXT_TRACE3( instance, frmt, arg1, arg2, arg3)
Defined As \ rtl_logfile_trace( "%06lu %lu | %s : ", \ osl_getGlobalTimer(), \ osl_getThreadIdentifier( 0 ), \ instance.getName() ); \ rtl_logfile_trace( frmt , arg1 , arg2 , arg3 ); \ rtl_logfile_trace( "\n" )
In File logfile.hxx
- RTL_LOGFILE_CONTEXT_TRACE3( instance, frmt, arg1, arg2, arg3)
Defined As ((void)0)
In File logfile.hxx
- RTL_LOGFILE_TRACE( string)
Defined As \ rtl_logfile_trace( "%06lu %lu | : %s\n", \ osl_getGlobalTimer(), \ osl_getThreadIdentifier( 0 ), \ string )
In File logfile.h
- RTL_LOGFILE_TRACE_AUTHOR( project, author, string)
Defined As \ rtl_logfile_trace( "%06lu %lu | %s (%s) : %s\n", \ osl_getGlobalTimer(), \ osl_getThreadIdentifier( 0 ), \ project,\ author,\ string )
In File logfile.h
- RTL_LOGFILE_TRACE_AUTHOR1( project, author, frmt, arg1)
Defined As \ rtl_logfile_trace( "%06lu %lu | %s (%s) : ", \ osl_getGlobalTimer(), \ osl_getThreadIdentifier( 0 ),\ project,\ author );\ rtl_logfile_trace( frmt, arg1 ); \ rtl_logfile_trace( "\n" )
In File logfile.h
- RTL_LOGFILE_TRACE_AUTHOR2( project, author, frmt, arg1, arg2)
Defined As \ rtl_logfile_trace( "%06lu %lu | %s (%s) : ", \ osl_getGlobalTimer(), \ osl_getThreadIdentifier( 0 ),\ project,\ author ); \ rtl_logfile_trace( frmt, arg1 , arg2 ); \ rtl_logfile_trace( "\n" )
In File logfile.h
- RTL_LOGFILE_TRACE_AUTHOR2( project, author, frmt, arg1, arg2)
Defined As ((void)0)
In File logfile.h
- RTL_LOGFILE_TRACE_AUTHOR3( project, author, frmt, arg1, arg2, arg3)
Defined As \ rtl_logfile_trace( "%06lu %lu | %s (%s) : ", \ osl_getGlobalTimer(), \ osl_getThreadIdentifier( 0 ),\ project,\ author ); \ rtl_logfile_trace( frmt, arg1 , arg2 , arg3 ); \ rtl_logfile_trace( "\n" )
In File logfile.h
- RTL_LOGFILE_TRACE_AUTHOR3( project, author, frmt, arg1, arg2, arg3)
Defined As ((void)0)
In File logfile.h
- RTL_LOGFILE_TRACE1( frmt, arg1)
Defined As \ rtl_logfile_trace( "%06lu %lu | : ", \ osl_getGlobalTimer(), \ osl_getThreadIdentifier( 0 ) ); \ rtl_logfile_trace( frmt, arg1 ); \ rtl_logfile_trace( "\n" )
In File logfile.h
- RTL_LOGFILE_TRACE2( frmt, arg1, arg2)
Defined As \ rtl_logfile_trace( "%06lu %lu | : ", \ osl_getGlobalTimer(), \ osl_getThreadIdentifier( 0 ) ); \ rtl_logfile_trace( frmt, arg1 , arg2 ); \ rtl_logfile_trace( "\n" )
In File logfile.h
- RTL_LOGFILE_TRACE3( frmt, arg1, arg2, arg3)
Defined As \ rtl_logfile_trace( "%06lu %lu | : ", \ osl_getGlobalTimer(), \ osl_getThreadIdentifier( 0 ) ); \ rtl_logfile_trace( frmt, arg1 , arg2 , arg3 ); \ rtl_logfile_trace( "\n" )
In File logfile.h
- SAL_CONST_CAST(type, expr)
Defined As (const_cast< type >(expr))
In File types.h
- Description
Wrap C++ const_cast, reinterpret_cast and static_cast expressions in macros to keep code portable to old compilers (since most compilers still lack RTTI support, dynamic_cast is not included here).
- SAL_DEFINE_CRT_ENTRY()
Defined As \ int __cdecl main() \ { \ return sal_main(); \ } \ int WINAPI WinMain( HINSTANCE _hinst, HINSTANCE _dummy, char* _cmdline, int _nshow ) \ { \ return sal_main(); \ }
In File main.h
- SAL_MODULENAME_WITH_VERSION(name, version)
Defined As name version SAL_DLLEXTENSION
In File module.h
- SAL_MODULENAME_WITH_VERSION(name, version)
Defined As SAL_DLLPREFIX name SAL_DLLEXTENSION "." version
In File module.h
- SAL_THROW( exc)
Defined As In File types.h
- Summary
Definition of function throw clause macros. These have been introduced to reduce code size by balancing out compiler bugs.
- Description
These macros are ONLY for function declarations, use common C++ throw statement for throwing exceptions, e.g. throw RuntimeException(); SAL_THROW() should be used for all C++ functions, e.g. SAL_THROW( () ) SAL_THROW_EXTERN_C() should be used for all C functions
- TYPELIB_DANGER_GET( ppDescription, pTypeRef)
Defined As \ { \ typelib_TypeDescriptionReference * __pMacroTypeRef = (pTypeRef); \ typelib_TypeDescription ** __ppMacroTypeDescr = (ppDescription); \ if (TYPELIB_TYPEDESCRIPTIONREFERENCE_ISREALLYWEAK( __pMacroTypeRef->eTypeClass )) \ { \ typelib_typedescriptionreference_getDescription( __ppMacroTypeDescr, __pMacroTypeRef ); \ } \ else if (!__pMacroTypeRef->pType || !__pMacroTypeRef->pType->pWeakRef) \ { \ typelib_typedescriptionreference_getDescription( __ppMacroTypeDescr, __pMacroTypeRef ); \ if (*__ppMacroTypeDescr) \ typelib_typedescription_release( *__ppMacroTypeDescr ); \ } \ else \ { \ *__ppMacroTypeDescr = __pMacroTypeRef->pType; \ } \ }
In File typedescription.h
- Description
- Gets a description from the reference. The description may not be locked by this call. You must use the TYPELIB_DANGER_RELEASE macro to release the description fetched with this macro.
- TYPELIB_DANGER_RELEASE( pDescription)
Defined As \ { \ if (TYPELIB_TYPEDESCRIPTIONREFERENCE_ISREALLYWEAK( (pDescription)->eTypeClass )) \ typelib_typedescription_release( pDescription ); \ }
In File typedescription.h
- Summary
- Releases the description previouse fetched by TYPELIB_DANGER_GET.
- TYPELIB_TYPEDESCRIPTIONREFERENCE_ISREALLYWEAK( eTypeClass)
Defined As \ ((eTypeClass) == typelib_TypeClass_INTERFACE_METHOD || \ (eTypeClass) == typelib_TypeClass_INTERFACE_ATTRIBUTE)
In File typedescription.h
- Description
- Returns true, if the type description reference may lose the type description. Otherwise pType is a valid pointer and cannot be discarded through the lifetime of this reference. Remark: If the pWeakObj of the type is set too, you can avoid the call of ...getDescription(...) and use the description directly. pWeakObj == 0 means, that the description is not initialized.
- _OSL_ASSERT(c, f, l)
Defined As \ do \ { \ if (!(c) && _OSL_GLOBAL osl_assertFailedLine(f, l, 0)) \ _OSL_GLOBAL osl_breakDebug(); \ } while (0)
In File diagnose.h
- _OSL_ENSURE(c, f, l, m)
Defined As \ do \ { \ if (!(c) && _OSL_GLOBAL osl_assertFailedLine(f, l, m)) \ _OSL_GLOBAL osl_breakDebug(); \ } while (0)
In File diagnose.h
- _OSL_VERIFY(c, f, l)
Defined As \ do \ { \ if (!(c) && _OSL_GLOBAL osl_assertFailedLine(f, l, 0)) \ _OSL_GLOBAL osl_breakDebug(); \ } while (0)
In File diagnose.h
- __DEF_CLASS_DATA_INIT_EX( N, class_cast)
Defined As \ { \ N +1, sal_False, sal_False, \ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, \ { \ __IFC_EX_TYPE_INIT##N( class_cast ), \ __IFC_EX_TYPE_INIT_NAME( class_cast, ::com::sun::star::lang::XTypeProvider ) \ } \ }
In File implbase_ex_post.hxx
- __DEF_COMPIMPLHELPER( N)
Defined As \ __DEF_COMPIMPLHELPER_A( N ) \ __DEF_COMPIMPLHELPER_C( N )
In File compbase.hxx
- __DEF_COMPIMPLHELPER( N)
Defined As \ __DEF_COMPIMPLHELPER_A( N ) \ __DEF_COMPIMPLHELPER_B( N ) \ __DEF_COMPIMPLHELPER_C( N )
In File compbase.hxx
- __DEF_COMPIMPLHELPER_A( N)
Defined As \ namespace cppu \ { \ template< __CLASS_IFC##N > \ class SAL_NO_VTABLE WeakComponentImplHelper##N \ : public ::cppu::WeakComponentImplHelperBase \ , public ImplHelperBase##N< __IFC##N > \ { \ static ClassData##N s_aCD; \ public: \ WeakComponentImplHelper##N( ::osl::Mutex & rMutex ) SAL_THROW( () ) \ : WeakComponentImplHelperBase( rMutex ) \ {} \ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException) \ { \ ::com::sun::star::uno::Any aRet( getClassData( s_aCD ).query( rType, (ImplHelperBase##N< __IFC##N > *)this ) ); \ if (aRet.hasValue()) \ return aRet; \ return WeakComponentImplHelperBase::queryInterface( rType ); \ } \ virtual void SAL_CALL acquire() throw () \ { WeakComponentImplHelperBase::acquire(); } \ virtual void SAL_CALL release() throw () \ { WeakComponentImplHelperBase::release(); } \ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException) \ { return getClassData( s_aCD ).getTypes(); } \ virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException) \ { return getClassData( s_aCD ).getImplementationId(); } \ }; \ template< __CLASS_IFC##N > \ class SAL_NO_VTABLE WeakAggComponentImplHelper##N \ : public ::cppu::WeakAggComponentImplHelperBase \ , public ImplHelperBase##N< __IFC##N > \ { \ static ClassData##N s_aCD; \ public: \ WeakAggComponentImplHelper##N( ::osl::Mutex & rMutex ) SAL_THROW( () ) \ : WeakAggComponentImplHelperBase( rMutex ) \ {} \ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException) \ { return WeakAggComponentImplHelperBase::queryInterface( rType ); } \ virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException) \ { \ ::com::sun::star::uno::Any aRet( getClassData( s_aCD ).query( rType, (ImplHelperBase##N< __IFC##N > *)this ) ); \ if (aRet.hasValue()) \ return aRet; \ return WeakAggComponentImplHelperBase::queryAggregation( rType ); \ } \ virtual void SAL_CALL acquire() throw () \ { WeakAggComponentImplHelperBase::acquire(); } \ virtual void SAL_CALL release() throw () \ { WeakAggComponentImplHelperBase::release(); } \ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException) \ { return getClassData( s_aCD ).getTypes(); } \ virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException) \ { return getClassData( s_aCD ).getImplementationId(); } \ };
In File compbase.hxx
- __DEF_COMPIMPLHELPER_B( N)
Defined As \ template< __CLASS_IFC##N > \ ClassData##N WeakComponentImplHelper##N< __IFC##N >::s_aCD = ClassData##N( 4 ); \ template< __CLASS_IFC##N > \ ClassData##N WeakAggComponentImplHelper##N< __IFC##N >::s_aCD = ClassData##N( 3 );
In File compbase.hxx
- __DEF_COMPIMPLHELPER_EX( N)
Defined As \ namespace cppu \ { \ template< __CLASS_IFC##N > \ class SAL_NO_VTABLE WeakComponentImplHelper##N \ : public WeakComponentImplHelperBase \ , public ::com::sun::star::lang::XTypeProvider \ , __PUBLIC_IFC##N \ { \ static class_data##N s_cd; \ public: \ inline WeakComponentImplHelper##N( ::osl::Mutex & rMutex ) SAL_THROW( () ) \ : WeakComponentImplHelperBase( rMutex ) \ {} \ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException) \ { return WeakComponentImplHelper_query( rType, (class_data *)&s_cd, this, (WeakComponentImplHelperBase *)this ); } \ virtual void SAL_CALL acquire() throw () \ { WeakComponentImplHelperBase::acquire(); } \ virtual void SAL_CALL release() throw () \ { WeakComponentImplHelperBase::release(); } \ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException) \ { return WeakComponentImplHelper_getTypes( (class_data *)&s_cd ); } \ virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException) \ { return ImplHelper_getImplementationId( (class_data *)&s_cd ); } \ }; \ template< __CLASS_IFC##N > \ class_data##N WeakComponentImplHelper##N< __IFC##N >::s_cd = \ __DEF_CLASS_DATA_INIT_EX( N, (WeakComponentImplHelper##N< __IFC##N > *) ); \ template< __CLASS_IFC##N > \ class SAL_NO_VTABLE WeakAggComponentImplHelper##N \ : public WeakAggComponentImplHelperBase \ , public ::com::sun::star::lang::XTypeProvider \ , __PUBLIC_IFC##N \ { \ static class_data##N s_cd; \ public: \ inline WeakAggComponentImplHelper##N( ::osl::Mutex & rMutex ) SAL_THROW( () ) \ : WeakAggComponentImplHelperBase( rMutex ) \ {} \ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException) \ { return WeakAggComponentImplHelperBase::queryInterface( rType ); } \ virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException) \ { return WeakAggComponentImplHelper_queryAgg( rType, (class_data *)&s_cd, this, (WeakAggComponentImplHelperBase *)this ); } \ virtual void SAL_CALL acquire() throw () \ { WeakAggComponentImplHelperBase::acquire(); } \ virtual void SAL_CALL release() throw () \ { WeakAggComponentImplHelperBase::release(); } \ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException) \ { return WeakAggComponentImplHelper_getTypes( (class_data *)&s_cd ); } \ virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException) \ { return ImplHelper_getImplementationId( (class_data *)&s_cd ); } \ }; \ template< __CLASS_IFC##N > \ class_data##N WeakAggComponentImplHelper##N< __IFC##N >::s_cd = \ __DEF_CLASS_DATA_INIT_EX( N, (WeakAggComponentImplHelper##N< __IFC##N > *) ); \ }
In File implbase_ex_post.hxx
- __DEF_IMPLHELPER_EX( N)
Defined As \ namespace cppu \ { \ struct class_data##N \ { \ sal_Int16 m_nTypes; \ sal_Bool m_storedTypeRefs; \ sal_Bool m_storedId; \ sal_Int8 m_id[ 16 ]; \ type_entry m_typeEntries[ N + 1 ]; \ }; \ template< __CLASS_IFC##N > \ class SAL_NO_VTABLE ImplHelper##N \ : public ::com::sun::star::lang::XTypeProvider \ , __PUBLIC_IFC##N \ { \ static class_data##N s_cd; \ public: \ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException) \ { return ImplHelper_query( rType, (class_data *)&s_cd, this ); } \ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException) \ { return ImplHelper_getTypes( (class_data *)&s_cd ); } \ virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException) \ { return ImplHelper_getImplementationId( (class_data *)&s_cd ); } \ }; \ template< __CLASS_IFC##N > \ class_data##N ImplHelper##N< __IFC##N >::s_cd = \ __DEF_CLASS_DATA_INIT_EX( N, (ImplHelper##N< __IFC##N > *) ); \ template< __CLASS_IFC##N > \ class SAL_NO_VTABLE WeakImplHelper##N \ : public OWeakObject \ , public ::com::sun::star::lang::XTypeProvider \ , __PUBLIC_IFC##N \ { \ static class_data##N s_cd; \ public: \ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException) \ { return WeakImplHelper_query( rType, (class_data *)&s_cd, this, (OWeakObject *)this ); } \ virtual void SAL_CALL acquire() throw () \ { OWeakObject::acquire(); } \ virtual void SAL_CALL release() throw () \ { OWeakObject::release(); } \ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException) \ { return WeakImplHelper_getTypes( (class_data *)&s_cd ); } \ virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException) \ { return ImplHelper_getImplementationId( (class_data *)&s_cd ); } \ }; \ template< __CLASS_IFC##N > \ class_data##N WeakImplHelper##N< __IFC##N >::s_cd = \ __DEF_CLASS_DATA_INIT_EX( N, (WeakImplHelper##N< __IFC##N > *) ); \ template< __CLASS_IFC##N > \ class SAL_NO_VTABLE WeakAggImplHelper##N \ : public OWeakAggObject \ , public ::com::sun::star::lang::XTypeProvider \ , __PUBLIC_IFC##N \ { \ static class_data##N s_cd; \ public: \ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException) \ { return OWeakAggObject::queryInterface( rType ); } \ virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException) \ { return WeakAggImplHelper_queryAgg( rType, (class_data *)&s_cd, this, (OWeakAggObject *)this ); } \ virtual void SAL_CALL acquire() throw () \ { OWeakAggObject::acquire(); } \ virtual void SAL_CALL release() throw () \ { OWeakAggObject::release(); } \ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException) \ { return WeakAggImplHelper_getTypes( (class_data *)&s_cd ); } \ virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException) \ { return ImplHelper_getImplementationId( (class_data *)&s_cd ); } \ }; \ template< __CLASS_IFC##N > \ class_data##N WeakAggImplHelper##N< __IFC##N >::s_cd = \ __DEF_CLASS_DATA_INIT_EX( N, (WeakAggImplHelper##N< __IFC##N > *) ); \ template< class BaseClass, __CLASS_IFC##N > \ class SAL_NO_VTABLE ImplInheritanceHelper##N \ : public BaseClass \ , __PUBLIC_IFC##N \ { \ static class_data##N s_cd; \ public: \ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException) \ { \ ::com::sun::star::uno::Any aRet( ImplHelper_queryNoXInterface( rType, (class_data *)&s_cd, this ) ); \ if (aRet.hasValue()) \ return aRet; \ return BaseClass::queryInterface( rType ); \ } \ virtual void SAL_CALL acquire() throw () \ { BaseClass::acquire(); } \ virtual void SAL_CALL release() throw () \ { BaseClass::release(); } \ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException) \ { return ImplInhHelper_getTypes( (class_data *)&s_cd, BaseClass::getTypes() ); } \ virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException) \ { return ImplHelper_getImplementationId( (class_data *)&s_cd ); } \ }; \ template< class BaseClass, __CLASS_IFC##N > \ class_data##N ImplInheritanceHelper##N< BaseClass, __IFC##N >::s_cd = \ __DEF_CLASS_DATA_INIT_EX( N, (ImplInheritanceHelper##N< BaseClass, __IFC##N > *) ); \ template< class BaseClass, __CLASS_IFC##N > \ class SAL_NO_VTABLE AggImplInheritanceHelper##N \ : public BaseClass \ , __PUBLIC_IFC##N \ { \ static class_data##N s_cd; \ public: \ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException) \ { return BaseClass::queryInterface( rType ); } \ virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException) \ { \ ::com::sun::star::uno::Any aRet( ImplHelper_queryNoXInterface( rType, (class_data *)&s_cd, this ) ); \ if (aRet.hasValue()) \ return aRet; \ return BaseClass::queryAggregation( rType ); \ } \ virtual void SAL_CALL acquire() throw () \ { BaseClass::acquire(); } \ virtual void SAL_CALL release() throw () \ { BaseClass::release(); } \ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException) \ { return ImplInhHelper_getTypes( (class_data *)&s_cd, BaseClass::getTypes() ); } \ virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException) \ { return ImplHelper_getImplementationId( (class_data *)&s_cd ); } \ }; \ template< class BaseClass, __CLASS_IFC##N > \ class_data##N AggImplInheritanceHelper##N< BaseClass, __IFC##N >::s_cd = \ __DEF_CLASS_DATA_INIT_EX( N, (AggImplInheritanceHelper##N< BaseClass, __IFC##N > *) ); \ }
In File implbase_ex_post.hxx
- __DEF_IMPLHELPER_POST( N)
Defined As \ __DEF_IMPLHELPER_POST_A( N ) \ __DEF_IMPLHELPER_POST_C( N )
In File implbase.hxx
- Summary
- Implementation helper macro: have a look at __DEF_IMPLHELPER_PRE
- __DEF_IMPLHELPER_POST( N)
Defined As \ __DEF_IMPLHELPER_POST_A( N ) \ __DEF_IMPLHELPER_POST_B( N ) \ __DEF_IMPLHELPER_POST_C( N )
In File implbase.hxx
- Summary
- Implementation helper macro: have a look at __DEF_IMPLHELPER_PRE
- __DEF_IMPLHELPER_POST_A( N)
Defined As \ rCD.bOffsetsInit = sal_True; \ } \ } \ return rCD; \ } \ }; \ template< __CLASS_IFC##N > \ class SAL_NO_VTABLE ImplHelper##N \ : public ImplHelperBase##N< __IFC##N > \ { \ static ClassData##N s_aCD; \ public: \ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw (::com::sun::star::uno::RuntimeException) \ { return getClassData( s_aCD ).query( rType, (ImplHelperBase##N< __IFC##N > *)this ); } \ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException) \ { return getClassData( s_aCD ).getTypes(); } \ virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException) \ { return getClassData( s_aCD ).getImplementationId(); } \ }; \ template< __CLASS_IFC##N > \ class SAL_NO_VTABLE WeakImplHelper##N \ : public ::cppu::OWeakObject \ , public ImplHelperBase##N< __IFC##N > \ { \ static ClassData##N s_aCD; \ public: \ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw (::com::sun::star::uno::RuntimeException) \ { \ ::com::sun::star::uno::Any aRet( getClassData( s_aCD ).query( rType, (ImplHelperBase##N< __IFC##N > *)this ) ); \ return (aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType )); \ } \ virtual void SAL_CALL acquire() throw () \ { OWeakObject::acquire(); } \ virtual void SAL_CALL release() throw () \ { OWeakObject::release(); } \ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException) \ { return getClassData( s_aCD ).getTypes(); } \ virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException) \ { return getClassData( s_aCD ).getImplementationId(); } \ }; \ template< __CLASS_IFC##N > \ class SAL_NO_VTABLE WeakAggImplHelper##N \ : public ::cppu::OWeakAggObject \ , public ImplHelperBase##N< __IFC##N > \ { \ static ClassData##N s_aCD; \ public: \ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw (::com::sun::star::uno::RuntimeException) \ { return OWeakAggObject::queryInterface( rType ); } \ virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw (::com::sun::star::uno::RuntimeException) \ { \ ::com::sun::star::uno::Any aRet( getClassData( s_aCD ).query( rType, (ImplHelperBase##N< __IFC##N > *)this ) ); \ return (aRet.hasValue() ? aRet : OWeakAggObject::queryAggregation( rType )); \ } \ virtual void SAL_CALL acquire() throw () \ { OWeakAggObject::acquire(); } \ virtual void SAL_CALL release() throw () \ { OWeakAggObject::release(); } \ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException) \ { return getClassData( s_aCD ).getTypes(); } \ virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException) \ { return getClassData( s_aCD ).getImplementationId(); } \ };
In File implbase.hxx
- Summary
- Implementation helper macro: have a look at __DEF_IMPLHELPER_PRE
- __DEF_IMPLHELPER_POST_B( N)
Defined As \ template< __CLASS_IFC##N > \ ClassData##N ImplHelper##N< __IFC##N >::s_aCD = ClassData##N( 0 ); \ template< __CLASS_IFC##N > \ ClassData##N WeakImplHelper##N< __IFC##N >::s_aCD = ClassData##N( 1 ); \ template< __CLASS_IFC##N > \ ClassData##N WeakAggImplHelper##N< __IFC##N >::s_aCD = ClassData##N( 2 );
In File implbase.hxx
- Summary
- Implementation helper macro: have a look at __DEF_IMPLHELPER_PRE
- __DEF_IMPLHELPER_POST_C( N)
Defined As \ }
In File implbase.hxx
- Summary
- Implementation helper macro: have a look at __DEF_IMPLHELPER_PRE
- __DEF_IMPLHELPER_PRE( N)
Defined As \ namespace cppu \ { \ struct ClassData##N : public ClassDataBase \ { \ Type_Offset arType2Offset[ N ]; \ ClassData##N( sal_Int32 nClassCode ) SAL_THROW( () ) \ : ClassDataBase( nClassCode ) \ {} \ }; \ template< __CLASS_IFC##N > \ class SAL_NO_VTABLE ImplHelperBase##N \ : public ::com::sun::star::lang::XTypeProvider \ , __PUBLIC_IFC##N \ { \ protected: \ ClassData & SAL_CALL getClassData( ClassDataBase & s_aCD ) SAL_THROW( () ) \ { \ ClassData & rCD = * static_cast< ClassData * >( &s_aCD ); \ if (! rCD.bOffsetsInit) \ { \ ::osl::MutexGuard aGuard( getImplHelperInitMutex() ); \ if (! rCD.bOffsetsInit) \ { \ char * pBase = (char *)this;
In File implbase.hxx
- Description
- Implementation helper macros Not for common use. There are expanded forms of the macro usage in implbaseN.hxx/compbaseN.hxx. So there is commonly no need to use these macros. Though, you may need to implement more than 12 interfaces. Then you have to declare something like the following in your headers (where N is your demanded number of interfaces): #define __IFC3 Ifc1, Ifc2, Ifc3, ... up to N #define __CLASS_IFC3 class Ifc1, class Ifc2, class Ifc3, ... up to N #define __PUBLIC_IFC3 public Ifc1, public Ifc2, public Ifc3, ... up to N __DEF_IMPLHELPER_PRE( N ) __IFC_WRITEOFFSET( 1 ) __IFC_WRITEOFFSET( 2 ) __IFC_WRITEOFFSET( 3 ), ... up to N __DEF_IMPLHELPER_POST( N )
- __IFC_EX_TYPE_INIT( class_cast, N)
Defined As __IFC_EX_TYPE_INIT_NAME( class_cast, Ifc##N )
In File implbase_ex_pre.hxx
- __IFC_EX_TYPE_INIT_NAME( class_cast, ifc_name)
Defined As \ { (::cppu::fptr_getCppuType)(::com::sun::star::uno::Type const & (SAL_CALL *)( ::com::sun::star::uno::Reference< ifc_name > const * ))&getCppuType, \ ((sal_Int32)(ifc_name *) class_cast 16) - 16 }
In File implbase_ex_pre.hxx
- __IFC_WRITEOFFSET( N)
Defined As \ rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< Ifc##N > *)0 ), \ (char *)(Ifc##N *)this - pBase );
In File implbase.hxx
- Summary
- Implementation helper macro: have a look at __DEF_IMPLHELPER_PRE
Top of Page
Copyright 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.