diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-01-06 15:15:15 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-01-06 16:37:26 +0100 |
commit | 52263eb4ee841ff101fa54e7fb95d76d2070f91b (patch) | |
tree | e963763da564d9f492aa6a3e5fddba1e8e283df4 /sw/source | |
parent | e7e6a5f9850a36d72339799b3981369790113d12 (diff) |
DOCX export: implement drawingML export of TextFrame AutoSize
Change-Id: I180158bfa0bd36ed1360d10788e7921c2fa945a7
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index 0aa7e3601155..38a05c8c2c35 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -488,7 +488,11 @@ void DocxAttributeOutput::WriteDMLTextFrame(sw::Frame* pParentFrame) m_pSerializer->endElementNS( XML_wps, XML_txbx ); XFastAttributeListRef xBodyPrAttrList(m_pBodyPrAttrList); m_pBodyPrAttrList = NULL; - m_pSerializer->singleElementNS( XML_wps, XML_bodyPr, xBodyPrAttrList ); + m_pSerializer->startElementNS( XML_wps, XML_bodyPr, xBodyPrAttrList ); + // AutoSize of the Text Frame. + const SwFmtFrmSize& rSize = rFrmFmt.GetFrmSize(); + m_pSerializer->singleElementNS(XML_a, (rSize.GetHeightSizeType() == ATT_VAR_SIZE ? XML_spAutoFit : XML_noAutofit), FSEND); + m_pSerializer->endElementNS( XML_wps, XML_bodyPr ); m_pSerializer->endElementNS(XML_wps, XML_wsp); m_pSerializer->endElementNS(XML_a, XML_graphicData); |