Kaydet (Commit) f9758371 authored tarafından Miklos Vajna's avatar Miklos Vajna

DOCX export: handle anchored TextFrames inside shapes

The exporter already handled TextFrames inside TextFrames, a feature
supported by Writer, and not by Word.

Similarly, if DocxSdrExport::writeDMLAndVMLDrawing() starts a shape,
then anchored TextFrames should be posponed till the end of that shape.

Change-Id: I597a8a46b1cf2348a8ccb9af668ea5afab27541b
üst f8bf090b
......@@ -442,7 +442,7 @@ void DocxAttributeOutput::EndParagraph( ww8::WW8TableNodeInfoInner::Pointer_t pT
// Write the anchored frame if any
// Word can't handle nested text boxes, so write them on the same level.
++m_nTextFrameLevel;
if( m_nTextFrameLevel == 1 )
if( m_nTextFrameLevel == 1 && !m_rExport.SdrExporter().IsDMLAndVMLDrawingOpen() )
{
comphelper::FlagRestorationGuard aStartedParaSdtGuard(m_bStartedParaSdt, false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment