summaryrefslogtreecommitdiff
path: root/sw/inc/list.hxx
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2019-09-04 12:27:52 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2019-09-05 10:18:12 +0200
commit1f6b7030cbdc81e8e408e3a13bfcd01fcbdd7550 (patch)
tree4e7fc97a373ce2825a0e0d79fe025a9c67f62c7c /sw/inc/list.hxx
parent276156a882fb5bd5a60411f636ce76f6e46f7bc7 (diff)
tdf#95848 sw: DOCX export: crude implementation of abstractNum mapping
The abstractNum needs to correspond to a SwList, not to a SwNumRule as it is currently implemented. Add a mapping to MSWordExportBase for "overriding" numbering definitions; these are added to m_pUsedNumTable, which appears to be necessary to interact with DuplicateNumRule(), but here we just add nullpointers, because we don't need to modify the SwNumrule, and neither do we want the vector to double-delete it. The mapping is created while iterating over the document, in AttributeOutputBase::ParaNumRule(). It turns out that this approach would work for WW8 too as DuplicateNumRule() was originally added for that format but it won't work easily for RTF; in the DOCX case the WriteNumbering() is called after the main text and footnotes/endnotes, but with RTF it's the other way around :( Change-Id: Ia0409f5ad0b2e089005024ef7f61850a06d4dcbe Reviewed-on: https://gerrit.libreoffice.org/78607 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'sw/inc/list.hxx')
-rw-r--r--sw/inc/list.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/inc/list.hxx b/sw/inc/list.hxx
index 1cfdad5e0716..d8b3e16943ea 100644
--- a/sw/inc/list.hxx
+++ b/sw/inc/list.hxx
@@ -24,6 +24,8 @@
#include <rtl/ustring.hxx>
#include <memory>
+#include "swdllapi.h"
+
class SwNumRule;
class SwNodes;
class SwNodeNum;
@@ -40,7 +42,7 @@ class SwList
const OUString & GetListId() const;
- const OUString & GetDefaultListStyleName() const;
+ SW_DLLPUBLIC const OUString & GetDefaultListStyleName() const;
void SetDefaultListStyleName(OUString const&);
void InsertListItem( SwNodeNum& rNodeNum,