/src/libreoffice/vcl/inc/salsys.hxx
Line | Count | Source (jump to first uncovered line) |
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 | | // Button identifier for ShowNativeMessageBox |
27 | | const int SALSYSTEM_SHOWNATIVEMSGBOX_BTN_OK = 1; |
28 | | |
29 | | class VCL_PLUGIN_PUBLIC SalSystem |
30 | | { |
31 | | public: |
32 | | virtual ~SalSystem(); |
33 | | |
34 | | // get info about the display |
35 | | |
36 | | /* Gets the number of active screens attached to the display |
37 | | |
38 | | @returns the number of active screens |
39 | | */ |
40 | | virtual unsigned int GetDisplayScreenCount() = 0; |
41 | | /* Queries the default screen number. The default screen is the |
42 | | screen on which windows will appear if no special positioning |
43 | | is made. |
44 | | |
45 | | @returns the default screen number |
46 | | */ |
47 | 0 | virtual unsigned int GetDisplayBuiltInScreen() { return 0; } |
48 | | /* Gets relative position and size of the screens attached to the display |
49 | | |
50 | | @param nScreen |
51 | | The screen number to be queried |
52 | | |
53 | | @returns position: (0,0) in case of IsMultiscreen() == true |
54 | | else position relative to whole display |
55 | | size: size of the screen |
56 | | */ |
57 | | virtual AbsoluteScreenPixelRectangle GetDisplayScreenPosSizePixel(unsigned int nScreen) = 0; |
58 | | |
59 | | /* Shows a native message box with the specified title, message and button |
60 | | combination. |
61 | | |
62 | | @param rTitle |
63 | | The title to be shown by the dialog box. |
64 | | |
65 | | @param rMessage |
66 | | The message to be shown by the dialog box. |
67 | | |
68 | | @returns the identifier of the button that was pressed by the user. |
69 | | See button identifier above. If the function fails the |
70 | | return value is 0. |
71 | | */ |
72 | | virtual int ShowNativeMessageBox(const OUString& rTitle, const OUString& rMessage) = 0; |
73 | | }; |
74 | | |
75 | | VCL_DLLPUBLIC SalSystem* ImplGetSalSystem(); |
76 | | |
77 | 0 | #define VIRTUAL_DESKTOP_WIDTH 1024 |
78 | 0 | #define VIRTUAL_DESKTOP_HEIGHT 768 |
79 | | |
80 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |