xref: /aoo41x/main/rsc/inc/vclrsc.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef _TOOLS_VCLRSC_HXX
29 #define _TOOLS_VCLRSC_HXX
30 
31 #include <sal/types.h>
32 #include <tools/solar.h>
33 #include <tools/wintypes.hxx>
34 #include <tools/fldunit.hxx>
35 #include <tools/mapunit.hxx>
36 
37 // from vcl/inc/vclenum.hxx
38 #ifndef ENUM_TIMEFIELDFORMAT_DECLARED
39 #define ENUM_TIMEFIELDFORMAT_DECLARED
40 
41 enum TimeFieldFormat {TIMEF_NONE, TIMEF_SEC, TIMEF_100TH_SEC, TIMEF_SEC_CS, TimeFieldFormat_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
42 
43 #endif
44 
45 // -----------------
46 // - KeyCode-Types -
47 // -----------------
48 #include <com/sun/star/awt/Key.hpp>
49 #include <com/sun/star/awt/KeyGroup.hpp>
50 
51 #define KEY_CODE		((sal_uInt16)0x0FFF)
52 
53 // Modifier-Tasten
54 #define KEY_SHIFT		((sal_uInt16)0x1000)
55 #define KEY_MOD1		((sal_uInt16)0x2000)
56 #define KEY_MOD2		((sal_uInt16)0x4000)
57 #define KEY_MOD3		((sal_uInt16)0x8000)
58 #define KEY_MODTYPE 	((sal_uInt16)0xF000)
59 #define KEY_ALLMODTYPE	((sal_uInt16)0xF000)
60 
61 
62 // from vcl/inc/vclenum.hxx
63 #ifndef ENUM_KEYFUNCTYPE_DECLARED
64 #define ENUM_KEYFUNCTYPE_DECLARED
65 
66 enum KeyFuncType { KEYFUNC_DONTKNOW, KEYFUNC_NEW, KEYFUNC_OPEN, KEYFUNC_SAVE,
67 				   KEYFUNC_SAVEAS, KEYFUNC_PRINT, KEYFUNC_CLOSE, KEYFUNC_QUIT,
68 				   KEYFUNC_CUT, KEYFUNC_COPY, KEYFUNC_PASTE, KEYFUNC_UNDO,
69 				   KEYFUNC_REDO, KEYFUNC_DELETE, KEYFUNC_REPEAT, KEYFUNC_FIND,
70 				   KEYFUNC_FINDBACKWARD, KEYFUNC_PROPERTIES, KEYFUNC_FRONT,
71 				   KeyFuncType_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
72 
73 #endif
74 
75 
76 // --------------------------
77 // - Bits fuer ToolBoxItems -
78 // --------------------------
79 
80 // from vcl/inc/toolbox.hxx
81 typedef sal_uInt16 ToolBoxItemBits;
82 
83 #define TIB_CHECKABLE			((ToolBoxItemBits)0x0001)
84 #define TIB_RADIOCHECK			((ToolBoxItemBits)0x0002)
85 #define TIB_AUTOCHECK			((ToolBoxItemBits)0x0004)
86 #define TIB_LEFT				((ToolBoxItemBits)0x0008)
87 #define TIB_AUTOSIZE			((ToolBoxItemBits)0x0010)
88 #define TIB_DROPDOWN			((ToolBoxItemBits)0x0020)
89 #define TIB_REPEAT				((ToolBoxItemBits)0x0040)
90 
91 enum ButtonType { BUTTON_SYMBOL, BUTTON_TEXT, BUTTON_SYMBOLTEXT };
92 
93 enum ToolBoxItemType { TOOLBOXITEM_DONTKNOW, TOOLBOXITEM_BUTTON,
94 					   TOOLBOXITEM_SPACE, TOOLBOXITEM_SEPARATOR,
95 					   TOOLBOXITEM_BREAK };
96 
97 
98 // ---------------
99 // - BorderStyle -
100 // ---------------
101 
102 typedef sal_uInt16 WindowBorderStyle;
103 
104 #define WINDOW_BORDER_NORMAL            ((WindowBorderStyle)0x0001)
105 #define WINDOW_BORDER_MONO              ((WindowBorderStyle)0x0002)
106 #define WINDOW_BORDER_ACTIVE            ((WindowBorderStyle)0x0004)
107 #define WINDOW_BORDER_DOUBLEOUT         ((WindowBorderStyle)0x0008)
108 #define WINDOW_BORDER_MENU              ((WindowBorderStyle)0x0010)
109 #define WINDOW_BORDER_NOBORDER          ((WindowBorderStyle)0x1000)
110 
111 // --------------
112 // - Menu-Types -
113 // --------------
114 
115 // from vcl/inc/menu.hxx
116 enum MenuItemType { MENUITEM_DONTKNOW, MENUITEM_STRING, MENUITEM_IMAGE,
117 					MENUITEM_STRINGIMAGE, MENUITEM_SEPARATOR };
118 
119 typedef sal_uInt16 MenuItemBits;
120 
121 #define MIB_CHECKABLE			((MenuItemBits)0x0001)
122 #define MIB_RADIOCHECK			((MenuItemBits)0x0002)
123 #define MIB_AUTOCHECK			((MenuItemBits)0x0004)
124 #define MIB_ABOUT				((MenuItemBits)0x0008)
125 #define MIB_HELP				((MenuItemBits)0x0010)
126 #define MIB_POPUPSELECT 		((MenuItemBits)0x0020)
127 
128 // ----------------
129 // - Symbol-Types -
130 // ----------------
131 
132 // from vcl/inc/symbol.hxx
133 typedef sal_uInt16 SymbolType;
134 #define SYMBOL_DONTKNOW 		((SymbolType)0)
135 #define SYMBOL_IMAGE			((SymbolType)1)
136 #define SYMBOL_ARROW_UP 		((SymbolType)2)
137 #define SYMBOL_ARROW_DOWN		((SymbolType)3)
138 #define SYMBOL_ARROW_LEFT		((SymbolType)4)
139 #define SYMBOL_ARROW_RIGHT		((SymbolType)5)
140 #define SYMBOL_SPIN_UP			((SymbolType)6)
141 #define SYMBOL_SPIN_DOWN		((SymbolType)7)
142 #define SYMBOL_SPIN_LEFT		((SymbolType)8)
143 #define SYMBOL_SPIN_RIGHT		((SymbolType)9)
144 #define SYMBOL_FIRST			((SymbolType)10)
145 #define SYMBOL_LAST 			((SymbolType)11)
146 #define SYMBOL_PREV 			((SymbolType)12)
147 #define SYMBOL_NEXT 			((SymbolType)13)
148 #define SYMBOL_PAGEUP			((SymbolType)14)
149 #define SYMBOL_PAGEDOWN 		((SymbolType)15)
150 #define SYMBOL_PLAY 			((SymbolType)16)
151 #define SYMBOL_REVERSEPLAY		((SymbolType)17)
152 #define SYMBOL_RECORD			((SymbolType)18)
153 #define SYMBOL_STOP 			((SymbolType)19)
154 #define SYMBOL_PAUSE			((SymbolType)20)
155 #define SYMBOL_WINDSTART		((SymbolType)21)
156 #define SYMBOL_WINDEND			((SymbolType)22)
157 #define SYMBOL_WINDBACKWARD 	((SymbolType)23)
158 #define SYMBOL_WINDFORWARD		((SymbolType)24)
159 #define SYMBOL_CLOSE			((SymbolType)25)
160 #define SYMBOL_ROLLUP			((SymbolType)26)
161 #define SYMBOL_ROLLDOWN 		((SymbolType)27)
162 #define SYMBOL_CHECKMARK		((SymbolType)28)
163 #define SYMBOL_RADIOCHECKMARK	((SymbolType)29)
164 #define SYMBOL_SPIN_UPDOWN		((SymbolType)30)
165 #define SYMBOL_FLOAT			((SymbolType)31)
166 #define SYMBOL_DOCK 			((SymbolType)32)
167 #define SYMBOL_HIDE 			((SymbolType)33)
168 #define SYMBOL_HELP 			((SymbolType)34)
169 
170 #define SYMBOL_NOSYMBOL 		(SYMBOL_DONTKNOW)
171 
172 #endif
173