summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/sidebar/AlignmentPropertyPanel.cxx8
-rw-r--r--sc/uiconfig/scalc/ui/sidebaralignment.ui19
2 files changed, 15 insertions, 12 deletions
diff --git a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
index 4edabc5b134d..8fd2ae9ee667 100644
--- a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
+++ b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
@@ -36,6 +36,14 @@ using namespace css;
using namespace cssu;
using ::sfx2::sidebar::ControlFactory;
+const char UNO_ALIGNBLOCK[] = ".uno:AlignBlock";
+const char UNO_ALIGNBOTTOM[] = ".uno:AlignBottom";
+const char UNO_ALIGNLEFT[] = ".uno:AlignLeft";
+const char UNO_ALIGNHORIZONTALCENTER[] = ".uno:AlignHorizontalCenter";
+const char UNO_ALIGNRIGHT[] = ".uno:AlignRight";
+const char UNO_ALIGNTOP[] = ".uno:AlignTop";
+const char UNO_ALIGNVCENTER[] = ".uno:AlignVCenter";
+
#define A2S(pString) (::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(pString)))
//////////////////////////////////////////////////////////////////////////////
diff --git a/sc/uiconfig/scalc/ui/sidebaralignment.ui b/sc/uiconfig/scalc/ui/sidebaralignment.ui
index d14b34d97831..23335e290d0b 100644
--- a/sc/uiconfig/scalc/ui/sidebaralignment.ui
+++ b/sc/uiconfig/scalc/ui/sidebaralignment.ui
@@ -29,12 +29,10 @@
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="tooltip_text" translatable="yes">Left-align</property>
<property name="valign">start</property>
<property name="use_action_appearance">False</property>
- <property name="action_name">.uno:Bold</property>
+ <property name="action_name">.uno:AlignLeft</property>
<property name="use_underline">True</property>
- <property name="stock_id">gtk-justify-left</property>
</object>
<packing>
<property name="expand">False</property>
@@ -46,11 +44,9 @@
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="tooltip_text" translatable="yes">Center-align</property>
<property name="use_action_appearance">False</property>
- <property name="action_name">.uno:Italic</property>
+ <property name="action_name">.uno:AlignHorizontalCenter</property>
<property name="use_underline">True</property>
- <property name="stock_id">gtk-justify-center</property>
</object>
<packing>
<property name="expand">False</property>
@@ -62,11 +58,9 @@
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="tooltip_text" translatable="yes">Right-align</property>
<property name="use_action_appearance">False</property>
- <property name="action_name">.uno:Underline</property>
+ <property name="action_name">.uno:AlignRight</property>
<property name="use_underline">True</property>
- <property name="stock_id">gtk-justify-right</property>
</object>
<packing>
<property name="expand">False</property>
@@ -78,11 +72,9 @@
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="tooltip_text" translatable="yes">Justify</property>
<property name="use_action_appearance">False</property>
- <property name="action_name">.uno:Strikeout</property>
+ <property name="action_name">.uno:AlignBlock</property>
<property name="use_underline">True</property>
- <property name="stock_id">gtk-justify-fill</property>
</object>
<packing>
<property name="expand">False</property>
@@ -110,6 +102,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
+ <property name="action_name">.uno:AlignTop</property>
<property name="use_underline">True</property>
</object>
<packing>
@@ -123,6 +116,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
+ <property name="action_name">.uno:AlignVCenter</property>
<property name="use_underline">True</property>
</object>
<packing>
@@ -136,6 +130,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
+ <property name="action_name">.uno:AlignBottom</property>
<property name="use_underline">True</property>
</object>
<packing>