diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2022-04-12 08:25:16 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2022-04-12 09:06:47 +0200 |
commit | b40f9c536c1cefae8404a3f1c0080473151913d2 (patch) | |
tree | 59da9bd4be86d2e3b8d5415c4158bede7b5c66ba /sw/source/filter/ww8/docxattributeoutput.hxx | |
parent | 618d40799d25474c48d984ce1d52b0f08f220958 (diff) |
sw content controls: add initial DOCX export
Wrap the text portions inside the content control inside <w:sdtContent>
and <w:sdt>. Also map the (so far) single property of it to
<w:showingPlcHdr>.
This is just initial export for inline text content controls, more
properties are to be added in follow-up commits.
Change-Id: I21e085496b4c79114b158656c5611aff8ffdd08a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132875
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sw/source/filter/ww8/docxattributeoutput.hxx')
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.hxx b/sw/source/filter/ww8/docxattributeoutput.hxx index 843fc0450bfb..4b4be1ca6160 100644 --- a/sw/source/filter/ww8/docxattributeoutput.hxx +++ b/sw/source/filter/ww8/docxattributeoutput.hxx @@ -52,6 +52,7 @@ class SwGrfNode; class SdrObject; enum class SvxBoxItemLine; enum class SwLineBreakClear; +class SwContentControl; namespace docx { class FootnotesList; } namespace oox::drawingml { class DrawingML; } @@ -404,6 +405,12 @@ public: void WriteFloatingTable(ww8::Frame const* pParentFrame); + /// See AttributeOutputBase::StartContentControl(). + void StartContentControl(const SwFormatContentControl& rFormatContentControl) override; + + /// See AttributeOutputBase::EndContentControl(). + void EndContentControl() override; + private: /// Initialize the structures where we are going to collect some of the paragraph properties. /// @@ -780,6 +787,7 @@ private: rtl::Reference<sax_fastparser::FastAttributeList> m_pSectionSpacingAttrList; rtl::Reference<sax_fastparser::FastAttributeList> m_pParagraphSpacingAttrList; rtl::Reference<sax_fastparser::FastAttributeList> m_pHyperlinkAttrList; + const SwContentControl* m_pContentControl = nullptr; /// If the current SDT around runs should be ended before the current run. bool m_bEndCharSdt; /// Attributes of the run color @@ -903,6 +911,8 @@ private: o3tl::sorted_vector<const SwFrameFormat*> m_aFloatingTablesOfParagraph; sal_Int32 m_nTextFrameLevel; + sal_Int32 m_nCloseContentControl = 0; + // close of hyperlink needed bool m_closeHyperlinkInThisRun; bool m_closeHyperlinkInPreviousRun; |