diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-04-03 23:04:06 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-04-07 09:18:19 +0200 |
commit | 577eb5098363417eb87b25ed75007c5fe9857a2d (patch) | |
tree | 4e62746ec55ea294b1175f669e4c62842232685c /sc | |
parent | ac662ccdeed798d3632bf0c444231f4c9c94c2cd (diff) |
sc tiled editing: For now, revert to using the entire doc size.
There are still too many problems with the interaction with the editeng,
unfortunately.
Change-Id: I5cdbc80dbe1dc3996ecd89f0bca5399cbfb9c9b0
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 8e4c6566d0f1..43cd9df26b6d 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -473,9 +473,16 @@ void ScModelObj::paintTile( VirtualDevice& rDevice, ScGridWindow* pGridWindow = pViewData->GetActiveWin(); // update the size of the area we are painting - Size aTileSize(nOutputWidth, nOutputHeight); - if (pGridWindow->GetOutputSizePixel() != aTileSize) - pGridWindow->SetOutputSizePixel(Size(nOutputWidth, nOutputHeight)); + // FIXME we want to use only the minimal necessary size, like the + // following; but for the moment there is too many problems with that and + // interaction with editeng used for the cell editing + //Size aTileSize(nOutputWidth, nOutputHeight); + //if (pGridWindow->GetOutputSizePixel() != aTileSize) + // pGridWindow->SetOutputSizePixel(Size(nOutputWidth, nOutputHeight)); + // so instead for now, set the viewport size to document size + const MapMode aMapTwip(MAP_TWIP); + Size aDocSize = getDocumentSize(); + pGridWindow->SetOutputSizePixel(pGridWindow->LogicToPixel(aDocSize, aMapTwip)); pGridWindow->PaintTile( rDevice, nOutputWidth, nOutputHeight, nTilePosX, nTilePosY, nTileWidth, nTileHeight ); |