summaryrefslogtreecommitdiff
path: root/xmloff/source/table/XMLTableExport.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/table/XMLTableExport.cxx')
-rw-r--r--xmloff/source/table/XMLTableExport.cxx24
1 files changed, 11 insertions, 13 deletions
diff --git a/xmloff/source/table/XMLTableExport.cxx b/xmloff/source/table/XMLTableExport.cxx
index d0550814d8dc..e53e321257af 100644
--- a/xmloff/source/table/XMLTableExport.cxx
+++ b/xmloff/source/table/XMLTableExport.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -185,10 +186,6 @@ XMLTableExport::XMLTableExport(SvXMLExport& rExp, const rtl::Reference< SvXMLExp
OUString(RTL_CONSTASCII_USTRINGPARAM(XML_STYLE_FAMILY_TABLE_ROW_STYLES_NAME)),
mxRowExportPropertySetMapper.get(),
OUString(RTL_CONSTASCII_USTRINGPARAM(XML_STYLE_FAMILY_TABLE_ROW_STYLES_PREFIX)));
-// mrExport.GetAutoStylePool()->AddFamily(XML_STYLE_FAMILY_TABLE_TABLE
-// OUString(RTL_CONSTASCII_USTRINGPARAM(XML_STYLE_FAMILY_TABLE_TABLE_STYLES_NAME)),
-// xTableStylesExportPropertySetMapper,
-// OUString(RTL_CONSTASCII_USTRINGPARAM(XML_STYLE_FAMILY_TABLE_TABLE_STYLES_PREFIX)));
mrExport.GetAutoStylePool()->AddFamily(XML_STYLE_FAMILY_TABLE_CELL,
OUString(RTL_CONSTASCII_USTRINGPARAM(XML_STYLE_FAMILY_TABLE_CELL_STYLES_NAME)),
mxCellExportPropertySetMapper.get(),
@@ -213,7 +210,7 @@ static bool has_states( const std::vector< XMLPropertyState >& xPropStates )
{
if( aIter->mnIndex != -1 )
return true;
- aIter++;
+ ++aIter;
}
}
return false;
@@ -247,7 +244,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 );
@@ -315,12 +312,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!");
}
}
@@ -386,7 +383,7 @@ static bool has_states( const std::vector< XMLPropertyState >& xPropStates )
}
catch( Exception )
{
- DBG_ERROR( "XMLTableExport::exportTable(), exception cought!" );
+ OSL_FAIL( "XMLTableExport::exportTable(), exception cought!" );
}
}
@@ -451,7 +448,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
@@ -574,7 +571,7 @@ void XMLTableExport::exportTableTemplates()
}
catch( Exception& )
{
- DBG_ERROR("xmloff::XMLTableExport::exportTableTemplates(), exception caught!");
+ OSL_FAIL("xmloff::XMLTableExport::exportTableTemplates(), exception caught!");
}
pElements++;
@@ -582,14 +579,15 @@ 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!");
}
}
// --------------------------------------------------------------------
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */