LibreOffice Module extensions (master) 1
Classes | Macros | Typedefs | Functions | Variables
unoconversionutilities.hxx File Reference
#include <memory>
#include <com/sun/star/script/CannotConvertException.hpp>
#include <com/sun/star/script/XInvocationAdapterFactory.hpp>
#include <com/sun/star/script/XInvocationAdapterFactory2.hpp>
#include <com/sun/star/script/XTypeConverter.hpp>
#include <com/sun/star/script/FailReason.hpp>
#include <com/sun/star/bridge/ModelDependent.hpp>
#include <com/sun/star/bridge/XBridgeSupplier2.hpp>
#include <com/sun/star/bridge/oleautomation/Date.hpp>
#include <com/sun/star/bridge/oleautomation/Currency.hpp>
#include <com/sun/star/bridge/oleautomation/SCode.hpp>
#include <com/sun/star/bridge/oleautomation/Decimal.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <typelib/typedescription.hxx>
#include <o3tl/any.hxx>
#include <o3tl/char16_t2wchar_t.hxx>
#include "ole2uno.hxx"
#include <cppuhelper/weakref.hxx>
#include "unotypewrapper.hxx"
#include <unordered_map>
Include dependency graph for unoconversionutilities.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UnoConversionUtilities< class >
 All methods are allowed to throw at least a BridgeRuntimeError. More...
 

Macros

#define INTERFACE_OLE_WRAPPER_IMPL   1
 
#define UNO_OBJECT_WRAPPER_REMOTE_OPT   2
 
#define INVOCATION_SERVICE   "com.sun.star.script.Invocation"
 
#define IUNKNOWN_WRAPPER_IMPL   1
 
#define INTERFACE_ADAPTER_FACTORY   "com.sun.star.script.InvocationAdapterFactory"
 
#define SUPPORTED_INTERFACES_PROP   L"_implementedInterfaces"
 
#define SUPPORTED_INTERFACES_PROP2   L"Bridge_ImplementedInterfaces"
 

Typedefs

typedef unsigned char BYTE
 

Functions

void reduceRange (Any &any)
 
template<class T >
bool convertSelfToCom (T &unoInterface, VARIANT *pVar)
 

Variables

std::unordered_map< sal_uIntPtr, sal_uIntPtr > AdapterToWrapperMap
 
std::unordered_map< sal_uIntPtr, sal_uIntPtr > WrapperToAdapterMap
 
std::unordered_map< sal_uIntPtr, WeakReference< XInterface > > ComPtrToWrapperMap
 
std::unordered_map< sal_uIntPtr, WeakReference< XInterface > > UnoObjToWrapperMap
 

Macro Definition Documentation

◆ INTERFACE_ADAPTER_FACTORY

#define INTERFACE_ADAPTER_FACTORY   "com.sun.star.script.InvocationAdapterFactory"

Definition at line 55 of file unoconversionutilities.hxx.

◆ INTERFACE_OLE_WRAPPER_IMPL

#define INTERFACE_OLE_WRAPPER_IMPL   1

Definition at line 46 of file unoconversionutilities.hxx.

◆ INVOCATION_SERVICE

#define INVOCATION_SERVICE   "com.sun.star.script.Invocation"

Definition at line 49 of file unoconversionutilities.hxx.

◆ IUNKNOWN_WRAPPER_IMPL

#define IUNKNOWN_WRAPPER_IMPL   1

Definition at line 53 of file unoconversionutilities.hxx.

◆ SUPPORTED_INTERFACES_PROP

#define SUPPORTED_INTERFACES_PROP   L"_implementedInterfaces"

Definition at line 57 of file unoconversionutilities.hxx.

◆ SUPPORTED_INTERFACES_PROP2

#define SUPPORTED_INTERFACES_PROP2   L"Bridge_ImplementedInterfaces"

Definition at line 59 of file unoconversionutilities.hxx.

◆ UNO_OBJECT_WRAPPER_REMOTE_OPT

#define UNO_OBJECT_WRAPPER_REMOTE_OPT   2

Definition at line 47 of file unoconversionutilities.hxx.

Typedef Documentation

◆ BYTE

typedef unsigned char BYTE

Definition at line 44 of file unoconversionutilities.hxx.

Function Documentation

◆ convertSelfToCom()

template<class T >
bool convertSelfToCom ( T &  unoInterface,
VARIANT *  pVar 
)

Definition at line 259 of file unoconversionutilities.hxx.

References Any, hr, and v.

Referenced by UnoConversionUtilities< class >::createUnoObjectWrapper().

◆ reduceRange()

void reduceRange ( Any &  any)
inline

Definition at line 101 of file unoconversionutilities.hxx.

References any, and value.

Referenced by UnoConversionUtilities< class >::variantToAny().

Variable Documentation

◆ AdapterToWrapperMap

std::unordered_map<sal_uIntPtr, sal_uIntPtr> AdapterToWrapperMap
extern

◆ ComPtrToWrapperMap

std::unordered_map<sal_uIntPtr, WeakReference<XInterface> > ComPtrToWrapperMap
extern

◆ UnoObjToWrapperMap

std::unordered_map<sal_uIntPtr, WeakReference<XInterface> > UnoObjToWrapperMap
extern

◆ WrapperToAdapterMap

std::unordered_map<sal_uIntPtr, sal_uIntPtr> WrapperToAdapterMap
extern