xref: /AOO41X/main/rsc/inc/vclrsc.hxx (revision f7c60c9c54b9df31f919e125fa03a7515f4855a8)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _TOOLS_VCLRSC_HXX
25 #define _TOOLS_VCLRSC_HXX
26 
27 #include <sal/types.h>
28 #include <tools/solar.h>
29 #include <tools/wintypes.hxx>
30 #include <tools/fldunit.hxx>
31 #include <tools/mapunit.hxx>
32 
33 // from vcl/inc/vclenum.hxx
34 #ifndef ENUM_TIMEFIELDFORMAT_DECLARED
35 #define ENUM_TIMEFIELDFORMAT_DECLARED
36 
37 enum TimeFieldFormat {TIMEF_NONE, TIMEF_SEC, TIMEF_100TH_SEC, TIMEF_SEC_CS, TimeFieldFormat_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
38 
39 #endif
40 
41 // -----------------
42 // - KeyCode-Types -
43 // -----------------
44 #include <com/sun/star/awt/Key.hpp>
45 #include <com/sun/star/awt/KeyGroup.hpp>
46 
47 #define KEY_CODE        ((sal_uInt16)0x0FFF)
48 
49 // Modifier-Tasten
50 #define KEY_SHIFT       ((sal_uInt16)0x1000)
51 #define KEY_MOD1        ((sal_uInt16)0x2000)
52 #define KEY_MOD2        ((sal_uInt16)0x4000)
53 #define KEY_MOD3        ((sal_uInt16)0x8000)
54 #define KEY_MODTYPE     ((sal_uInt16)0xF000)
55 #define KEY_ALLMODTYPE  ((sal_uInt16)0xF000)
56 
57 
58 // from vcl/inc/vclenum.hxx
59 #ifndef ENUM_KEYFUNCTYPE_DECLARED
60 #define ENUM_KEYFUNCTYPE_DECLARED
61 
62 enum KeyFuncType { KEYFUNC_DONTKNOW, KEYFUNC_NEW, KEYFUNC_OPEN, KEYFUNC_SAVE,
63                    KEYFUNC_SAVEAS, KEYFUNC_PRINT, KEYFUNC_CLOSE, KEYFUNC_QUIT,
64                    KEYFUNC_CUT, KEYFUNC_COPY, KEYFUNC_PASTE, KEYFUNC_UNDO,
65                    KEYFUNC_REDO, KEYFUNC_DELETE, KEYFUNC_REPEAT, KEYFUNC_FIND,
66                    KEYFUNC_FINDBACKWARD, KEYFUNC_PROPERTIES, KEYFUNC_FRONT,
67                    KeyFuncType_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
68 
69 #endif
70 
71 
72 // --------------------------
73 // - Bits fuer ToolBoxItems -
74 // --------------------------
75 
76 // from vcl/inc/toolbox.hxx
77 typedef sal_uInt16 ToolBoxItemBits;
78 
79 #define TIB_CHECKABLE           ((ToolBoxItemBits)0x0001)
80 #define TIB_RADIOCHECK          ((ToolBoxItemBits)0x0002)
81 #define TIB_AUTOCHECK           ((ToolBoxItemBits)0x0004)
82 #define TIB_LEFT                ((ToolBoxItemBits)0x0008)
83 #define TIB_AUTOSIZE            ((ToolBoxItemBits)0x0010)
84 #define TIB_DROPDOWN            ((ToolBoxItemBits)0x0020)
85 #define TIB_REPEAT              ((ToolBoxItemBits)0x0040)
86 
87 enum ButtonType { BUTTON_SYMBOL, BUTTON_TEXT, BUTTON_SYMBOLTEXT };
88 
89 enum ToolBoxItemType { TOOLBOXITEM_DONTKNOW, TOOLBOXITEM_BUTTON,
90                        TOOLBOXITEM_SPACE, TOOLBOXITEM_SEPARATOR,
91                        TOOLBOXITEM_BREAK };
92 
93 
94 // ---------------
95 // - BorderStyle -
96 // ---------------
97 
98 typedef sal_uInt16 WindowBorderStyle;
99 
100 #define WINDOW_BORDER_NORMAL            ((WindowBorderStyle)0x0001)
101 #define WINDOW_BORDER_MONO              ((WindowBorderStyle)0x0002)
102 #define WINDOW_BORDER_ACTIVE            ((WindowBorderStyle)0x0004)
103 #define WINDOW_BORDER_DOUBLEOUT         ((WindowBorderStyle)0x0008)
104 #define WINDOW_BORDER_MENU              ((WindowBorderStyle)0x0010)
105 #define WINDOW_BORDER_NOBORDER          ((WindowBorderStyle)0x1000)
106 
107 // --------------
108 // - Menu-Types -
109 // --------------
110 
111 // from vcl/inc/menu.hxx
112 enum MenuItemType { MENUITEM_DONTKNOW, MENUITEM_STRING, MENUITEM_IMAGE,
113                     MENUITEM_STRINGIMAGE, MENUITEM_SEPARATOR };
114 
115 typedef sal_uInt16 MenuItemBits;
116 
117 #define MIB_CHECKABLE           ((MenuItemBits)0x0001)
118 #define MIB_RADIOCHECK          ((MenuItemBits)0x0002)
119 #define MIB_AUTOCHECK           ((MenuItemBits)0x0004)
120 #define MIB_ABOUT               ((MenuItemBits)0x0008)
121 #define MIB_HELP                ((MenuItemBits)0x0010)
122 #define MIB_POPUPSELECT         ((MenuItemBits)0x0020)
123 
124 // ----------------
125 // - Symbol-Types -
126 // ----------------
127 
128 // from vcl/inc/symbol.hxx
129 typedef sal_uInt16 SymbolType;
130 #define SYMBOL_DONTKNOW         ((SymbolType)0)
131 #define SYMBOL_IMAGE            ((SymbolType)1)
132 #define SYMBOL_ARROW_UP         ((SymbolType)2)
133 #define SYMBOL_ARROW_DOWN       ((SymbolType)3)
134 #define SYMBOL_ARROW_LEFT       ((SymbolType)4)
135 #define SYMBOL_ARROW_RIGHT      ((SymbolType)5)
136 #define SYMBOL_SPIN_UP          ((SymbolType)6)
137 #define SYMBOL_SPIN_DOWN        ((SymbolType)7)
138 #define SYMBOL_SPIN_LEFT        ((SymbolType)8)
139 #define SYMBOL_SPIN_RIGHT       ((SymbolType)9)
140 #define SYMBOL_FIRST            ((SymbolType)10)
141 #define SYMBOL_LAST             ((SymbolType)11)
142 #define SYMBOL_PREV             ((SymbolType)12)
143 #define SYMBOL_NEXT             ((SymbolType)13)
144 #define SYMBOL_PAGEUP           ((SymbolType)14)
145 #define SYMBOL_PAGEDOWN         ((SymbolType)15)
146 #define SYMBOL_PLAY             ((SymbolType)16)
147 #define SYMBOL_REVERSEPLAY      ((SymbolType)17)
148 #define SYMBOL_RECORD           ((SymbolType)18)
149 #define SYMBOL_STOP             ((SymbolType)19)
150 #define SYMBOL_PAUSE            ((SymbolType)20)
151 #define SYMBOL_WINDSTART        ((SymbolType)21)
152 #define SYMBOL_WINDEND          ((SymbolType)22)
153 #define SYMBOL_WINDBACKWARD     ((SymbolType)23)
154 #define SYMBOL_WINDFORWARD      ((SymbolType)24)
155 #define SYMBOL_CLOSE            ((SymbolType)25)
156 #define SYMBOL_ROLLUP           ((SymbolType)26)
157 #define SYMBOL_ROLLDOWN         ((SymbolType)27)
158 #define SYMBOL_CHECKMARK        ((SymbolType)28)
159 #define SYMBOL_RADIOCHECKMARK   ((SymbolType)29)
160 #define SYMBOL_SPIN_UPDOWN      ((SymbolType)30)
161 #define SYMBOL_FLOAT            ((SymbolType)31)
162 #define SYMBOL_DOCK             ((SymbolType)32)
163 #define SYMBOL_HIDE             ((SymbolType)33)
164 #define SYMBOL_HELP             ((SymbolType)34)
165 
166 #define SYMBOL_NOSYMBOL         (SYMBOL_DONTKNOW)
167 
168 #endif
169