From 7b5d20983dfbfb458898eeab54828ba5fef5841f Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 14 Jan 2016 14:20:40 +0100 Subject: editeng: handle SdrModel::isTiledSearching() Given that the edit/outliner views can come and go, avoid the lifecycle problems with just passing a pointer to the sdr model to editeng, and then it'll always have the up to date "are we searching" information. editeng can't depend on svx, so provide an interface class SdrModel can implement. Change-Id: I3b98011593b00ac0fab05b6b9c591dd20d94c579 --- sw/inc/PostItMgr.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sw/inc/PostItMgr.hxx') diff --git a/sw/inc/PostItMgr.hxx b/sw/inc/PostItMgr.hxx index 11276b982646..b4f96a675347 100644 --- a/sw/inc/PostItMgr.hxx +++ b/sw/inc/PostItMgr.hxx @@ -62,6 +62,7 @@ class SwSidebarItem; class SwFrame; namespace vcl { class Window; } struct ImplSVEvent; +class OutlinerSearchable; #define COL_NOTES_SIDEPANE_ARROW_ENABLED RGB_COLORDATA(0,0,0) #define COL_NOTES_SIDEPANE_ARROW_DISABLED RGB_COLORDATA(172,168,153) @@ -290,7 +291,7 @@ class SwPostItMgr: public SfxListener void DrawNotesForPage(OutputDevice *pOutDev, sal_uInt32 nPage); void PaintTile(OutputDevice& rRenderContext, const Rectangle& rRect); /// Informs already created annotations about a newly registered LOK callback. - void registerLibreOfficeKitCallback(LibreOfficeKitCallback pCallback, void* pData); + void registerLibreOfficeKitCallback(LibreOfficeKitCallback pCallback, void* pData, OutlinerSearchable* pSearchable); }; #endif -- cgit