From b79b50c8f06a5c977451995b2d632e5738d7d335 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Mon, 3 Jun 2024 17:01:20 +0200 Subject: tdf#160984 sw continuous endnotes: add enable/disable option UI Doing this via a macro was possible already, but that didn't invalidate the endnote positions on the layout, so required a document reload, which was ugly. Implement the new SwViewShell::SetContinuousEndnotes() by removing the endnote frames in the document, so they'll be re-created at the expected place as the layout action ends. Change-Id: If96e70ab29c5a6c95fce36775e9a9a61277fc8a1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168383 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- sw/inc/strings.hrc | 3 ++- sw/inc/viewsh.hxx | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'sw/inc') diff --git a/sw/inc/strings.hrc b/sw/inc/strings.hrc index 6a36f4740926..298b861eecf6 100644 --- a/sw/inc/strings.hrc +++ b/sw/inc/strings.hrc @@ -1492,7 +1492,8 @@ #define STR_COMPAT_OPT_NOGAPAFTERNOTENUMBER NC_("STR_COMPAT_OPT_NOGAPAFTERNOTENUMBER", "Do not add an extra space after number in footnotes / endnotes with hanging first line") #define STR_COMPAT_OPT_TABSRELATIVETOINDENT NC_("STR_COMPAT_OPT_TABSRELATIVETOINDENT", "Set tabstops relative to indent of paragraph") #define STR_COMPAT_OPT_TABOVERMARGIN NC_("STR_COMPAT_OPT_TABOVERMARGIN", "Allow tabs to extend beyond the right margin") -#define STR_COMPAT_OPT_DO_NOT_MIRROR_RTL_DRAW_OBJS NC_("DO_NOT_MIRROR_RTL_DRAW_OBJS", "Do not mirror drawing objects anchored in paragraphs with an RTL writing direction") +#define STR_COMPAT_OPT_DO_NOT_MIRROR_RTL_DRAW_OBJS NC_("STR_COMPAT_OPT_DO_NOT_MIRROR_RTL_DRAW_OBJS", "Do not mirror drawing objects anchored in paragraphs with an RTL writing direction") +#define STR_COMPAT_OPT_CONTINUOUS_ENDNOTES NC_("STR_COMPAT_OPT_CONTINUOUS_ENDNOTES", "Render endnotes at the end of document inline, rather than on a separate page") #define STR_TABLE_PANEL_ALIGN_AUTO NC_("sidebartableedit|alignautolabel", "Automatic") #define STR_TABLE_PANEL_ALIGN_LEFT NC_("sidebartableedit|alignleftlabel", "Left") diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx index 18d33266b627..b53a3ed7b719 100644 --- a/sw/inc/viewsh.hxx +++ b/sw/inc/viewsh.hxx @@ -453,6 +453,8 @@ public: SW_DLLPUBLIC void SetDoNotMirrorRtlDrawObjs(bool bDoNotMirrorRtlDrawObjs); + SW_DLLPUBLIC void SetContinuousEndnotes(bool bContinuousEndnotes); + // DOCUMENT COMPATIBILITY FLAGS END // Calls Idle-formatter of Layout. -- cgit