[Libreoffice-commits] core.git: sw/source
Miklos Vajna (via logerrit)
logerrit at kemper.freedesktop.org
Wed Dec 18 23:29:32 UTC 2019
sw/source/uibase/sidebar/WrapPropertyPanel.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 803c3a7824883ccf7d0841aabff591c014d20195
Author: Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Wed Dec 18 22:34:06 2019 +0100
Commit: Miklos Vajna <vmiklos at collabora.com>
CommitDate: Thu Dec 19 00:27:50 2019 +0100
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 at collabora.com>
Tested-by: Jenkins
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));
More information about the Libreoffice-commits
mailing list