diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-27 13:04:00 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-07-28 08:35:34 +0200 |
commit | b1c25a0d8fa2f8effc501cc100b0c07f79437e8e (patch) | |
tree | a9d0dac27fd41ebb88775fdf3605fb1aabb8299e /sc/source | |
parent | 4eeeec899f44d2010189251c0f09120ade202dd8 (diff) |
inline "old" SbERR constants
Change-Id: I3e6665351de97692ae70207e8b623ad008ca8c9a
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/vba/vbaapplication.cxx | 6 | ||||
-rw-r--r-- | sc/source/ui/vba/vbaaxes.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/vba/vbaaxis.cxx | 50 | ||||
-rw-r--r-- | sc/source/ui/vba/vbachart.cxx | 32 | ||||
-rw-r--r-- | sc/source/ui/vba/vbachartobject.cxx | 6 | ||||
-rw-r--r-- | sc/source/ui/vba/vbachartobjects.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/vba/vbacondition.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/vba/vbaformat.cxx | 54 | ||||
-rw-r--r-- | sc/source/ui/vba/vbaformatcondition.cxx | 8 | ||||
-rw-r--r-- | sc/source/ui/vba/vbaformatconditions.cxx | 16 | ||||
-rw-r--r-- | sc/source/ui/vba/vbapagebreak.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/vba/vbapagebreaks.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/vba/vbapagesetup.cxx | 8 | ||||
-rw-r--r-- | sc/source/ui/vba/vbarange.cxx | 30 | ||||
-rw-r--r-- | sc/source/ui/vba/vbastyle.cxx | 16 | ||||
-rw-r--r-- | sc/source/ui/vba/vbastyles.cxx | 10 | ||||
-rw-r--r-- | sc/source/ui/vba/vbatitle.hxx | 8 | ||||
-rw-r--r-- | sc/source/ui/vba/vbawindow.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/vba/vbaworksheet.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/tabvwshf.cxx | 4 |
20 files changed, 133 insertions, 133 deletions
diff --git a/sc/source/ui/vba/vbaapplication.cxx b/sc/source/ui/vba/vbaapplication.cxx index 2135014028ea..859ec9012b26 100644 --- a/sc/source/ui/vba/vbaapplication.cxx +++ b/sc/source/ui/vba/vbaapplication.cxx @@ -877,7 +877,7 @@ OUString ScVbaApplication::getOfficePath( const OUString& _sPathType ) throw (un } catch (const uno::Exception&) { - DebugHelper::runtimeexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::runtimeexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } return sRetPath; } @@ -1102,7 +1102,7 @@ uno::Reference< excel::XRange > SAL_CALL ScVbaApplication::Intersect( throw (script::BasicErrorException, uno::RuntimeException, std::exception) { if( !rArg1.is() || !rArg2.is() ) - DebugHelper::basicexception( SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::basicexception( ERRCODE_BASIC_BAD_PARAMETER, OUString() ); // initialize the result list with 1st parameter, join its ranges together ListOfScRange aList; @@ -1156,7 +1156,7 @@ uno::Reference< excel::XRange > SAL_CALL ScVbaApplication::Union( throw (script::BasicErrorException, uno::RuntimeException, std::exception) { if( !rArg1.is() || !rArg2.is() ) - DebugHelper::basicexception( SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::basicexception( ERRCODE_BASIC_BAD_PARAMETER, OUString() ); ListOfScRange aList; lclAddToListOfScRange( aList, uno::Any( rArg1 ) ); diff --git a/sc/source/ui/vba/vbaaxes.cxx b/sc/source/ui/vba/vbaaxes.cxx index c2b0f7da4345..cf855f1eda66 100644 --- a/sc/source/ui/vba/vbaaxes.cxx +++ b/sc/source/ui/vba/vbaaxes.cxx @@ -73,11 +73,11 @@ ScVbaAxes::createAxis( const uno::Reference< excel::XChart >& xChart, const uno: if (((nType == xlCategory) || (nType == xlSeriesAxis) || (nType == xlValue))) { if ((nAxisGroup != xlPrimary) && (nAxisGroup != xlSecondary)) - DebugHelper::runtimeexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::runtimeexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); xAxisPropertySet.set( pChart->getAxisPropertySet(nType, nAxisGroup), uno::UNO_QUERY_THROW ); } else - DebugHelper::runtimeexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::runtimeexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); uno::Reference< XHelperInterface > xParent( xChart, uno::UNO_QUERY_THROW ); return new ScVbaAxis( xParent, xContext, xAxisPropertySet, nType, nAxisGroup); } diff --git a/sc/source/ui/vba/vbaaxis.cxx b/sc/source/ui/vba/vbaaxis.cxx index b7baad87a4f2..eeb830eee770 100644 --- a/sc/source/ui/vba/vbaaxis.cxx +++ b/sc/source/ui/vba/vbaaxis.cxx @@ -47,7 +47,7 @@ ScVbaAxis::isValueAxis() throw( script::BasicErrorException ) { if ( getType() == xlCategory ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } return true; } @@ -103,13 +103,13 @@ ScVbaAxis::getAxisTitle( ) throw (script::BasicErrorException, uno::RuntimeExce void SAL_CALL ScVbaAxis::setDisplayUnit( ::sal_Int32 /*DisplayUnit*/ ) throw (script::BasicErrorException, uno::RuntimeException, std::exception) { - DebugHelper::basicexception(SbERR_NOT_IMPLEMENTED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString()); } ::sal_Int32 SAL_CALL ScVbaAxis::getDisplayUnit( ) throw (script::BasicErrorException, uno::RuntimeException, std::exception) { - DebugHelper::basicexception(SbERR_NOT_IMPLEMENTED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString()); return -1; } @@ -143,7 +143,7 @@ ScVbaAxis::setCrosses( ::sal_Int32 _nCrosses ) throw (script::BasicErrorExceptio } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } } ::sal_Int32 SAL_CALL @@ -175,7 +175,7 @@ ScVbaAxis::getCrosses( ) throw (script::BasicErrorException, uno::RuntimeExcept } catch (uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); } return nCrosses; } @@ -205,7 +205,7 @@ ScVbaAxis::getCrossesAt( ) throw (script::BasicErrorException, uno::RuntimeExce } catch (uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } return fCrosses; } @@ -285,7 +285,7 @@ ScVbaAxis::setMinorUnit( double _fMinorUnit ) throw (script::BasicErrorException } catch (uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } } @@ -300,7 +300,7 @@ ScVbaAxis::getMinorUnit( ) throw (script::BasicErrorException, uno::RuntimeExce } catch (uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } return fMinor; } @@ -315,7 +315,7 @@ ScVbaAxis::setMinorUnitIsAuto( sal_Bool _bMinorUnitIsAuto ) throw (script::Basic } catch (uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); } } @@ -332,7 +332,7 @@ ScVbaAxis::getMinorUnitIsAuto( ) throw (script::BasicErrorException, uno::Runti } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } return bIsAuto; } @@ -340,13 +340,13 @@ ScVbaAxis::getMinorUnitIsAuto( ) throw (script::BasicErrorException, uno::Runti void SAL_CALL ScVbaAxis::setReversePlotOrder( sal_Bool /*ReversePlotOrder*/ ) throw (script::BasicErrorException, uno::RuntimeException, std::exception) { - DebugHelper::basicexception(SbERR_NOT_IMPLEMENTED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString()); } sal_Bool SAL_CALL ScVbaAxis::getReversePlotOrder( ) throw (script::BasicErrorException, uno::RuntimeException, std::exception) { - DebugHelper::basicexception(SbERR_NOT_IMPLEMENTED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString()); return false; } @@ -362,7 +362,7 @@ ScVbaAxis::setMajorUnit( double _fMajorUnit ) throw (script::BasicErrorException } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } } @@ -377,7 +377,7 @@ ScVbaAxis::getMajorUnit( ) throw (script::BasicErrorException, uno::RuntimeExce } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); } return fMax; } @@ -394,7 +394,7 @@ ScVbaAxis::setMajorUnitIsAuto( sal_Bool _bMajorUnitIsAuto ) throw (script::Basic } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } } @@ -411,7 +411,7 @@ ScVbaAxis::getMajorUnitIsAuto( ) throw (script::BasicErrorException, uno::Runti } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } return bIsAuto; } @@ -428,7 +428,7 @@ ScVbaAxis::setMaximumScale( double _fMaximumScale ) throw (script::BasicErrorExc } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } } @@ -445,7 +445,7 @@ ScVbaAxis::getMaximumScale( ) throw (script::BasicErrorException, uno::RuntimeE } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } return fMax; @@ -462,7 +462,7 @@ ScVbaAxis::setMaximumScaleIsAuto( sal_Bool _bMaximumScaleIsAuto ) throw (script: } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } } @@ -477,7 +477,7 @@ ScVbaAxis::getMaximumScaleIsAuto( ) throw (script::BasicErrorException, uno::Ru } catch (const uno::Exception&) { - DebugHelper::basicexception( SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception( ERRCODE_BASIC_METHOD_FAILED, OUString() ); } return bIsAuto; } @@ -492,7 +492,7 @@ ScVbaAxis::setMinimumScale( double _fMinimumScale ) throw (script::BasicErrorExc } catch ( uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); } } @@ -524,7 +524,7 @@ ScVbaAxis::setMinimumScaleIsAuto( sal_Bool _bMinimumScaleIsAuto ) throw (script: } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } } @@ -541,7 +541,7 @@ ScVbaAxis::getMinimumScaleIsAuto( ) throw (script::BasicErrorException, uno::Ru } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } return bIsAuto; } @@ -575,7 +575,7 @@ ScVbaAxis::setScaleType( ::sal_Int32 _nScaleType ) throw (script::BasicErrorExce } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } } @@ -597,7 +597,7 @@ ScVbaAxis::getScaleType( ) throw (script::BasicErrorException, uno::RuntimeExce } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } return nScaleType; } diff --git a/sc/source/ui/vba/vbachart.cxx b/sc/source/ui/vba/vbachart.cxx index 694b9827f6e9..a5506b11ade0 100644 --- a/sc/source/ui/vba/vbachart.cxx +++ b/sc/source/ui/vba/vbachart.cxx @@ -212,7 +212,7 @@ ScVbaChart::getChartType() throw ( uno::RuntimeException, script::BasicErrorExce } catch ( const uno::Exception& ) { - throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), SbERR_METHOD_FAILED, OUString() ); + throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString() ); } return nChartType; } @@ -336,7 +336,7 @@ try } break; default: - throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), SbERR_CONVERSION, OUString() ); + throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), ERRCODE_BASIC_CONVERSION, OUString() ); } switch (_nChartType) @@ -538,7 +538,7 @@ try } catch ( const uno::Exception& ) { - throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), SbERR_METHOD_FAILED, OUString() ); + throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString() ); } } @@ -554,7 +554,7 @@ ScVbaChart::Activate() throw (script::BasicErrorException, uno::RuntimeException if ( pChartObj ) pChartObj->Activate(); else - throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), SbERR_METHOD_FAILED, OUString( "no ChartObject as parent" ) ); + throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString( "no ChartObject as parent" ) ); } void SAL_CALL @@ -617,7 +617,7 @@ ScVbaChart::setSourceData( const css::uno::Reference< ::ooo::vba::excel::XRange } catch (const uno::Exception&) { - throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), SbERR_METHOD_FAILED, OUString() ); + throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString() ); } } @@ -655,12 +655,12 @@ ScVbaChart::setPlotBy( ::sal_Int32 _nPlotBy ) throw (css::script::BasicErrorExce mxDiagramPropertySet->setPropertyValue( DATAROWSOURCE, uno::makeAny( chart::ChartDataRowSource_COLUMNS) ); break; default: - throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), SbERR_METHOD_FAILED, OUString() ); + throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString() ); } } catch (const uno::Exception&) { - throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), SbERR_METHOD_FAILED, OUString() ); + throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString() ); } } @@ -682,7 +682,7 @@ ScVbaChart::getPlotBy( ) throw (script::BasicErrorException, uno::RuntimeExcept } catch (const uno::Exception&) { - throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), SbERR_METHOD_FAILED, OUString() ); + throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString() ); } } @@ -698,7 +698,7 @@ ScVbaChart::setDiagram( const OUString& _sDiagramType ) throw( script::BasicErro } catch ( const uno::Exception& ) { - throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), SbERR_METHOD_FAILED, OUString() ); + throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString() ); } } @@ -814,7 +814,7 @@ ScVbaChart::getHasTitle( ) throw (script::BasicErrorException, uno::RuntimeExce } catch (const uno::Exception&) { - throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), SbERR_METHOD_FAILED, OUString() ); + throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString() ); } return bHasTitle; } @@ -828,7 +828,7 @@ ScVbaChart::setHasTitle( sal_Bool bTitle ) throw (script::BasicErrorException, u } catch (const uno::Exception&) { - throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), SbERR_METHOD_FAILED, OUString() ); + throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString() ); } } @@ -843,7 +843,7 @@ ScVbaChart::getHasLegend( ) throw (script::BasicErrorException, uno::RuntimeExc } catch (const uno::Exception&) { - throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), SbERR_METHOD_FAILED, OUString() ); + throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString() ); } return bHasLegend; } @@ -857,7 +857,7 @@ ScVbaChart::setHasLegend( sal_Bool bLegend ) throw (script::BasicErrorException, } catch (const uno::Exception&) { - throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), SbERR_METHOD_FAILED, OUString() ); + throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString() ); } } @@ -948,7 +948,7 @@ ScVbaChart::getSolidType(sal_Int32 _nDeep, sal_Int32 _nVertiStacked, sal_Int32 _ } catch (const uno::Exception&) { - throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), SbERR_METHOD_FAILED, OUString() ); + throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString() ); } } @@ -971,7 +971,7 @@ ScVbaChart::getStockUpDownValue(sal_Int32 _nUpDown, sal_Int32 _nNotUpDown) throw catch (const uno::Exception&) { OUString aTemp; // temporary needed for g++ 3.3.5 - script::BasicErrorException( aTemp, uno::Reference< uno::XInterface >(), SbERR_METHOD_FAILED, OUString() ); + script::BasicErrorException( aTemp, uno::Reference< uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString() ); } return _nNotUpDown; } @@ -989,7 +989,7 @@ ScVbaChart::hasMarkers() throw ( script::BasicErrorException ) catch (const uno::Exception&) { OUString aTemp; // temporary needed for g++ 3.3.5 - script::BasicErrorException( aTemp, uno::Reference< uno::XInterface >(), SbERR_METHOD_FAILED, OUString() ); + script::BasicErrorException( aTemp, uno::Reference< uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString() ); } return bHasMarkers; } diff --git a/sc/source/ui/vba/vbachartobject.cxx b/sc/source/ui/vba/vbachartobject.cxx index f28b49519223..2ff217c96f24 100644 --- a/sc/source/ui/vba/vbachartobject.cxx +++ b/sc/source/ui/vba/vbachartobject.cxx @@ -72,7 +72,7 @@ ScVbaChartObject::setShape() throw ( script::BasicErrorException ) } catch (uno::Exception& ) { - throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), SbERR_METHOD_FAILED, OUString() ); + throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString() ); } return NULL; } @@ -101,7 +101,7 @@ ScVbaChartObject::Delete() if (pChartObjectsImpl) pChartObjectsImpl->removeByName( getPersistName() ); else - throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), SbERR_METHOD_FAILED, OUString( "Parent is not ChartObjects" ) ); + throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString( "Parent is not ChartObjects" ) ); } void @@ -118,7 +118,7 @@ ScVbaChartObject::Activate() throw ( script::BasicErrorException ) } catch (uno::Exception& ) { - throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), SbERR_METHOD_FAILED, OUString( "ChartObject Activate internal error" ) ); + throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString( "ChartObject Activate internal error" ) ); } } diff --git a/sc/source/ui/vba/vbachartobjects.cxx b/sc/source/ui/vba/vbachartobjects.cxx index 1b6928a30470..1670a9c3b4b8 100644 --- a/sc/source/ui/vba/vbachartobjects.cxx +++ b/sc/source/ui/vba/vbachartobjects.cxx @@ -123,7 +123,7 @@ ScVbaChartObjects::getChartObjectNames() throw( css::script::BasicErrorException } catch (uno::Exception& ) { - throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), SbERR_METHOD_FAILED, OUString() ); + throw script::BasicErrorException( OUString(), uno::Reference< uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString() ); } return sChartNames; } diff --git a/sc/source/ui/vba/vbacondition.cxx b/sc/source/ui/vba/vbacondition.cxx index 060d33d8821c..2b60b2f3921f 100644 --- a/sc/source/ui/vba/vbacondition.cxx +++ b/sc/source/ui/vba/vbacondition.cxx @@ -157,7 +157,7 @@ ScVbaCondition< Ifc1 >::Operator(bool _bIncludeFormulaValue) throw ( script::Bas } case sheet::ConditionOperator_NONE: default: - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString("Operator not supported")); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString("Operator not supported")); break; } return retvalue; diff --git a/sc/source/ui/vba/vbaformat.cxx b/sc/source/ui/vba/vbaformat.cxx index e2cff4b168ef..0278b002595e 100644 --- a/sc/source/ui/vba/vbaformat.cxx +++ b/sc/source/ui/vba/vbaformat.cxx @@ -55,13 +55,13 @@ ScVbaFormat< Ifc1 >::ScVbaFormat( const uno::Reference< XHelperInterface >& xPar try { if ( !mxModel.is() ) - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString( "XModel Interface could not be retrieved") ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString( "XModel Interface could not be retrieved") ); // mxServiceInfo is unused, // mxNumberFormatsSupplier is initialized when needed in initializeNumberFormats. } catch (const uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); } } @@ -99,7 +99,7 @@ ScVbaFormat<Ifc1>::setVerticalAlignment( const uno::Any& _oAlignment) throw (s } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } } @@ -135,7 +135,7 @@ ScVbaFormat<Ifc1>::getVerticalAlignment( ) throw (script::BasicErrorException, } catch (const uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } return aResult; } @@ -175,7 +175,7 @@ ScVbaFormat<Ifc1>::setHorizontalAlignment( const uno::Any& HorizontalAlignment ) } catch (const uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); } } @@ -216,7 +216,7 @@ ScVbaFormat<Ifc1>::getHorizontalAlignment( ) throw (script::BasicErrorException } catch (const uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); } return NRetAlignment; } @@ -255,7 +255,7 @@ ScVbaFormat<Ifc1>::setOrientation( const uno::Any& _aOrientation ) throw (script } catch (const uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); } } template< typename Ifc1 > @@ -292,7 +292,7 @@ ScVbaFormat<Ifc1>::getOrientation( ) throw (script::BasicErrorException, uno::R } catch (const uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } return NRetOrientation; } @@ -307,7 +307,7 @@ ScVbaFormat<Ifc1>::setWrapText( const uno::Any& _aWrapText ) throw (script::Basi } catch (const uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); } } @@ -326,7 +326,7 @@ ScVbaFormat<Ifc1>::getWrapText( ) throw (script::BasicErrorException, uno::Runt } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); } return aWrap; } @@ -385,7 +385,7 @@ ScVbaFormat<Ifc1>::getNumberFormatLocal( ) throw (script::BasicErrorException, } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } return aRet; @@ -416,7 +416,7 @@ ScVbaFormat<Ifc1>::setNumberFormatLocal( const uno::Any& _oLocalFormatString ) t } catch (const uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); } } @@ -446,7 +446,7 @@ ScVbaFormat<Ifc1>::setNumberFormat( const uno::Any& _oFormatString ) throw (scri } catch (const uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } } @@ -471,7 +471,7 @@ ScVbaFormat<Ifc1>::setIndentLevel( const uno::Any& _aLevel ) throw (script::Basi } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } } @@ -494,7 +494,7 @@ ScVbaFormat<Ifc1>::getIndentLevel( ) throw (script::BasicErrorException, uno::R } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } return NRetIndentLevel; } @@ -516,7 +516,7 @@ ScVbaFormat<Ifc1>::setLocked( const uno::Any& _aLocked ) throw (script::BasicErr } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); } } @@ -536,7 +536,7 @@ ScVbaFormat<Ifc1>::setFormulaHidden( const uno::Any& FormulaHidden ) throw (scri } catch (const uno::Exception&) { - DebugHelper::basicexception( SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception( ERRCODE_BASIC_METHOD_FAILED, OUString() ); } } @@ -569,7 +569,7 @@ ScVbaFormat<Ifc1>::getLocked( ) throw (script::BasicErrorException, uno::Runtim } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } return aCellProtection; } @@ -602,7 +602,7 @@ ScVbaFormat<Ifc1>::getFormulaHidden( ) throw (script::BasicErrorException, uno: } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } return aBoolRet; } @@ -617,7 +617,7 @@ ScVbaFormat<Ifc1>::setShrinkToFit( const uno::Any& ShrinkToFit ) throw (script:: } catch (const uno::Exception& ) { - DebugHelper::basicexception(SbERR_NOT_IMPLEMENTED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString() ); } } @@ -635,7 +635,7 @@ ScVbaFormat<Ifc1>::getShrinkToFit( ) throw (script::BasicErrorException, uno::R } catch (const uno::Exception& ) { - DebugHelper::basicexception(SbERR_NOT_IMPLEMENTED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString()); } return aRet; } @@ -659,16 +659,16 @@ ScVbaFormat<Ifc1>::setReadingOrder( const uno::Any& ReadingOrder ) throw (script aVal = uno::makeAny( text::WritingMode_RL_TB ); break; case excel::Constants::xlContext: - DebugHelper::basicexception(SbERR_NOT_IMPLEMENTED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString()); break; default: - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } mxPropertySet->setPropertyValue( OUString( SC_UNONAME_WRITING ), aVal ); } catch (const uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } } @@ -699,7 +699,7 @@ ScVbaFormat<Ifc1>::getReadingOrder( ) throw (script::BasicErrorException, uno:: } catch (const uno::Exception& ) { - DebugHelper::basicexception(SbERR_NOT_IMPLEMENTED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString()); } return NRetReadingOrder; @@ -727,7 +727,7 @@ ScVbaFormat< Ifc1 >::getNumberFormat( ) throw (script::BasicErrorException, uno } catch (const uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } return aFormat; } @@ -744,7 +744,7 @@ ScVbaFormat<Ifc1>::isAmbiguous(const OUString& _sPropertyName) throw ( script::B } catch (const uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } return bResult; } diff --git a/sc/source/ui/vba/vbaformatcondition.cxx b/sc/source/ui/vba/vbaformatcondition.cxx index f300761c1b51..c502226782fd 100644 --- a/sc/source/ui/vba/vbaformatcondition.cxx +++ b/sc/source/ui/vba/vbaformatcondition.cxx @@ -29,7 +29,7 @@ lcl_getScVbaFormatConditionsPtr( const uno::Reference< excel::XFormatConditions { ScVbaFormatConditions* pFormatConditions = static_cast< ScVbaFormatConditions* >( xFormatConditions.get() ); if ( !pFormatConditions ) - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); return pFormatConditions; } @@ -68,7 +68,7 @@ ScVbaFormatCondition::Modify( ::sal_Int32 _nType, const uno::Any& _aOperator, co } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); } } @@ -102,7 +102,7 @@ ScVbaFormatCondition::retrieveAPIType(sal_Int32 _nVBAType, const uno::Reference< aAPIType = sheet::ConditionOperator_NONE; break; default: - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); } return aAPIType; } @@ -152,7 +152,7 @@ ScVbaFormatCondition::notifyRange() throw ( script::BasicErrorException ) } catch (uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); } } diff --git a/sc/source/ui/vba/vbaformatconditions.cxx b/sc/source/ui/vba/vbaformatconditions.cxx index be2c9a9db403..3513e551856b 100644 --- a/sc/source/ui/vba/vbaformatconditions.cxx +++ b/sc/source/ui/vba/vbaformatconditions.cxx @@ -46,7 +46,7 @@ ScVbaFormatConditions::Delete( ) throw (script::BasicErrorException, uno::Runti { ScVbaStyles* pStyles = static_cast< ScVbaStyles* >( mxStyles.get() ); if ( !pStyles ) - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); sal_Int32 nCount = mxSheetConditionalEntries->getCount(); for (sal_Int32 i = nCount - 1; i >= 0; i--) { @@ -58,7 +58,7 @@ ScVbaFormatConditions::Delete( ) throw (script::BasicErrorException, uno::Runti } catch (uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } } @@ -213,7 +213,7 @@ ScVbaFormatConditions::Add( ::sal_Int32 _nType, const uno::Any& _aOperator, cons catch (uno::Exception& ) { } - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); return xFormatCondition; } @@ -232,7 +232,7 @@ ScVbaFormatConditions::notifyRange() throw ( script::BasicErrorException ) } catch (uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } } @@ -242,7 +242,7 @@ ScVbaFormatConditions::getA1Formula(const css::uno::Any& _aFormula) throw ( scri // #TODO, #FIXME hook-in proper formula conversion detection & logic OUString sFormula; if ( !( _aFormula >>= sFormula ) ) - DebugHelper::basicexception(SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() ); return sFormula; } @@ -251,7 +251,7 @@ ScVbaFormatConditions::getStyleName() { ScVbaStyles* pStyles = static_cast< ScVbaStyles* >( mxStyles.get() ); if ( !pStyles ) - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); uno::Sequence< OUString > sCellStyleNames = pStyles->getStyleNames(); return ContainerUtilities::getUniqueName(sCellStyleNames, sStyleNamePrefix, OUString("_")); } @@ -272,7 +272,7 @@ ScVbaFormatConditions::removeFormatCondition( const OUString& _sStyleName, bool { ScVbaStyles* pStyles = static_cast< ScVbaStyles* >( mxStyles.get() ); if ( !pStyles ) - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); pStyles->Delete( _sStyleName ); } return; @@ -281,7 +281,7 @@ ScVbaFormatConditions::removeFormatCondition( const OUString& _sStyleName, bool } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } } diff --git a/sc/source/ui/vba/vbapagebreak.cxx b/sc/source/ui/vba/vbapagebreak.cxx index 96e507eba61a..04b99bdb53d0 100644 --- a/sc/source/ui/vba/vbapagebreak.cxx +++ b/sc/source/ui/vba/vbapagebreak.cxx @@ -56,7 +56,7 @@ void ScVbaPageBreak<Ifc1>::setType(sal_Int32 type) throw (uno::RuntimeException) (type != excel::XlPageBreak::xlPageBreakManual) && (type != excel::XlPageBreak::xlPageBreakAutomatic) ) { - DebugHelper::runtimeexception(SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() ); } if( type == excel::XlPageBreak::xlPageBreakNone ) diff --git a/sc/source/ui/vba/vbapagebreaks.cxx b/sc/source/ui/vba/vbapagebreaks.cxx index 47a8febc46d5..8e9744cb5854 100644 --- a/sc/source/ui/vba/vbapagebreaks.cxx +++ b/sc/source/ui/vba/vbapagebreaks.cxx @@ -149,7 +149,7 @@ sheet::TablePageBreakData RangePageBreaks::getTablePageBreakData( sal_Int32 nAPI aTablePageBreakData = aTablePageBreakDataList[i]; sal_Int32 nPos = aTablePageBreakData.Position; if( nPos > nUsedEnd + 1 ) - DebugHelper::runtimeexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::runtimeexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); index++; if( index == nAPIItemIndex ) return aTablePageBreakData; @@ -164,7 +164,7 @@ uno::Any RangePageBreaks::Add( const css::uno::Any& Before ) throw ( css::script Before >>= xRange; if( !xRange.is() ) { - DebugHelper::basicexception(SbERR_BAD_ARGUMENT, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_BAD_ARGUMENT, OUString()); } sal_Int32 nAPIRowColIndex = getAPIStartofRange( xRange ); diff --git a/sc/source/ui/vba/vbapagesetup.cxx b/sc/source/ui/vba/vbapagesetup.cxx index d6717563809d..173b7c2f4041 100644 --- a/sc/source/ui/vba/vbapagesetup.cxx +++ b/sc/source/ui/vba/vbapagesetup.cxx @@ -199,7 +199,7 @@ void SAL_CALL ScVbaPageSetup::setZoom( const uno::Any& zoom) throw (css::uno::Ru zoom >>= aValue; if( aValue ) { - DebugHelper::runtimeexception(SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() ); } } else @@ -207,7 +207,7 @@ void SAL_CALL ScVbaPageSetup::setZoom( const uno::Any& zoom) throw (css::uno::Ru zoom >>= pageScale; if(( pageScale < ZOOM_IN )||( pageScale > ZOOM_MAX )) { - DebugHelper::runtimeexception(SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() ); } } @@ -221,7 +221,7 @@ void SAL_CALL ScVbaPageSetup::setZoom( const uno::Any& zoom) throw (css::uno::Ru { if( pageScale == 0 ) { - DebugHelper::runtimeexception(SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() ); } } catch (const uno::Exception&) @@ -477,7 +477,7 @@ void SAL_CALL ScVbaPageSetup::setOrder(sal_Int32 order) throw (css::uno::Runtime bOrder = false; break; default: - DebugHelper::runtimeexception(SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() ); } try diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx index e136d0bbab18..6ecc6f88c7ad 100644 --- a/sc/source/ui/vba/vbarange.cxx +++ b/sc/source/ui/vba/vbarange.cxx @@ -4689,7 +4689,7 @@ ScVbaRange::Autofit() throw (script::BasicErrorException, uno::RuntimeException, // throw an error if ( !( mbIsColumns || mbIsRows ) ) - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); ScDocShell* pDocShell = getDocShellFromRange( mxRange ); if ( pDocShell ) { @@ -5122,7 +5122,7 @@ ScVbaRange::Item( const uno::Any& row, const uno::Any& column ) throw (script::B if ( mbIsRows || mbIsColumns ) { if ( column.hasValue() ) - DebugHelper::basicexception(SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() ); uno::Reference< excel::XRange > xRange; if ( mbIsColumns ) xRange = Columns( row ); @@ -5139,7 +5139,7 @@ ScVbaRange::AutoOutline( ) throw (script::BasicErrorException, uno::RuntimeExce // #TODO #FIXME needs to check for summary row/col ( whatever they are ) // not valid for multi Area Addresses if ( m_Areas->getCount() > 1 ) - DebugHelper::basicexception(SbERR_METHOD_FAILED, STR_ERRORMESSAGE_APPLIESTOSINGLERANGEONLY); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, STR_ERRORMESSAGE_APPLIESTOSINGLERANGEONLY); // So needs to either span an entire Row or a just be a single cell // ( that contains a summary RowColumn ) // also the Single cell cause doesn't seem to be handled specially in @@ -5154,7 +5154,7 @@ ScVbaRange::AutoOutline( ) throw (script::BasicErrorException, uno::RuntimeExce xSheetOutline->autoOutline( thisAddress ); } else - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } void SAL_CALL @@ -5179,7 +5179,7 @@ void ScVbaRange::groupUnGroup( bool bUnGroup ) throw ( script::BasicErrorException, uno::RuntimeException ) { if ( m_Areas->getCount() > 1 ) - DebugHelper::basicexception(SbERR_METHOD_FAILED, STR_ERRORMESSAGE_APPLIESTOSINGLERANGEONLY); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, STR_ERRORMESSAGE_APPLIESTOSINGLERANGEONLY); table::TableOrientation nOrient = table::TableOrientation_ROWS; if ( mbIsColumns ) nOrient = table::TableOrientation_COLUMNS; @@ -5346,13 +5346,13 @@ ScVbaRange::SpecialCells( const uno::Any& _oType, const uno::Any& _oValue) uno::Reference< excel::XRange > xUsedRange( getWorksheet()->getUsedRange() ); sal_Int32 nType = 0; if ( !( _oType >>= nType ) ) - DebugHelper::basicexception(SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() ); switch(nType) { case excel::XlCellType::xlCellTypeSameFormatConditions: case excel::XlCellType::xlCellTypeAllValidation: case excel::XlCellType::xlCellTypeSameValidation: - DebugHelper::basicexception(SbERR_NOT_IMPLEMENTED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString()); break; case excel::XlCellType::xlCellTypeBlanks: case excel::XlCellType::xlCellTypeComments: @@ -5410,11 +5410,11 @@ ScVbaRange::SpecialCells( const uno::Any& _oType, const uno::Any& _oValue) break; } default: - DebugHelper::basicexception(SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() ); break; } if ( !pRangeToUse ) - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); return pRangeToUse->SpecialCellsImpl( nType, _oValue ); } @@ -5440,7 +5440,7 @@ static sal_Int32 lcl_getFormulaResultFlags(const uno::Any& aType) throw ( script nRes = sheet::FormulaResult::STRING; break; default: - DebugHelper::basicexception(SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() ); } return nRes; } @@ -5462,7 +5462,7 @@ ScVbaRange::SpecialCellsImpl( sal_Int32 nType, const uno::Any& _oValue) throw ( case excel::XlCellType::xlCellTypeSameValidation: // Shouldn't get here ( should be filtered out by // ScVbaRange::SpecialCells() - DebugHelper::basicexception(SbERR_NOT_IMPLEMENTED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString()); break; case excel::XlCellType::xlCellTypeBlanks: xLocSheetCellRanges = xQuery->queryEmptyCells(); @@ -5485,7 +5485,7 @@ ScVbaRange::SpecialCellsImpl( sal_Int32 nType, const uno::Any& _oValue) throw ( xLocSheetCellRanges = xQuery->queryVisibleCells(); break; default: - DebugHelper::basicexception(SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() ); break; } if (xLocSheetCellRanges.is()) @@ -5495,7 +5495,7 @@ ScVbaRange::SpecialCellsImpl( sal_Int32 nType, const uno::Any& _oValue) throw ( } catch (uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, STR_ERRORMESSAGE_NOCELLSWEREFOUND); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, STR_ERRORMESSAGE_NOCELLSWEREFOUND); } return xRange; } @@ -5565,7 +5565,7 @@ ScVbaRange::Subtotal( ::sal_Int32 _nGroupBy, ::sal_Int32 _nFunction, const uno:: aColumns[i].Function = sheet::GeneralFunction_VARP; break; default: - DebugHelper::basicexception(SbERR_BAD_PARAMETER, OUString()) ; + DebugHelper::basicexception(ERRCODE_BASIC_BAD_PARAMETER, OUString()) ; return; } } @@ -5574,7 +5574,7 @@ ScVbaRange::Subtotal( ::sal_Int32 _nGroupBy, ::sal_Int32 _nFunction, const uno:: } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } } diff --git a/sc/source/ui/vba/vbastyle.cxx b/sc/source/ui/vba/vbastyle.cxx index 09181f83db5b..15f7b905d469 100644 --- a/sc/source/ui/vba/vbastyle.cxx +++ b/sc/source/ui/vba/vbastyle.cxx @@ -44,11 +44,11 @@ lcl_getStyleProps( const OUString& sStyleName, const uno::Reference< frame::XMod void ScVbaStyle::initialise() throw ( uno::RuntimeException, script::BasicErrorException ) { if (!mxModel.is() ) - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString( "XModel Interface could not be retrieved") ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString( "XModel Interface could not be retrieved") ); uno::Reference< lang::XServiceInfo > xServiceInfo( mxPropertySet, uno::UNO_QUERY_THROW ); if ( !xServiceInfo->supportsService("com.sun.star.style.CellStyle") ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); } mxStyle.set( mxPropertySet, uno::UNO_QUERY_THROW ); @@ -65,7 +65,7 @@ ScVbaStyle::ScVbaStyle( const uno::Reference< ov::XHelperInterface >& xParent, c } catch (const uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } } @@ -77,7 +77,7 @@ ScVbaStyle::ScVbaStyle( const uno::Reference< XHelperInterface >& xParent, const } catch (const uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } } @@ -122,7 +122,7 @@ ScVbaStyle::getNameLocal() throw (script::BasicErrorException, uno::RuntimeExcep } catch (const uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); } return sName; } @@ -136,20 +136,20 @@ ScVbaStyle::Delete() throw (script::BasicErrorException, uno::RuntimeException, } catch (const uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } } void SAL_CALL ScVbaStyle::setMergeCells( const uno::Any& /*MergeCells*/ ) throw (script::BasicErrorException, uno::RuntimeException) { - DebugHelper::basicexception(SbERR_NOT_IMPLEMENTED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString()); } uno::Any SAL_CALL ScVbaStyle::getMergeCells( ) throw (script::BasicErrorException, uno::RuntimeException) { - DebugHelper::basicexception(SbERR_NOT_IMPLEMENTED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString()); return uno::Any(); } diff --git a/sc/source/ui/vba/vbastyles.cxx b/sc/source/ui/vba/vbastyles.cxx index 35eb24852e51..aceff332e58a 100644 --- a/sc/source/ui/vba/vbastyles.cxx +++ b/sc/source/ui/vba/vbastyles.cxx @@ -41,7 +41,7 @@ ScVbaStyles::ScVbaStyles( const uno::Reference< XHelperInterface >& xParent, con } catch (uno::Exception& ) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } } @@ -136,12 +136,12 @@ ScVbaStyles::Add( const OUString& _sName, const uno::Any& _aBasedOn ) throw (scr } else { - DebugHelper::basicexception(SbERR_BAD_ARGUMENT, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_BAD_ARGUMENT, OUString() ); } } else { - DebugHelper::basicexception(SbERR_BAD_ARGUMENT, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_BAD_ARGUMENT, OUString()); } } @@ -159,7 +159,7 @@ ScVbaStyles::Add( const OUString& _sName, const uno::Any& _aBasedOn ) throw (scr } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } return aRet; } @@ -174,7 +174,7 @@ ScVbaStyles::Delete(const OUString& _sStyleName) throw ( script::BasicErrorExcep } catch (const uno::Exception&) { - DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); } } diff --git a/sc/source/ui/vba/vbatitle.hxx b/sc/source/ui/vba/vbatitle.hxx index b0ac54ba9ae3..4fe7f6c0779d 100644 --- a/sc/source/ui/vba/vbatitle.hxx +++ b/sc/source/ui/vba/vbatitle.hxx @@ -70,7 +70,7 @@ public: } catch ( css::uno::Exception& ) { - throw css::script::BasicErrorException( OUString(), css::uno::Reference< css::uno::XInterface >(), SbERR_METHOD_FAILED, OUString() ); + throw css::script::BasicErrorException( OUString(), css::uno::Reference< css::uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString() ); } } OUString SAL_CALL getText( ) throw (css::script::BasicErrorException, css::uno::RuntimeException) @@ -82,7 +82,7 @@ public: } catch ( css::uno::Exception& ) { - throw css::script::BasicErrorException( OUString(), css::uno::Reference< css::uno::XInterface >(), SbERR_METHOD_FAILED, OUString() ); + throw css::script::BasicErrorException( OUString(), css::uno::Reference< css::uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString() ); } return sText; } @@ -119,7 +119,7 @@ public: } catch (css::uno::Exception& ) { - throw css::script::BasicErrorException( OUString(), css::uno::Reference< css::uno::XInterface >(), SbERR_METHOD_FAILED, OUString() ); + throw css::script::BasicErrorException( OUString(), css::uno::Reference< css::uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString() ); } } ::sal_Int32 SAL_CALL getOrientation( ) throw (css::script::BasicErrorException, css::uno::RuntimeException) @@ -131,7 +131,7 @@ public: } catch (css::uno::Exception& ) { - throw css::script::BasicErrorException( OUString(), css::uno::Reference< css::uno::XInterface >(), SbERR_METHOD_FAILED, OUString() ); + throw css::script::BasicErrorException( OUString(), css::uno::Reference< css::uno::XInterface >(), ERRCODE_BASIC_METHOD_FAILED, OUString() ); } return static_cast< sal_Int32 >(nSOOrientation / 100) ; } diff --git a/sc/source/ui/vba/vbawindow.cxx b/sc/source/ui/vba/vbawindow.cxx index a655d5620309..57adf47664e6 100644 --- a/sc/source/ui/vba/vbawindow.cxx +++ b/sc/source/ui/vba/vbawindow.cxx @@ -815,7 +815,7 @@ ScVbaWindow::setView( const uno::Any& _view) throw (uno::RuntimeException, std:: nSlot = FID_PAGEBREAKMODE; break; default: - DebugHelper::runtimeexception(SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() ); } // !! TODO !! get view shell from controller ScTabViewShell* pViewShell = excel::getBestViewShell( m_xModel ); diff --git a/sc/source/ui/vba/vbaworksheet.cxx b/sc/source/ui/vba/vbaworksheet.cxx index d60e10a25dff..e10645745175 100644 --- a/sc/source/ui/vba/vbaworksheet.cxx +++ b/sc/source/ui/vba/vbaworksheet.cxx @@ -370,7 +370,7 @@ ScVbaWorksheet::setEnableSelection( sal_Int32 nSelection ) throw (uno::RuntimeEx (nSelection != excel::XlEnableSelection::xlUnlockedCells) && (nSelection != excel::XlEnableSelection::xlNoSelection) ) { - DebugHelper::runtimeexception(SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() ); } uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc( getModel(), uno::UNO_QUERY_THROW ); diff --git a/sc/source/ui/view/tabvwshf.cxx b/sc/source/ui/view/tabvwshf.cxx index c3ae18dfa9d8..01e277d69ed6 100644 --- a/sc/source/ui/view/tabvwshf.cxx +++ b/sc/source/ui/view/tabvwshf.cxx @@ -407,7 +407,7 @@ void ScTabViewShell::ExecuteTable( SfxRequest& rReq ) if( rReq.IsAPI() ) { #if HAVE_FEATURE_SCRIPTING - StarBASIC::Error( SbERR_SETPROP_FAILED ); // XXX error handling??? + StarBASIC::Error( ERRCODE_BASIC_SETPROP_FAILED ); // XXX error handling??? #endif } else @@ -739,7 +739,7 @@ void ScTabViewShell::ExecuteTable( SfxRequest& rReq ) if( rReq.IsAPI() ) { #if HAVE_FEATURE_SCRIPTING - StarBASIC::Error( SbERR_SETPROP_FAILED ); + StarBASIC::Error( ERRCODE_BASIC_SETPROP_FAILED ); #endif } } |