summaryrefslogtreecommitdiffstats
path: root/svx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-10-12 23:50:20 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-10-12 23:54:14 +0200
commitaf77042f62bc18c278c1acf6548b3ed41f0da871 (patch)
tree7aa6730ab77075ae837b95c8ba252e98613dd8ad /svx
parentupdate the line panel for data points, related tdf#94969 (diff)
downloadcore-af77042f62bc18c278c1acf6548b3ed41f0da871.tar.gz
core-af77042f62bc18c278c1acf6548b3ed41f0da871.zip
disable arrow heads in chart sidebar, tdf#94971
Change-Id: I631f34faf2befeb7cc61027c8fd59ef7b3543785
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sidebar/line/LinePropertyPanelBase.cxx16
1 files changed, 13 insertions, 3 deletions
diff --git a/svx/source/sidebar/line/LinePropertyPanelBase.cxx b/svx/source/sidebar/line/LinePropertyPanelBase.cxx
index 74f814ea77e0..b288da9e2b10 100644
--- a/svx/source/sidebar/line/LinePropertyPanelBase.cxx
+++ b/svx/source/sidebar/line/LinePropertyPanelBase.cxx
@@ -179,7 +179,8 @@ LinePropertyPanelBase::LinePropertyPanelBase(
maIMGNone(SVX_RES(IMG_NONE_ICON)),
mpIMGWidthIcon(),
mxFrame(rxFrame),
- mbWidthValuable(true)
+ mbWidthValuable(true),
+ mbArrowSupported(true)
{
get(mpFTWidth, "widthlabel");
get(mpTBWidth, "width");
@@ -396,7 +397,8 @@ void LinePropertyPanelBase::updateLineStart(bool bDisabled, bool bSetOrDefault,
}
else
{
- mpLBStart->Enable();
+ if (mbArrowSupported)
+ mpLBStart->Enable();
}
if(bSetOrDefault)
@@ -422,7 +424,8 @@ void LinePropertyPanelBase::updateLineEnd(bool bDisabled, bool bSetOrDefault,
}
else
{
- mpLBEnd->Enable();
+ if (mbArrowSupported)
+ mpLBEnd->Enable();
}
if(bSetOrDefault)
@@ -933,6 +936,13 @@ void LinePropertyPanelBase::setMapUnit(SfxMapUnit eMapUnit)
meMapUnit = eMapUnit;
}
+void LinePropertyPanelBase::disableArrowHead()
+{
+ mbArrowSupported = false;
+ mpLBStart->Hide();
+ mpLBEnd->Hide();
+}
+
}} // end of namespace svx::sidebar
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */