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 <vcl/ITiledRenderable.hxx>
15 * Map directly to css cursor styles to avoid further mapping in the client.
16 * Gtk (via gdk_cursor_new_from_name) also supports the same css cursor styles.
18 * This was created partially with help of the mappings in gtkdata.cxx.
19 * The list is incomplete as some cursor style simply aren't supported
20 * by css, it might turn out to be worth mapping some of these missing cursors
21 * to available cursors?
25 #pragma warning(disable : 4592)
27 const std::map
<PointerStyle
, OString
> gaLOKPointerMap
{
28 { PointerStyle::Arrow
, "default" },
29 // PointerStyle::Null ?
30 { PointerStyle::Wait
, "wait" },
31 { PointerStyle::Text
, "text" },
32 { PointerStyle::Help
, "help" },
33 { PointerStyle::Cross
, "crosshair" },
34 { PointerStyle::Fill
, "fill" },
35 { PointerStyle::Move
, "move" },
36 { PointerStyle::NSize
, "n-resize" },
37 { PointerStyle::SSize
, "s-resize" },
38 { PointerStyle::WSize
, "w-resize" },
39 { PointerStyle::ESize
, "e-resize" },
40 { PointerStyle::NWSize
, "ne-resize" },
41 { PointerStyle::NESize
, "ne-resize" },
42 { PointerStyle::SWSize
, "sw-resize" },
43 { PointerStyle::SESize
, "se-resize" },
44 // WindowNSize through WindowSESize
45 { PointerStyle::HSplit
, "col-resize" },
46 { PointerStyle::VSplit
, "row-resize" },
47 { PointerStyle::HSizeBar
, "col-resize" },
48 { PointerStyle::VSizeBar
, "row-resize" },
49 { PointerStyle::Hand
, "grab" },
50 { PointerStyle::RefHand
, "pointer" },
51 // Pen, Magnify, Fill, Rotate
53 // Mirror, Crook, Crop, MovePoint, MoveBezierWeight
55 { PointerStyle::CopyData
, "copy" },
56 { PointerStyle::LinkData
, "alias" },
57 // MoveDataLink, CopyDataLink
58 //MoveFile, CopyFile, LinkFile
59 // MoveFileLink, CopyFileLink, MoveFiless, CopyFiles
60 { PointerStyle::NotAllowed
, "not-allowed" },
61 // DrawLine through DrawCaption
62 // Chart, Detective, PivotCol, PivotRow, PivotField, Chain, ChainNotAllowed
63 // TimeEventMove, TimeEventSize
64 // AutoScrollN through AutoScrollNSWE
66 { PointerStyle::TextVertical
, "vertical-text" }
67 // Pivot Delete, TabSelectS through TabSelectSW
68 // PaintBrush, HideWhiteSpace, ShowWhiteSpace
74 ITiledRenderable::~ITiledRenderable() {}
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */