From af77042f62bc18c278c1acf6548b3ed41f0da871 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 12 Oct 2015 23:50:20 +0200 Subject: disable arrow heads in chart sidebar, tdf#94971 Change-Id: I631f34faf2befeb7cc61027c8fd59ef7b3543785 --- svx/source/sidebar/line/LinePropertyPanelBase.cxx | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'svx') 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: */ -- cgit