summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-11-09 14:43:46 +0530
committerJan Holesovsky <kendy@collabora.com>2017-11-15 17:07:19 +0100
commit9d72a4752128e4b59dc545018886544dc7111898 (patch)
treee0fdf351ffead8fc80d23cf7363f1d593c70b3b6
parent6f734170dd15272c70a3d98e5afa592015e348a1 (diff)
lokdialog: Invalidate-all when size is changed
Change-Id: Ic96fab62c1525154a60c0fa84e2a12ccfad15ae2
-rw-r--r--include/vcl/dialog.hxx1
-rw-r--r--vcl/source/window/dialog.cxx11
2 files changed, 12 insertions, 0 deletions
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")