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