Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / include / vcl / wintypes.hxx
blob644b2405cc2aafd744a88b78433c61d54ab6b5f6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #pragma once
22 #include <sal/types.h>
24 // Window-Types
26 enum class WindowType : sal_uInt16
28 NONE = 0,
29 FIRST = 0x0130, // 304
30 MESSBOX = FIRST, // 0
31 INFOBOX ,
32 WARNINGBOX ,
33 ERRORBOX ,
34 QUERYBOX ,
35 WINDOW ,
36 WORKWINDOW ,
37 CONTAINER ,
38 FLOATINGWINDOW ,
39 DIALOG ,
40 MODELESSDIALOG ,
41 CONTROL ,
42 PUSHBUTTON ,
43 OKBUTTON ,
44 CANCELBUTTON ,
45 HELPBUTTON ,
46 IMAGEBUTTON ,
47 MENUBUTTON ,
48 MOREBUTTON ,
49 SPINBUTTON ,
50 RADIOBUTTON ,
51 CHECKBOX ,
52 TRISTATEBOX ,
53 EDIT ,
54 MULTILINEEDIT ,
55 COMBOBOX ,
56 LISTBOX ,
57 MULTILISTBOX ,
58 FIXEDTEXT ,
59 FIXEDLINE ,
60 FIXEDBITMAP ,
61 FIXEDIMAGE ,
62 GROUPBOX ,
63 SCROLLBAR ,
64 SCROLLBARBOX ,
65 SPLITTER ,
66 SPLITWINDOW ,
67 SPINFIELD ,
68 PATTERNFIELD ,
69 METRICFIELD ,
70 FORMATTEDFIELD ,
71 CURRENCYFIELD ,
72 DATEFIELD ,
73 TIMEFIELD ,
74 PATTERNBOX ,
75 NUMERICBOX ,
76 METRICBOX ,
77 CURRENCYBOX ,
78 DATEBOX ,
79 TIMEBOX ,
80 LONGCURRENCYBOX ,
81 SCROLLWINDOW ,
82 TOOLBOX ,
83 DOCKINGWINDOW ,
84 STATUSBAR ,
85 TABPAGE ,
86 TABCONTROL ,
87 TABDIALOG ,
88 BORDERWINDOW ,
89 BUTTONDIALOG ,
90 SYSTEMCHILDWINDOW ,
91 SLIDER ,
92 MENUBARWINDOW ,
93 TREELISTBOX ,
94 HELPTEXTWINDOW ,
95 INTROWINDOW ,
96 LISTBOXWINDOW ,
97 DOCKINGAREA ,
98 RULER ,
99 HEADERBAR ,
100 VERTICALTABCONTROL ,
101 LAST = VERTICALTABCONTROL,
102 // only used in vclxtoolkit.cxx
103 TOOLKIT_FRAMEWINDOW = 0x1000,
104 TOOLKIT_SYSTEMCHILDWINDOW = 0x1001,
107 // Window-Bits
109 typedef sal_Int64 WinBits;
111 // Window-Bits for Window
112 WinBits const WB_CLIPCHILDREN = 0x00000001;
113 WinBits const WB_DIALOGCONTROL = 0x00000002;
114 WinBits const WB_NODIALOGCONTROL = 0x00000004;
115 WinBits const WB_BORDER = 0x00000008;
116 WinBits const WB_NOBORDER = 0x00000010;
117 WinBits const WB_SIZEABLE = 0x00000020;
118 WinBits const WB_3DLOOK = 0x00000040;
119 WinBits const WB_ALLOWMENUBAR = 0x00000080;
121 // Window-Bits for SystemWindows
122 WinBits const WB_MOVEABLE = 0x00000100;
123 WinBits const WB_CLOSEABLE = 0x00000400;
124 WinBits const WB_STANDALONE = 0x00000800;
125 WinBits const WB_APP = 0x00001000;
126 WinBits const WB_SYSTEMWINDOW = SAL_CONST_INT64(0x40000000);
127 // warning: do not confuse WB_SYSTEMCHILDWINDOW with the SystemChildWindow class
129 // the SystemChildWindow class was there first and is a very specialized
130 // system child window type for plugged applications. The SystemChildWindow class
131 // explicitly should never use the WB_SYSTEMCHILDWINDOW WinBit
133 // WB_SYSTEMCHILDWINDOW on the other hand is to be used on system windows
134 // which should be created as system child windows with (more or less)
135 // normal event handling
136 WinBits const WB_SYSTEMCHILDWINDOW = SAL_CONST_INT64(0x8000000000);
137 WinBits const WB_SIZEMOVE = (WB_SIZEABLE | WB_MOVEABLE);
139 // Standard-Window-Bits for ChildWindows
140 WinBits const WB_TABSTOP = 0x00000100;
141 WinBits const WB_NOTABSTOP = 0x00000200;
142 WinBits const WB_GROUP = 0x00000400;
143 WinBits const WB_NOGROUP = 0x00000800;
144 WinBits const WB_HORZ = 0x00001000;
145 WinBits const WB_VERT = 0x00002000;
146 WinBits const WB_LEFT = 0x00004000;
147 WinBits const WB_CENTER = 0x00008000;
148 WinBits const WB_RIGHT = 0x00010000;
149 WinBits const WB_TOP = 0x00020000;
150 WinBits const WB_VCENTER = 0x00040000;
151 WinBits const WB_BOTTOM = 0x00080000;
152 WinBits const WB_DRAG = 0x00100000;
153 WinBits const WB_SPIN = 0x00200000;
154 WinBits const WB_REPEAT = 0x00400000;
155 WinBits const WB_NOPOINTERFOCUS = 0x00800000;
156 WinBits const WB_WORDBREAK = 0x01000000;
157 WinBits const WB_NOLABEL = 0x02000000;
158 WinBits const WB_SORT = 0x04000000;
159 WinBits const WB_DROPDOWN = 0x08000000;
160 WinBits const WB_HIDE = SAL_CONST_INT64(0x80000000);
161 WinBits const WB_AUTOHSCROLL = SAL_CONST_INT64(0x10000000);
162 WinBits const WB_DOCKABLE = SAL_CONST_INT64(0x20000000);
163 WinBits const WB_AUTOVSCROLL = SAL_CONST_INT64(0x40000000);
165 // #i93011# style bit for some child windows, that want their children checked for accelerators
166 WinBits const WB_CHILDDLGCTRL = SAL_CONST_INT64(0x100000000000);
168 // system floating window
169 WinBits const WB_SYSTEMFLOATWIN = SAL_CONST_INT64(0x100000000);
170 WinBits const WB_INTROWIN = SAL_CONST_INT64(0x200000000);
171 WinBits const WB_NOSHADOW = SAL_CONST_INT64(0x400000000);
172 WinBits const WB_TOOLTIPWIN = SAL_CONST_INT64(0x800000000);
173 WinBits const WB_OWNERDRAWDECORATION = SAL_CONST_INT64(0x2000000000);
174 WinBits const WB_DEFAULTWIN = SAL_CONST_INT64(0x4000000000);
175 WinBits const WB_POPUP = SAL_CONST_INT64(0x20000000);
177 WinBits const WB_HSCROLL = WB_HORZ;
178 WinBits const WB_VSCROLL = WB_VERT;
180 // Window-Bits for PushButtons
181 WinBits const WB_DEFBUTTON = 0x10000000;
182 WinBits const WB_NOLIGHTBORDER = 0x20000000;
183 WinBits const WB_RECTSTYLE = 0x08000000;
184 WinBits const WB_SMALLSTYLE = 0x04000000;
185 WinBits const WB_TOGGLE = SAL_CONST_INT64(0x1000000000);
186 WinBits const WB_FLATBUTTON = SAL_CONST_INT64(0x2000000000);
188 // Window-Bits for FixedText
189 WinBits const WB_PATHELLIPSIS = 0x00100000;
190 WinBits const WB_EXTRAOFFSET = 0x02000000;
191 WinBits const WB_NOMULTILINE = 0x10000000;
193 // Window-Bits for Edit
194 WinBits const WB_READONLY = 0x02000000;
195 WinBits const WB_NOHIDESELECTION = SAL_CONST_INT64(0x1000000000);
197 // Window-Bits for MultiLineEdit
198 WinBits const WB_IGNORETAB = 0x20000000;
200 // Window-Bits for ListBox and MultiListBox
201 WinBits const WB_SIMPLEMODE = 0x20000000;
203 // Window-Bits for FixedBitmap
204 WinBits const WB_SCALE = 0x08000000;
206 // Window-Bits for ToolBox
207 WinBits const WB_SCROLL = 0x02000000;
209 // Window-Bits for SplitWindow
210 WinBits const WB_NOSPLITDRAW = 0x01000000;
212 // Standard-WinBits
213 WinBits const WB_STDWORK = WB_SIZEMOVE | WB_CLOSEABLE;
214 WinBits const WB_STDDOCKWIN = WB_DOCKABLE | WB_MOVEABLE | WB_CLOSEABLE;
215 WinBits const WB_STDFLOATWIN = WB_SIZEMOVE | WB_CLOSEABLE;
216 WinBits const WB_STDDIALOG = WB_MOVEABLE | WB_CLOSEABLE;
217 WinBits const WB_STDMODELESS = WB_STDDIALOG;
218 WinBits const WB_STDMODAL = WB_STDDIALOG;
219 WinBits const WB_STDTABCONTROL = 0;
220 WinBits const WB_STDPOPUP = WB_BORDER | WB_POPUP | WB_SYSTEMWINDOW | WB_3DLOOK | WB_DIALOGCONTROL;
222 // For TreeListBox
223 WinBits const WB_HASBUTTONS = SAL_CONST_INT64(0x000100000000);
224 WinBits const WB_HASLINES = SAL_CONST_INT64(0x000200000000);
225 WinBits const WB_HASLINESATROOT = SAL_CONST_INT64(0x000400000000);
226 WinBits const WB_HASBUTTONSATROOT = SAL_CONST_INT64(0x000800000000);
227 WinBits const WB_NOINITIALSELECTION = SAL_CONST_INT64(0x001000000000);
228 WinBits const WB_HIDESELECTION = SAL_CONST_INT64(0x002000000000);
229 // DO NOT USE: 0x008000000000, that's WB_SYSTEMCHILDWINDOW
232 enum class WindowAlign { Left, Top, Right, Bottom };
234 enum class ImageAlign { Left, Top, Right, Bottom,
235 LeftTop, LeftBottom, TopLeft,
236 TopRight, RightTop, RightBottom,
237 BottomLeft, BottomRight, Center };
239 enum class SymbolAlign { LEFT, RIGHT };
241 // ButtonDialog-Types
243 enum class StandardButtonType
245 OK = 0,
246 Cancel = 1,
247 Yes = 2,
248 No = 3,
249 Retry = 4,
250 Help = 5,
251 Close = 6,
252 More = 7,
253 Ignore = 8,
254 Abort = 9,
255 Less = 10,
256 Back = 11,
257 Next = 12,
258 Finish = 13,
259 Count = 14,
262 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */