bump product version to 7.6.3.2-android
[LibreOffice.git] / vcl / source / window / DocWindow.cxx
blob971252553b9a307a4ccbdc341afa830945164154
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #include <LibreOfficeKit/LibreOfficeKitEnums.h>
12 #include <sal/log.hxx>
13 #include <vcl/DocWindow.hxx>
14 #include <vcl/ITiledRenderable.hxx>
16 namespace vcl
18 void DocWindow::SetPointer(PointerStyle nPointer)
20 Window::SetPointer(nPointer);
22 VclPtr<vcl::Window> pWin = GetParentWithLOKNotifier();
23 if (!pWin)
24 return;
26 PointerStyle aPointer = GetPointer();
27 // We don't map all possible pointers hence we need a default
28 OString aPointerString = "default";
29 auto aIt = vcl::gaLOKPointerMap.find(aPointer);
30 if (aIt != vcl::gaLOKPointerMap.end())
32 aPointerString = aIt->second;
35 pWin->GetLOKNotifier()->libreOfficeKitViewCallback(LOK_CALLBACK_MOUSE_POINTER, aPointerString);
37 } // namespace vcl
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */