diff options
Diffstat (limited to 'xmloff/source/table/XMLTableExport.cxx')
-rw-r--r-- | xmloff/source/table/XMLTableExport.cxx | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/xmloff/source/table/XMLTableExport.cxx b/xmloff/source/table/XMLTableExport.cxx index f5685e8aa1ea..84792c7e536d 100644 --- a/xmloff/source/table/XMLTableExport.cxx +++ b/xmloff/source/table/XMLTableExport.cxx @@ -52,15 +52,11 @@ using namespace ::com::sun::star::container; using namespace ::com::sun::star::text; using namespace ::com::sun::star::style; -// -------------------------------------------------------------------- - #define _MAP(name,prefix,token,type,context) { name, sizeof(name)-1, prefix, token, type, context, SvtSaveOptions::ODFVER_010 } #define CMAP(name,prefix,token,type,context) _MAP(name,prefix,token,type|XML_TYPE_PROP_TABLE_COLUMN,context) #define RMAP(name,prefix,token,type,context) _MAP(name,prefix,token,type|XML_TYPE_PROP_TABLE_ROW,context) #define MAP_END { 0L, 0, 0, XML_EMPTY, 0, 0, SvtSaveOptions::ODFVER_010 } -// -------------------------------------------------------------------- - const XMLPropertyMapEntry* getColumnPropertiesMap() { static const XMLPropertyMapEntry aXMLColumnProperties[] = @@ -73,8 +69,6 @@ const XMLPropertyMapEntry* getColumnPropertiesMap() return &aXMLColumnProperties[0]; } -// -------------------------------------------------------------------- - const XMLPropertyMapEntry* getRowPropertiesMap() { static const XMLPropertyMapEntry aXMLRowProperties[] = @@ -88,8 +82,6 @@ const XMLPropertyMapEntry* getRowPropertiesMap() return &aXMLRowProperties[0]; } -// -------------------------------------------------------------------- - class StringStatisticHelper : public std::map< OUString, sal_Int32 > { public: @@ -99,8 +91,6 @@ public: sal_Int32 getModeString( /* out */ OUString& rModeString ); }; -// -------------------------------------------------------------------- - void StringStatisticHelper::add( const OUString& rStyleName ) { std::map< OUString, sal_Int32 >::iterator iter( find( rStyleName ) ); @@ -114,8 +104,6 @@ void StringStatisticHelper::add( const OUString& rStyleName ) } } -// -------------------------------------------------------------------- - sal_Int32 StringStatisticHelper::getModeString( OUString& rStyleName ) { sal_Int32 nMax = 0; @@ -133,9 +121,7 @@ sal_Int32 StringStatisticHelper::getModeString( OUString& rStyleName ) return nMax; } -// -------------------------------------------------------------------- // class XMLTableExport -// -------------------------------------------------------------------- XMLTableExport::XMLTableExport(SvXMLExport& rExp, const rtl::Reference< SvXMLExportPropertyMapper >& xExportPropertyMapper, const rtl::Reference< XMLPropertyHandlerFactory >& xFactoryRef ) : mrExport( rExp ) @@ -180,14 +166,10 @@ XMLTableExport::XMLTableExport(SvXMLExport& rExp, const rtl::Reference< SvXMLExp OUString(XML_STYLE_FAMILY_TABLE_CELL_STYLES_PREFIX)); } -// -------------------------------------------------------------------- - XMLTableExport::~XMLTableExport () { } -// -------------------------------------------------------------------- - static bool has_states( const std::vector< XMLPropertyState >& xPropStates ) { if( !xPropStates.empty() ) @@ -204,8 +186,6 @@ static bool has_states( const std::vector< XMLPropertyState >& xPropStates ) return false; } -// -------------------------------------------------------------------- - void XMLTableExport::collectTableAutoStyles(const Reference < XColumnRowRange >& xColumnRowRange) { if( !mbExportTables ) @@ -309,8 +289,6 @@ static bool has_states( const std::vector< XMLPropertyState >& xPropStates ) } } - // -------------------------------------------------------------------- - void XMLTableExport::exportTable( const Reference < XColumnRowRange >& xColumnRowRange ) { if( !mbExportTables ) @@ -375,9 +353,7 @@ static bool has_states( const std::vector< XMLPropertyState >& xPropStates ) } } -// -------------------------------------------------------------------- // Export the table columns -// -------------------------------------------------------------------- void XMLTableExport::ExportTableColumns( const Reference < XIndexAccess >& xtableColumnsIndexAccess, const boost::shared_ptr< XMLTableInfo >& pTableInfo ) { @@ -404,9 +380,7 @@ static bool has_states( const std::vector< XMLPropertyState >& xPropStates ) } } -// -------------------------------------------------------------------- // ODF export for a table cell. -// -------------------------------------------------------------------- void XMLTableExport::ExportCell( const Reference < XCell >& xCell, const boost::shared_ptr< XMLTableInfo >& pTableInfo, const OUString& rDefaultCellStyle ) { @@ -457,11 +431,9 @@ static bool has_states( const std::vector< XMLPropertyState >& xPropStates ) ImpExportText( xCell ); } -// -------------------------------------------------------------------- // ODF export of the text contents of a table cell. // Remarks: Up to now we only export text contents! // TODO: Check against nested tables .... -// -------------------------------------------------------------------- void XMLTableExport::ImpExportText( const Reference< XCell >& xCell ) { @@ -470,8 +442,6 @@ static bool has_states( const std::vector< XMLPropertyState >& xPropStates ) mrExport.GetTextParagraphExport()->exportText( xText ); } -// -------------------------------------------------------------------- - void XMLTableExport::exportTableStyles() { if( !mbExportTables ) @@ -485,9 +455,7 @@ void XMLTableExport::exportTableStyles() exportTableTemplates(); } -// -------------------------------------------------------------------- // Export the collected automatic styles -// -------------------------------------------------------------------- void XMLTableExport::exportAutoStyles() { @@ -499,8 +467,6 @@ void XMLTableExport::exportAutoStyles() mrExport.GetAutoStylePool()->exportXML( XML_STYLE_FAMILY_TABLE_CELL, mrExport.GetDocHandler(), mrExport.GetMM100UnitConverter(), mrExport.GetNamespaceMap() ); } -// -------------------------------------------------------------------- - const TableStyleElement* getTableStyleMap() { static const struct TableStyleElement gTableStyleElements[] = @@ -520,8 +486,6 @@ const TableStyleElement* getTableStyleMap() return &gTableStyleElements[0]; } -// -------------------------------------------------------------------- - void XMLTableExport::exportTableTemplates() { if( !mbExportTables ) @@ -576,6 +540,4 @@ void XMLTableExport::exportTableTemplates() } } -// -------------------------------------------------------------------- - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |