From 9874cd5efae7fb45f68da0e5ebc7701fdad0414a Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Fri, 28 Jul 2017 18:07:44 +0530 Subject: lokdialog: Dialog invalidation support For now, just invalidate the whole dialog whenever any of the controls in the dialog get invalidated. Since during dialog painting, many such invalidations are triggered, don't listen to them when we are painting. Change-Id: Ia8fc12cf9469691d60e91ef770d687e5ff01a7ef --- comphelper/source/misc/lok.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'comphelper/source') diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx index 44487da953ca..a4f60ac6c565 100644 --- a/comphelper/source/misc/lok.cxx +++ b/comphelper/source/misc/lok.cxx @@ -21,6 +21,8 @@ static bool g_bPartInInvalidation(false); static bool g_bTiledPainting(false); +static bool g_bDialogPainting(false); + static bool g_bTiledAnnotations(true); void setActive(bool bActive) @@ -53,6 +55,16 @@ bool isTiledPainting() return g_bTiledPainting; } +void setDialogPainting(bool bDialogPainting) +{ + g_bDialogPainting = bDialogPainting; +} + +bool isDialogPainting() +{ + return g_bDialogPainting; +} + void setTiledAnnotations(bool bTiledAnnotations) { g_bTiledAnnotations = bTiledAnnotations; -- cgit