24#include <com/sun/star/lang/XInitialization.hpp>
25#include <com/sun/star/lang/XServiceInfo.hpp>
71 STDMETHOD(
CreateInstance)(IUnknown* punkOuter, REFIID riid,
void** ppv)
override;
93class OleConverter :
public WeakImplHelper<XBridgeSupplier2, XInitialization, css::lang::XServiceInfo>,
105 sal_Int16 sourceModelType,
106 sal_Int16 destModelType)
override;
126class OleClient :
public WeakImplHelper<XMultiServiceFactory, css::lang::XServiceInfo>,
163class OleServer :
public cppu::WeakImplHelper<css::lang::XServiceInfo>
Reference< XBridgeSupplier2 > m_bridgeSupplier
Reference< XInterface > createComWrapperInstance() override
Reference< XInterface > SAL_CALL createInstance(const OUString &ServiceSpecifier) override
Sequence< OUString > SAL_CALL getAvailableServiceNames() override
Reference< XInterface > createUnoWrapperInstance() override
sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
Reference< XInterface > SAL_CALL createInstanceWithArguments(const OUString &ServiceSpecifier, const Sequence< Any > &Arguments) override
OleClient(const Reference< XMultiServiceFactory > &smgr)
OUString SAL_CALL getImplementationName() override
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Any SAL_CALL createBridge(const Any &modelDepObject, const Sequence< sal_Int8 > &ProcessId, sal_Int16 sourceModelType, sal_Int16 destModelType) override
Reference< XInterface > createComWrapperInstance() override
OUString SAL_CALL getImplementationName() override
virtual ~OleConverter() override
sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
OleConverter(const Reference< XMultiServiceFactory > &smgr)
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Reference< XInterface > createUnoWrapperInstance() override
void SAL_CALL initialize(const Sequence< Any > &aArguments) override
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
std::list< OneInstanceOleWrapper * > m_wrapperList
bool provideInstance(std::function< const Reference< XInterface >()> xInstFunction, GUID const *guid)
Reference< XBridgeSupplier2 > m_bridgeSupplier
OleServer(const Reference< XMultiServiceFactory > &smgr)
OUString SAL_CALL getImplementationName() override
Reference< XMultiServiceFactory > m_smgr
sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
Reference< XBridgeSupplier2 > m_bridgeSupplier
bool registerClass(GUID const *pGuid)
STDMETHOD_(ULONG, AddRef)() override
STDMETHOD_(ULONG, Release)() override
virtual ~OneInstanceOleWrapper()
OneInstanceOleWrapper(const Reference< XMultiServiceFactory > &smgr, std::function< const Reference< XInterface >()> xInstFunction)
STDMETHOD() CreateInstance(IUnknown *punkOuter, REFIID riid, void **ppv) override
Reference< XMultiServiceFactory > m_smgr
STDMETHOD() QueryInterface(REFIID riid, void **ppvObj) override
STDMETHOD() LockServer(BOOL fLock) override
std::function< const Reference< XInterface >()> m_xInstFunction
oslInterlockedCount m_refCount
All methods are allowed to throw at least a BridgeRuntimeError.
Sequence< PropertyValue > aArguments
const wchar_t *typedef BOOL
Reference< XInterface > OleClient_CreateInstance(const Reference< XMultiServiceFactory > &xSMgr)
Reference< XInterface > OleServer_CreateInstance(const Reference< XMultiServiceFactory > &xSMgr)
Reference< XInterface > ConverterProvider_CreateInstanceVar1(const Reference< XMultiServiceFactory > &xSMgr)
Reference< XInterface > ConverterProvider_CreateInstance2(const Reference< XMultiServiceFactory > &xSMgr)