diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-06-13 17:02:11 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-06-13 17:14:06 +0200 |
commit | 175d28d564ff552cd3d73c3b087216bc82a763a1 (patch) | |
tree | 8995b05476bd8dd30357437ed26695b0f7fe8eaa /sw | |
parent | 1f2e2563a60bfc3a4c5b81b99beb8eef674d13f2 (diff) |
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
Diffstat (limited to 'sw')
-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 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 ); |