From e623ee66dfde0d5a2705e222aaa7ce580e409506 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Tue, 22 May 2012 10:08:26 +0100 Subject: make row heights ( incl default row height ) from excel are saved absolute Currently default row heights imported from Excel are not adjusted Optimally ( AdjustRowHeight() is no longer called ) However to ensure correct round tripping the CR_MANUALSIZE flag *is* still set, this results in the style:use-optimal-row-height="true" being set for default row height(s) when saving as odf. So, for example absolute positions which are calculated on importing the Excel document ( where the row height is *not* optimally adjusted ) are still saved with the 'style:use-optimal-row-height' set. When the row heights are read back into calc the row sizes are changed any absolutely positioned objects are now out of place. This patch ensures *all* row heights are from an imported excel document are saved with style:use-optimal-row-height="false" Change-Id: If898b97ddb0c8b59a401d7b3c133b0eec09cd1db --- xmloff/source/style/xmlbahdl.cxx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'xmloff/source/style/xmlbahdl.cxx') diff --git a/xmloff/source/style/xmlbahdl.cxx b/xmloff/source/style/xmlbahdl.cxx index b34b37a166fd..8535c0b818d0 100644 --- a/xmloff/source/style/xmlbahdl.cxx +++ b/xmloff/source/style/xmlbahdl.cxx @@ -233,6 +233,26 @@ sal_Bool XMLMeasurePropHdl::exportXML( OUString& rStrExpValue, const Any& rValue return bRet; } +/////////////////////////////////////////////////////////////////////////////// +// +// class XMLBoolFalsePropHdl +// + +XMLBoolFalsePropHdl::~XMLBoolFalsePropHdl() +{ + // nothing to do +} + +sal_Bool XMLBoolFalsePropHdl::importXML( const OUString&, Any&, const SvXMLUnitConverter& ) const +{ + return sal_False; +} + +sal_Bool XMLBoolFalsePropHdl::exportXML( OUString& rStrExpValue, const Any& /*rValue*/, const SvXMLUnitConverter& rCnv) const +{ + return XMLBoolPropHdl::exportXML( rStrExpValue, makeAny( sal_False ), rCnv ); +} + /////////////////////////////////////////////////////////////////////////////// // // class XMLBoolPropHdl -- cgit v1.2.3