summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2015-07-29 15:55:54 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-07-30 15:29:14 +0000
commit00edc9567f5c5e45047edf46e0f994c285cfc4be (patch)
tree1af11d554ca36b5b9d83a8fa28bb7f7ed0a61856 /chart2/source
parent41d1b01a906ed5872cc8f0b70439c6891a874f60 (diff)
Some (mostly HIG) tweaks to chart axis panel
+ added a text orientation spinbox to .ui file, but it does nothing so far Change-Id: Idb9177683c46fba50a153aff795aab7a2f419694 Reviewed-on: https://gerrit.libreoffice.org/17402 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/controller/sidebar/ChartAxisPanel.cxx6
-rw-r--r--chart2/source/controller/sidebar/ChartAxisPanel.hxx2
2 files changed, 8 insertions, 0 deletions
diff --git a/chart2/source/controller/sidebar/ChartAxisPanel.cxx b/chart2/source/controller/sidebar/ChartAxisPanel.cxx
index a9dcae73f0d3..fa6100ef6de6 100644
--- a/chart2/source/controller/sidebar/ChartAxisPanel.cxx
+++ b/chart2/source/controller/sidebar/ChartAxisPanel.cxx
@@ -197,6 +197,8 @@ ChartAxisPanel::ChartAxisPanel(
get(mpCBReverse, "checkbutton_reverse");
get(mpLBLabelPos, "comboboxtext_label_position");
+ //FIXME: add text orientation spinbox + its handler
+ get(mpGridLabel, "label_props");
Initialize();
}
@@ -219,6 +221,7 @@ void ChartAxisPanel::dispose()
mpCBReverse.clear();
mpLBLabelPos.clear();
+ mpGridLabel.clear();
PanelLayout::dispose();
}
@@ -322,7 +325,10 @@ IMPL_LINK(ChartAxisPanel, CheckBoxHdl, CheckBox*, pCheckbox)
bool bChecked = pCheckbox->IsChecked();
if (pCheckbox == mpCBShowLabel.get())
+ {
+ mpGridLabel->Enable(bChecked);
setLabelShown(mxModel, aCID, bChecked);
+ }
else if (pCheckbox == mpCBReverse.get())
setReverse(mxModel, aCID, bChecked);
diff --git a/chart2/source/controller/sidebar/ChartAxisPanel.hxx b/chart2/source/controller/sidebar/ChartAxisPanel.hxx
index c21fa331fdd4..e6d878bed6a5 100644
--- a/chart2/source/controller/sidebar/ChartAxisPanel.hxx
+++ b/chart2/source/controller/sidebar/ChartAxisPanel.hxx
@@ -15,6 +15,7 @@
#include <sfx2/sidebar/IContextChangeReceiver.hxx>
#include <sfx2/sidebar/SidebarModelUpdate.hxx>
#include <svx/sidebar/PanelLayout.hxx>
+#include <vcl/layout.hxx>
#include "ChartSidebarModifyListener.hxx"
#include "ChartSidebarSelectionListener.hxx"
@@ -79,6 +80,7 @@ private:
VclPtr<CheckBox> mpCBReverse;
VclPtr<ListBox> mpLBLabelPos;
+ VclPtr<VclGrid> mpGridLabel;
css::uno::Reference<css::frame::XFrame> mxFrame;