diff options
Diffstat (limited to 'xmloff/source/chart')
-rw-r--r-- | xmloff/source/chart/SchXMLChartContext.cxx | 24 | ||||
-rw-r--r-- | xmloff/source/chart/SchXMLExport.cxx | 12 | ||||
-rw-r--r-- | xmloff/source/chart/SchXMLImport.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/chart/SchXMLPlotAreaContext.cxx | 30 | ||||
-rw-r--r-- | xmloff/source/chart/SchXMLTools.cxx | 8 |
5 files changed, 38 insertions, 38 deletions
diff --git a/xmloff/source/chart/SchXMLChartContext.cxx b/xmloff/source/chart/SchXMLChartContext.cxx index 085e24428aa7..b448f0658248 100644 --- a/xmloff/source/chart/SchXMLChartContext.cxx +++ b/xmloff/source/chart/SchXMLChartContext.cxx @@ -111,13 +111,13 @@ uno::Reference< chart2::XChartTypeTemplate > lcl_getTemplate( const uno::Referen } catch( uno::Exception & ) { - DBG_ERROR( "Exception during determination of chart type template" ); + OSL_FAIL( "Exception during determination of chart type template" ); } } } catch( uno::Exception & ) { - DBG_ERROR( "Exception during import lcl_getTemplate" ); + OSL_FAIL( "Exception during import lcl_getTemplate" ); } return xResult; } @@ -399,7 +399,7 @@ void SchXMLChartContext::StartElement( const uno::Reference< xml::sax::XAttribut if( aOldChartTypeName.getLength()<= 0 ) { - DBG_ERROR( "need a charttype to create a diagram" ); + OSL_FAIL( "need a charttype to create a diagram" ); //set a fallback value: ::rtl::OUString aChartClass_Bar( GetXMLToken(XML_BAR ) ); aOldChartTypeName = SchXMLTools::GetChartTypeByClassName( aChartClass_Bar, true /* bUseOldNames */ ); @@ -427,7 +427,7 @@ void SchXMLChartContext::StartElement( const uno::Reference< xml::sax::XAttribut } catch( uno::Exception & ) { - DBG_ERROR( "Exception during import SchXMLChartContext::StartElement" ); + OSL_FAIL( "Exception during import SchXMLChartContext::StartElement" ); } } } @@ -766,7 +766,7 @@ void SchXMLChartContext::EndElement() } catch( beans::UnknownPropertyException ) { - DBG_ERROR( "Property String for Title not available" ); + OSL_FAIL( "Property String for Title not available" ); } } } @@ -783,7 +783,7 @@ void SchXMLChartContext::EndElement() } catch( beans::UnknownPropertyException ) { - DBG_ERROR( "Property String for Title not available" ); + OSL_FAIL( "Property String for Title not available" ); } } } @@ -886,7 +886,7 @@ void SchXMLChartContext::EndElement() catch( uno::Exception & ) { //try to fallback to internal data - DBG_ERROR( "Exception during import SchXMLChartContext::lcl_ApplyDataFromRectangularRangeToDiagram try to fallback to internal data" ); + OSL_FAIL( "Exception during import SchXMLChartContext::lcl_ApplyDataFromRectangularRangeToDiagram try to fallback to internal data" ); if(!bHasOwnData) { bHasOwnData = true; @@ -901,7 +901,7 @@ void SchXMLChartContext::EndElement() } catch( uno::Exception & ) { - DBG_ERROR( "Exception during import SchXMLChartContext::lcl_ApplyDataFromRectangularRangeToDiagram fallback to internal data failed also" ); + OSL_FAIL( "Exception during import SchXMLChartContext::lcl_ApplyDataFromRectangularRangeToDiagram fallback to internal data failed also" ); } } } @@ -910,7 +910,7 @@ void SchXMLChartContext::EndElement() } else { - DBG_ERROR( " Must not get here" ); + OSL_FAIL( " Must not get here" ); } // now all series and data point properties are available and can be set @@ -1053,7 +1053,7 @@ void SchXMLChartContext::MergeSeriesForStockChart() } catch( uno::Exception & ) { - DBG_ERROR( "Exception while merging series for stock chart" ); + OSL_FAIL( "Exception while merging series for stock chart" ); } } @@ -1326,7 +1326,7 @@ void SchXMLLegendContext::StartElement( const uno::Reference< xml::sax::XAttribu } catch( beans::UnknownPropertyException ) { - DBG_ERROR( "Property HasLegend not found" ); + OSL_FAIL( "Property HasLegend not found" ); } } @@ -1367,7 +1367,7 @@ void SchXMLLegendContext::StartElement( const uno::Reference< xml::sax::XAttribu } catch( beans::UnknownPropertyException ) { - DBG_ERROR( "Property Alignment (legend) not found" ); + OSL_FAIL( "Property Alignment (legend) not found" ); } } } diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx index 425556b5413f..60f56f6ede18 100644 --- a/xmloff/source/chart/SchXMLExport.cxx +++ b/xmloff/source/chart/SchXMLExport.cxx @@ -568,7 +568,7 @@ bool lcl_hasChartType( const Reference< chart2::XDiagram > & xDiagram, const OUS } catch( uno::Exception & ) { - DBG_ERROR( "Exception while searching for chart type in diagram" ); + OSL_FAIL( "Exception while searching for chart type in diagram" ); } return false; } @@ -1148,7 +1148,7 @@ void SchXMLExportHelper_Impl::parseDocument( Reference< chart::XChartDocument >& Reference< chart2::XChartDocument > xNewDoc( rChartDoc, uno::UNO_QUERY ); if( !rChartDoc.is() || !xNewDoc.is() ) { - DBG_ERROR( "No XChartDocument was given for export." ); + OSL_FAIL( "No XChartDocument was given for export." ); return; } @@ -1886,7 +1886,7 @@ void SchXMLExportHelper_Impl::exportPlotArea( } catch( beans::UnknownPropertyException & ) { - DBG_ERROR( "Property HasSecondaryYAxis not found in Diagram" ); + OSL_FAIL( "Property HasSecondaryYAxis not found in Diagram" ); } // 3d attributes @@ -3684,7 +3684,7 @@ void SchXMLExport::_ExportAutoStyles() } else { - DBG_ERROR( "Couldn't export chart due to wrong XModel (must be XChartDocument)" ); + OSL_FAIL( "Couldn't export chart due to wrong XModel (must be XChartDocument)" ); } } } @@ -3742,7 +3742,7 @@ void SchXMLExport::_ExportContent() } catch( beans::UnknownPropertyException & ) { - DBG_ERROR( "Property ChartRangeAddress not supported by ChartDocument" ); + OSL_FAIL( "Property ChartRangeAddress not supported by ChartDocument" ); } } } @@ -3752,7 +3752,7 @@ void SchXMLExport::_ExportContent() } else { - DBG_ERROR( "Couldn't export chart due to wrong XModel" ); + OSL_FAIL( "Couldn't export chart due to wrong XModel" ); } } diff --git a/xmloff/source/chart/SchXMLImport.cxx b/xmloff/source/chart/SchXMLImport.cxx index e77ce27c50d9..173bdadc21f1 100644 --- a/xmloff/source/chart/SchXMLImport.cxx +++ b/xmloff/source/chart/SchXMLImport.cxx @@ -205,7 +205,7 @@ SvXMLImportContext* SchXMLImportHelper::CreateChartContext( } else { - DBG_ERROR( "No valid XChartDocument given as XModel" ); + OSL_FAIL( "No valid XChartDocument given as XModel" ); pContext = new SvXMLImportContext( rImport, nPrefix, rLocalName ); } diff --git a/xmloff/source/chart/SchXMLPlotAreaContext.cxx b/xmloff/source/chart/SchXMLPlotAreaContext.cxx index 1cdf8f352256..15d4568cfc40 100644 --- a/xmloff/source/chart/SchXMLPlotAreaContext.cxx +++ b/xmloff/source/chart/SchXMLPlotAreaContext.cxx @@ -288,7 +288,7 @@ SchXMLPlotAreaContext::SchXMLPlotAreaContext( } catch( beans::UnknownPropertyException & ) { - DBG_ERROR( "Property required by service not supported" ); + OSL_FAIL( "Property required by service not supported" ); } } } @@ -926,7 +926,7 @@ uno::Reference< drawing::XShape > SchXMLAxisContext::getTitleShape() break; } case SCH_XML_AXIS_UNDEF: - DBG_ERROR( "Invalid axis" ); + OSL_FAIL( "Invalid axis" ); break; } @@ -1007,7 +1007,7 @@ void SchXMLAxisContext::CreateGrid( ::rtl::OUString sAutoStyleName, } break; case SCH_XML_AXIS_UNDEF: - DBG_ERROR( "Invalid axis" ); + OSL_FAIL( "Invalid axis" ); break; } @@ -1106,7 +1106,7 @@ uno::Reference< chart2::XAxis > lcl_getAxis( const uno::Reference< frame::XModel } catch( uno::Exception & ) { - DBG_ERROR( "Couldn't get axis" ); + OSL_FAIL( "Couldn't get axis" ); } return xAxis; @@ -1162,7 +1162,7 @@ void SchXMLAxisContext::CreateAxis() } catch( beans::UnknownPropertyException & ) { - DBG_ERROR( "Couldn't turn on x axis" ); + OSL_FAIL( "Couldn't turn on x axis" ); } uno::Reference< chart::XAxisXSupplier > xSuppl( mxDiagram, uno::UNO_QUERY ); if( xSuppl.is()) @@ -1177,7 +1177,7 @@ void SchXMLAxisContext::CreateAxis() } catch( beans::UnknownPropertyException & ) { - DBG_ERROR( "Couldn't turn on second x axis" ); + OSL_FAIL( "Couldn't turn on second x axis" ); } uno::Reference< chart::XTwoAxisXSupplier > xSuppl( mxDiagram, uno::UNO_QUERY ); if( xSuppl.is()) @@ -1195,7 +1195,7 @@ void SchXMLAxisContext::CreateAxis() } catch( beans::UnknownPropertyException & ) { - DBG_ERROR( "Couldn't turn on y axis" ); + OSL_FAIL( "Couldn't turn on y axis" ); } uno::Reference< chart::XAxisYSupplier > xSuppl( mxDiagram, uno::UNO_QUERY ); if( xSuppl.is()) @@ -1213,7 +1213,7 @@ void SchXMLAxisContext::CreateAxis() } catch( beans::UnknownPropertyException & ) { - DBG_ERROR( "Couldn't turn on x axis" ); + OSL_FAIL( "Couldn't turn on x axis" ); } } } @@ -1227,7 +1227,7 @@ void SchXMLAxisContext::CreateAxis() } catch( beans::UnknownPropertyException & ) { - DBG_ERROR( "Couldn't turn on second y axis" ); + OSL_FAIL( "Couldn't turn on second y axis" ); } uno::Reference< chart::XTwoAxisYSupplier > xSuppl( mxDiagram, uno::UNO_QUERY ); if( xSuppl.is()) @@ -1246,7 +1246,7 @@ void SchXMLAxisContext::CreateAxis() } catch( beans::UnknownPropertyException & ) { - DBG_ERROR( "Couldn't turn on z axis" ); + OSL_FAIL( "Couldn't turn on z axis" ); } if( bSettingZAxisSuccedded ) { @@ -1404,7 +1404,7 @@ void SchXMLAxisContext::SetAxisTitle() } catch( beans::UnknownPropertyException & ) { - DBG_ERROR( "Property String for Title not available" ); + OSL_FAIL( "Property String for Title not available" ); } } } @@ -1426,7 +1426,7 @@ void SchXMLAxisContext::SetAxisTitle() } catch( beans::UnknownPropertyException & ) { - DBG_ERROR( "Property String for Title not available" ); + OSL_FAIL( "Property String for Title not available" ); } } } @@ -1451,7 +1451,7 @@ void SchXMLAxisContext::SetAxisTitle() } catch( beans::UnknownPropertyException & ) { - DBG_ERROR( "Property String for Title not available" ); + OSL_FAIL( "Property String for Title not available" ); } } } @@ -1473,7 +1473,7 @@ void SchXMLAxisContext::SetAxisTitle() } catch( beans::UnknownPropertyException & ) { - DBG_ERROR( "Property String for Title not available" ); + OSL_FAIL( "Property String for Title not available" ); } } } @@ -1497,7 +1497,7 @@ void SchXMLAxisContext::SetAxisTitle() } catch( beans::UnknownPropertyException & ) { - DBG_ERROR( "Property String for Title not available" ); + OSL_FAIL( "Property String for Title not available" ); } } } diff --git a/xmloff/source/chart/SchXMLTools.cxx b/xmloff/source/chart/SchXMLTools.cxx index 2ea903228832..dbd8c395331b 100644 --- a/xmloff/source/chart/SchXMLTools.cxx +++ b/xmloff/source/chart/SchXMLTools.cxx @@ -395,14 +395,14 @@ Reference< chart2::data::XDataSequence > CreateDataSequence( if( !xChartDoc.is() ) { - DBG_ERROR( "need a chart document" ); + OSL_FAIL( "need a chart document" ); return xRet; } Reference< chart2::data::XDataProvider > xDataProvider( xChartDoc->getDataProvider() ); if( !xDataProvider.is() ) { - DBG_ERROR( "need a data provider" ); + OSL_FAIL( "need a data provider" ); return xRet; } @@ -413,7 +413,7 @@ Reference< chart2::data::XDataSequence > CreateDataSequence( } catch( const lang::IllegalArgumentException & ) { - DBG_ERROR( "could not create data sequence" ); + OSL_FAIL( "could not create data sequence" ); } if( !xRet.is() && !xChartDoc->hasInternalDataProvider() ) @@ -428,7 +428,7 @@ Reference< chart2::data::XDataSequence > CreateDataSequence( } catch( const lang::IllegalArgumentException & ) { - DBG_ERROR( "could not create data sequence" ); + OSL_FAIL( "could not create data sequence" ); } } return xRet; |