From c64f2525f94845357004513e20f4ee06aa1fb01a Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 23 Mar 2010 16:18:50 +0200 Subject: [PATCH] ooxml10: fit-list-to-size-ooxml.diff from ooo-build --- oox/source/drawingml/textbodypropertiescontext.cxx | 3 +++ oox/source/token/properties.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/oox/source/drawingml/textbodypropertiescontext.cxx b/oox/source/drawingml/textbodypropertiescontext.cxx index a1b77c56b219..95e01a6cc59e 100644 --- a/oox/source/drawingml/textbodypropertiescontext.cxx +++ b/oox/source/drawingml/textbodypropertiescontext.cxx @@ -150,6 +150,9 @@ Reference< XFastContextHandler > TextBodyPropertiesContext::createFastChildConte mrTextBodyProp.maPropertyMap[ PROP_TextAutoGrowHeight ] <<= false; // CT_TextNoAutofit break; case NMSP_DRAWINGML|XML_normAutofit: // CT_TextNormalAutofit + mrTextBodyProp.maPropertyMap[ PROP_TextFitToSize ] <<= true; + mrTextBodyProp.maPropertyMap[ PROP_TextAutoGrowHeight ] <<= false; + break; case NMSP_DRAWINGML|XML_spAutoFit: mrTextBodyProp.maPropertyMap[ PROP_TextAutoGrowHeight ] <<= true; break; diff --git a/oox/source/token/properties.txt b/oox/source/token/properties.txt index b868f3638356..0bcde87f83f0 100644 --- a/oox/source/token/properties.txt +++ b/oox/source/token/properties.txt @@ -364,6 +364,7 @@ TargetFrame TextAutoGrowHeight TextBreak TextColor +TextFitToSize TextHorizontalAdjust TextLeftDistance TextLowerDistance