summaryrefslogtreecommitdiff
path: root/include/svtools
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2021-03-03 15:28:15 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2021-03-04 08:15:29 +0100
commit23548f4ff51e28fec6751604a0a28197d6680773 (patch)
tree4a6ca4fdae1cccd61d378b207f2a34b931f0ff32 /include/svtools
parent6065e4f400390702080c7de3bcc3de670453a347 (diff)
Related tdf#140762 Add texts for "Border style" toolbar item
Make 'GetLineStyleName' a static method of 'SvtLineListBox' and use it to retrieve and set the names for the items used in the "Border Style" dropdown button in Calc's formatting toolbar. This ensures that the corresponding names are available as tooltips and for screen readers. Change-Id: I6b775e1bcd62deefd8a8a6a778dcee426bf3a1f3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111905 Tested-by: Michael Weghorn <m.weghorn@posteo.de> Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'include/svtools')
-rw-r--r--include/svtools/ctrlbox.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx
index 43347a14ce40..0aff598ff705 100644
--- a/include/svtools/ctrlbox.hxx
+++ b/include/svtools/ctrlbox.hxx
@@ -207,6 +207,8 @@ public:
SvtLineListBox(std::unique_ptr<weld::MenuButton> pControl);
~SvtLineListBox();
+ static OUString GetLineStyleName(SvxBorderLineStyle eStyle);
+
/** Set the width in Twips */
void SetWidth(tools::Long nWidth)
{