diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-12-18 22:34:06 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-04-30 12:03:38 +0200 |
commit | fdb48192a1234482631f243a4b9ea77af52364ef (patch) | |
tree | 88a46f3d431ac1a76b243f95ab3e11d7e37c7e96 /sw | |
parent | c6b6ac53e71661e1fd8ae2ee99df3eb3ea4bd517 (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
(cherry picked from commit 803c3a7824883ccf7d0841aabff591c014d20195)
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)); |