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

vcl::ITiledRenderable: add getCurrentViewShell() and implement it for Writer

Change-Id: Ic936746f3d473e15f5a1589cba35173778b442c6
üst e13510cf
......@@ -16,6 +16,8 @@
#include <tools/gen.hxx>
#include <vcl/virdev.hxx>
class SfxViewShell;
namespace vcl
{
......@@ -139,8 +141,16 @@ public:
* @see lok::Document::resetSelection().
*/
virtual void resetSelection() = 0;
/// Get the currently active view shell of the document.
virtual SfxViewShell* getCurrentViewShell()
{
return 0;
}
};
} // namespace vcl
#endif // INCLUDED_VCL_ITILEDRENDERABLE_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -428,6 +428,8 @@ public:
virtual void setGraphicSelection(int nType, int nX, int nY) SAL_OVERRIDE;
/// @see vcl::ITiledRenderable::resetSelection().
virtual void resetSelection() SAL_OVERRIDE;
/// @see vcl::ITiledRenderable::getCurrentViewShell().
virtual SfxViewShell* getCurrentViewShell() 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;
......
......@@ -3400,6 +3400,11 @@ void SwXTextDocument::resetSelection()
pWrtShell->ResetSelect(0, false);
}
SfxViewShell* SwXTextDocument::getCurrentViewShell()
{
return pDocShell->GetView();
}
void SAL_CALL SwXTextDocument::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)
{
SystemGraphicsData aData;
......
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