Update ooo320-m1
[ooovba.git] / rsc / inc / vclrsc.hxx
blob794817c7d3655cb98718527246ea89ff54661e29
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: vclrsc.hxx,v $
10 * $Revision: 1.12 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _TOOLS_VCLRSC_HXX
32 #define _TOOLS_VCLRSC_HXX
34 #include <sal/types.h>
35 #include <tools/solar.h>
37 // ---------------
38 // - Window-Bits -
39 // ---------------
41 // from vcl/inc/wintypes.hxx
42 typedef sal_Int64 WinBits;
44 // Window-Bits fuer Window
45 #define WB_CLIPCHILDREN ((WinBits)0x00000001)
46 #define WB_DIALOGCONTROL ((WinBits)0x00000002)
47 #define WB_NODIALOGCONTROL ((WinBits)0x00000004)
48 #define WB_BORDER ((WinBits)0x00000008)
49 #define WB_NOBORDER ((WinBits)0x00000010)
50 #define WB_SIZEABLE ((WinBits)0x00000020)
51 #define WB_3DLOOK ((WinBits)0x00000040)
52 #define WB_AUTOSIZE ((WinBits)0x00000080)
54 // Window-Bits fuer SystemWindows
55 #define WB_MOVEABLE ((WinBits)0x00000100)
56 #define WB_ROLLABLE ((WinBits)0x00000200)
57 #define WB_CLOSEABLE ((WinBits)0x00000400)
58 #define WB_STANDALONE ((WinBits)0x00000800)
59 #define WB_APP ((WinBits)0x00001000)
60 #define WB_PINABLE ((WinBits)0x00002000)
61 #define WB_SYSTEMWINDOW ((WinBits)0x40000000)
62 #define WB_SIZEMOVE (WB_SIZEABLE | WB_MOVEABLE)
64 // Standard-Window-Bits fuer ChildWindows
65 #define WB_TABSTOP ((WinBits)0x00000100)
66 #define WB_NOTABSTOP ((WinBits)0x00000200)
67 #define WB_GROUP ((WinBits)0x00000400)
68 #define WB_NOGROUP ((WinBits)0x00000800)
69 #define WB_HORZ ((WinBits)0x00001000)
70 #define WB_VERT ((WinBits)0x00002000)
71 #define WB_LEFT ((WinBits)0x00004000)
72 #define WB_CENTER ((WinBits)0x00008000)
73 #define WB_RIGHT ((WinBits)0x00010000)
74 #define WB_TOP ((WinBits)0x00020000)
75 #define WB_VCENTER ((WinBits)0x00040000)
76 #define WB_BOTTOM ((WinBits)0x00080000)
77 #define WB_DRAG ((WinBits)0x00100000)
78 #define WB_SPIN ((WinBits)0x00200000)
79 #define WB_REPEAT ((WinBits)0x00400000)
80 #define WB_NOPOINTERFOCUS ((WinBits)0x00800000)
81 #define WB_WORDBREAK ((WinBits)0x01000000)
82 #define WB_NOLABEL ((WinBits)0x02000000)
83 #define WB_SORT ((WinBits)0x04000000)
84 #define WB_DROPDOWN ((WinBits)0x08000000)
85 #define WB_AUTOHSCROLL ((WinBits)0x10000000)
86 #define WB_DOCKABLE ((WinBits)0x20000000)
87 #define WB_AUTOVSCROLL ((WinBits)0x40000000)
89 #define WB_HIDE ((WinBits)0x80000000)
90 #define WB_HSCROLL WB_HORZ
91 #define WB_VSCROLL WB_VERT
92 #define WB_TOPIMAGE WB_TOP
94 // Window-Bits for PushButtons
95 #define WB_DEFBUTTON ((WinBits)0x10000000)
96 #define WB_NOLIGHTBORDER ((WinBits)0x20000000)
97 #define WB_RECTSTYLE ((WinBits)0x08000000)
98 #define WB_SMALLSTYLE ((WinBits)0x04000000)
100 // Window-Bits for FixedText
101 #define WB_INFO ((WinBits)0x20000000)
102 #define WB_PATHELLIPSIS ((WinBits)0x00100000)
104 // Window-Bits for Edit
105 #define WB_PASSWORD ((WinBits)0x01000000)
106 #define WB_READONLY ((WinBits)0x02000000)
107 #define WB_NOHIDESELECTION ((WinBits)SAL_CONST_INT64(0x1000000000))
109 // Window-Bits for MultiLineEdit
110 #define WB_IGNORETAB ((WinBits)0x20000000)
112 // Window-Bits for ListBox and MultiListBox
113 #define WB_SIMPLEMODE ((WinBits)0x20000000)
115 // Window-Bits for FixedBitmap
116 #define WB_FAST ((WinBits)0x04000000)
117 #define WB_SCALE ((WinBits)0x08000000)
118 #define WB_TOPLEFTVISIBLE ((WinBits)0x10000000)
120 // Window-Bits for ToolBox
121 #define WB_LINESPACING ((WinBits)0x01000000)
122 #define WB_SCROLL ((WinBits)0x02000000)
124 // Window-Bits for TabControl
125 #define WB_SINGLELINE ((WinBits)0x02000000)
127 // Window-Bits for DockingWindows
128 #define WB_DOCKBORDER ((WinBits)0x00001000)
130 // Window-Bits for SplitWindow
131 #define WB_NOSPLITDRAW ((WinBits)0x01000000)
132 #define WB_FLATSPLITDRAW ((WinBits)0x02000000)
134 // Window-Bits for MessageBoxen
135 #define WB_OK ((WinBits)0x00100000)
136 #define WB_OK_CANCEL ((WinBits)0x00200000)
137 #define WB_YES_NO ((WinBits)0x00400000)
138 #define WB_YES_NO_CANCEL ((WinBits)0x00800000)
139 #define WB_RETRY_CANCEL ((WinBits)0x01000000)
140 #define WB_DEF_OK ((WinBits)0x02000000)
141 #define WB_DEF_CANCEL ((WinBits)0x04000000)
142 #define WB_DEF_RETRY ((WinBits)0x08000000)
143 #define WB_DEF_YES ((WinBits)0x10000000)
144 #define WB_DEF_NO ((WinBits)0x20000000)
145 #define WB_ABORT_RETRY_IGNORE ((WinBits)SAL_CONST_INT64(0x1000000000))
146 #define WB_DEF_IGNORE ((WinBits)SAL_CONST_INT64(0x2000000000))
148 // Standard-WinBits
149 #define WB_STDWORK (WB_SIZEMOVE | WB_CLOSEABLE)
150 #define WB_STDMDI (WB_CLOSEABLE)
151 #define WB_STDDOCKWIN (WB_DOCKABLE | WB_MOVEABLE | WB_CLOSEABLE)
152 #define WB_STDFLOATWIN (WB_SIZEMOVE | WB_CLOSEABLE | WB_ROLLABLE)
153 #define WB_STDDIALOG (WB_MOVEABLE | WB_CLOSEABLE)
154 #define WB_STDMODELESS (WB_STDDIALOG)
155 #define WB_STDMODAL (WB_STDDIALOG)
156 #define WB_STDTABDIALOG (WB_STDDIALOG)
157 #define WB_STDTABCONTROL 0
159 // For TreeListBox
160 #define WB_HASBUTTONS ((WinBits)0x00800000)
161 #define WB_HASLINES ((WinBits)0x01000000)
162 #define WB_HASLINESATROOT ((WinBits)0x02000000)
164 // --------------
165 // - Help-Types -
166 // --------------
168 // from vcl/inc/help.hxx
169 #define OOO_HELP_INDEX ((ULONG)0xFFFFFFFF)
170 #define OOO_HELP_HELPONHELP ((ULONG)0xFFFFFFFE)
172 // --------------
173 // - FieldTypes -
174 // --------------
176 // from vcl/inc/fldunit.hxx
177 enum FieldUnit { FUNIT_NONE, FUNIT_MM, FUNIT_CM, FUNIT_M, FUNIT_KM,
178 FUNIT_TWIP, FUNIT_POINT, FUNIT_PICA,
179 FUNIT_INCH, FUNIT_FOOT, FUNIT_MILE, FUNIT_CHAR, FUNIT_LINE, FUNIT_CUSTOM,
180 FUNIT_PERCENT, FUNIT_100TH_MM };
183 // from vcl/inc/vclenum.hxx
184 #ifndef ENUM_TIMEFIELDFORMAT_DECLARED
185 #define ENUM_TIMEFIELDFORMAT_DECLARED
187 enum TimeFieldFormat {TIMEF_NONE, TIMEF_SEC, TIMEF_100TH_SEC, TIMEF_SEC_CS, TimeFieldFormat_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
189 #endif
191 // -----------------
192 // - KeyCode-Types -
193 // -----------------
194 #include <com/sun/star/awt/Key.hpp>
195 #include <com/sun/star/awt/KeyGroup.hpp>
197 #define KEY_CODE ((sal_uInt16)0x0FFF)
199 // Modifier-Tasten
200 #define KEY_SHIFT ((sal_uInt16)0x1000)
201 #define KEY_MOD1 ((sal_uInt16)0x2000)
202 #define KEY_MOD2 ((sal_uInt16)0x4000)
203 #define KEY_MOD3 ((sal_uInt16)0x8000)
204 #define KEY_MODTYPE ((sal_uInt16)0xF000)
205 #define KEY_ALLMODTYPE ((sal_uInt16)0xF000)
208 // from vcl/inc/vclenum.hxx
209 #ifndef ENUM_KEYFUNCTYPE_DECLARED
210 #define ENUM_KEYFUNCTYPE_DECLARED
212 enum KeyFuncType { KEYFUNC_DONTKNOW, KEYFUNC_NEW, KEYFUNC_OPEN, KEYFUNC_SAVE,
213 KEYFUNC_SAVEAS, KEYFUNC_PRINT, KEYFUNC_CLOSE, KEYFUNC_QUIT,
214 KEYFUNC_CUT, KEYFUNC_COPY, KEYFUNC_PASTE, KEYFUNC_UNDO,
215 KEYFUNC_REDO, KEYFUNC_DELETE, KEYFUNC_REPEAT, KEYFUNC_FIND,
216 KEYFUNC_FINDBACKWARD, KEYFUNC_PROPERTIES, KEYFUNC_FRONT,
217 KeyFuncType_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
219 #endif
221 // ------------
222 // - TriState -
223 // ------------
225 // from vcl/inc/wintypes.hxx
226 enum TriState { STATE_NOCHECK, STATE_CHECK, STATE_DONTKNOW };
228 // -----------------
229 // - MapMode-Types -
230 // -----------------
232 // from vcl/inc/mapmod.hxx
233 enum MapUnit { MAP_100TH_MM, MAP_10TH_MM, MAP_MM, MAP_CM,
234 MAP_1000TH_INCH, MAP_100TH_INCH, MAP_10TH_INCH, MAP_INCH,
235 MAP_POINT, MAP_TWIP, MAP_PIXEL, MAP_SYSFONT, MAP_APPFONT,
236 MAP_RELATIVE, MAP_REALAPPFONT };
238 // Das Resourcesystem benutzt den Wert 0xFFFF (freihalten)
241 // --------------------------
242 // - Bits fuer ToolBoxItems -
243 // --------------------------
245 // from vcl/inc/toolbox.hxx
246 typedef sal_uInt16 ToolBoxItemBits;
248 #define TIB_CHECKABLE ((ToolBoxItemBits)0x0001)
249 #define TIB_RADIOCHECK ((ToolBoxItemBits)0x0002)
250 #define TIB_AUTOCHECK ((ToolBoxItemBits)0x0004)
251 #define TIB_LEFT ((ToolBoxItemBits)0x0008)
252 #define TIB_AUTOSIZE ((ToolBoxItemBits)0x0010)
253 #define TIB_DROPDOWN ((ToolBoxItemBits)0x0020)
254 #define TIB_REPEAT ((ToolBoxItemBits)0x0040)
256 enum ButtonType { BUTTON_SYMBOL, BUTTON_TEXT, BUTTON_SYMBOLTEXT };
258 enum ToolBoxItemType { TOOLBOXITEM_DONTKNOW, TOOLBOXITEM_BUTTON,
259 TOOLBOXITEM_SPACE, TOOLBOXITEM_SEPARATOR,
260 TOOLBOXITEM_BREAK };
263 // ---------------
264 // - BorderStyle -
265 // ---------------
267 typedef sal_uInt16 WindowBorderStyle;
269 #define WINDOW_BORDER_NORMAL ((WindowBorderStyle)0x0001)
270 #define WINDOW_BORDER_MONO ((WindowBorderStyle)0x0002)
271 #define WINDOW_BORDER_ACTIVE ((WindowBorderStyle)0x0004)
272 #define WINDOW_BORDER_DOUBLEOUT ((WindowBorderStyle)0x0008)
273 #define WINDOW_BORDER_MENU ((WindowBorderStyle)0x0010)
274 #define WINDOW_BORDER_NOBORDER ((WindowBorderStyle)0x1000)
276 // ---------------
277 // - WindowAlign -
278 // ---------------
280 // from vcl/inc/wintypes.hxx
281 enum WindowAlign { WINDOWALIGN_LEFT, WINDOWALIGN_TOP, WINDOWALIGN_RIGHT, WINDOWALIGN_BOTTOM };
282 enum ImageAlign { IMAGEALIGN_LEFT, IMAGEALIGN_TOP, IMAGEALIGN_RIGHT, IMAGEALIGN_BOTTOM };
284 // --------------
285 // - Menu-Types -
286 // --------------
288 // from vcl/inc/menu.hxx
289 enum MenuItemType { MENUITEM_DONTKNOW, MENUITEM_STRING, MENUITEM_IMAGE,
290 MENUITEM_STRINGIMAGE, MENUITEM_SEPARATOR };
292 typedef sal_uInt16 MenuItemBits;
294 #define MIB_CHECKABLE ((MenuItemBits)0x0001)
295 #define MIB_RADIOCHECK ((MenuItemBits)0x0002)
296 #define MIB_AUTOCHECK ((MenuItemBits)0x0004)
297 #define MIB_ABOUT ((MenuItemBits)0x0008)
298 #define MIB_HELP ((MenuItemBits)0x0010)
299 #define MIB_POPUPSELECT ((MenuItemBits)0x0020)
301 // ----------------
302 // - Symbol-Types -
303 // ----------------
305 // from vcl/inc/symbol.hxx
306 typedef sal_uInt16 SymbolType;
307 #define SYMBOL_DONTKNOW ((SymbolType)0)
308 #define SYMBOL_IMAGE ((SymbolType)1)
309 #define SYMBOL_ARROW_UP ((SymbolType)2)
310 #define SYMBOL_ARROW_DOWN ((SymbolType)3)
311 #define SYMBOL_ARROW_LEFT ((SymbolType)4)
312 #define SYMBOL_ARROW_RIGHT ((SymbolType)5)
313 #define SYMBOL_SPIN_UP ((SymbolType)6)
314 #define SYMBOL_SPIN_DOWN ((SymbolType)7)
315 #define SYMBOL_SPIN_LEFT ((SymbolType)8)
316 #define SYMBOL_SPIN_RIGHT ((SymbolType)9)
317 #define SYMBOL_FIRST ((SymbolType)10)
318 #define SYMBOL_LAST ((SymbolType)11)
319 #define SYMBOL_PREV ((SymbolType)12)
320 #define SYMBOL_NEXT ((SymbolType)13)
321 #define SYMBOL_PAGEUP ((SymbolType)14)
322 #define SYMBOL_PAGEDOWN ((SymbolType)15)
323 #define SYMBOL_PLAY ((SymbolType)16)
324 #define SYMBOL_REVERSEPLAY ((SymbolType)17)
325 #define SYMBOL_RECORD ((SymbolType)18)
326 #define SYMBOL_STOP ((SymbolType)19)
327 #define SYMBOL_PAUSE ((SymbolType)20)
328 #define SYMBOL_WINDSTART ((SymbolType)21)
329 #define SYMBOL_WINDEND ((SymbolType)22)
330 #define SYMBOL_WINDBACKWARD ((SymbolType)23)
331 #define SYMBOL_WINDFORWARD ((SymbolType)24)
332 #define SYMBOL_CLOSE ((SymbolType)25)
333 #define SYMBOL_ROLLUP ((SymbolType)26)
334 #define SYMBOL_ROLLDOWN ((SymbolType)27)
335 #define SYMBOL_CHECKMARK ((SymbolType)28)
336 #define SYMBOL_RADIOCHECKMARK ((SymbolType)29)
337 #define SYMBOL_SPIN_UPDOWN ((SymbolType)30)
338 #define SYMBOL_FLOAT ((SymbolType)31)
339 #define SYMBOL_DOCK ((SymbolType)32)
340 #define SYMBOL_HIDE ((SymbolType)33)
341 #define SYMBOL_HELP ((SymbolType)34)
342 #define SYMBOL_OS2CLOSE ((SymbolType)35)
343 #define SYMBOL_OS2FLOAT ((SymbolType)36)
344 #define SYMBOL_OS2HIDE ((SymbolType)37)
346 #define SYMBOL_NOSYMBOL (SYMBOL_DONTKNOW)
348 #endif