Coverage Report

Created: 2025-12-31 10:39

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/vcl/source/app/ITiledRenderable.cxx
Line
Count
Source
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
 * 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.
17
 *
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?
22
 */
23
#ifdef _MSC_VER
24
#pragma warning(push)
25
#pragma warning(disable : 4592)
26
#endif
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
52
    // HShear, VShear
53
    // Mirror, Crook, Crop, MovePoint, MoveBezierWeight
54
    // MoveData
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
65
    // Airbrush
66
    { PointerStyle::TextVertical, "vertical-text" }
67
    // Pivot Delete, TabSelectS through TabSelectSW
68
    // PaintBrush, HideWhiteSpace, ShowWhiteSpace
69
};
70
#ifdef _MSC_VER
71
#pragma warning(pop)
72
#endif
73
74
209k
ITiledRenderable::~ITiledRenderable() {}
75
}
76
77
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */