diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-11-04 16:26:23 +0100 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-11-04 19:11:00 +0100 |
commit | 98bc7215935f1eb2e0dc6f1db826d8e729430c13 (patch) | |
tree | 677dc15a3800537b25738b35f0dac82a54e5bc9e /sw/source/filter/ww8/wrtww8.hxx | |
parent | ffb5ad4681f7f68b3b50dc4d94ea7ea8127da5e0 (diff) |
tdf#42346: DOCX export of cross-references to objects
* Objects means tables, images, text frames and shapes
* Implementation
** MSO uses simple bookmark references as cross-references to objects
** So generate bookmarks in export time if a caption is referenced
** In some cases we also need to split some of the runs
** Implemented all types of cross-references, except the chapter reference
Change-Id: I3b17753123d94a04e4f28783ad5663831e7c6c84
Reviewed-on: https://gerrit.libreoffice.org/44294
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'sw/source/filter/ww8/wrtww8.hxx')
-rw-r--r-- | sw/source/filter/ww8/wrtww8.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/wrtww8.hxx b/sw/source/filter/ww8/wrtww8.hxx index c3f05caad3c9..c96dcd8299b0 100644 --- a/sw/source/filter/ww8/wrtww8.hxx +++ b/sw/source/filter/ww8/wrtww8.hxx @@ -783,6 +783,9 @@ public: /// Returns the index of a picture bullet, used in numberings. int GetGrfIndex(const SvxBrushItem& rBrush); + enum ExportFormat { DOC = 0, RTF = 1, DOCX = 2}; + virtual ExportFormat GetExportFormat() const = 0; + protected: /// Format-dependent part of the actual export. virtual void ExportDocument_Impl() = 0; @@ -1145,6 +1148,8 @@ public: const SwFrameFormat& rFormat, const SwFrameFormat& rLeftFormat, const SwFrameFormat& rFirstPageFormat, sal_uInt8 nBreakCode) override; + virtual ExportFormat GetExportFormat() const override { return ExportFormat::DOC; } + protected: /// Output SwGrfNode virtual void OutputGrfNode( const SwGrfNode& ) override; @@ -1508,6 +1513,8 @@ public: bool IsWatermarkFrame(); bool IsAnchorLinkedToThisNode( sal_uLong nNodePos ); + + void SplitRun( sal_Int32 nSplitEndPos ); }; /// Class to collect and output the styles table. |