diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-22 10:15:34 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-27 08:48:48 +0100 |
commit | d2536987cd64451505c2d93f8baa1a25825eefc2 (patch) | |
tree | a119dcc68bc2a1a74fb970dc86e9cfc7aa97c5a7 /sw | |
parent | 3dd0edb05639c36abc262f02dd3e0d19c8fb0526 (diff) |
vcl: add ITiledRenderable::getWindow() and implement in sw
(cherry picked from commit 981a974824642a81f86c526dea682cd27cd437db)
Conflicts:
sw/inc/unotxdoc.hxx
Change-Id: I9d0fad3904e74b44b0b126974ace4025f7a4fc5b
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/unotxdoc.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/uno/unotxdoc.cxx | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/sw/inc/unotxdoc.hxx b/sw/inc/unotxdoc.hxx index 346cab63ca02..f8af2cc29245 100644 --- a/sw/inc/unotxdoc.hxx +++ b/sw/inc/unotxdoc.hxx @@ -434,6 +434,8 @@ public: virtual void resetSelection() SAL_OVERRIDE; /// @see vcl::ITiledRenderable::getPartPageRectangles(). virtual OUString getPartPageRectangles() SAL_OVERRIDE; + /// @see vcl::ITiledRenderable::getWindow(). + virtual vcl::Window* getWindow() SAL_OVERRIDE; // ::com::sun::star::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) SAL_OVERRIDE; diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index 7cb32fc065c6..6b182134e2ea 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3188,6 +3188,13 @@ OUString SwXTextDocument::getPartPageRectangles() return pWrtShell->getPageRectangles(); } +vcl::Window* SwXTextDocument::getWindow() +{ + SolarMutexGuard aGuard; + + return &pDocShell->GetView()->GetEditWin(); +} + int SwXTextDocument::getPart() { SolarMutexGuard aGuard; |