diff options
Diffstat (limited to 'sc/source/ui/unoobj/funcuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/funcuno.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sc/source/ui/unoobj/funcuno.cxx b/sc/source/ui/unoobj/funcuno.cxx index 8e56ceedf616..1d9f3a1d9213 100644 --- a/sc/source/ui/unoobj/funcuno.cxx +++ b/sc/source/ui/unoobj/funcuno.cxx @@ -51,7 +51,7 @@ #include "cell.hxx" #include "docoptio.hxx" #include "optuno.hxx" - +#include <docuno.hxx> // for lcl_CopyData: #include "markdata.hxx" #include "patattr.hxx" @@ -201,6 +201,7 @@ BOOL lcl_CopyData( ScDocument* pSrcDoc, const ScRange& rSrcRange, ScFunctionAccess::ScFunctionAccess() : pOptions( NULL ), + aPropertyMap( ScDocOptionsHelper::GetPropertyMap() ), bInvalid( FALSE ) { StartListening( *SFX_APP() ); // for SFX_HINT_DEINITIALIZING @@ -278,7 +279,7 @@ uno::Reference<beans::XPropertySetInfo> SAL_CALL ScFunctionAccess::getPropertySe { ScUnoGuard aGuard; static uno::Reference<beans::XPropertySetInfo> aRef( - new SfxItemPropertySetInfo( ScDocOptionsHelper::GetPropertyMap() )); + new SfxItemPropertySetInfo( &aPropertyMap )); return aRef; } @@ -295,7 +296,7 @@ void SAL_CALL ScFunctionAccess::setPropertyValue( // options aren't initialized from configuration - always get the same default behaviour - BOOL bDone = ScDocOptionsHelper::setPropertyValue( *pOptions, aPropertyName, aValue ); + BOOL bDone = ScDocOptionsHelper::setPropertyValue( *pOptions, aPropertyMap, aPropertyName, aValue ); if (!bDone) throw beans::UnknownPropertyException(); } @@ -311,7 +312,7 @@ uno::Any SAL_CALL ScFunctionAccess::getPropertyValue( const rtl::OUString& aProp // options aren't initialized from configuration - always get the same default behaviour - return ScDocOptionsHelper::getPropertyValue( *pOptions, aPropertyName ); + return ScDocOptionsHelper::getPropertyValue( *pOptions, aPropertyMap, aPropertyName ); } SC_IMPL_DUMMY_PROPERTY_LISTENER( ScFunctionAccess ) |