summaryrefslogtreecommitdiffstats
path: root/xmloff/source/draw/shapeexport.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/draw/shapeexport.cxx')
-rw-r--r--xmloff/source/draw/shapeexport.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx
index 827c910f54d3..7e01bb163c25 100644
--- a/xmloff/source/draw/shapeexport.cxx
+++ b/xmloff/source/draw/shapeexport.cxx
@@ -195,7 +195,7 @@ void XMLShapeExport::collectShapeAutoStyles(const uno::Reference< drawing::XShap
{
if( maCurrentShapesIter == maShapesInfos.end() )
{
- DBG_ERROR( "XMLShapeExport::collectShapeAutoStyles(): no call to seekShapes()!" );
+ OSL_FAIL( "XMLShapeExport::collectShapeAutoStyles(): no call to seekShapes()!" );
return;
}
sal_Int32 nZIndex = 0;
@@ -207,7 +207,7 @@ void XMLShapeExport::collectShapeAutoStyles(const uno::Reference< drawing::XShap
if( (sal_Int32)aShapeInfoVector.size() <= nZIndex )
{
- DBG_ERROR( "XMLShapeExport::collectShapeAutoStyles(): no shape info allocated for a given shape" );
+ OSL_FAIL( "XMLShapeExport::collectShapeAutoStyles(): no shape info allocated for a given shape" );
return;
}
@@ -474,7 +474,7 @@ void XMLShapeExport::collectShapeAutoStyles(const uno::Reference< drawing::XShap
}
catch( uno::Exception& )
{
- DBG_ERROR( "XMLShapeExport::collectShapeAutoStyles(): exception caught while collection auto styles for a table!" );
+ OSL_FAIL( "XMLShapeExport::collectShapeAutoStyles(): exception caught while collection auto styles for a table!" );
}
break;
}
@@ -530,7 +530,7 @@ void XMLShapeExport::exportShape(const uno::Reference< drawing::XShape >& xShape
{
if( maCurrentShapesIter == maShapesInfos.end() )
{
- DBG_ERROR( "XMLShapeExport::exportShape(): no auto styles where collected before export" );
+ OSL_FAIL( "XMLShapeExport::exportShape(): no auto styles where collected before export" );
return;
}
sal_Int32 nZIndex = 0;
@@ -563,7 +563,7 @@ void XMLShapeExport::exportShape(const uno::Reference< drawing::XShape >& xShape
}
catch( uno::Exception& )
{
- DBG_ERROR("XMLShapeExport::exportShape(): exception during hyperlink export");
+ OSL_FAIL("XMLShapeExport::exportShape(): exception during hyperlink export");
}
@@ -574,7 +574,7 @@ void XMLShapeExport::exportShape(const uno::Reference< drawing::XShape >& xShape
if( (sal_Int32)aShapeInfoVector.size() <= nZIndex )
{
- DBG_ERROR( "XMLShapeExport::exportShape(): no shape info collected for a given shape" );
+ OSL_FAIL( "XMLShapeExport::exportShape(): no shape info collected for a given shape" );
return;
}
@@ -686,7 +686,7 @@ void XMLShapeExport::exportShape(const uno::Reference< drawing::XShape >& xShape
}
catch( uno::Exception e )
{
- DBG_ERROR( "could not export layer name for shape!" );
+ OSL_FAIL( "could not export layer name for shape!" );
}
}
}
@@ -720,7 +720,7 @@ void XMLShapeExport::exportShape(const uno::Reference< drawing::XShape >& xShape
}
catch( uno::Exception& )
{
- DBG_ERROR( "XMLShapeExport::exportShape(), exception caught!" );
+ OSL_FAIL( "XMLShapeExport::exportShape(), exception caught!" );
}
}
@@ -900,7 +900,7 @@ void XMLShapeExport::exportShape(const uno::Reference< drawing::XShape >& xShape
default:
{
// this should never happen and is an error
- DBG_ERROR("XMLEXP: WriteShape: unknown or unexpected type of shape in export!");
+ OSL_FAIL("XMLEXP: WriteShape: unknown or unexpected type of shape in export!");
break;
}
}
@@ -1159,7 +1159,7 @@ void XMLShapeExport::ImpCalcShapeType(const uno::Reference< drawing::XShape >& x
}
catch( uno::Exception& )
{
- DBG_ERROR( "XMLShapeExport::ImpCalcShapeType(), expected ole shape to have the CLSID property?" );
+ OSL_FAIL( "XMLShapeExport::ImpCalcShapeType(), expected ole shape to have the CLSID property?" );
}
}
else if(aType.EqualsAscii("Chart", 26, 5)) { eShapeType = XmlShapeTypePresChartShape; }