1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #include <LibreOfficeKit/LibreOfficeKitEnums.h>
12 #include <sal/log.hxx>
13 #include <vcl/DocWindow.hxx>
14 #include <vcl/ITiledRenderable.hxx>
18 void DocWindow::SetPointer(PointerStyle nPointer
)
20 Window::SetPointer(nPointer
);
22 VclPtr
<vcl::Window
> pWin
= GetParentWithLOKNotifier();
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
);
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */