summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2013-06-05 12:05:17 +0200
committerJan Holesovsky <kendy@suse.cz>2013-06-05 18:32:57 +0200
commite9cfaf1d29c66157b3bdc4bd4278cd3b5c90a29c (patch)
treedfcef7eaf0426eb0aff3fa359f2ffa14c1a2365d
parentd14933447c6e9a94a341d5385ada59ec322748bd (diff)
sidebar conversion tutorial: Introduce action commands in the .ui and .cxx.
We will address the toolbox buttons in the .ui via the string constants. Change-Id: I86dc101276de0d5487de3feb772381b76880dd23
-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>