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-22 13:34:20 +0200 |
commit | 981a974824642a81f86c526dea682cd27cd437db (patch) | |
tree | 5b524e06ac6e397bf0da747f9557b9d59df82cc5 /sw | |
parent | 98cdb563c1c63e93b4722721354d86848d2cd2c2 (diff) |
vcl: add ITiledRenderable::getWindow() and implement in sw
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 92f8f6ffd4cd..31ef514ab73b 100644 --- a/sw/inc/unotxdoc.hxx +++ b/sw/inc/unotxdoc.hxx @@ -431,6 +431,8 @@ public: virtual void resetSelection() override; /// @see vcl::ITiledRenderable::getPartPageRectangles(). virtual OUString getPartPageRectangles() override; + /// @see vcl::ITiledRenderable::getWindow(). + virtual vcl::Window* getWindow() 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) override; diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index 3cd15f0ca1b7..d7e7b3fd88f1 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3182,6 +3182,13 @@ OUString SwXTextDocument::getPartPageRectangles() return pWrtShell->getPageRectangles(); } +vcl::Window* SwXTextDocument::getWindow() +{ + SolarMutexGuard aGuard; + + return &pDocShell->GetView()->GetEditWin(); +} + int SwXTextDocument::getPart() { SolarMutexGuard aGuard; |