sc/uiconfig/scalc/ui/notebookbar.ui         |   46 ++++++++++++++++++++++++++--
 sc/uiconfig/scalc/ui/notebookbar_compact.ui |   20 ++++++++++++
 2 files changed, 64 insertions(+), 2 deletions(-)

New commits:
commit c108089ef4b58da819fb0acd372cd66e9684f3b8
Author:     Justin Luth <jl...@mail.com>
AuthorDate: Wed Oct 11 18:00:13 2023 -0400
Commit:     Justin Luth <jl...@mail.com>
CommitDate: Thu Oct 12 01:29:51 2023 +0200

    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 <jl...@mail.com>

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
@@ -907,6 +907,26 @@
         <property name="can_focus">False</property>
       </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>
@@ -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
@@ -1135,6 +1135,26 @@
         <property name="can_focus">False</property>
       </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>

Reply via email to