xref: /AOO41X/main/tools/inc/tools/rc.h (revision 514f4c20bcebc1639918b6975cc4300e4484c27c)
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_RC_H
25 #define _TOOLS_RC_H
26 
27 #include <tools/rcid.h>
28 
29 // Definition der Struktur die alle "Window"-Resourcen haben
30 // Hier sind die Fensterstyles definiert die nicht in WinBits sind
31 #define RSC_EXTRAMAPUNIT                0xFFFF //Wert nicht veraendern!!!
32 
33 typedef short RSWND_STYLE;
34 #define RSWND_DISABLED                  0x01
35 #define RSWND_CLIENTSIZE                0x02
36 
37 #define WINDOW_XYMAPMODE                0x0001
38 #define WINDOW_X                        0x0002
39 #define WINDOW_Y                        0x0004
40 #define WINDOW_WHMAPMODE                0x0008
41 #define WINDOW_WIDTH                    0x0010
42 #define WINDOW_HEIGHT                   0x0020
43 #define WINDOW_TEXT                     0x0080
44 #define WINDOW_HELPTEXT                 0x0100
45 #define WINDOW_QUICKTEXT                0x0200
46 #define WINDOW_EXTRALONG                0x0800
47 #define WINDOW_UNIQUEID                 0x1000
48 #define WINDOW_BORDER_STYLE             0x2000
49 #define WINDOW_HELPID                   0x4000
50 
51 // Definition der Struktur die alle "WorkWindow"-Resourcen haben
52 #define WORKWIN_SHOWNORMAL              0
53 #define WORKWIN_SHOWMINIMIZED           1
54 #define WORKWIN_SHOWMAXIMIZED           2
55 
56 // Definition der Struktur der FixedBitmap-Resource.
57 #define RSC_FIXEDBITMAP_BITMAP          0x0001
58 
59 // Definition der Struktur der FixedImage-Resource.
60 #define RSC_FIXEDIMAGE_IMAGE            0x0001
61 
62 // Definition der Struktur des MenuButtons
63 #define RSCMENUBUTTON_MENU              0x01
64 
65 // Definition der Struktur die alle Menu-Resourcen haben
66 #define RSC_MENU_ITEMS                  0x01
67 #define RSC_MENU_TEXT                   0x02
68 #define RSC_MENU_DEFAULTITEMID          0x04
69 
70 // Hier sind die MenuItem-Resourceoptionen definiert
71 #define RSC_MENUITEM_SEPARATOR          0x001
72 #define RSC_MENUITEM_ID                 0x002
73 #define RSC_MENUITEM_STATUS             0x004
74 #define RSC_MENUITEM_TEXT               0x008
75 #define RSC_MENUITEM_BITMAP             0x010
76 #define RSC_MENUITEM_HELPTEXT           0x020
77 #define RSC_MENUITEM_HELPID             0x040
78 #define RSC_MENUITEM_KEYCODE            0x080
79 #define RSC_MENUITEM_MENU               0x100
80 #define RSC_MENUITEM_CHECKED            0x200
81 #define RSC_MENUITEM_DISABLE            0x400
82 #define RSC_MENUITEM_COMMAND            0x800
83 
84 // Hier sind die AccelKey-Resourceoptionen definiert
85 #define ACCELITEM_ACCEL                 0x01
86 #define ACCELITEM_KEY                   0x02
87 
88 // Definition der Struktur die alle "Field"-Resourcen haben
89 #define PATTERNFORMATTER_STRICTFORMAT   0x01
90 #define PATTERNFORMATTER_EDITMASK       0x02
91 #define PATTERNFORMATTER_LITTERALMASK   0x04
92 
93 #define NUMERICFORMATTER_MIN            0x01
94 #define NUMERICFORMATTER_MAX            0x02
95 #define NUMERICFORMATTER_STRICTFORMAT   0x04
96 //#define NUMERICFORMATTER_I12          0x08    // erAck: got rid of class International (2005-06-17)
97 #define NUMERICFORMATTER_DECIMALDIGITS  0x10
98 #define NUMERICFORMATTER_VALUE          0x20
99 #define NUMERICFORMATTER_NOTHOUSANDSEP  0x40
100 
101 #define METRICFORMATTER_UNIT            0x01
102 #define METRICFORMATTER_CUSTOMUNITTEXT  0x02
103 
104 #define DATEFORMATTER_MIN               0x01
105 #define DATEFORMATTER_MAX               0x02
106 #define DATEFORMATTER_LONGFORMAT        0x04
107 #define DATEFORMATTER_STRICTFORMAT      0x08
108 //#define DATEFORMATTER_I12             0x10    // erAck: got rid of class International (2005-06-17)
109 #define DATEFORMATTER_VALUE             0x20
110 
111 #define TIMEFORMATTER_MIN               0x01
112 #define TIMEFORMATTER_MAX               0x02
113 #define TIMEFORMATTER_TIMEFIELDFORMAT   0x04
114 #define TIMEFORMATTER_DURATION          0x08
115 #define TIMEFORMATTER_STRICTFORMAT      0x10
116 //#define TIMEFORMATTER_I12             0x20    // erAck: got rid of class International (2005-06-17)
117 #define TIMEFORMATTER_VALUE             0x40
118 
119 #define NUMERICFIELD_FIRST              0x01
120 #define NUMERICFIELD_LAST               0x02
121 #define NUMERICFIELD_SPINSIZE           0x04
122 
123 #define METRICFIELD_FIRST               0x01
124 #define METRICFIELD_LAST                0x02
125 #define METRICFIELD_SPINSIZE            0x04
126 
127 #define CURRENCYFIELD_FIRST             0x01
128 #define CURRENCYFIELD_LAST              0x02
129 #define CURRENCYFIELD_SPINSIZE          0x04
130 
131 #define DATEFIELD_FIRST                 0x01
132 #define DATEFIELD_LAST                  0x02
133 
134 #define TIMEFIELD_FIRST                 0x01
135 #define TIMEFIELD_LAST                  0x02
136 
137 // Definition der Struktur die alle "ToolBoxItem"-Resourcen haben
138 #define RSC_TOOLBOXITEM_ID              0x0001
139 #define RSC_TOOLBOXITEM_TYPE            0x0002
140 #define RSC_TOOLBOXITEM_STATUS          0x0004
141 #define RSC_TOOLBOXITEM_HELPID          0x0008
142 #define RSC_TOOLBOXITEM_TEXT            0x0010
143 #define RSC_TOOLBOXITEM_HELPTEXT        0x0020
144 #define RSC_TOOLBOXITEM_BITMAP          0x0040
145 #define RSC_TOOLBOXITEM_IMAGE           0x0080
146 #define RSC_TOOLBOXITEM_DISABLE         0x0100
147 #define RSC_TOOLBOXITEM_STATE           0x0200
148 #define RSC_TOOLBOXITEM_HIDE            0x0400
149 #define RSC_TOOLBOXITEM_COMMAND         0x0800
150 #define RSC_TOOLBOXITEM_MENUSTRINGS     0x1000
151 
152 // Definition der Struktur die alle ToolBox-Resourcen haben
153 #define RSC_TOOLBOX_BUTTONTYPE          0x01
154 #define RSC_TOOLBOX_ALIGN               0x02
155 #define RSC_TOOLBOX_LINECOUNT           0x04
156 #define RSC_TOOLBOX_FLOATLINES          0x08
157 #define RSC_TOOLBOX_CUSTOMIZE           0x10
158 #define RSC_TOOLBOX_MENUSTRINGS         0x20
159 #define RSC_TOOLBOX_ITEMIMAGELIST       0x40
160 #define RSC_TOOLBOX_ITEMLIST            0x80
161 
162 // Definition der Struktur die alle MoreButton-Resourcen haben
163 #define RSC_MOREBUTTON_STATE            0x01
164 #define RSC_MOREBUTTON_MAPUNIT          0x02
165 #define RSC_MOREBUTTON_DELTA            0x04
166 
167 // Definition der Struktur die alle FloatingWindow-Resourcen haben
168 #define RSC_FLOATINGWINDOW_WHMAPMODE    0x01
169 #define RSC_FLOATINGWINDOW_WIDTH        0x02
170 #define RSC_FLOATINGWINDOW_HEIGHT       0x04
171 #define RSC_FLOATINGWINDOW_ZOOMIN       0x08
172 
173 // Definition der Struktur die alle DockingWindow-Resourcen haben
174 #define RSC_DOCKINGWINDOW_XYMAPMODE     0x01
175 #define RSC_DOCKINGWINDOW_X             0x02
176 #define RSC_DOCKINGWINDOW_Y             0x04
177 #define RSC_DOCKINGWINDOW_FLOATING      0x08
178 
179 // Definition der Struktur die alle "TabControlItem"-Resourcen haben
180 #define RSC_TABCONTROLITEM_ID           0x0001
181 #define RSC_TABCONTROLITEM_TEXT         0x0002
182 #define RSC_TABCONTROLITEM_PAGERESID    0x0008
183 
184 // Definition der Struktur die alle TabControl-Resourcen haben
185 #define RSC_TABCONTROL_ITEMLIST         0x01
186 
187 // Definition der Struktur des ImageButtons
188 #define RSC_IMAGEBUTTON_IMAGE           0x01
189 #define RSC_IMAGEBUTTON_SYMBOL          0x02
190 #define RSC_IMAGEBUTTON_STATE           0x04
191 
192 // Definition der Struktur des ImageRadioButtons
193 #define RSC_IMAGERADIOBUTTON_IMAGE      0x01
194 
195 // Definition der Struktur des Image
196 #define RSC_IMAGE_IMAGEBITMAP           0x01
197 #define RSC_IMAGE_MASKBITMAP            0x02
198 #define RSC_IMAGE_MASKCOLOR             0x04
199 
200 // Definition der Struktur des Image
201 #define RSC_IMAGELIST_IMAGEBITMAP       0x01
202 #define RSC_IMAGELIST_MASKBITMAP        0x02
203 #define RSC_IMAGELIST_MASKCOLOR         0x04
204 #define RSC_IMAGELIST_IDLIST            0x08
205 #define RSC_IMAGELIST_IDCOUNT           0x10
206 
207 // obsolete, should be removed by MM
208 #define RSC_COLOR                       (RSC_NOTYPE + 0x16)
209 #define TIME_HOUR                       0x01
210 #define TIME_MINUTE                     0x02
211 #define TIME_SECOND                     0x04
212 #define TIME_SEC100                     0x08
213 #define DATE_YEAR                       0x01
214 #define DATE_MONTH                      0x02
215 #define DATE_DAY                        0x04
216 
217 #endif // _TOOLS_RC_H
218