summaryrefslogtreecommitdiff
path: root/extensions/source/ole/unoobjw.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/ole/unoobjw.hxx')
-rw-r--r--extensions/source/ole/unoobjw.hxx98
1 files changed, 49 insertions, 49 deletions
diff --git a/extensions/source/ole/unoobjw.hxx b/extensions/source/ole/unoobjw.hxx
index e57421fc9286..e007dd662883 100644
--- a/extensions/source/ole/unoobjw.hxx
+++ b/extensions/source/ole/unoobjw.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,16 +42,16 @@
#include "ole2uno.hxx"
#include "unoconversionutilities.hxx"
-//#define INVOCATION_SERVICE L"com.sun.star.script.Invocation"
-#define JSCRIPT_VALUE_FUNC L"_GetValueObject"
-#define GET_STRUCT_FUNC L"_GetStruct"
+//#define INVOCATION_SERVICE L"com.sun.star.script.Invocation"
+#define JSCRIPT_VALUE_FUNC L"_GetValueObject"
+#define GET_STRUCT_FUNC L"_GetStruct"
#define BRIDGE_VALUE_FUNC L"Bridge_GetValueObject"
#define BRIDGE_GET_STRUCT_FUNC L"Bridge_GetStruct"
#define BRIDGE_CREATE_TYPE_FUNC L"Bridge_CreateType"
#define DISPID_JSCRIPT_VALUE_FUNC -10l
-#define DISPID_GET_STRUCT_FUNC -102
-#define DISPID_CREATE_TYPE_FUNC -103
+#define DISPID_GET_STRUCT_FUNC -102
+#define DISPID_CREATE_TYPE_FUNC -103
using namespace std;
using namespace cppu;
@@ -84,8 +84,8 @@ struct MemberInfo
{
MemberInfo() : flags(0), name() {}
MemberInfo(WORD f, const OUString& n) : flags(f), name(n) {}
-
- WORD flags;
+
+ WORD flags;
OUString name;
};
@@ -114,10 +114,10 @@ typedef hash_map
/*****************************************************************************
class declaration: InterfaceOleWrapper_Impl
-
+
*****************************************************************************/
-class InterfaceOleWrapper_Impl : public WeakImplHelper2<XBridgeSupplier2, XInitialization>,
+class InterfaceOleWrapper_Impl : public WeakImplHelper2<XBridgeSupplier2, XInitialization>,
public IDispatchEx,
public UnoConversionUtilities<InterfaceOleWrapper_Impl>,
public IUnoObjectWrapper
@@ -144,12 +144,12 @@ public:
/* IDispatchEx methods */
- virtual HRESULT STDMETHODCALLTYPE GetDispID(
+ virtual HRESULT STDMETHODCALLTYPE GetDispID(
/* [in] */ BSTR bstrName,
/* [in] */ DWORD grfdex,
/* [out] */ DISPID __RPC_FAR *pid);
-
- virtual /* [local] */ HRESULT STDMETHODCALLTYPE InvokeEx(
+
+ virtual /* [local] */ HRESULT STDMETHODCALLTYPE InvokeEx(
/* [in] */ DISPID id,
/* [in] */ LCID lcid,
/* [in] */ WORD wFlags,
@@ -157,36 +157,36 @@ public:
/* [out] */ VARIANT __RPC_FAR *pvarRes,
/* [out] */ EXCEPINFO __RPC_FAR *pei,
/* [unique][in] */ IServiceProvider __RPC_FAR *pspCaller);
-
- virtual HRESULT STDMETHODCALLTYPE DeleteMemberByName(
+
+ virtual HRESULT STDMETHODCALLTYPE DeleteMemberByName(
/* [in] */ BSTR bstr,
/* [in] */ DWORD grfdex);
-
- virtual HRESULT STDMETHODCALLTYPE DeleteMemberByDispID(
+
+ virtual HRESULT STDMETHODCALLTYPE DeleteMemberByDispID(
/* [in] */ DISPID id);
-
- virtual HRESULT STDMETHODCALLTYPE GetMemberProperties(
+
+ virtual HRESULT STDMETHODCALLTYPE GetMemberProperties(
/* [in] */ DISPID id,
/* [in] */ DWORD grfdexFetch,
/* [out] */ DWORD __RPC_FAR *pgrfdex);
-
- virtual HRESULT STDMETHODCALLTYPE GetMemberName(
+
+ virtual HRESULT STDMETHODCALLTYPE GetMemberName(
/* [in] */ DISPID id,
/* [out] */ BSTR __RPC_FAR *pbstrName);
-
- virtual HRESULT STDMETHODCALLTYPE GetNextDispID(
+
+ virtual HRESULT STDMETHODCALLTYPE GetNextDispID(
/* [in] */ DWORD grfdex,
/* [in] */ DISPID id,
/* [out] */ DISPID __RPC_FAR *pid);
-
- virtual HRESULT STDMETHODCALLTYPE GetNameSpaceParent(
+
+ virtual HRESULT STDMETHODCALLTYPE GetNameSpaceParent(
/* [out] */ IUnknown __RPC_FAR *__RPC_FAR *ppunk);
-
+
// XBridgeSupplier2 ---------------------------------------------------
- virtual Any SAL_CALL createBridge(const Any& modelDepObject,
- const Sequence<sal_Int8>& ProcessId,
- sal_Int16 sourceModelType,
- sal_Int16 destModelType)
+ virtual Any SAL_CALL createBridge(const Any& modelDepObject,
+ const Sequence<sal_Int8>& ProcessId,
+ sal_Int16 sourceModelType,
+ sal_Int16 destModelType)
throw (IllegalArgumentException, RuntimeException);
//XInitialization -----------------------------------------------------
@@ -198,34 +198,34 @@ public:
STDMETHOD( getOriginalUnoStruct)( Any * pStruct);
// UnoConversionUtility
- virtual Reference< XInterface > createUnoWrapperInstance();
+ virtual Reference< XInterface > createUnoWrapperInstance();
virtual Reference< XInterface > createComWrapperInstance();
protected:
- virtual HRESULT doInvoke( DISPPARAMS * pdispparams, VARIANT * pvarResult,
+ virtual HRESULT doInvoke( DISPPARAMS * pdispparams, VARIANT * pvarResult,
EXCEPINFO * pexcepinfo, unsigned int * puArgErr, OUString & name, Sequence<Any>& params);
- virtual HRESULT doGetProperty( DISPPARAMS * pdispparams, VARIANT * pvarResult,
+ virtual HRESULT doGetProperty( DISPPARAMS * pdispparams, VARIANT * pvarResult,
EXCEPINFO * pexcepinfo, OUString & name );
- virtual HRESULT doSetProperty( DISPPARAMS * pdispparams, VARIANT * pvarResult,
+ virtual HRESULT doSetProperty( DISPPARAMS * pdispparams, VARIANT * pvarResult,
EXCEPINFO * pexcepinfo, unsigned int * puArgErr, OUString & name, Sequence<Any> params);
virtual HRESULT InvokeGeneral( DISPID dispidMember, unsigned short wFlags,
DISPPARAMS * pdispparams, VARIANT * pvarResult, EXCEPINFO * pexcepinfo,
unsigned int * puArgErr, sal_Bool& bHandled);
- void convertDispparamsArgs( DISPID id, unsigned short wFlags, DISPPARAMS* pdispparams,
+ void convertDispparamsArgs( DISPID id, unsigned short wFlags, DISPPARAMS* pdispparams,
Sequence<Any>& rSeq);
sal_Bool getInvocationInfoForCall(DISPID id, InvocationInfo& info);
- Reference<XInvocation> m_xInvocation;
- Reference<XExactName> m_xExactName;
- Reference<XInterface> m_xOrigin;
- NameToIdMap m_nameToDispIdMap;
- vector<MemberInfo> m_MemberInfos;
+ Reference<XInvocation> m_xInvocation;
+ Reference<XExactName> m_xExactName;
+ Reference<XInterface> m_xOrigin;
+ NameToIdMap m_nameToDispIdMap;
+ vector<MemberInfo> m_MemberInfos;
// This member is used to determine the default value
// denoted by DISPID_VALUE (0). For proper results in JavaScript
// we have to return the default value when we write an object
@@ -234,13 +234,13 @@ protected:
// to detect the default value. The wrapped object must then return
// its own IDispatch* otherwise we cannot access it within the script.
// see InterfaceOleWrapper_Impl::Invoke
- VARTYPE m_defaultValueType;
+ VARTYPE m_defaultValueType;
};
/*****************************************************************************
- class declaration: UnoObjectWrapperRemoteOpt
+ class declaration: UnoObjectWrapperRemoteOpt
( Uno Object Wrapper Remote Optimized)
This is the UNO wrapper used in the service com.sun.star.bridge.OleBridgeSupplierVar1.
Key features:
@@ -249,7 +249,7 @@ protected:
if a call is made to a property or method if the flags are DISPATCH_METHOD | DISPATCH_PROPERTYPUT.
If something has been found out about a property or member than it is saved
in a MemberInfo structure hold by a IdToMemberInfoMap stl map.
-
+
*****************************************************************************/
class UnoObjectWrapperRemoteOpt: public InterfaceOleWrapper_Impl
{
@@ -270,20 +270,20 @@ public:
protected:
- HRESULT methodInvoke( DISPID dispidMember, DISPPARAMS * pdispparams, VARIANT * pvarResult,
+ HRESULT methodInvoke( DISPID dispidMember, DISPPARAMS * pdispparams, VARIANT * pvarResult,
EXCEPINFO * pexcepinfo, unsigned int * puArgErr, Sequence<Any> params);
// In GetIDsOfNames are blindly passed out, that is without verifying
- // the name. If two names are passed in during different calls to
+ // the name. If two names are passed in during different calls to
// GetIDsOfNames and the names differ only in their cases then different
// id's are passed out ( e.g. "doSomethingMethod" or "dosomethingmethod").
- // In Invoke the DISPID is remapped to the name passed to GetIDsOfNames
+ // In Invoke the DISPID is remapped to the name passed to GetIDsOfNames
// and the name is used as parameter for XInvocation::invoke. If invoke
// fails because of a wrong name, then m_xExactName ( XExactName) is used
// to verify the name. The correct name is then inserted to m_MemberInfos
- // ( vector<MemberInfo> ). During the next call to Invoke the right name
- // is used. .
-
+ // ( vector<MemberInfo> ). During the next call to Invoke the right name
+ // is used. .
+
BadNameMap m_badNameMap;
IdToMemberInfoMap m_idToMemberInfoMap;