summaryrefslogtreecommitdiff
path: root/xmloff/source/table
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-01 19:07:44 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-02 15:04:37 +0100
commit65c053ca1a5a8c7318ab1e42cdde2d540a283673 (patch)
tree2e1a29f5d832ff0cb0d4c095f038392b472459d1 /xmloff/source/table
parent40afe52c92f340d0fedbb59d1071a542e6fb61e3 (diff)
Move DBG_ERROR to OSL_FAIL
Diffstat (limited to 'xmloff/source/table')
-rw-r--r--xmloff/source/table/XMLTableExport.cxx16
-rw-r--r--xmloff/source/table/XMLTableImport.cxx16
2 files changed, 16 insertions, 16 deletions
diff --git a/xmloff/source/table/XMLTableExport.cxx b/xmloff/source/table/XMLTableExport.cxx
index b589ba58c924..9d536b60d887 100644
--- a/xmloff/source/table/XMLTableExport.cxx
+++ b/xmloff/source/table/XMLTableExport.cxx
@@ -248,7 +248,7 @@ static bool has_states( const std::vector< XMLPropertyState >& xPropStates )
}
catch( Exception& )
{
- DBG_ERROR("xmloff::XMLTableExport::collectTableAutoStyles(), exception during column style collection!");
+ OSL_FAIL("xmloff::XMLTableExport::collectTableAutoStyles(), exception during column style collection!");
}
Reference< XIndexAccess > xIndexAccessRows( xColumnRowRange->getRows(), UNO_QUERY_THROW );
@@ -316,12 +316,12 @@ static bool has_states( const std::vector< XMLPropertyState >& xPropStates )
}
catch( Exception& )
{
- DBG_ERROR("xmloff::XMLTableExport::collectTableAutoStyles(), exception during column style collection!");
+ OSL_FAIL("xmloff::XMLTableExport::collectTableAutoStyles(), exception during column style collection!");
}
}
catch( Exception& )
{
- DBG_ERROR("xmloff::XMLTableExport::collectTableAutoStyles(), exception caught!");
+ OSL_FAIL("xmloff::XMLTableExport::collectTableAutoStyles(), exception caught!");
}
}
@@ -387,7 +387,7 @@ static bool has_states( const std::vector< XMLPropertyState >& xPropStates )
}
catch( Exception )
{
- DBG_ERROR( "XMLTableExport::exportTable(), exception cought!" );
+ OSL_FAIL( "XMLTableExport::exportTable(), exception cought!" );
}
}
@@ -452,7 +452,7 @@ static bool has_states( const std::vector< XMLPropertyState >& xPropStates )
}
catch ( Exception )
{
- DBG_ERROR( "exception while exporting a table cell" );
+ OSL_FAIL( "exception while exporting a table cell" );
}
// table:number-columns-repeated
@@ -575,7 +575,7 @@ void XMLTableExport::exportTableTemplates()
}
catch( Exception& )
{
- DBG_ERROR("xmloff::XMLTableExport::exportTableTemplates(), exception caught!");
+ OSL_FAIL("xmloff::XMLTableExport::exportTableTemplates(), exception caught!");
}
pElements++;
@@ -583,12 +583,12 @@ void XMLTableExport::exportTableTemplates()
}
catch( Exception& )
{
- DBG_ERROR("xmloff::XMLTableExport::exportTableDesigns(), exception caught while exporting a table design!");
+ OSL_FAIL("xmloff::XMLTableExport::exportTableDesigns(), exception caught while exporting a table design!");
}
}
catch( Exception& )
{
- DBG_ERROR("xmloff::XMLTableExport::exportTableDesigns(), exception caught!");
+ OSL_FAIL("xmloff::XMLTableExport::exportTableDesigns(), exception caught!");
}
}
diff --git a/xmloff/source/table/XMLTableImport.cxx b/xmloff/source/table/XMLTableImport.cxx
index 2ebd134f815f..e101d93493ea 100644
--- a/xmloff/source/table/XMLTableImport.cxx
+++ b/xmloff/source/table/XMLTableImport.cxx
@@ -287,7 +287,7 @@ void XMLTableImport::finishStyles()
}
catch( Exception& )
{
- DBG_ERROR("xmloff::XMLTableImport::finishStyles(), exception caught!");
+ OSL_FAIL("xmloff::XMLTableImport::finishStyles(), exception caught!");
}
if( xTemplate.is() )
@@ -301,12 +301,12 @@ void XMLTableImport::finishStyles()
}
catch( Exception& )
{
- DBG_ERROR("xmloff::XMLTableImport::finishStyles(), exception caught!");
+ OSL_FAIL("xmloff::XMLTableImport::finishStyles(), exception caught!");
}
}
catch( Exception& )
{
- DBG_ERROR("xmloff::XMLTableImport::finishStyles(), exception caught!");
+ OSL_FAIL("xmloff::XMLTableImport::finishStyles(), exception caught!");
}
}
@@ -389,7 +389,7 @@ SvXMLImportContext * XMLTableImportContext::ImportColumn( USHORT nPrefix, const
}
catch( Exception& )
{
- DBG_ERROR("xmloff::XMLTableImportContext::ImportTableColumn(), exception caught!");
+ OSL_FAIL("xmloff::XMLTableImportContext::ImportTableColumn(), exception caught!");
}
return SvXMLImportContext::CreateChildContext( nPrefix, rLocalName, xAttrList);
@@ -429,7 +429,7 @@ void XMLTableImportContext::InitColumns()
}
catch( Exception& )
{
- DBG_ERROR("xmloff::XMLTableImportContext::ImportTableColumn(), exception caught!");
+ OSL_FAIL("xmloff::XMLTableImportContext::ImportTableColumn(), exception caught!");
}
}
@@ -536,7 +536,7 @@ SvXMLImportContext * XMLTableImportContext::ImportCell( USHORT nPrefix, const OU
const sal_Int32 nRepeated = pCellContext->getRepeated();
if( nRepeated > 1 )
{
- DBG_ERROR("xmloff::XMLTableImportContext::ImportCell(), import of repeated Cells not implemented (TODO)");
+ OSL_FAIL("xmloff::XMLTableImportContext::ImportCell(), import of repeated Cells not implemented (TODO)");
mnCurrentColumn += nRepeated - 1;
}
@@ -544,7 +544,7 @@ SvXMLImportContext * XMLTableImportContext::ImportCell( USHORT nPrefix, const OU
}
catch( Exception& )
{
- DBG_ERROR("xmloff::XMLTableImportContext::ImportCell(), exception caught!");
+ OSL_FAIL("xmloff::XMLTableImportContext::ImportCell(), exception caught!");
}
return SvXMLImportContext::CreateChildContext( nPrefix, rLocalName, xAttrList);
@@ -597,7 +597,7 @@ void XMLTableImportContext::EndElement()
}
catch( Exception& )
{
- DBG_ERROR("XMLTableImportContext::EndElement(), exception caught while merging cells!");
+ OSL_FAIL("XMLTableImportContext::EndElement(), exception caught while merging cells!");
}
}
}