diff options
Diffstat (limited to 'svx/source/sidebar/line/LinePropertyPanelBase.cxx')
-rw-r--r-- | svx/source/sidebar/line/LinePropertyPanelBase.cxx | 16 |
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: */ |