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

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

Change-Id: I9d0fad3904e74b44b0b126974ace4025f7a4fc5b
üst 98cdb563
......@@ -147,6 +147,12 @@ public:
{
return OUString();
}
/// Returns the current vcl::Window of the component.
virtual vcl::Window* getWindow()
{
return 0;
}
};
} // namespace vcl
......
......@@ -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;
......
......@@ -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;
......
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