summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/docuno.cxx
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej@ahunt.org>2015-11-11 10:05:25 +0100
committerAndrzej Hunt <andrzej@ahunt.org>2015-11-11 10:34:00 +0100
commitc34df1dadcec05c9a45ede4bab8e2fea9d3c0720 (patch)
treeaadaddfecae2aac4356c6a3010b306e1d833d6f0 /sc/source/ui/unoobj/docuno.cxx
parentd3ddd695fbde04d3f283b6e2c8cfeed113cf52e1 (diff)
Implement LOK_CALLBACK_MOUSE_POINTER
Reviewed-on: https://gerrit.libreoffice.org/19883 Reviewed-by: Andrzej Hunt <andrzej@ahunt.org> Tested-by: Andrzej Hunt <andrzej@ahunt.org> (cherry picked from commit 81b8ca683d44ba9c37f2dc8c74470a86ce70513f) Conflicts: sc/inc/docuno.hxx sd/source/ui/inc/unomodel.hxx sw/inc/unotxdoc.hxx Change-Id: I8d1f63208baf277b0a9d15908f3ea7ff3b56bf10
Diffstat (limited to 'sc/source/ui/unoobj/docuno.cxx')
-rw-r--r--sc/source/ui/unoobj/docuno.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index c216b36bbce8..75e035ef9603 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -885,6 +885,21 @@ OString ScModelObj::getCellCursor( int nOutputWidth, int nOutputHeight,
return "{ \"commandName\": \".uno:CellCursor\", \"commandValues\": \"" + pGridWindow->getCellCursor( nOutputWidth, nOutputHeight, nTileWidth, nTileHeight ) + "\" }";
}
+Pointer ScModelObj::getPointer()
+{
+ SolarMutexGuard aGuard;
+
+ ScViewData* pViewData = ScDocShell::GetViewData();
+ if (!pViewData)
+ return Pointer();
+
+ ScGridWindow* pGridWindow = pViewData->GetActiveWin();
+ if (!pGridWindow)
+ return Pointer();
+
+ return pGridWindow->GetPointer();
+}
+
void ScModelObj::initializeForTiledRendering()
{
SolarMutexGuard aGuard;