diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-12-18 22:34:06 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-12-19 00:27:50 +0100 |
commit | 803c3a7824883ccf7d0841aabff591c014d20195 (patch) | |
tree | d078eff2ac17640384c8d5b1cf22eec6c06749c6 /sw | |
parent | 2ded976667af503da29defc3740d0e61c4b0c723 (diff) |
sw lok: disable Edit Contour button in image sidebar
This can be enabled when the underlying dialog is OK under LOK.
Change-Id: Id74d20de55e77842d707e345b2193ca9113594e8
Reviewed-on: https://gerrit.libreoffice.org/85435
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/sidebar/WrapPropertyPanel.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/uibase/sidebar/WrapPropertyPanel.cxx b/sw/source/uibase/sidebar/WrapPropertyPanel.cxx index e596d8d8dc72..b9d01096a1f7 100644 --- a/sw/source/uibase/sidebar/WrapPropertyPanel.cxx +++ b/sw/source/uibase/sidebar/WrapPropertyPanel.cxx @@ -36,6 +36,7 @@ #include <hintids.hxx> #include <uitool.hxx> #include <com/sun/star/lang/IllegalArgumentException.hpp> +#include <comphelper/lok.hxx> const char UNO_WRAPOFF[] = ".uno:WrapOff"; const char UNO_WRAPLEFT[] = ".uno:WrapLeft"; @@ -148,6 +149,13 @@ void WrapPropertyPanel::Initialize() Link<Button*,void> EditContourLink = LINK(this, WrapPropertyPanel, EditContourHdl); mpEditContour->SetClickHdl(EditContourLink); + + if (comphelper::LibreOfficeKit::isActive()) + { + // Disable Edit Contour button for LOK purposes. + mpEditContour->Hide(); + } + Link<Button*, void> EnableContourLink = LINK(this,WrapPropertyPanel, EnableContourHdl); mpEnableContour->SetClickHdl(EnableContourLink); mpSpacingLB->SetSelectHdl(LINK(this, WrapPropertyPanel, SpacingLBHdl)); |