From 175d28d564ff552cd3d73c3b087216bc82a763a1 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 13 Jun 2013 17:02:11 +0200 Subject: fdo#58819 VML export of mso-position-* mso-position-horizontal, mso-position-horizontal-relative, mso-position-vertical and mso-position-vertical-relative With this, the watermark in the bugdoc is almost in place, if you ignore the missing rotation. Change-Id: I8d3d834089e734654fcbbb0fb6166b4d7e01f80f --- sw/source/filter/ww8/docxattributeoutput.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sw') diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index 7e4f49cd43c5..b2aa7f3ff7ad 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -2731,7 +2731,11 @@ void DocxAttributeOutput::OutputFlyFrame_Impl( const sw::Frame &rFrame, const Po m_pSerializer->startElementNS( XML_w, XML_pict, FSEND ); - m_rExport.VMLExporter().AddSdrObject( *pSdrObj ); + // See WinwordAnchoring::SetAnchoring(), these are not part of the SdrObject, have to be passed around manually. + const SwFrmFmt& rFrmFmt = rFrame.GetFrmFmt(); + SwFmtHoriOrient rHoriOri = rFrmFmt.GetHoriOrient(); + SwFmtVertOrient rVertOri = rFrmFmt.GetVertOrient(); + m_rExport.VMLExporter().AddSdrObject( *pSdrObj, rHoriOri.GetHoriOrient(), rVertOri.GetVertOrient(), rHoriOri.GetRelationOrient(), rVertOri.GetRelationOrient() ); m_pSerializer->endElementNS( XML_w, XML_pict ); -- cgit