diff options
author | Justin Luth <jluth@mail.com> | 2023-10-11 18:00:13 -0400 |
---|---|---|
committer | Justin Luth <jluth@mail.com> | 2023-10-12 01:29:51 +0200 |
commit | c108089ef4b58da819fb0acd372cd66e9684f3b8 (patch) | |
tree | adc546b3ecb44fa22e17f29c6b2d0ac77f532048 /sc | |
parent | b63f768941ca870f0930ff400e3bc6ff829bea4a (diff) |
tdf#138440 sc notebookbar: add right-to-left to home tab
The UI is pretty packed here, so for non-RTL languages
having it on the toolbar would be distracting.
So I decided to make it hidden - meaning a RTL user would need
to customize the notebookbar to reveal it.
However, adding it unconditionally to the dropdown menu is fine,
so at least it is readily available there.
It already existed in the paragraph menu of groupedcompact.
Change-Id: Id4dc2de9c0922428fc44501c4eb2d7e3e51dea82
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157851
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/uiconfig/scalc/ui/notebookbar.ui | 46 | ||||
-rw-r--r-- | sc/uiconfig/scalc/ui/notebookbar_compact.ui | 20 |
2 files changed, 64 insertions, 2 deletions
diff --git a/sc/uiconfig/scalc/ui/notebookbar.ui b/sc/uiconfig/scalc/ui/notebookbar.ui index 8ba17d99ee6c..54419a9c4385 100644 --- a/sc/uiconfig/scalc/ui/notebookbar.ui +++ b/sc/uiconfig/scalc/ui/notebookbar.ui @@ -908,6 +908,26 @@ </object> </child> <child> + <object class="GtkRadioMenuItem" id="MenuHome-ParaLeftToRight"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="action_name">.uno:ParaLeftToRight</property> + </object> + </child> + <child> + <object class="GtkRadioMenuItem" id="MenuHome-ParaRightToLeft"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="action_name">.uno:ParaRightToLeft</property> + </object> + </child> + <child> + <object class="GtkSeparatorMenuItem" id="MenuHome-separator4"> + <property name="visible">True</property> + <property name="can_focus">False</property> + </object> + </child> + <child> <object class="GtkMenuItem" id="MenuHome-InsertNonBreakingSpace"> <property name="visible">True</property> <property name="can_focus">False</property> @@ -957,7 +977,7 @@ </object> </child> <child> - <object class="GtkSeparatorMenuItem" id="MenuHome-separator4"> + <object class="GtkSeparatorMenuItem" id="MenuHome-separator5"> <property name="visible">True</property> <property name="can_focus">False</property> </object> @@ -991,7 +1011,7 @@ </object> </child> <child> - <object class="GtkSeparatorMenuItem" id="MenuHome-separator5"> + <object class="GtkSeparatorMenuItem" id="MenuHome-separator6"> <property name="visible">True</property> <property name="can_focus">False</property> </object> @@ -3798,6 +3818,17 @@ <property name="homogeneous">True</property> </packing> </child> + <child> + <object class="GtkToolButton" id="Home-ParaLeftToRight1"> + <property name="visible">False</property> + <property name="action_name">.uno:ParaLeftToRight</property> + <property name="use_underline">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="homogeneous">True</property> + </packing> + </child> </object> <packing> <property name="expand">False</property> @@ -3874,6 +3905,17 @@ <property name="homogeneous">True</property> </packing> </child> + <child> + <object class="GtkToolButton" id="Home-ParaRightToLeft1"> + <property name="visible">False</property> + <property name="action_name">.uno:ParaRightToLeft</property> + <property name="use_underline">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="homogeneous">True</property> + </packing> + </child> </object> <packing> <property name="expand">False</property> diff --git a/sc/uiconfig/scalc/ui/notebookbar_compact.ui b/sc/uiconfig/scalc/ui/notebookbar_compact.ui index f05a344b02f9..11c0f3ed963a 100644 --- a/sc/uiconfig/scalc/ui/notebookbar_compact.ui +++ b/sc/uiconfig/scalc/ui/notebookbar_compact.ui @@ -1136,6 +1136,26 @@ </object> </child> <child> + <object class="GtkRadioMenuItem" id="ParaLeftToRight"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="action_name">.uno:ParaLeftToRight</property> + </object> + </child> + <child> + <object class="GtkRadioMenuItem" id="ParaRightToLeft"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="action_name">.uno:ParaRightToLeft</property> + </object> + </child> + <child> + <object class="GtkSeparatorMenuItem" id="separator55b"> + <property name="visible">True</property> + <property name="can_focus">False</property> + </object> + </child> + <child> <object class="GtkMenuItem" id="InsertNonBreakingSpaceD"> <property name="visible">True</property> <property name="can_focus">False</property> |