diff options
-rw-r--r-- | sc/source/ui/vba/vbaformat.cxx | 20 | ||||
-rw-r--r-- | sc/source/ui/vba/vbaformat.hxx | 1 | ||||
-rwxr-xr-x | unusedcode.easy | 2 |
3 files changed, 0 insertions, 23 deletions
diff --git a/sc/source/ui/vba/vbaformat.cxx b/sc/source/ui/vba/vbaformat.cxx index 5688021719b6..e46bb925e33e 100644 --- a/sc/source/ui/vba/vbaformat.cxx +++ b/sc/source/ui/vba/vbaformat.cxx @@ -401,26 +401,6 @@ ScVbaFormat<Ifc1>::getNumberFormatLocal( ) throw (script::BasicErrorException, } template< typename Ifc1 > -void -ScVbaFormat<Ifc1>::setNumberFormat( lang::Locale _aLocale, const rtl::OUString& _sFormatString) throw( script::BasicErrorException ) -{ - try - { - initializeNumberFormats(); - sal_Int32 nFormat = xNumberFormats->queryKey(_sFormatString, _aLocale , sal_True); - if (nFormat == -1) - { - xNumberFormats->addNew(_sFormatString, _aLocale); - } - mxPropertySet->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( SC_UNO_DP_NUMBERFO ) ), uno::makeAny( nFormat ) ); - } - catch (const uno::Exception& ) - { - DebugHelper::exception(SbERR_METHOD_FAILED, rtl::OUString()); - } -} - -template< typename Ifc1 > void SAL_CALL ScVbaFormat<Ifc1>::setNumberFormatLocal( const uno::Any& _oLocalFormatString ) throw (script::BasicErrorException, uno::RuntimeException) { diff --git a/sc/source/ui/vba/vbaformat.hxx b/sc/source/ui/vba/vbaformat.hxx index f5520116631b..861bc871774e 100644 --- a/sc/source/ui/vba/vbaformat.hxx +++ b/sc/source/ui/vba/vbaformat.hxx @@ -62,7 +62,6 @@ protected: bool isAmbiguous(const rtl::OUString& _sPropertyName) throw ( css::script::BasicErrorException ); css::uno::Reference< css::beans::XPropertyState > getXPropertyState() throw ( css::uno::RuntimeException ); void initializeNumberFormats() throw ( css::script::BasicErrorException ); - void setNumberFormat( css::lang::Locale _aLocale, const rtl::OUString& _sFormatString) throw( css::script::BasicErrorException ); SfxItemSet* getCurrentDataSet( ) throw ( css::uno::RuntimeException ); protected: virtual ScCellRangesBase* getCellRangesBase() throw ( css::uno::RuntimeException ); diff --git a/unusedcode.easy b/unusedcode.easy index ee7ea3ef2d3e..cd2ce8cebfe5 100755 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -9,10 +9,8 @@ SanExtensionImpl::setCertExtn(unsigned char*, unsigned int, unsigned char*, unsi ScFiltersTest::testColorScaleODS() ScFiltersTest::testColorScaleXLSX() ScMenuFloatingWindow::getDoc() -ScVbaFormat<ooo::vba::excel::XRange>::setNumberFormat(com::sun::star::lang::Locale, rtl::OUString const&) ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent() ScVbaFormat<ooo::vba::excel::XStyle>::setAddIndent(com::sun::star::uno::Any const&) -ScVbaFormat<ooo::vba::excel::XStyle>::setNumberFormat(com::sun::star::lang::Locale, rtl::OUString const&) String::String(unsigned short) SvListView::GetModel() const SvTreeList::GetChildIterators(SvTreeListEntry const*) const |