From 9d72a4752128e4b59dc545018886544dc7111898 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Thu, 9 Nov 2017 14:43:46 +0530 Subject: lokdialog: Invalidate-all when size is changed Change-Id: Ic96fab62c1525154a60c0fa84e2a12ccfad15ae2 --- include/vcl/dialog.hxx | 1 + vcl/source/window/dialog.cxx | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/include/vcl/dialog.hxx b/include/vcl/dialog.hxx index 0ad945815be5..9048d0e41dbe 100644 --- a/include/vcl/dialog.hxx +++ b/include/vcl/dialog.hxx @@ -160,6 +160,7 @@ public: bool IsModalInputMode() const { return mbModalMode; } void GrabFocusToFirstControl(); + virtual void Resize() override; }; class VCL_DLLPUBLIC ModelessDialog : public Dialog diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx index f08a22d188f9..73674200d914 100644 --- a/vcl/source/window/dialog.cxx +++ b/vcl/source/window/dialog.cxx @@ -1336,6 +1336,17 @@ void Dialog::queue_resize(StateChangedType eReason) SystemWindow::queue_resize(eReason); } +void Dialog::Resize() +{ + SystemWindow::Resize(); + + // inform LOK clients + if (!comphelper::LibreOfficeKit::isDialogPainting() && mpDialogRenderable && !maID.isEmpty()) + { + mpDialogRenderable->notifyDialog(maID, "invalidate", nullptr); + } +} + bool Dialog::set_property(const OString &rKey, const OString &rValue) { if (rKey == "border-width") -- cgit v1.2.3