From 2f79dc2bc2ddf4006646f235f228b61e3f9ffde0 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Mon, 6 May 2024 08:36:18 +0200 Subject: Related: tdf#160833 sw DoNotMirrorRtlDrawObjs: add enable/disable option UI Doing this via a macro was possible already, but that didn't invalidate the object positions on the layout, so required a document reload, which was ugly. Change-Id: I65dec046727588952f8e41a89eae25f81feb7f82 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167182 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- sw/inc/strings.hrc | 1 + sw/inc/viewsh.hxx | 2 ++ 2 files changed, 3 insertions(+) (limited to 'sw/inc') diff --git a/sw/inc/strings.hrc b/sw/inc/strings.hrc index a0d04e35ba29..6a36f4740926 100644 --- a/sw/inc/strings.hrc +++ b/sw/inc/strings.hrc @@ -1492,6 +1492,7 @@ #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_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 9417702f5b86..18d33266b627 100644 --- a/sw/inc/viewsh.hxx +++ b/sw/inc/viewsh.hxx @@ -451,6 +451,8 @@ public: SW_DLLPUBLIC void SetTabOverMargin(bool bNew); + SW_DLLPUBLIC void SetDoNotMirrorRtlDrawObjs(bool bDoNotMirrorRtlDrawObjs); + // DOCUMENT COMPATIBILITY FLAGS END // Calls Idle-formatter of Layout. -- cgit