diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-01-21 12:48:19 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-01-22 09:38:58 +0100 |
commit | 736c25a9d372dd1761d3352240164c969fd3ed1d (patch) | |
tree | 7709fa6131dc42bd7f6a90cc41ce6083a11e0828 /sw | |
parent | 9d7544b7502f27b961115ef9ad373b5e570d0dd4 (diff) |
sw: initial DOCX export of TextFrames as VML rectangles
Change-Id: I0b204e9a81aad3e4f5fafc17bbd0c3935eb5cdb5
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index ae4770aca767..ca11d9988e9d 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -255,12 +255,6 @@ void DocxAttributeOutput::EndParagraph( ww8::WW8TableNodeInfoInner::Pointer_t pT { // write the paragraph properties + the run, already in the correct order m_pSerializer->mergeTopMarks(); - m_pSerializer->endElementNS( XML_w, XML_p ); - - // Check for end of cell, rows, tables here - FinishTableRowCell( pTextNodeInfoInner ); - - m_bParagraphOpened = false; // Write the anchored frame if any if ( m_pParentFrame ) @@ -278,12 +272,32 @@ void DocxAttributeOutput::EndParagraph( ww8::WW8TableNodeInfoInner::Pointer_t pT m_rExport.mpParentFrame = pParentFrame; + m_pSerializer->startElementNS( XML_w, XML_r, FSEND ); + m_pSerializer->startElementNS( XML_w, XML_pict, FSEND ); + m_pSerializer->startElementNS( XML_v, XML_rect, FSEND ); + m_pSerializer->startElementNS( XML_v, XML_textbox, FSEND ); + m_pSerializer->startElementNS( XML_w, XML_txbxContent, FSEND ); m_rExport.WriteText( ); + m_pSerializer->endElementNS( XML_w, XML_txbxContent ); + m_pSerializer->endElementNS( XML_v, XML_textbox ); + m_pSerializer->endElementNS( XML_v, XML_rect ); + m_pSerializer->endElementNS( XML_w, XML_pict ); + m_pSerializer->endElementNS( XML_w, XML_r ); m_rExport.RestoreData(); + m_rExport.mpParentFrame = NULL; + delete pParentFrame; } + + m_pSerializer->endElementNS( XML_w, XML_p ); + + // Check for end of cell, rows, tables here + FinishTableRowCell( pTextNodeInfoInner ); + + m_bParagraphOpened = false; + } void DocxAttributeOutput::FinishTableRowCell( ww8::WW8TableNodeInfoInner::Pointer_t pInner, bool bForceEmptyParagraph ) |