diff options
Diffstat (limited to 'basic/source/classes')
-rw-r--r-- | basic/source/classes/propacc.cxx | 9 | ||||
-rw-r--r-- | basic/source/classes/sbunoobj.cxx | 11 | ||||
-rw-r--r-- | basic/source/classes/sbxmod.cxx | 3 |
3 files changed, 6 insertions, 17 deletions
diff --git a/basic/source/classes/propacc.cxx b/basic/source/classes/propacc.cxx index 9d627248ea1d..48e56c2a5536 100644 --- a/basic/source/classes/propacc.cxx +++ b/basic/source/classes/propacc.cxx @@ -22,6 +22,7 @@ #include <basic/sbstar.hxx> #include <sbunoobj.hxx> +#include <basic/sbuno.hxx> #include <limits.h> // USHRT_MAX @@ -32,14 +33,6 @@ using namespace com::sun::star::lang; using namespace com::sun::star::beans; using namespace cppu; - -//======================================================================== - -// Declaration conversion from Sbx to UNO with known target type -Any sbxToUnoValue( SbxVariable* pVar, const Type& rType, Property* pUnoProperty = NULL ); - -//======================================================================== - #ifdef WNT #define CDECL _cdecl #endif diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx index c0b9c33936ee..eba896f0609b 100644 --- a/basic/source/classes/sbunoobj.cxx +++ b/basic/source/classes/sbunoobj.cxx @@ -897,7 +897,7 @@ Type getUnoTypeForSbxBaseType( SbxDataType eType ) } // Converting of Sbx to Uno without a know target class for TypeClass_ANY -Type getUnoTypeForSbxValue( SbxValue* pVal ) +Type getUnoTypeForSbxValue( const SbxValue* pVal ) { Type aRetType = getCppuVoidType(); if( !pVal ) @@ -1026,11 +1026,8 @@ Type getUnoTypeForSbxValue( SbxValue* pVal ) return aRetType; } -// Declaration converting of Sbx to Uno with known target class -Any sbxToUnoValue( SbxVariable* pVar, const Type& rType, Property* pUnoProperty = NULL ); - // converting of Sbx to Uno without known target class for TypeClass_ANY -Any sbxToUnoValueImpl( SbxVariable* pVar, bool bBlockConversionToSmallestType = false ) +Any sbxToUnoValueImpl( const SbxValue* pVar, bool bBlockConversionToSmallestType = false ) { SbxDataType eBaseType = pVar->SbxValue::GetType(); if( eBaseType == SbxOBJECT ) @@ -1194,7 +1191,7 @@ static Any implRekMultiDimArrayToSequence( SbxDimArray* pArray, } // Map old interface -Any sbxToUnoValue( SbxVariable* pVar ) +Any sbxToUnoValue( const SbxValue* pVar ) { return sbxToUnoValueImpl( pVar ); } @@ -1223,7 +1220,7 @@ static bool implGetTypeByName( const OUString& rName, Type& rRetType ) // converting of Sbx to Uno with known target class -Any sbxToUnoValue( SbxVariable* pVar, const Type& rType, Property* pUnoProperty ) +Any sbxToUnoValue( const SbxValue* pVar, const Type& rType, Property* pUnoProperty ) { Any aRetVal; diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx index 567d26fa0993..b1e4b8ffad9a 100644 --- a/basic/source/classes/sbxmod.cxx +++ b/basic/source/classes/sbxmod.cxx @@ -25,6 +25,7 @@ #include <svl/brdcst.hxx> #include <tools/shl.hxx> #include <basic/sbx.hxx> +#include <basic/sbuno.hxx> #include "sbdiagnose.hxx" #include "sb.hxx" #include <sbjsmeth.hxx> @@ -87,8 +88,6 @@ using namespace com::sun::star::uno; typedef ::cppu::WeakImplHelper1< XInvocation > DocObjectWrapper_BASE; typedef ::std::map< sal_Int16, Any, ::std::less< sal_Int16 > > OutParamMap; -::com::sun::star::uno::Any sbxToUnoValue( SbxVariable* pVar ); -void unoToSbxValue( SbxVariable* pVar, const ::com::sun::star::uno::Any& aValue ); class DocObjectWrapper : public DocObjectWrapper_BASE { |