diff options
author | Noel Power <noel.power@suse.com> | 2012-10-04 17:02:18 +0100 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2012-10-04 20:27:37 +0100 |
commit | 5a651522acb42fcffa6defc212cb8d0e9b9b7d3f (patch) | |
tree | 1bb5e57d52776343c1c37f59a14c938b9f4bff6e /sc | |
parent | b738599956964c0e6b5bbdc0baa9b3eb5c1a2302 (diff) |
really export default row heights for xlsx fdo#55621
Change-Id: Icdf581cd7ae245f2749fecf00957bc9524f717d8
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xetable.cxx | 7 | ||||
-rw-r--r-- | sc/source/filter/inc/xetable.hxx | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xetable.cxx b/sc/source/filter/excel/xetable.cxx index d3f6028f8747..bebb239e9289 100644 --- a/sc/source/filter/excel/xetable.cxx +++ b/sc/source/filter/excel/xetable.cxx @@ -2450,6 +2450,13 @@ void XclExpCellTable::Save( XclExpStream& rStrm ) void XclExpCellTable::SaveXml( XclExpXmlStream& rStrm ) { + // DEFAULT row height + XclExpDefaultRowData& rDefData = mxDefrowheight->GetDefaultData(); + sax_fastparser::FSHelperPtr& rWorksheet = rStrm.GetCurrentStream(); + rWorksheet->startElement( XML_sheetFormatPr, + XML_defaultRowHeight, OString::valueOf( (double) rDefData.mnHeight / 20.0 ).getStr(), FSEND ); + rWorksheet->endElement( XML_sheetFormatPr ); + maColInfoBfr.SaveXml( rStrm ); maRowBfr.SaveXml( rStrm ); mxExtLst->SaveXml( rStrm ); diff --git a/sc/source/filter/inc/xetable.hxx b/sc/source/filter/inc/xetable.hxx index bbf04fd1d6e1..6fff7ddcc589 100644 --- a/sc/source/filter/inc/xetable.hxx +++ b/sc/source/filter/inc/xetable.hxx @@ -852,7 +852,7 @@ public: /** Sets the passed default data as current record contents. */ void SetDefaultData( const XclExpDefaultRowData& rDefData ); - + XclExpDefaultRowData& GetDefaultData() { return maDefData; } private: /** Writes the contents of the record. */ virtual void WriteBody( XclExpStream& rStrm ); |