summaryrefslogtreecommitdiff
path: root/xmloff/source/table/XMLTableImport.cxx
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2013-08-09 20:04:34 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2013-08-10 14:55:06 +0000
commit4f360266cd1335861c182493bde6ade0e67b753b (patch)
tree94fbebf42ab561d68b659fa0c0f80ab85abef2d8 /xmloff/source/table/XMLTableImport.cxx
parent9c8831244062202e9066b97be7082e72e1194866 (diff)
fdo#62475 removed pointless comments
Change-Id: I176886fbc9f3d9e2b8ad2308ac2b127d9c68d9a6 Reviewed-on: https://gerrit.libreoffice.org/5331 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'xmloff/source/table/XMLTableImport.cxx')
-rw-r--r--xmloff/source/table/XMLTableImport.cxx73
1 files changed, 0 insertions, 73 deletions
diff --git a/xmloff/source/table/XMLTableImport.cxx b/xmloff/source/table/XMLTableImport.cxx
index 59254909af26..914319d03c63 100644
--- a/xmloff/source/table/XMLTableImport.cxx
+++ b/xmloff/source/table/XMLTableImport.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
#include <com/sun/star/table/XTableRows.hpp>
#include <com/sun/star/table/XMergeableCell.hpp>
@@ -42,8 +41,6 @@
#include <boost/shared_ptr.hpp>
-// --------------------------------------------------------------------
-
using namespace ::xmloff::token;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::uno;
@@ -54,8 +51,6 @@ using namespace ::com::sun::star::style;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::container;
-// --------------------------------------------------------------------
-
struct ColumnInfo
{
OUString msStyleName;
@@ -63,8 +58,6 @@ struct ColumnInfo
OUString msDefaultCellStyleName;
};
-// --------------------------------------------------------------------
-
class XMLProxyContext : public SvXMLImportContext
{
public:
@@ -76,8 +69,6 @@ private:
SvXMLImportContextRef mxParent;
};
-// --------------------------------------------------------------------
-
struct MergeInfo
{
sal_Int32 mnStartColumn;
@@ -91,8 +82,6 @@ struct MergeInfo
typedef std::vector< boost::shared_ptr< MergeInfo > > MergeInfoVector;
-// --------------------------------------------------------------------
-
class XMLTableImportContext : public SvXMLImportContext
{
public:
@@ -128,8 +117,6 @@ public:
MergeInfoVector maMergeInfos;
};
-// --------------------------------------------------------------------
-
class XMLCellImportContext : public SvXMLImportContext
{
public:
@@ -157,8 +144,6 @@ public:
sal_Int32 mnColSpan, mnRowSpan, mnRepeated;
};
-// --------------------------------------------------------------------
-
class XMLTableTemplateContext : public SvXMLStyleContext
{
public:
@@ -175,9 +160,7 @@ private:
OUString msTemplateStyleName;
};
-// --------------------------------------------------------------------
// class XMLProxyContext
-// --------------------------------------------------------------------
XMLProxyContext::XMLProxyContext( SvXMLImport& rImport, const SvXMLImportContextRef& xParent, sal_uInt16 nPrfx, const OUString& rLName )
: SvXMLImportContext( rImport, nPrfx, rLName )
@@ -185,8 +168,6 @@ XMLProxyContext::XMLProxyContext( SvXMLImport& rImport, const SvXMLImportContext
{
}
-// --------------------------------------------------------------------
-
SvXMLImportContext * XMLProxyContext::CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName, const Reference< XAttributeList >& xAttrList )
{
if( mxParent.Is() )
@@ -195,9 +176,7 @@ SvXMLImportContext * XMLProxyContext::CreateChildContext( sal_uInt16 nPrefix, co
return SvXMLImportContext::CreateChildContext( nPrefix, rLocalName, xAttrList );
}
-// --------------------------------------------------------------------
// class XMLTableImport
-// --------------------------------------------------------------------
XMLTableImport::XMLTableImport( SvXMLImport& rImport, const rtl::Reference< XMLPropertySetMapper >& xCellPropertySetMapper, const rtl::Reference< XMLPropertyHandlerFactory >& xFactoryRef )
: mrImport( rImport )
@@ -205,7 +184,6 @@ XMLTableImport::XMLTableImport( SvXMLImport& rImport, const rtl::Reference< XMLP
mxCellImportPropertySetMapper = new SvXMLImportPropertyMapper( xCellPropertySetMapper.get(), rImport );
mxCellImportPropertySetMapper->ChainImportMapper(XMLTextImportHelper::CreateParaExtPropMapper(rImport));
-
UniReference < XMLPropertySetMapper > xRowMapper( new XMLPropertySetMapper( getRowPropertiesMap(), xFactoryRef.get() ) );
mxRowImportPropertySetMapper = new SvXMLImportPropertyMapper( xRowMapper, rImport );
@@ -213,29 +191,21 @@ XMLTableImport::XMLTableImport( SvXMLImport& rImport, const rtl::Reference< XMLP
mxColumnImportPropertySetMapper = new SvXMLImportPropertyMapper( xColMapper, rImport );
}
-// --------------------------------------------------------------------
-
XMLTableImport::~XMLTableImport()
{
}
-// --------------------------------------------------------------------
-
SvXMLImportContext* XMLTableImport::CreateTableContext( sal_uInt16 nPrfx, const OUString& rLName, Reference< XColumnRowRange >& xColumnRowRange )
{
rtl::Reference< XMLTableImport > xThis( this );
return new XMLTableImportContext( xThis, nPrfx, rLName, xColumnRowRange );
}
-// --------------------------------------------------------------------
-
SvXMLStyleContext* XMLTableImport::CreateTableTemplateContext( sal_uInt16 nPrfx, const OUString& rLName, const Reference< XAttributeList >& xAttrList )
{
return new XMLTableTemplateContext( mrImport, nPrfx, rLName, xAttrList );
}
-// --------------------------------------------------------------------
-
void XMLTableImport::addTableTemplate( const OUString& rsStyleName, XMLTableTemplate& xTableTemplate )
{
boost::shared_ptr< XMLTableTemplate > xPtr( new XMLTableTemplate );
@@ -243,8 +213,6 @@ void XMLTableImport::addTableTemplate( const OUString& rsStyleName, XMLTableTemp
maTableTemplates[rsStyleName] = xPtr;
}
-// --------------------------------------------------------------------
-
void XMLTableImport::finishStyles()
{
if( !maTableTemplates.empty() ) try
@@ -297,10 +265,7 @@ void XMLTableImport::finishStyles()
}
}
-// --------------------------------------------------------------------
// class XMLTableImport
-// --------------------------------------------------------------------
-
XMLTableImportContext::XMLTableImportContext( const rtl::Reference< XMLTableImport >& xImporter, sal_uInt16 nPrfx, const OUString& rLName, Reference< XColumnRowRange >& xColumnRowRange )
: SvXMLImportContext( xImporter->mrImport, nPrfx, rLName )
@@ -313,14 +278,10 @@ XMLTableImportContext::XMLTableImportContext( const rtl::Reference< XMLTableImpo
{
}
-// --------------------------------------------------------------------
-
XMLTableImportContext::~XMLTableImportContext()
{
}
-// --------------------------------------------------------------------
-
SvXMLImportContext * XMLTableImportContext::ImportColumn( sal_uInt16 nPrefix, const OUString& rLocalName, const Reference< XAttributeList >& xAttrList )
{
if( mxColumns.is() && (mnCurrentRow == -1) ) try
@@ -382,8 +343,6 @@ SvXMLImportContext * XMLTableImportContext::ImportColumn( sal_uInt16 nPrefix, co
return SvXMLImportContext::CreateChildContext( nPrefix, rLocalName, xAttrList);
}
-// --------------------------------------------------------------------
-
void XMLTableImportContext::InitColumns()
{
if( mxColumns.is() ) try
@@ -420,8 +379,6 @@ void XMLTableImportContext::InitColumns()
}
}
-// --------------------------------------------------------------------
-
SvXMLImportContext * XMLTableImportContext::ImportRow( sal_uInt16 nPrefix, const OUString& rLocalName, const Reference< XAttributeList >& xAttrList )
{
if( mxRows.is() )
@@ -492,8 +449,6 @@ SvXMLImportContext * XMLTableImportContext::ImportRow( sal_uInt16 nPrefix, const
return new XMLProxyContext( GetImport(), xThis, nPrefix, rLocalName );
}
-// --------------------------------------------------------------------
-
SvXMLImportContext * XMLTableImportContext::ImportCell( sal_uInt16 nPrefix, const OUString& rLocalName, const Reference< XAttributeList >& xAttrList )
{
mnCurrentColumn++;
@@ -527,8 +482,6 @@ SvXMLImportContext * XMLTableImportContext::ImportCell( sal_uInt16 nPrefix, cons
return SvXMLImportContext::CreateChildContext( nPrefix, rLocalName, xAttrList);
}
-// --------------------------------------------------------------------
-
SvXMLImportContext *XMLTableImportContext::CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName, const Reference< XAttributeList >& xAttrList )
{
if( nPrefix == XML_NAMESPACE_TABLE )
@@ -549,14 +502,10 @@ SvXMLImportContext *XMLTableImportContext::CreateChildContext( sal_uInt16 nPrefi
return SvXMLImportContext::CreateChildContext( nPrefix, rLocalName, xAttrList);
}
-// --------------------------------------------------------------------
-
void XMLTableImportContext::StartElement( const Reference< XAttributeList >& /*xAttrList*/ )
{
}
-// --------------------------------------------------------------------
-
void XMLTableImportContext::EndElement()
{
if( !maMergeInfos.empty() )
@@ -580,8 +529,6 @@ void XMLTableImportContext::EndElement()
}
}
-// --------------------------------------------------------------------
-
OUString XMLTableImportContext::GetDefaultCellStyleName() const
{
OUString sStyleName( msDefaultCellStyleName );
@@ -593,9 +540,7 @@ OUString XMLTableImportContext::GetDefaultCellStyleName() const
return sStyleName;
}
-// --------------------------------------------------------------------
// XMLCellImportContext
-// --------------------------------------------------------------------
XMLCellImportContext::XMLCellImportContext( SvXMLImport& rImport, const Reference< XMergeableCell >& xCell, const OUString& sDefaultCellStyleName, sal_uInt16 nPrfx, const OUString& rLName, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList )
: SvXMLImportContext( rImport, nPrfx, rLName )
@@ -667,14 +612,10 @@ XMLCellImportContext::XMLCellImportContext( SvXMLImport& rImport, const Referenc
}
}
-// --------------------------------------------------------------------
-
XMLCellImportContext::~XMLCellImportContext()
{
}
-// --------------------------------------------------------------------
-
SvXMLImportContext * XMLCellImportContext::CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName, const Reference< XAttributeList >& xAttrList )
{
// create text cursor on demand
@@ -710,10 +651,6 @@ SvXMLImportContext * XMLCellImportContext::CreateChildContext( sal_uInt16 nPrefi
return SvXMLImportContext::CreateChildContext( nPrefix, rLocalName, xAttrList);
}
-// --------------------------------------------------------------------
-
-// --------------------------------------------------------------------
-
void XMLCellImportContext::EndElement()
{
if(mxCursor.is())
@@ -737,17 +674,13 @@ void XMLCellImportContext::EndElement()
}
}
-// --------------------------------------------------------------------
// class XMLTableTemplateContext
-// --------------------------------------------------------------------
XMLTableTemplateContext::XMLTableTemplateContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const OUString& rLName, const Reference< XAttributeList >& xAttrList )
: SvXMLStyleContext( rImport, nPrfx, rLName, xAttrList, XML_STYLE_FAMILY_TABLE_TEMPLATE_ID, sal_False )
{
}
-// --------------------------------------------------------------------
-
void XMLTableTemplateContext::StartElement( const Reference< XAttributeList >& xAttrList )
{
sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
@@ -763,8 +696,6 @@ void XMLTableTemplateContext::StartElement( const Reference< XAttributeList >& x
}
}
-// --------------------------------------------------------------------
-
void XMLTableTemplateContext::EndElement()
{
rtl::Reference< XMLTableImport > xTableImport( GetImport().GetShapeImport()->GetShapeTableImport() );
@@ -772,8 +703,6 @@ void XMLTableTemplateContext::EndElement()
xTableImport->addTableTemplate( msTemplateStyleName, maTableTemplate );
}
-// --------------------------------------------------------------------
-
SvXMLImportContext * XMLTableTemplateContext::CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName, const Reference< XAttributeList >& xAttrList )
{
if( nPrefix == XML_NAMESPACE_TABLE )
@@ -802,6 +731,4 @@ SvXMLImportContext * XMLTableTemplateContext::CreateChildContext( sal_uInt16 nPr
return SvXMLImportContext::CreateChildContext( nPrefix, rLocalName, xAttrList );
}
-// --------------------------------------------------------------------
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */