diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-13 09:12:45 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-13 09:13:38 +0100 |
commit | 64659d59310b17ce6ca410bfca2e231d8b79b0ff (patch) | |
tree | 2e847f8da6181ea4e7d1cc1791b8645bc7b38d9a /sc/source/ui/view/viewdata.cxx | |
parent | 9dd258e7029847537e61f34936e1ef200f3b7233 (diff) |
sc: clean up remaining non-static isTiledRendering() usage
Change-Id: I546f644e220069904fc2723f953ce2e6e2bfaca3
Diffstat (limited to 'sc/source/ui/view/viewdata.cxx')
-rw-r--r-- | sc/source/ui/view/viewdata.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx index 3488ed9aba06..fdf86d44faaa 100644 --- a/sc/source/ui/view/viewdata.cxx +++ b/sc/source/ui/view/viewdata.cxx @@ -61,6 +61,7 @@ #include <boost/checked_delete.hpp> #include <comphelper/processfactory.hxx> #include <comphelper/string.hxx> +#include <comphelper/lok.hxx> #include <com/sun/star/container/XNameContainer.hpp> #include <com/sun/star/document/NamedPropertyValues.hpp> @@ -937,7 +938,7 @@ void ScViewData::SetEditEngine( ScSplitPos eWhich, { pEditView[eWhich] = new EditView( pNewEngine, pWin ); - if (pDoc->GetDrawLayer() && pDoc->GetDrawLayer()->isTiledRendering()) + if (pDoc->GetDrawLayer() && comphelper::LibreOfficeKit::isActive()) { pEditView[eWhich]->registerLibreOfficeKitCallback(pDoc->GetDrawLayer()->getLibreOfficeKitCallback(), pDoc->GetDrawLayer()->getLibreOfficeKitData()); @@ -1518,8 +1519,7 @@ Point ScViewData::GetScrPos( SCCOL nWhereX, SCROW nWhereY, ScSplitPos eWhich, } sal_uInt16 nTSize; - ScDrawLayer* pModel = GetDocument()->GetDrawLayer(); - bool bIsTiledRendering = pModel && pModel->isTiledRendering(); + bool bIsTiledRendering = comphelper::LibreOfficeKit::isActive(); SCCOL nPosX = GetPosX(eWhichX); SCCOL nX; @@ -1864,8 +1864,7 @@ void ScViewData::GetMouseQuadrant( const Point& rClickPos, ScSplitPos eWhich, void ScViewData::SetPosX( ScHSplitPos eWhich, SCCOL nNewPosX ) { // in the tiled rendering case, nPosX [the leftmost visible column] must be 0 - ScDrawLayer* pModel = GetDocument()->GetDrawLayer(); - bool bIsTiledRendering = pModel && pModel->isTiledRendering(); + bool bIsTiledRendering = comphelper::LibreOfficeKit::isActive(); if (nNewPosX != 0 && !bIsTiledRendering) { SCCOL nOldPosX = pThisTab->nPosX[eWhich]; @@ -1904,8 +1903,7 @@ void ScViewData::SetPosX( ScHSplitPos eWhich, SCCOL nNewPosX ) void ScViewData::SetPosY( ScVSplitPos eWhich, SCROW nNewPosY ) { // in the tiled rendering case, nPosY [the topmost visible row] must be 0 - ScDrawLayer* pModel = GetDocument()->GetDrawLayer(); - bool bIsTiledRendering = pModel && pModel->isTiledRendering(); + bool bIsTiledRendering = comphelper::LibreOfficeKit::isActive(); if (nNewPosY != 0 && !bIsTiledRendering) { SCROW nOldPosY = pThisTab->nPosY[eWhich]; |