Coverage Report

Created: 2026-10-14 09:33

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/vcl/inc/salsys.hxx
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
 * This file incorporates work covered by the following license notice:
10
 *
11
 *   Licensed to the Apache Software Foundation (ASF) under one or more
12
 *   contributor license agreements. See the NOTICE file distributed
13
 *   with this work for additional information regarding copyright
14
 *   ownership. The ASF licenses this file to you under the Apache
15
 *   License, Version 2.0 (the "License"); you may not use this file
16
 *   except in compliance with the License. You may obtain a copy of
17
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
18
 */
19
20
#pragma once
21
22
#include <tools/gen.hxx>
23
#include <vcl/dllapi.h>
24
#include <rtl/ustring.hxx>
25
26
class VCL_PLUGIN_PUBLIC SalSystem
27
{
28
public:
29
    virtual ~SalSystem();
30
31
    // get info about the display
32
33
    /*  Gets the number of active screens attached to the display
34
35
        @returns the number of active screens
36
    */
37
    virtual unsigned int GetDisplayScreenCount() = 0;
38
    /*  Queries the default screen number. The default screen is the
39
        screen on which windows will appear if no special positioning
40
        is made.
41
42
        @returns the default screen number
43
    */
44
0
    virtual unsigned int GetDisplayBuiltInScreen() { return 0; }
45
    /*  Gets relative position and size of the screens attached to the display
46
47
        @param nScreen
48
        The screen number to be queried
49
50
        @returns position: (0,0) in case of IsMultiscreen() == true
51
                           else position relative to whole display
52
                 size: size of the screen
53
    */
54
    virtual AbsoluteScreenPixelRectangle GetDisplayScreenPosSizePixel(unsigned int nScreen) = 0;
55
56
    /*  Shows a native message box with the specified title, message and button
57
        combination.
58
59
        @param  rTitle
60
        The title to be shown by the dialog box.
61
62
        @param  rMessage
63
        The message to be shown by the dialog box.
64
    */
65
    virtual void ShowNativeMessageBox(const OUString& rTitle, const OUString& rMessage) = 0;
66
};
67
68
VCL_DLLPUBLIC SalSystem* ImplGetSalSystem();
69
70
0
#define VIRTUAL_DESKTOP_WIDTH 1024
71
0
#define VIRTUAL_DESKTOP_HEIGHT 768
72
73
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */