diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-08-03 14:42:21 +0530 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2017-11-15 17:07:11 +0100 |
commit | bba61e62f3481fe389bc9d8cfb2f786624b96b5a (patch) | |
tree | 25f0339be13397a82832dcb7b8518b87d2698be7 /sw | |
parent | 18d280713ea087b1cfc2dad9aefa52e583824eb3 (diff) |
lokdialog: Register IDIalogRenderable with vcl::Dialog
Change-Id: I344f5a9c7167abfde15dcd21c747819cc79b12b1
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/unotxdoc.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/uno/unotxdoc.cxx | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/sw/inc/unotxdoc.hxx b/sw/inc/unotxdoc.hxx index edaa4b0236d5..d9fa27507544 100644 --- a/sw/inc/unotxdoc.hxx +++ b/sw/inc/unotxdoc.hxx @@ -459,6 +459,8 @@ public: void postDialogMouseEvent(const vcl::DialogID& rDialogID, int nType, int nX, int nY, int nCount, int nButtons, int nModifier) override; + void notifyDialogInvalidation(const vcl::DialogID& rDialogID) override; + // css::tiledrendering::XTiledRenderable virtual void SAL_CALL paintTile( const ::css::uno::Any& Parent, ::sal_Int32 nOutputWidth, ::sal_Int32 nOutputHeight, ::sal_Int32 nTilePosX, ::sal_Int32 nTilePosY, ::sal_Int32 nTileWidth, ::sal_Int32 nTileHeight ) throw (::css::uno::RuntimeException, std::exception) override; diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index 18ef01108426..53844da23e0d 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -31,6 +31,7 @@ #include <vcl/svapp.hxx> #include <vcl/print.hxx> #include <sfx2/viewfrm.hxx> +#include <sfx2/lokhelper.hxx> #include <sfx2/sfxbasecontroller.hxx> #include <sfx2/docfile.hxx> #include <sfx2/msg.hxx> @@ -3733,6 +3734,8 @@ void SwXTextDocument::paintDialog(const vcl::DialogID& rDialogID, VirtualDevice& } Dialog* pDlg = static_cast<Dialog*>(pChild->GetWindow()); + // register the instance so that vcl::Dialog can emit LOK callbacks + pDlg->registerDialogRenderable(this); pDlg->paintDialog(rDevice); const Size aSize = pDlg->GetOptimalSize(); nWidth = aSize.getWidth(); @@ -3812,6 +3815,11 @@ void SwXTextDocument::postDialogMouseEvent(const vcl::DialogID& rDialogID, int n } } +void SwXTextDocument::notifyDialogInvalidation(const vcl::DialogID& rDialogID) +{ + SfxLokHelper::notifyDialogInvalidation(rDialogID); +} + void * SAL_CALL SwXTextDocument::operator new( size_t t) throw() { return SwXTextDocumentBaseClass::operator new(t); |