LibreOffice Module vcl (master) 1
wintypes.hxx
Go to the documentation of this file.
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 <sal/types.h>
23
24// Window-Types
25
26enum class WindowType : sal_uInt16
27{
28 NONE = 0,
29 FIRST = 0x0130, // 304
30 MESSBOX = FIRST, // 0
31 INFOBOX ,
33 ERRORBOX ,
34 QUERYBOX ,
35 WINDOW ,
37 CONTAINER ,
39 DIALOG ,
41 CONTROL ,
43 OKBUTTON ,
51 CHECKBOX ,
53 EDIT ,
55 COMBOBOX ,
56 LISTBOX ,
58 FIXEDTEXT ,
59 FIXEDLINE ,
62 GROUPBOX ,
63 SCROLLBAR ,
65 SPLITTER ,
67 SPINFIELD ,
72 DATEFIELD ,
73 TIMEFIELD ,
76 METRICBOX ,
78 DATEBOX ,
79 TIMEBOX ,
82 TOOLBOX ,
84 STATUSBAR ,
85 TABPAGE ,
87 TABDIALOG ,
91 SLIDER ,
98 RULER ,
99 HEADERBAR ,
102 // only used in vclxtoolkit.cxx
103 TOOLKIT_FRAMEWINDOW = 0x1000,
105};
106
107// Window-Bits
108
109typedef sal_Int64 WinBits;
110
111// Window-Bits for Window
112WinBits const WB_CLIPCHILDREN = 0x00000001;
113WinBits const WB_DIALOGCONTROL = 0x00000002;
114WinBits const WB_NODIALOGCONTROL = 0x00000004;
115WinBits const WB_BORDER = 0x00000008;
116WinBits const WB_NOBORDER = 0x00000010;
117WinBits const WB_SIZEABLE = 0x00000020;
118WinBits const WB_3DLOOK = 0x00000040;
119WinBits const WB_ALLOWMENUBAR = 0x00000080;
120
121// Window-Bits for SystemWindows
122WinBits const WB_MOVEABLE = 0x00000100;
123WinBits const WB_CLOSEABLE = 0x00000400;
124WinBits const WB_STANDALONE = 0x00000800;
125WinBits const WB_APP = 0x00001000;
126WinBits const WB_SYSTEMWINDOW = SAL_CONST_INT64(0x40000000);
127// warning: do not confuse WB_SYSTEMCHILDWINDOW with the SystemChildWindow class
128//
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
132//
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
136WinBits const WB_SYSTEMCHILDWINDOW = SAL_CONST_INT64(0x8000000000);
138
139// Standard-Window-Bits for ChildWindows
140WinBits const WB_TABSTOP = 0x00000100;
141WinBits const WB_NOTABSTOP = 0x00000200;
142WinBits const WB_GROUP = 0x00000400;
143WinBits const WB_NOGROUP = 0x00000800;
144WinBits const WB_HORZ = 0x00001000;
145WinBits const WB_VERT = 0x00002000;
146WinBits const WB_LEFT = 0x00004000;
147WinBits const WB_CENTER = 0x00008000;
148WinBits const WB_RIGHT = 0x00010000;
149WinBits const WB_TOP = 0x00020000;
150WinBits const WB_VCENTER = 0x00040000;
151WinBits const WB_BOTTOM = 0x00080000;
152WinBits const WB_DRAG = 0x00100000;
153WinBits const WB_SPIN = 0x00200000;
154WinBits const WB_REPEAT = 0x00400000;
155WinBits const WB_NOPOINTERFOCUS = 0x00800000;
156WinBits const WB_WORDBREAK = 0x01000000;
157WinBits const WB_NOLABEL = 0x02000000;
158WinBits const WB_SORT = 0x04000000;
159WinBits const WB_DROPDOWN = 0x08000000;
160WinBits const WB_HIDE = SAL_CONST_INT64(0x80000000);
161WinBits const WB_AUTOHSCROLL = SAL_CONST_INT64(0x10000000);
162WinBits const WB_DOCKABLE = SAL_CONST_INT64(0x20000000);
163WinBits const WB_AUTOVSCROLL = SAL_CONST_INT64(0x40000000);
164
165// #i93011# style bit for some child windows, that want their children checked for accelerators
166WinBits const WB_CHILDDLGCTRL = SAL_CONST_INT64(0x100000000000);
167
168// system floating window
169WinBits const WB_SYSTEMFLOATWIN = SAL_CONST_INT64(0x100000000);
170WinBits const WB_INTROWIN = SAL_CONST_INT64(0x200000000);
171WinBits const WB_NOSHADOW = SAL_CONST_INT64(0x400000000);
172WinBits const WB_TOOLTIPWIN = SAL_CONST_INT64(0x800000000);
173WinBits const WB_OWNERDRAWDECORATION = SAL_CONST_INT64(0x2000000000);
174WinBits const WB_DEFAULTWIN = SAL_CONST_INT64(0x4000000000);
175WinBits const WB_POPUP = SAL_CONST_INT64(0x20000000);
176
179
180// Window-Bits for PushButtons
181WinBits const WB_DEFBUTTON = 0x10000000;
182WinBits const WB_NOLIGHTBORDER = 0x20000000;
183WinBits const WB_RECTSTYLE = 0x08000000;
184WinBits const WB_SMALLSTYLE = 0x04000000;
185WinBits const WB_TOGGLE = SAL_CONST_INT64(0x1000000000);
186WinBits const WB_FLATBUTTON = SAL_CONST_INT64(0x2000000000);
187
188// Window-Bits for FixedText
189WinBits const WB_PATHELLIPSIS = 0x00100000;
190WinBits const WB_EXTRAOFFSET = 0x02000000;
191WinBits const WB_NOMULTILINE = 0x10000000;
192
193// Window-Bits for Edit
194WinBits const WB_READONLY = 0x02000000;
195WinBits const WB_NOHIDESELECTION = SAL_CONST_INT64(0x1000000000);
196
197// Window-Bits for MultiLineEdit
198WinBits const WB_IGNORETAB = 0x20000000;
199
200// Window-Bits for ListBox and MultiListBox
201WinBits const WB_SIMPLEMODE = 0x20000000;
202
203// Window-Bits for FixedBitmap
204WinBits const WB_SCALE = 0x08000000;
205
206// Window-Bits for ToolBox
207WinBits const WB_SCROLL = 0x02000000;
208
209// Window-Bits for SplitWindow
210WinBits const WB_NOSPLITDRAW = 0x01000000;
211
212// Standard-WinBits
221
222// For TreeListBox
223WinBits const WB_HASBUTTONS = SAL_CONST_INT64(0x000100000000);
224WinBits const WB_HASLINES = SAL_CONST_INT64(0x000200000000);
225WinBits const WB_HASLINESATROOT = SAL_CONST_INT64(0x000400000000);
226WinBits const WB_HASBUTTONSATROOT = SAL_CONST_INT64(0x000800000000);
227WinBits const WB_NOINITIALSELECTION = SAL_CONST_INT64(0x001000000000);
228WinBits const WB_HIDESELECTION = SAL_CONST_INT64(0x002000000000);
229// DO NOT USE: 0x008000000000, that's WB_SYSTEMCHILDWINDOW
230
231
232enum class WindowAlign { Left, Top, Right, Bottom };
233
238
239enum class SymbolAlign { LEFT, RIGHT };
240
241// ButtonDialog-Types
242
244{
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,
260};
261
262/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: help.hxx:61
#define OK
WINDOW
RULER
NONE
const sal_uInt32 LEFT
const sal_uInt32 RIGHT
const sal_Int16 FORMATTEDFIELD
const sal_Int16 FIXEDLINE
Left
Center
Right
Count
WinBits const WB_NOINITIALSELECTION
Definition: wintypes.hxx:227
sal_Int64 WinBits
Definition: wintypes.hxx:109
WinBits const WB_CLOSEABLE
Definition: wintypes.hxx:123
WinBits const WB_TOP
Definition: wintypes.hxx:149
WinBits const WB_VCENTER
Definition: wintypes.hxx:150
WinBits const WB_MOVEABLE
Definition: wintypes.hxx:122
WinBits const WB_VERT
Definition: wintypes.hxx:145
WinBits const WB_EXTRAOFFSET
Definition: wintypes.hxx:190
WinBits const WB_STDDIALOG
Definition: wintypes.hxx:216
WinBits const WB_HIDESELECTION
Definition: wintypes.hxx:228
WinBits const WB_DIALOGCONTROL
Definition: wintypes.hxx:113
WinBits const WB_OWNERDRAWDECORATION
Definition: wintypes.hxx:173
WinBits const WB_DOCKABLE
Definition: wintypes.hxx:162
WinBits const WB_CENTER
Definition: wintypes.hxx:147
WinBits const WB_DROPDOWN
Definition: wintypes.hxx:159
WinBits const WB_STDTABCONTROL
Definition: wintypes.hxx:219
WinBits const WB_DRAG
Definition: wintypes.hxx:152
WinBits const WB_SCALE
Definition: wintypes.hxx:204
WindowType
Definition: wintypes.hxx:27
@ TOOLKIT_FRAMEWINDOW
@ VERTICALTABCONTROL
@ TOOLKIT_SYSTEMCHILDWINDOW
WinBits const WB_SYSTEMCHILDWINDOW
Definition: wintypes.hxx:136
WinBits const WB_POPUP
Definition: wintypes.hxx:175
WinBits const WB_SIZEABLE
Definition: wintypes.hxx:117
WinBits const WB_STDMODELESS
Definition: wintypes.hxx:217
WinBits const WB_NOTABSTOP
Definition: wintypes.hxx:141
WinBits const WB_SYSTEMWINDOW
Definition: wintypes.hxx:126
WinBits const WB_NOLABEL
Definition: wintypes.hxx:157
WinBits const WB_TOGGLE
Definition: wintypes.hxx:185
WinBits const WB_REPEAT
Definition: wintypes.hxx:154
WinBits const WB_NOPOINTERFOCUS
Definition: wintypes.hxx:155
WinBits const WB_APP
Definition: wintypes.hxx:125
WinBits const WB_SIZEMOVE
Definition: wintypes.hxx:137
WinBits const WB_SIMPLEMODE
Definition: wintypes.hxx:201
ImageAlign
Definition: wintypes.hxx:234
WinBits const WB_AUTOVSCROLL
Definition: wintypes.hxx:163
WinBits const WB_3DLOOK
Definition: wintypes.hxx:118
WinBits const WB_AUTOHSCROLL
Definition: wintypes.hxx:161
SymbolAlign
Definition: wintypes.hxx:239
WinBits const WB_GROUP
Definition: wintypes.hxx:142
WinBits const WB_HASBUTTONS
Definition: wintypes.hxx:223
WinBits const WB_IGNORETAB
Definition: wintypes.hxx:198
WinBits const WB_CHILDDLGCTRL
Definition: wintypes.hxx:166
WinBits const WB_HASLINESATROOT
Definition: wintypes.hxx:225
WinBits const WB_FLATBUTTON
Definition: wintypes.hxx:186
StandardButtonType
Definition: wintypes.hxx:244
WinBits const WB_DEFAULTWIN
Definition: wintypes.hxx:174
WinBits const WB_HORZ
Definition: wintypes.hxx:144
WinBits const WB_STDPOPUP
Definition: wintypes.hxx:220
WinBits const WB_RIGHT
Definition: wintypes.hxx:148
WinBits const WB_NOSPLITDRAW
Definition: wintypes.hxx:210
WinBits const WB_STDWORK
Definition: wintypes.hxx:213
WinBits const WB_HASLINES
Definition: wintypes.hxx:224
WinBits const WB_HASBUTTONSATROOT
Definition: wintypes.hxx:226
WinBits const WB_PATHELLIPSIS
Definition: wintypes.hxx:189
WinBits const WB_BORDER
Definition: wintypes.hxx:115
WinBits const WB_SORT
Definition: wintypes.hxx:158
WinBits const WB_WORDBREAK
Definition: wintypes.hxx:156
WinBits const WB_SMALLSTYLE
Definition: wintypes.hxx:184
WinBits const WB_SPIN
Definition: wintypes.hxx:153
WinBits const WB_SYSTEMFLOATWIN
Definition: wintypes.hxx:169
WinBits const WB_INTROWIN
Definition: wintypes.hxx:170
WinBits const WB_NOGROUP
Definition: wintypes.hxx:143
WinBits const WB_DEFBUTTON
Definition: wintypes.hxx:181
WinBits const WB_VSCROLL
Definition: wintypes.hxx:178
WinBits const WB_NODIALOGCONTROL
Definition: wintypes.hxx:114
WinBits const WB_STDDOCKWIN
Definition: wintypes.hxx:214
WinBits const WB_STANDALONE
Definition: wintypes.hxx:124
WinBits const WB_NOLIGHTBORDER
Definition: wintypes.hxx:182
WinBits const WB_NOMULTILINE
Definition: wintypes.hxx:191
WinBits const WB_ALLOWMENUBAR
Definition: wintypes.hxx:119
WinBits const WB_STDMODAL
Definition: wintypes.hxx:218
WinBits const WB_TABSTOP
Definition: wintypes.hxx:140
WinBits const WB_READONLY
Definition: wintypes.hxx:194
WindowAlign
Definition: wintypes.hxx:232
WinBits const WB_TOOLTIPWIN
Definition: wintypes.hxx:172
WinBits const WB_SCROLL
Definition: wintypes.hxx:207
WinBits const WB_CLIPCHILDREN
Definition: wintypes.hxx:112
WinBits const WB_BOTTOM
Definition: wintypes.hxx:151
WinBits const WB_HIDE
Definition: wintypes.hxx:160
WinBits const WB_NOBORDER
Definition: wintypes.hxx:116
WinBits const WB_LEFT
Definition: wintypes.hxx:146
WinBits const WB_NOHIDESELECTION
Definition: wintypes.hxx:195
WinBits const WB_NOSHADOW
Definition: wintypes.hxx:171
WinBits const WB_RECTSTYLE
Definition: wintypes.hxx:183
WinBits const WB_HSCROLL
Definition: wintypes.hxx:177
WinBits const WB_STDFLOATWIN
Definition: wintypes.hxx:215