Kaydet (Commit) d2536987 authored tarafından Miklos Vajna's avatar Miklos Vajna

vcl: add ITiledRenderable::getWindow() and implement in sw

(cherry picked from commit 981a9748)

Conflicts:
	sw/inc/unotxdoc.hxx

Change-Id: I9d0fad3904e74b44b0b126974ace4025f7a4fc5b
üst 3dd0edb0
...@@ -147,6 +147,12 @@ public: ...@@ -147,6 +147,12 @@ public:
{ {
return OUString(); return OUString();
} }
/// Returns the current vcl::Window of the component.
virtual vcl::Window* getWindow()
{
return 0;
}
}; };
} // namespace vcl } // namespace vcl
......
...@@ -434,6 +434,8 @@ public: ...@@ -434,6 +434,8 @@ public:
virtual void resetSelection() SAL_OVERRIDE; virtual void resetSelection() SAL_OVERRIDE;
/// @see vcl::ITiledRenderable::getPartPageRectangles(). /// @see vcl::ITiledRenderable::getPartPageRectangles().
virtual OUString getPartPageRectangles() SAL_OVERRIDE; virtual OUString getPartPageRectangles() SAL_OVERRIDE;
/// @see vcl::ITiledRenderable::getWindow().
virtual vcl::Window* getWindow() SAL_OVERRIDE;
// ::com::sun::star::tiledrendering::XTiledRenderable // ::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; 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;
......
...@@ -3188,6 +3188,13 @@ OUString SwXTextDocument::getPartPageRectangles() ...@@ -3188,6 +3188,13 @@ OUString SwXTextDocument::getPartPageRectangles()
return pWrtShell->getPageRectangles(); return pWrtShell->getPageRectangles();
} }
vcl::Window* SwXTextDocument::getWindow()
{
SolarMutexGuard aGuard;
return &pDocShell->GetView()->GetEditWin();
}
int SwXTextDocument::getPart() int SwXTextDocument::getPart()
{ {
SolarMutexGuard aGuard; SolarMutexGuard aGuard;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment