diff options
author | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-06-16 13:50:49 +0100 |
---|---|---|
committer | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-06-25 13:04:33 +0100 |
commit | 5da5882df48b4ef9cb9807798102453249cd1aef (patch) | |
tree | 4a08c43217e215a1fe6b90102ad7287070140e48 /sc/source/ui/unoobj | |
parent | Use ITiledRenderable for LIBLOK. (diff) | |
download | core-5da5882df48b4ef9cb9807798102453249cd1aef.tar.gz core-5da5882df48b4ef9cb9807798102453249cd1aef.zip |
Add tiled rendering outline to Calc.
(No real implementation yet.)
Change-Id: I67b84b554dbb29db449d8c190ef816645a8bff07
Diffstat (limited to 'sc/source/ui/unoobj')
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 16d50edfff07..57a80b552c34 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -96,6 +96,7 @@ #include "platforminfo.hxx" #include "interpre.hxx" #include "formulagroup.hxx" +#include "gridwin.hxx" #include <columnspanset.hxx> using namespace com::sun::star; @@ -446,6 +447,28 @@ void ScModelObj::RepaintRange( const ScRangeList& rRange ) pDocShell->PostPaint( rRange, PAINT_GRID ); } +void ScModelObj::paintTile( VirtualDevice& rDevice, + int nOutputWidth, int nOutputHeight, + int nTilePosX, int nTilePosY, + long nTileWidth, long nTileHeight ) +{ + // There seems to be no clear way of getting the grid window for this + // particular document, hence we need to hope we get the right window. + ScViewData* pViewData = ScDocShell::GetViewData(); + ScGridWindow* pGridWindow = pViewData->GetActiveWin(); + + pGridWindow->PaintTile( rDevice, nOutputWidth, nOutputHeight, + nTilePosX, nTilePosY, nTileWidth, nTileHeight ); +} + +Size ScModelObj::getDocumentSize() +{ + // TODO: not sure what we want to do here, maybe just return the size for a certain + // default minimum number of cells, e.g. 100x100 and more if more cells have + // content? + return Size(); +} + uno::Any SAL_CALL ScModelObj::queryInterface( const uno::Type& rType ) throw(uno::RuntimeException, std::exception) { |