Line data Source code
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 :
21 : #include <stdlib.h>
22 : #include <stdio.h>
23 :
24 : #include <tools/rc.h>
25 : #include <tools/wintypes.hxx>
26 : #include <rsc/rsc-vcl-shared-types.hxx>
27 :
28 : #include <rscmgr.hxx>
29 : #include <rscclass.hxx>
30 : #include <rsccont.hxx>
31 : #include <rscdb.hxx>
32 : #include <rsc/rscsfx.hxx>
33 : #include <rsclex.hxx>
34 : #include <rscyacc.hxx>
35 :
36 0 : void RscTypCont::InsWinBit( RscTop * pClass, const OString& rName,
37 : Atom nVal )
38 : {
39 : RscClient * pClient;
40 :
41 : // Clientvariablen einfuegen
42 : aBaseLst.push_back(
43 0 : pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, &aWinBits, nVal )
44 0 : );
45 0 : Atom nId = aNmTb.Put( rName.getStr(), VARNAME );
46 : pClass->SetVariable( nId, pClient, NULL,
47 0 : VAR_NODATAINST, 0, nWinBitVarId );
48 0 : }
49 :
50 : #define INS_WINBIT( pClass, WinBit ) \
51 : InsWinBit( pClass, #WinBit, n##WinBit##Id );
52 :
53 0 : RscTop * RscTypCont::InitClassMgr()
54 : {
55 : RscTop * pClassMgr;
56 : RscBaseCont * pClass;
57 : Atom nId;
58 :
59 0 : aBaseLst.push_back( pClass = new RscBaseCont( InvalidAtom, RSC_NOTYPE, NULL, false ) );
60 :
61 0 : nId = pHS->getID( "Resource" );
62 0 : pClassMgr = new RscMgr( nId, RSC_RESOURCE, pClass );
63 0 : aNmTb.Put( nId, CLASSNAME, pClassMgr );
64 0 : pClassMgr->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
65 :
66 : // Variablen anlegen
67 : {
68 : RscContWriteSrc * pCont;
69 :
70 : // Variablen anlegen
71 0 : aBaseLst.push_back( pCont = new RscContExtraData( pHS->getID( "ContExtradata" ), RSC_NOTYPE ) );
72 0 : pCont->SetTypeClass( &aShort, &aString );
73 0 : nRsc_EXTRADATA = nId = aNmTb.Put( "ExtraData", VARNAME );
74 0 : pClassMgr->SetVariable( nId, pCont );
75 : };
76 0 : nId = aNmTb.Put( "Comment", VARNAME );
77 0 : pClassMgr->SetVariable( nId, &aString, NULL, VAR_NORC );
78 :
79 0 : pClass->SetTypeClass( pClassMgr );
80 :
81 0 : return pClassMgr;
82 : }
83 :
84 0 : RscTop * RscTypCont::InitClassString( RscTop * pSuper )
85 : {
86 : Atom nId;
87 : RscTop * pClassString;
88 :
89 0 : nId = pHS->getID( "String" );
90 0 : pClassString = new RscClass( nId, RSC_STRING, pSuper );
91 0 : aNmTb.Put( nId, CLASSNAME, pClassString );
92 0 : pClassString->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
93 :
94 : // Variablen anlegen
95 0 : nId = aNmTb.Put( "Text", VARNAME );
96 0 : pClassString->SetVariable( nId, &aLangString );
97 0 : return pClassString;
98 : }
99 :
100 0 : RscTop * RscTypCont::InitClassBitmap( RscTop * pSuper )
101 : {
102 : Atom nId;
103 : RscTop * pClassBitmap;
104 :
105 0 : nId = pHS->getID( "Bitmap" );
106 0 : pClassBitmap = new RscSysDepend( nId, RSC_BITMAP, pSuper );
107 0 : pClassBitmap->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
108 0 : aNmTb.Put( nId, CLASSNAME, pClassBitmap );
109 :
110 : // Die Klasse RscSysDepend behandelt die Variablen
111 : // "FILE" gesondert
112 0 : nId = aNmTb.Put( "File", VARNAME );
113 0 : pClassBitmap->SetVariable( nId, &aLangString, NULL, VAR_NORC );
114 :
115 0 : return pClassBitmap;
116 : }
117 :
118 0 : RscTop * RscTypCont::InitClassColor( RscTop * pSuper, RscEnum * pColor )
119 : {
120 : Atom nId;
121 : RscTop * pClassColor;
122 :
123 : // Klasse anlegen
124 0 : nId = pHS->getID( "Color" );
125 0 : pClassColor = new RscClass( nId, RSC_COLOR, pSuper );
126 0 : pClassColor->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
127 0 : aNmTb.Put( nId, CLASSNAME, pClassColor );
128 :
129 : // Variablen anlegen
130 0 : nId = aNmTb.Put( "Red", VARNAME );
131 0 : pClassColor->SetVariable( nId, &aUShort );
132 0 : nId = aNmTb.Put( "Green", VARNAME );
133 0 : pClassColor->SetVariable( nId, &aUShort );
134 0 : nId = aNmTb.Put( "Blue", VARNAME );
135 0 : pClassColor->SetVariable( nId, &aUShort );
136 0 : nId = aNmTb.Put( "Predefine", VARNAME );
137 0 : pClassColor->SetVariable( nId, pColor );
138 :
139 0 : return pClassColor;
140 : }
141 :
142 0 : RscTop * RscTypCont::InitClassImage( RscTop * pSuper, RscTop * pClassBitmap,
143 : RscTop * pClassColor )
144 : {
145 : Atom nId;
146 : RscTop * pClassImage;
147 :
148 : // Klasse anlegen
149 0 : nId = pHS->getID( "Image" );
150 0 : pClassImage = new RscClass( nId, RSC_IMAGE, pSuper );
151 0 : pClassImage->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
152 0 : aNmTb.Put( nId, CLASSNAME, pClassImage );
153 :
154 : // Variablen anlegen
155 0 : nId = aNmTb.Put( "ImageBitmap", VARNAME );
156 0 : pClassImage->SetVariable( nId, pClassBitmap, NULL, 0, RSC_IMAGE_IMAGEBITMAP );
157 0 : nId = aNmTb.Put( "MaskBitmap", VARNAME );
158 0 : pClassImage->SetVariable( nId, pClassBitmap, NULL, 0, RSC_IMAGE_MASKBITMAP );
159 0 : nId = aNmTb.Put( "MaskColor", VARNAME );
160 : pClassImage->SetVariable( nId, pClassColor, NULL,
161 0 : VAR_SVDYNAMIC, RSC_IMAGE_MASKCOLOR );
162 :
163 0 : return pClassImage;
164 : }
165 :
166 0 : RscTop * RscTypCont::InitClassImageList( RscTop * pSuper,
167 : RscTop * pClassColor, RscCont * pStrLst )
168 : {
169 : Atom nId;
170 : RscTop * pClassImageList;
171 :
172 : // Klasse anlegen
173 0 : nId = pHS->getID( "ImageList" );
174 0 : pClassImageList = new RscClass( nId, RSC_IMAGELIST, pSuper );
175 0 : pClassImageList->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
176 0 : aNmTb.Put( nId, CLASSNAME, pClassImageList );
177 :
178 0 : nId = aNmTb.Put( "Prefix", VARNAME );
179 0 : pClassImageList->SetVariable( nId, &aString );
180 :
181 0 : nId = aNmTb.Put( "MaskColor", VARNAME );
182 : pClassImageList->SetVariable( nId, pClassColor, NULL,
183 0 : VAR_SVDYNAMIC, RSC_IMAGELIST_MASKCOLOR );
184 :
185 0 : RscCont * pCont = new RscCont( pHS->getID( "sal_uInt16 *" ), RSC_NOTYPE );
186 0 : pCont->SetTypeClass( &aIdUShort );
187 0 : aBaseLst.push_back( pCont );
188 0 : nId = aNmTb.Put( "IdList", VARNAME );
189 : pClassImageList->SetVariable( nId, pCont, NULL, 0,
190 0 : RSC_IMAGELIST_IDLIST );
191 :
192 0 : nId = aNmTb.Put( "FileList", VARNAME );
193 0 : pClassImageList->SetVariable( nId, pStrLst );
194 :
195 0 : nId = aNmTb.Put( "IdCount", VARNAME );
196 : pClassImageList->SetVariable( nId, &aUShort, NULL, 0,
197 0 : RSC_IMAGELIST_IDCOUNT );
198 0 : return pClassImageList;
199 : }
200 :
201 0 : RscTop * RscTypCont::InitClassWindow( RscTop * pSuper, RscEnum * pMapUnit,
202 : RscArray * pLangGeo )
203 : {
204 : Atom nId;
205 : RscTop * pClassWindow;
206 :
207 : // Klasse anlegen
208 0 : nId = pHS->getID( "Window" );
209 0 : pClassWindow = new RscClass( nId, RSC_WINDOW, pSuper );
210 0 : pClassWindow->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
211 0 : aNmTb.Put( nId, CLASSNAME, pClassWindow );
212 :
213 : // Variablen anlegen
214 : {
215 : RscFlag * pFlag;
216 : RscClient * pClient;
217 : Atom nVarId, nDisableId, nOutputSizeId;
218 :
219 0 : aBaseLst.push_back( pFlag = new RscFlag( pHS->getID( "FlagWndExtra" ), RSC_NOTYPE ) );
220 :
221 : // Konstanten in Tabelle stellen
222 0 : nDisableId = pHS->getID( "RSWND_DISABLE" );
223 0 : SETCONST( pFlag, nDisableId, RSWND_DISABLED );
224 0 : nOutputSizeId = pHS->getID( "RSWND_OUTPUTSIZE" );
225 0 : SETCONST( pFlag, nOutputSizeId, RSWND_CLIENTSIZE );
226 :
227 : // Variable einfuegen
228 0 : nVarId = aNmTb.Put( "_RscExtraFlags", VARNAME );
229 : pClassWindow->SetVariable( nVarId, pFlag, NULL,
230 0 : VAR_HIDDEN | VAR_NOENUM );
231 :
232 : aBaseLst.push_back(
233 0 : pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, nDisableId )
234 0 : );
235 0 : nId = aNmTb.Put( "Disable", VARNAME );
236 : pClassWindow->SetVariable( nId, pClient, NULL,
237 0 : VAR_NODATAINST, 0, nVarId );
238 :
239 : aBaseLst.push_back(
240 0 : pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, nOutputSizeId )
241 0 : );
242 0 : nId = aNmTb.Put( "OutputSize", VARNAME );
243 : pClassWindow->SetVariable( nId, pClient, NULL,
244 0 : VAR_NODATAINST, 0, nVarId );
245 : }
246 :
247 : pClassWindow->SetVariable( nWinBitVarId, &aWinBits, NULL,
248 0 : VAR_HIDDEN | VAR_NOENUM );
249 :
250 0 : INS_WINBIT(pClassWindow,Border)
251 0 : INS_WINBIT(pClassWindow,Hide)
252 0 : INS_WINBIT(pClassWindow,ClipChildren)
253 0 : INS_WINBIT(pClassWindow,SVLook)
254 0 : InsWinBit( pClassWindow, "DialogControl", nTabControlId );
255 :
256 0 : nId = aNmTb.Put( "HelpID", VARNAME );
257 0 : pClassWindow->SetVariable( nId, &aStringLiteral, NULL, 0, WINDOW_HELPID );
258 :
259 :
260 0 : nRsc_XYMAPMODEId = nId = aNmTb.Put( "_XYMapMode", VARNAME );
261 0 : pClassWindow->SetVariable( nId, pMapUnit, NULL, 0, WINDOW_XYMAPMODE );
262 0 : nRsc_X = nId = aNmTb.Put( "_X", VARNAME );
263 0 : pClassWindow->SetVariable( nId, &aLong, NULL, 0, WINDOW_X );
264 0 : nRsc_Y = nId = aNmTb.Put( "_Y", VARNAME );
265 0 : pClassWindow->SetVariable( nId, &aLong, NULL, 0, WINDOW_Y );
266 :
267 0 : nRsc_WHMAPMODEId = nId = aNmTb.Put( "_WHMapMode", VARNAME );
268 0 : pClassWindow->SetVariable( nId, pMapUnit, NULL, 0, WINDOW_WHMAPMODE );
269 0 : nRsc_WIDTH = nId = aNmTb.Put( "_Width", VARNAME );
270 0 : pClassWindow->SetVariable( nId, &aLong, NULL, 0, WINDOW_WIDTH );
271 0 : nRsc_HEIGHT = nId = aNmTb.Put( "_Height", VARNAME );
272 0 : pClassWindow->SetVariable( nId, &aLong, NULL, 0, WINDOW_HEIGHT );
273 :
274 0 : nRsc_DELTALANG = nId = aNmTb.Put( "DeltaLang", VARNAME );
275 0 : pClassWindow->SetVariable( nId, pLangGeo, NULL, VAR_NORC | VAR_NOENUM);
276 0 : nId = aNmTb.Put( "Text", VARNAME );
277 0 : pClassWindow->SetVariable( nId, &aLangString, NULL, 0, WINDOW_TEXT );
278 0 : nId = aNmTb.Put( "HelpText", VARNAME );
279 0 : pClassWindow->SetVariable( nId, &aLangString, NULL, 0, WINDOW_HELPTEXT );
280 0 : nId = aNmTb.Put( "QuickHelpText", VARNAME );
281 0 : pClassWindow->SetVariable( nId, &aLangString, NULL, 0, WINDOW_QUICKTEXT );
282 0 : nId = aNmTb.Put( "ExtraLong", VARNAME );
283 0 : pClassWindow->SetVariable( nId, &aLong, NULL, 0, WINDOW_EXTRALONG );
284 0 : nId = aNmTb.Put( "UniqueId", VARNAME );
285 0 : pClassWindow->SetVariable( nId, &aString, NULL, 0, WINDOW_UNIQUEID );
286 :
287 : // BorderStyle
288 0 : RscEnum* pBorderStyleEnum = new RscEnum( pHS->getID( "WindowBorderStyle" ), RSC_NOTYPE );
289 0 : aBaseLst.push_back( pBorderStyleEnum );
290 :
291 : // Konstanten in Tabelle stellen
292 0 : SETCONST( pBorderStyleEnum, pHS->getID( "WINDOW_BORDER_NORMAL" ), WINDOW_BORDER_NORMAL );
293 0 : SETCONST( pBorderStyleEnum, pHS->getID( "WINDOW_BORDER_MONO" ), WINDOW_BORDER_MONO );
294 0 : SETCONST( pBorderStyleEnum, pHS->getID( "WINDOW_BORDER_MENU" ), WINDOW_BORDER_MENU );
295 0 : SETCONST( pBorderStyleEnum, pHS->getID( "WINDOW_BORDER_NOBORDER" ), WINDOW_BORDER_NOBORDER );
296 :
297 : // Variable einfuegen
298 0 : nId = aNmTb.Put( "BorderStyle", VARNAME );
299 : pClassWindow->SetVariable( nId, pBorderStyleEnum, NULL,
300 : 0,
301 0 : WINDOW_BORDER_STYLE );
302 :
303 0 : return pClassWindow;
304 : }
305 :
306 0 : RscTop * RscTypCont::InitClassSystemWindow( RscTop * pSuper )
307 : {
308 : Atom nId;
309 : RscTop * pClassSystemWindow;
310 :
311 : // Klasse anlegen
312 0 : nId = pHS->getID( "SystemWindow" );
313 0 : pClassSystemWindow = new RscClass( nId, RSC_SYSWINDOW, pSuper );
314 0 : pClassSystemWindow->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
315 0 : aNmTb.Put( nId, CLASSNAME, pClassSystemWindow );
316 :
317 0 : INS_WINBIT(pClassSystemWindow,Sizeable)
318 0 : INS_WINBIT(pClassSystemWindow,Moveable)
319 0 : InsWinBit( pClassSystemWindow, "Minable", nMinimizeId );
320 0 : InsWinBit( pClassSystemWindow, "Maxable", nMaximizeId );
321 0 : INS_WINBIT(pClassSystemWindow,Closeable)
322 0 : INS_WINBIT(pClassSystemWindow,App)
323 0 : INS_WINBIT(pClassSystemWindow,SysWin)
324 :
325 0 : return pClassSystemWindow ;
326 : }
327 :
328 0 : RscTop * RscTypCont::InitClassWorkWindow( RscTop * pSuper )
329 : {
330 : Atom nId;
331 : RscTop * pClassWorkWindow;
332 :
333 : // Klasse anlegen
334 0 : nId = pHS->getID( "WorkWindow" );
335 0 : pClassWorkWindow = new RscClass( nId, RSC_WORKWIN, pSuper );
336 0 : pClassWorkWindow->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
337 :
338 0 : aNmTb.Put( nId, CLASSNAME, pClassWorkWindow );
339 :
340 : // Variablen anlegen
341 : {
342 : Atom nVarId;
343 : RscEnum * pShow;
344 :
345 0 : aBaseLst.push_back( pShow = new RscEnum( pHS->getID( "EnumShowState" ), RSC_NOTYPE ) );
346 :
347 0 : SETCONST( pShow, "SHOW_NORMAL", WORKWIN_SHOWNORMAL );
348 0 : SETCONST( pShow, "SHOW_MINIMIZED", WORKWIN_SHOWMINIMIZED );
349 0 : SETCONST( pShow, "SHOW_MAXIMIZED", WORKWIN_SHOWMAXIMIZED );
350 :
351 :
352 : // Variable einfuegen
353 0 : nVarId = aNmTb.Put( "Show", VARNAME );
354 0 : pClassWorkWindow->SetVariable( nVarId, pShow, NULL );
355 : }
356 :
357 0 : return pClassWorkWindow;
358 : }
359 :
360 0 : RscTop * RscTypCont::InitClassModalDialog( RscTop * pSuper )
361 : {
362 : Atom nId;
363 : RscTop * pClassDialog;
364 :
365 : // Klasse anlegen
366 0 : nId = pHS->getID( "ModalDialog" );
367 0 : pClassDialog = new RscClass( nId, RSC_MODALDIALOG, pSuper );
368 0 : pClassDialog->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
369 0 : aNmTb.Put( nId, CLASSNAME, pClassDialog );
370 :
371 0 : InsWinBit( pClassDialog, "SysModal", nSysmodalId );
372 :
373 0 : return pClassDialog;
374 : }
375 :
376 0 : RscTop * RscTypCont::InitClassModelessDialog( RscTop * pSuper )
377 : {
378 : Atom nId;
379 : RscTop * pClassDialog;
380 :
381 : // Klasse anlegen
382 0 : nId = pHS->getID( "ModelessDialog" );
383 0 : pClassDialog = new RscClass( nId, RSC_MODELESSDIALOG, pSuper );
384 0 : pClassDialog->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
385 0 : aNmTb.Put( nId, CLASSNAME, pClassDialog );
386 :
387 0 : return pClassDialog;
388 : }
389 :
390 0 : RscTop * RscTypCont::InitClassControl( RscTop * pSuper )
391 : {
392 : Atom nId;
393 : RscTop * pClassControl;
394 :
395 : // Klasse anlegen
396 0 : nId = pHS->getID( "Control" );
397 0 : pClassControl = new RscClass( nId, RSC_CONTROL, pSuper );
398 0 : pClassControl->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
399 0 : aNmTb.Put( nId, CLASSNAME, pClassControl );
400 :
401 0 : InsWinBit( pClassControl, "TabStop", nTabstopId );
402 0 : INS_WINBIT(pClassControl,Group)
403 :
404 0 : return pClassControl;
405 : }
406 :
407 0 : RscTop * RscTypCont::InitClassCheckBox( RscTop * pSuper )
408 : {
409 : Atom nId;
410 : RscTop * pClassCheckBox;
411 :
412 : // Klasse anlegen
413 0 : nId = pHS->getID( "CheckBox" );
414 0 : pClassCheckBox = new RscClass( nId, RSC_CHECKBOX, pSuper );
415 0 : pClassCheckBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
416 0 : aNmTb.Put( nId, CLASSNAME, pClassCheckBox );
417 :
418 : // Variablen anlegen
419 0 : INS_WINBIT( pClassCheckBox, WordBreak )
420 0 : INS_WINBIT( pClassCheckBox, Top )
421 0 : INS_WINBIT( pClassCheckBox, VCenter )
422 0 : INS_WINBIT( pClassCheckBox, Bottom )
423 :
424 0 : nId = aNmTb.Put( "Check", VARNAME );
425 0 : pClassCheckBox->SetVariable( nId, &aBool );
426 :
427 0 : return pClassCheckBox;
428 : }
429 :
430 0 : RscTop * RscTypCont::InitClassPushButton( RscTop * pSuper )
431 : {
432 : Atom nId;
433 : RscTop * pClassPushButton;
434 :
435 : // Klasse anlegen
436 0 : nId = pHS->getID( "PushButton" );
437 0 : pClassPushButton = new RscClass( nId, RSC_PUSHBUTTON, pSuper );
438 0 : pClassPushButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
439 0 : aNmTb.Put( nId, CLASSNAME, pClassPushButton );
440 :
441 0 : InsWinBit( pClassPushButton, "DefButton", nDefaultId );
442 0 : INS_WINBIT( pClassPushButton, Top )
443 0 : INS_WINBIT( pClassPushButton, VCenter )
444 0 : INS_WINBIT( pClassPushButton, Bottom )
445 :
446 0 : return pClassPushButton;
447 : }
448 :
449 0 : RscTop * RscTypCont::InitClassTriStateBox( RscTop * pSuper,
450 : RscEnum * pTriState )
451 : {
452 : Atom nId;
453 : RscTop * pClassTriStateBox;
454 :
455 0 : nId = pHS->getID( "TriStateBox" );
456 0 : pClassTriStateBox = new RscClass( nId, RSC_TRISTATEBOX, pSuper );
457 0 : pClassTriStateBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
458 0 : aNmTb.Put( nId, CLASSNAME, pClassTriStateBox );
459 :
460 : // Variablen anlegen
461 0 : nId = aNmTb.Put( "State", VARNAME );
462 0 : pClassTriStateBox->SetVariable( nId, pTriState );
463 0 : nId = aNmTb.Put( "TriStateDisable", VARNAME );
464 0 : pClassTriStateBox->SetVariable( nId, &aBool );
465 :
466 0 : return pClassTriStateBox;
467 : }
468 :
469 0 : RscTop * RscTypCont::InitClassMenuButton( RscTop * pSuper,
470 : RscTop * pClassMenu )
471 : {
472 : Atom nId;
473 : RscTop * pClassMenuButton;
474 :
475 0 : nId = pHS->getID( "MenuButton" );
476 0 : pClassMenuButton = new RscClass( nId, RSC_MENUBUTTON, pSuper );
477 0 : pClassMenuButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
478 0 : aNmTb.Put( nId, CLASSNAME, pClassMenuButton );
479 :
480 : // Variablen anlegen
481 0 : nId = aNmTb.Put( "ButtonMenu", VARNAME );
482 : pClassMenuButton->SetVariable( nId, pClassMenu, NULL, 0,
483 0 : RSCMENUBUTTON_MENU );
484 :
485 0 : return pClassMenuButton;
486 : }
487 :
488 :
489 0 : RscTop * RscTypCont::InitClassImageButton( RscTop * pSuper,
490 : RscTop * pClassImage,
491 : RscEnum * pTriState )
492 : {
493 : Atom nId;
494 : RscTop * pClassImageButton;
495 :
496 : // Klasse anlegen
497 0 : nId = pHS->getID( "ImageButton" );
498 0 : pClassImageButton = new RscClass( nId, RSC_IMAGEBUTTON, pSuper );
499 0 : pClassImageButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
500 0 : aNmTb.Put( nId, CLASSNAME, pClassImageButton );
501 :
502 : // Variablen anlegen
503 : {
504 0 : nId = aNmTb.Put( "ButtonImage", VARNAME );
505 : pClassImageButton->SetVariable( nId, pClassImage, NULL, 0,
506 0 : RSC_IMAGEBUTTON_IMAGE );
507 : }
508 : // Variablen anlegen
509 : {
510 : Atom nVarId;
511 : RscEnum * pSymbol;
512 :
513 0 : aBaseLst.push_back( pSymbol = new RscEnum( pHS->getID( "EnumSymbolButton" ), RSC_NOTYPE ) );
514 :
515 0 : SETCONST( pSymbol, "IMAGEBUTTON_DONTKNOW", SYMBOL_DONTKNOW );
516 0 : SETCONST( pSymbol, "IMAGEBUTTON_IMAGE", SYMBOL_IMAGE );
517 0 : SETCONST( pSymbol, "IMAGEBUTTON_ARROW_UP", SYMBOL_ARROW_UP );
518 0 : SETCONST( pSymbol, "IMAGEBUTTON_ARROW_DOWN", SYMBOL_ARROW_DOWN );
519 0 : SETCONST( pSymbol, "IMAGEBUTTON_ARROW_LEFT", SYMBOL_ARROW_LEFT );
520 0 : SETCONST( pSymbol, "IMAGEBUTTON_ARROW_RIGHT", SYMBOL_ARROW_RIGHT );
521 0 : SETCONST( pSymbol, "IMAGEBUTTON_SPIN_UP", SYMBOL_SPIN_UP );
522 0 : SETCONST( pSymbol, "IMAGEBUTTON_SPIN_DOWN", SYMBOL_SPIN_DOWN );
523 0 : SETCONST( pSymbol, "IMAGEBUTTON_SPIN_LEFT", SYMBOL_SPIN_LEFT );
524 0 : SETCONST( pSymbol, "IMAGEBUTTON_SPIN_RIGHT", SYMBOL_SPIN_RIGHT );
525 0 : SETCONST( pSymbol, "IMAGEBUTTON_FIRST", SYMBOL_FIRST );
526 0 : SETCONST( pSymbol, "IMAGEBUTTON_LAST", SYMBOL_LAST );
527 0 : SETCONST( pSymbol, "IMAGEBUTTON_PREV", SYMBOL_PREV );
528 0 : SETCONST( pSymbol, "IMAGEBUTTON_NEXT", SYMBOL_NEXT );
529 0 : SETCONST( pSymbol, "IMAGEBUTTON_PAGEUP", SYMBOL_PAGEUP );
530 0 : SETCONST( pSymbol, "IMAGEBUTTON_PAGEDOWN", SYMBOL_PAGEDOWN );
531 0 : SETCONST( pSymbol, "IMAGEBUTTON_PLAY", SYMBOL_PLAY );
532 0 : SETCONST( pSymbol, "IMAGEBUTTON_REVERSEPLAY", SYMBOL_REVERSEPLAY );
533 0 : SETCONST( pSymbol, "IMAGEBUTTON_STOP", SYMBOL_STOP );
534 0 : SETCONST( pSymbol, "IMAGEBUTTON_PAUSE", SYMBOL_PAUSE );
535 0 : SETCONST( pSymbol, "IMAGEBUTTON_WINDSTART", SYMBOL_WINDSTART );
536 0 : SETCONST( pSymbol, "IMAGEBUTTON_WINDEND", SYMBOL_WINDEND );
537 0 : SETCONST( pSymbol, "IMAGEBUTTON_WINDBACKWARD", SYMBOL_WINDBACKWARD );
538 0 : SETCONST( pSymbol, "IMAGEBUTTON_WINDFORWARD", SYMBOL_WINDFORWARD );
539 :
540 : // Variable einfuegen
541 0 : nVarId = aNmTb.Put( "Symbol", VARNAME );
542 : pClassImageButton->SetVariable( nVarId, pSymbol, NULL, 0,
543 0 : RSC_IMAGEBUTTON_SYMBOL );
544 : }
545 0 : nId = aNmTb.Put( "State", VARNAME );
546 : pClassImageButton->SetVariable( nId, pTriState, NULL, 0,
547 0 : RSC_IMAGEBUTTON_STATE );
548 :
549 0 : INS_WINBIT(pClassImageButton,Repeat)
550 0 : INS_WINBIT(pClassImageButton,SmallStyle)
551 0 : INS_WINBIT(pClassImageButton,RectStyle)
552 :
553 0 : return pClassImageButton;
554 : }
555 :
556 0 : RscTop * RscTypCont::InitClassEdit( RscTop * pSuper )
557 : {
558 : Atom nId;
559 : RscTop * pClassEdit;
560 :
561 : // Klasse anlegen
562 0 : nId = pHS->getID( "Edit" );
563 0 : pClassEdit = new RscClass( nId, RSC_EDIT, pSuper );
564 0 : pClassEdit->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
565 0 : aNmTb.Put( nId, CLASSNAME, pClassEdit );
566 :
567 0 : INS_WINBIT(pClassEdit,Left)
568 0 : INS_WINBIT(pClassEdit,Center)
569 0 : INS_WINBIT(pClassEdit,Right)
570 0 : INS_WINBIT(pClassEdit,PassWord)
571 0 : INS_WINBIT(pClassEdit,ReadOnly)
572 :
573 0 : nId = aNmTb.Put( "MaxTextLength", VARNAME );
574 0 : pClassEdit->SetVariable( nId, &aUShort );
575 :
576 0 : return pClassEdit;
577 : }
578 :
579 0 : RscTop * RscTypCont::InitClassMultiLineEdit( RscTop * pSuper )
580 : {
581 : Atom nId;
582 : RscTop * pClassMultiLineEdit;
583 :
584 : // Klasse anlegen
585 0 : nId = pHS->getID( "MultiLineEdit" );
586 0 : pClassMultiLineEdit = new RscClass( nId, RSC_MULTILINEEDIT, pSuper );
587 0 : pClassMultiLineEdit->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
588 :
589 0 : aNmTb.Put( nId, CLASSNAME, pClassMultiLineEdit );
590 :
591 0 : INS_WINBIT( pClassMultiLineEdit, HScroll );
592 0 : INS_WINBIT( pClassMultiLineEdit, VScroll );
593 0 : INS_WINBIT( pClassMultiLineEdit, IgnoreTab );
594 0 : INS_WINBIT( pClassMultiLineEdit, AutoVScroll )
595 :
596 0 : return pClassMultiLineEdit;
597 : }
598 :
599 0 : RscTop * RscTypCont::InitClassScrollBar( RscTop * pSuper )
600 : {
601 : Atom nId;
602 : RscTop * pClassScrollBar;
603 :
604 : // Klasse anlegen
605 0 : nId = pHS->getID( "ScrollBar" );
606 0 : pClassScrollBar = new RscClass( nId, RSC_SCROLLBAR, pSuper );
607 0 : pClassScrollBar->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
608 0 : aNmTb.Put( nId, CLASSNAME, pClassScrollBar );
609 :
610 : // Variablen anlegen
611 0 : nId = aNmTb.Put( "MinPos", VARNAME );
612 0 : pClassScrollBar->SetVariable( nId, &aShort );
613 : {
614 0 : RSCINST aDfltI;
615 :
616 0 : aDfltI = aShort.Create( NULL, RSCINST(), false );
617 0 : aDfltI.pClass->SetNumber( aDfltI, 100 );
618 : // aDfltI.pClass->MakeDefault( aDfltI );
619 :
620 0 : nId = aNmTb.Put( "MaxPos", VARNAME );
621 0 : pClassScrollBar->SetVariable( nId, &aShort, &aDfltI );
622 : }
623 0 : nId = aNmTb.Put( "ThumbPos", VARNAME );
624 0 : pClassScrollBar->SetVariable( nId, &aShort );
625 : {
626 0 : RSCINST aDfltI;
627 :
628 0 : aDfltI = aShort.Create( NULL, RSCINST(), false );
629 0 : aDfltI.pClass->SetNumber( aDfltI, 1 );
630 : // aDfltI.pClass->MakeDefault( aDfltI );
631 :
632 0 : nId = aNmTb.Put( "PageSize", VARNAME);
633 0 : pClassScrollBar->SetVariable( nId, &aShort, &aDfltI );
634 : }
635 : {
636 0 : RSCINST aDfltI;
637 :
638 0 : aDfltI = aShort.Create( NULL, RSCINST(), false );
639 0 : aDfltI.pClass->SetNumber( aDfltI, 1 );
640 : // aDfltI.pClass->MakeDefault( aDfltI );
641 0 : nId = aNmTb.Put( "LineSize", VARNAME );
642 0 : pClassScrollBar->SetVariable( nId, &aShort, &aDfltI );
643 : }
644 0 : nId = aNmTb.Put( "VisibleSize", VARNAME );
645 0 : pClassScrollBar->SetVariable( nId, &aShort );
646 :
647 0 : INS_WINBIT( pClassScrollBar, HScroll );
648 0 : INS_WINBIT( pClassScrollBar, VScroll );
649 0 : INS_WINBIT( pClassScrollBar, Drag )
650 :
651 0 : return pClassScrollBar;
652 : }
653 :
654 0 : RscTop * RscTypCont::InitClassListBox( RscTop * pSuper, RscArray * pStrLst )
655 : {
656 : Atom nId;
657 : RscTop * pClassListBox;
658 :
659 : // Klasse anlegen
660 0 : nId = pHS->getID( "ListBox" );
661 0 : pClassListBox = new RscClass( nId, RSC_LISTBOX, pSuper );
662 0 : pClassListBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
663 0 : aNmTb.Put( nId, CLASSNAME, pClassListBox );
664 :
665 : // Variablen anlegen
666 0 : INS_WINBIT(pClassListBox,Sort)
667 0 : INS_WINBIT(pClassListBox,DropDown)
668 0 : INS_WINBIT(pClassListBox,HScroll);
669 0 : INS_WINBIT(pClassListBox,VScroll);
670 0 : INS_WINBIT(pClassListBox,AutoSize)
671 0 : INS_WINBIT(pClassListBox,AutoHScroll)
672 0 : INS_WINBIT(pClassListBox,DDExtraWidth)
673 :
674 : {
675 0 : RSCINST aDflt = aUShort.Create( NULL, RSCINST(), false );
676 0 : aDflt.pClass->SetNumber( aDflt, (sal_uInt16)0xFFFF );
677 0 : nId = aNmTb.Put( "CurPos", VARNAME );
678 0 : pClassListBox->SetVariable( nId, &aUShort, &aDflt );
679 : }
680 0 : nId = aNmTb.Put( "StringList", VARNAME );
681 0 : pClassListBox->SetVariable( nId, pStrLst );
682 :
683 0 : return pClassListBox;
684 : }
685 :
686 0 : RscTop * RscTypCont::InitClassMultiListBox( RscTop * pSuper )
687 : {
688 : Atom nId;
689 : RscTop * pClassMultiListBox;
690 :
691 : // Klasse anlegen
692 0 : nId = pHS->getID( "MultiListBox" );
693 0 : pClassMultiListBox = new RscClass( nId, RSC_MULTILISTBOX, pSuper );
694 0 : pClassMultiListBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
695 0 : aNmTb.Put( nId, CLASSNAME, pClassMultiListBox );
696 :
697 0 : INS_WINBIT(pClassMultiListBox,SimpleMode)
698 :
699 0 : return pClassMultiListBox;
700 : }
701 :
702 0 : RscTop * RscTypCont::InitClassComboBox( RscTop * pSuper, RscArray * pStrLst )
703 : {
704 : Atom nId;
705 : RscTop * pClassComboBox;
706 :
707 : // Klasse anlegen
708 0 : nId = pHS->getID( "ComboBox" );
709 0 : pClassComboBox = new RscClass( nId, RSC_COMBOBOX, pSuper );
710 0 : pClassComboBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
711 0 : aNmTb.Put( nId, CLASSNAME, pClassComboBox );
712 :
713 : // Variablen anlegen
714 0 : INS_WINBIT(pClassComboBox,DropDown)
715 0 : INS_WINBIT(pClassComboBox,Sort)
716 0 : INS_WINBIT(pClassComboBox,HScroll);
717 0 : INS_WINBIT(pClassComboBox,VScroll);
718 0 : INS_WINBIT(pClassComboBox,AutoSize)
719 0 : INS_WINBIT(pClassComboBox,AutoHScroll)
720 0 : INS_WINBIT(pClassComboBox,DDExtraWidth)
721 :
722 0 : nId = aNmTb.Put( "StringList", VARNAME );
723 0 : pClassComboBox->SetVariable( nId, pStrLst );
724 :
725 0 : return pClassComboBox;
726 : }
727 :
728 0 : RscTop * RscTypCont::InitClassFixedText( RscTop * pSuper )
729 : {
730 : Atom nId;
731 : RscTop * pClassFixedText;
732 :
733 : // Klasse anlegen
734 0 : nId = pHS->getID( "FixedText" );
735 0 : pClassFixedText = new RscClass( nId, RSC_TEXT, pSuper );
736 0 : pClassFixedText->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
737 0 : aNmTb.Put( nId, CLASSNAME, pClassFixedText );
738 :
739 : // Variablen anlegen
740 0 : INS_WINBIT(pClassFixedText,Left)
741 0 : INS_WINBIT(pClassFixedText,Center)
742 0 : INS_WINBIT(pClassFixedText,Right)
743 0 : INS_WINBIT(pClassFixedText,WordBreak)
744 0 : INS_WINBIT(pClassFixedText,LeftLabel)
745 0 : INS_WINBIT(pClassFixedText,NoLabel)
746 0 : INS_WINBIT(pClassFixedText,Top)
747 0 : INS_WINBIT(pClassFixedText,VCenter)
748 0 : INS_WINBIT(pClassFixedText,Bottom)
749 :
750 0 : return pClassFixedText;
751 : }
752 :
753 0 : RscTop * RscTypCont::InitClassFixedBitmap( RscTop * pSuper, RscTop * pClassBitmap )
754 : {
755 : Atom nId;
756 : RscTop * pClassFixedBitmap;
757 :
758 : // Klasse anlegen
759 0 : nId = pHS->getID( "FixedBitmap" );
760 0 : pClassFixedBitmap = new RscClass( nId, RSC_FIXEDBITMAP, pSuper );
761 0 : pClassFixedBitmap->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
762 0 : aNmTb.Put( nId, CLASSNAME, pClassFixedBitmap );
763 :
764 0 : INS_WINBIT(pClassFixedBitmap,Scale)
765 :
766 : // Variablen anlegen
767 0 : nId = aNmTb.Put( "Fixed", VARNAME );
768 0 : pClassFixedBitmap->SetVariable( nId, pClassBitmap, 0, 0, RSC_FIXEDBITMAP_BITMAP );
769 :
770 0 : return pClassFixedBitmap;
771 : }
772 :
773 0 : RscTop * RscTypCont::InitClassFixedImage( RscTop * pSuper, RscTop * pClassImage )
774 : {
775 : Atom nId;
776 : RscTop * pClassFixedImage;
777 :
778 : // Klasse anlegen
779 0 : nId = pHS->getID( "FixedImage" );
780 0 : pClassFixedImage = new RscClass( nId, RSC_FIXEDIMAGE, pSuper );
781 0 : pClassFixedImage->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
782 0 : aNmTb.Put( nId, CLASSNAME, pClassFixedImage );
783 :
784 : // Variablen anlegen
785 0 : nId = aNmTb.Put( "Fixed", VARNAME );
786 0 : pClassFixedImage->SetVariable( nId, pClassImage, 0, 0, RSC_FIXEDIMAGE_IMAGE );
787 :
788 0 : return pClassFixedImage;
789 : }
790 :
791 0 : RscTop * RscTypCont::InitClassRadioButton( RscTop * pSuper )
792 : {
793 : Atom nId;
794 : RscTop * pClassRadioButton;
795 :
796 : // Klasse anlegen
797 0 : nId = pHS->getID( "RadioButton" );
798 0 : pClassRadioButton = new RscClass( nId, RSC_RADIOBUTTON, pSuper );
799 0 : pClassRadioButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
800 0 : aNmTb.Put( nId, CLASSNAME, pClassRadioButton );
801 :
802 : // Variablen anlegen
803 0 : INS_WINBIT( pClassRadioButton, WordBreak )
804 0 : INS_WINBIT( pClassRadioButton, Top )
805 0 : INS_WINBIT( pClassRadioButton, VCenter )
806 0 : INS_WINBIT( pClassRadioButton, Bottom )
807 :
808 0 : nId = aNmTb.Put( "Check", VARNAME );
809 0 : pClassRadioButton->SetVariable( nId, &aBool );
810 :
811 0 : return pClassRadioButton;
812 : }
813 :
814 0 : RscTop * RscTypCont::InitClassKeyCode( RscTop * pSuper, RscEnum * pKey )
815 : {
816 : Atom nId;
817 : RscTop * pClassKeyCode;
818 :
819 : // Klasse anlegen
820 0 : nId = pHS->getID( "KeyCode" );
821 0 : pClassKeyCode = new RscClass( nId, RSC_KEYCODE, pSuper );
822 0 : aNmTb.Put( nId, CLASSNAME, pClassKeyCode );
823 :
824 : // Variablen anlegen
825 0 : nId = aNmTb.Put( "Code", VARNAME );
826 0 : pClassKeyCode->SetVariable( nId, pKey );
827 :
828 : {
829 : RscFlag * pFlag;
830 : RscClient * pClient;
831 : Atom nVarId, nShiftId, nMod1Id, nMod2Id;
832 :
833 0 : aBaseLst.push_back( pFlag = new RscFlag( pHS->getID( "FlagKeyModifier" ), RSC_NOTYPE ) );
834 :
835 : // Konstanten in Tabelle stellen
836 0 : nShiftId = pHS->getID( "KEY_SHIFT" );
837 0 : SETCONST( pFlag, nShiftId, KEY_SHIFT );
838 0 : nMod1Id = pHS->getID( "KEY_MOD1" );
839 0 : SETCONST( pFlag, nMod1Id, KEY_MOD1 );
840 0 : nMod2Id = pHS->getID( "KEY_MOD2" );
841 0 : SETCONST( pFlag, nMod2Id, KEY_MOD2 );
842 :
843 : // Variable einfuegen
844 0 : nVarId = aNmTb.Put( "_ModifierFlags", VARNAME );
845 : pClassKeyCode->SetVariable( nVarId, pFlag, NULL,
846 0 : VAR_HIDDEN | VAR_NOENUM );
847 :
848 : // Clientvariablen einfuegen
849 : aBaseLst.push_back(
850 0 : pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, nShiftId )
851 0 : );
852 0 : nId = aNmTb.Put( "Shift", VARNAME );
853 : pClassKeyCode->SetVariable( nId, pClient, NULL,
854 0 : VAR_NODATAINST, 0, nVarId );
855 :
856 : aBaseLst.push_back(
857 0 : pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, nMod1Id )
858 0 : );
859 0 : nId = aNmTb.Put( "Modifier1", VARNAME );
860 : pClassKeyCode->SetVariable( nId, pClient, NULL,
861 0 : VAR_NODATAINST, 0, nVarId );
862 :
863 :
864 : aBaseLst.push_back(
865 0 : pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, nMod2Id )
866 0 : );
867 0 : nId = aNmTb.Put( "Modifier2", VARNAME );
868 : pClassKeyCode->SetVariable( nId, pClient, NULL,
869 0 : VAR_NODATAINST, 0, nVarId );
870 : }
871 : {
872 : Atom nVarId;
873 : RscEnum * pKeyFunc;
874 :
875 0 : aBaseLst.push_back( pKeyFunc = new RscEnum( pHS->getID( "EnumKeyFunc" ), RSC_NOTYPE ) );
876 :
877 0 : SETCONST( pKeyFunc, "KEYFUNC_DONTKNOW", KEYFUNC_DONTKNOW );
878 0 : SETCONST( pKeyFunc, "KEYFUNC_NEW", KEYFUNC_NEW );
879 0 : SETCONST( pKeyFunc, "KEYFUNC_OPEN", KEYFUNC_OPEN );
880 0 : SETCONST( pKeyFunc, "KEYFUNC_SAVE", KEYFUNC_SAVE );
881 0 : SETCONST( pKeyFunc, "KEYFUNC_SAVEAS", KEYFUNC_SAVEAS );
882 0 : SETCONST( pKeyFunc, "KEYFUNC_PRINT", KEYFUNC_PRINT );
883 0 : SETCONST( pKeyFunc, "KEYFUNC_CLOSE", KEYFUNC_CLOSE );
884 0 : SETCONST( pKeyFunc, "KEYFUNC_QUIT", KEYFUNC_QUIT );
885 0 : SETCONST( pKeyFunc, "KEYFUNC_CUT", KEYFUNC_CUT );
886 0 : SETCONST( pKeyFunc, "KEYFUNC_COPY", KEYFUNC_COPY );
887 0 : SETCONST( pKeyFunc, "KEYFUNC_PASTE", KEYFUNC_PASTE );
888 0 : SETCONST( pKeyFunc, "KEYFUNC_UNDO", KEYFUNC_UNDO );
889 0 : SETCONST( pKeyFunc, "KEYFUNC_REDO", KEYFUNC_REDO );
890 0 : SETCONST( pKeyFunc, "KEYFUNC_DELETE", KEYFUNC_DELETE );
891 0 : SETCONST( pKeyFunc, "KEYFUNC_REPEAT", KEYFUNC_REPEAT );
892 0 : SETCONST( pKeyFunc, "KEYFUNC_FIND", KEYFUNC_FIND );
893 0 : SETCONST( pKeyFunc, "KEYFUNC_PROPERTIES", KEYFUNC_PROPERTIES );
894 0 : SETCONST( pKeyFunc, "KEYFUNC_FRONT", KEYFUNC_FRONT );
895 0 : SETCONST( pKeyFunc, "KEYFUNC_FINDBACKWARD", KEYFUNC_FINDBACKWARD );
896 : // Variable einfuegen
897 0 : nVarId = aNmTb.Put( "Function", VARNAME );
898 0 : pClassKeyCode->SetVariable( nVarId, pKeyFunc, NULL );
899 : }
900 :
901 0 : return pClassKeyCode;
902 : }
903 :
904 0 : RscTop * RscTypCont::InitClassAccelItem( RscTop * pSuper,
905 : RscTop * pClassKeyCode )
906 : {
907 : Atom nId;
908 : RscTop * pClassAccelItem;
909 :
910 : // Klasse anlegen
911 0 : nId = pHS->getID( "AcceleratorItem" );
912 0 : pClassAccelItem = new RscClass( nId, RSC_ACCELITEM, pSuper );
913 0 : aNmTb.Put( nId, CLASSNAME, pClassAccelItem );
914 :
915 : // Variablen anlegen
916 0 : nId = aNmTb.Put( "Identifier", VARNAME );
917 0 : pClassAccelItem->SetVariable( nId, &aIdNoZeroUShort );
918 0 : nId = aNmTb.Put( "Disable", VARNAME );
919 0 : pClassAccelItem->SetVariable( nId, &aBool );
920 0 : nId = aNmTb.Put( "Key", VARNAME );
921 : pClassAccelItem->SetVariable( nId, pClassKeyCode, NULL, 0,
922 0 : ACCELITEM_KEY );
923 :
924 0 : return pClassAccelItem;
925 : }
926 :
927 0 : RscTop * RscTypCont::InitClassAccel( RscTop * pSuper, RscTop * pClassAccelItem )
928 : {
929 : Atom nId;
930 : RscTop * pClassAccel;
931 :
932 : // Klasse anlegen
933 0 : nId = pHS->getID( "Accelerator" );
934 0 : pClassAccel = new RscClass( nId, RSC_ACCEL, pSuper );
935 0 : pClassAccel->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
936 0 : aNmTb.Put( nId, CLASSNAME, pClassAccel );
937 :
938 : // Variablen anlegen
939 0 : nId = aNmTb.Put( "HelpText", VARNAME );
940 0 : pClassAccel->SetVariable( nId, &aLangString );
941 : {
942 : RscCont * pCont;
943 :
944 : aBaseLst.push_back(
945 0 : pCont = new RscCont( pHS->getID( "ContAcceleratorKey" ), RSC_NOTYPE )
946 0 : );
947 0 : pCont->SetTypeClass( pClassAccelItem );
948 0 : nId = aNmTb.Put( "ItemList", VARNAME );
949 0 : pClassAccel->SetVariable( nId, pCont );
950 : }
951 :
952 0 : return pClassAccel;
953 : }
954 :
955 0 : RscTop * RscTypCont::InitClassMenuItem( RscTop * pSuper,
956 : RscTop * pClassBitmap,
957 : RscTop * pClassKeyCode )
958 : {
959 : Atom nId;
960 : RscTop * pClassMenuItem;
961 :
962 : // Klasse anlegen
963 0 : nId = pHS->getID( "MenuItem" );
964 0 : pClassMenuItem = new RscClass( nId, RSC_MENUITEM, pSuper );
965 0 : aNmTb.Put( nId, CLASSNAME, pClassMenuItem );
966 :
967 : // Variablen anlegen
968 0 : nId = aNmTb.Put( "Separator", VARNAME );
969 : pClassMenuItem->SetVariable( nId, &aBool, NULL, 0,
970 0 : RSC_MENUITEM_SEPARATOR );
971 0 : nId = aNmTb.Put( "Identifier", VARNAME );
972 : pClassMenuItem->SetVariable( nId, &aIdNoZeroUShort, NULL, 0,
973 0 : RSC_MENUITEM_ID );
974 : {
975 : RscFlag * pFlag;
976 : RscClient * pClient;
977 : Atom nVarId, nAutoCheckId, nRadioCheckId;
978 : Atom nCheckableId, nAboutId, nHelpId;
979 :
980 0 : aBaseLst.push_back( pFlag = new RscFlag( pHS->getID( "FlagMenuState" ), RSC_NOTYPE ) );
981 :
982 : // Konstanten in Tabelle stellen
983 0 : nCheckableId = pHS->getID( "MIB_CHECKABLE" );
984 0 : SETCONST( pFlag, nCheckableId, MIB_CHECKABLE );
985 0 : nAutoCheckId = pHS->getID( "MIB_AUTOCHECK" );
986 0 : SETCONST( pFlag, nAutoCheckId, MIB_AUTOCHECK );
987 0 : nRadioCheckId = pHS->getID( "MIB_RADIOCHECK" );
988 0 : SETCONST( pFlag, nRadioCheckId, MIB_RADIOCHECK );
989 0 : nAboutId = pHS->getID( "MIB_ABOUT" );
990 0 : SETCONST( pFlag, nAboutId, MIB_ABOUT );
991 0 : nHelpId = pHS->getID( "MIB_HELP" );
992 0 : SETCONST( pFlag, nHelpId, MIB_HELP );
993 :
994 : // Variable einfuegen
995 0 : nVarId = aNmTb.Put( "_MenuItemFlags", VARNAME );
996 : pClassMenuItem->SetVariable( nVarId, pFlag, NULL,
997 : VAR_HIDDEN | VAR_NOENUM,
998 0 : RSC_MENUITEM_STATUS );
999 :
1000 : // Clientvariablen einfuegen
1001 : aBaseLst.push_back(
1002 0 : pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, nCheckableId )
1003 0 : );
1004 0 : nId = aNmTb.Put( "Checkable", VARNAME );
1005 : pClassMenuItem->SetVariable( nId, pClient, NULL,
1006 0 : VAR_NODATAINST, 0, nVarId );
1007 :
1008 : aBaseLst.push_back(
1009 0 : pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, nAutoCheckId )
1010 0 : );
1011 0 : nId = aNmTb.Put( "AutoCheck", VARNAME );
1012 : pClassMenuItem->SetVariable( nId, pClient, NULL,
1013 0 : VAR_NODATAINST, 0, nVarId );
1014 :
1015 : aBaseLst.push_back(
1016 0 : pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, nRadioCheckId )
1017 0 : );
1018 0 : nId = aNmTb.Put( "RadioCheck", VARNAME );
1019 : pClassMenuItem->SetVariable( nId, pClient, NULL,
1020 0 : VAR_NODATAINST, 0, nVarId );
1021 :
1022 : aBaseLst.push_back(
1023 0 : pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, nAboutId )
1024 0 : );
1025 0 : nId = aNmTb.Put( "About", VARNAME );
1026 : pClassMenuItem->SetVariable( nId, pClient, NULL,
1027 0 : VAR_NODATAINST, 0, nVarId );
1028 :
1029 : aBaseLst.push_back(
1030 0 : pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, nHelpId )
1031 0 : );
1032 0 : nId = aNmTb.Put( "Help", VARNAME );
1033 : pClassMenuItem->SetVariable( nId, pClient, NULL,
1034 0 : VAR_NODATAINST, 0, nVarId );
1035 :
1036 : }
1037 0 : nId = aNmTb.Put( "Text", VARNAME );
1038 : pClassMenuItem->SetVariable( nId, &aLangString, NULL, 0,
1039 0 : RSC_MENUITEM_TEXT );
1040 0 : nId = aNmTb.Put( "ItemBitmap", VARNAME );
1041 : pClassMenuItem->SetVariable( nId, pClassBitmap, NULL, 0,
1042 0 : RSC_MENUITEM_BITMAP );
1043 0 : nId = aNmTb.Put( "HelpText", VARNAME );
1044 : pClassMenuItem->SetVariable( nId, &aLangString, NULL, 0,
1045 0 : RSC_MENUITEM_HELPTEXT );
1046 0 : nId = aNmTb.Put( "HelpID", VARNAME );
1047 : pClassMenuItem->SetVariable( nId, &aStringLiteral, NULL, 0,
1048 0 : RSC_MENUITEM_HELPID );
1049 0 : nId = aNmTb.Put( "AccelKey", VARNAME );
1050 : pClassMenuItem->SetVariable( nId, pClassKeyCode, NULL, 0,
1051 0 : RSC_MENUITEM_KEYCODE );
1052 0 : nId = aNmTb.Put( "Check", VARNAME );
1053 : pClassMenuItem->SetVariable( nId, &aBool, NULL, 0,
1054 0 : RSC_MENUITEM_CHECKED );
1055 0 : nId = aNmTb.Put( "Disable", VARNAME );
1056 : pClassMenuItem->SetVariable( nId, &aBool, NULL, 0,
1057 0 : RSC_MENUITEM_DISABLE );
1058 0 : nId = aNmTb.Put( "Command", VARNAME );
1059 : pClassMenuItem->SetVariable( nId, &aString, NULL, 0,
1060 0 : RSC_MENUITEM_COMMAND );
1061 :
1062 0 : return pClassMenuItem;
1063 : }
1064 :
1065 0 : RscTop * RscTypCont::InitClassMenu( RscTop * pSuper,
1066 : RscTop * pClassMenuItem )
1067 : {
1068 : Atom nId;
1069 : RscTop * pClassMenu;
1070 :
1071 : // Klasse anlegen
1072 0 : nId = pHS->getID( "Menu" );
1073 0 : pClassMenu = new RscClass( nId, RSC_MENU, pSuper );
1074 0 : pClassMenu->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
1075 0 : aNmTb.Put( nId, CLASSNAME, pClassMenu );
1076 :
1077 : // Variablen anlegen
1078 : {
1079 : RscCont * pCont;
1080 :
1081 0 : aBaseLst.push_back( pCont = new RscCont( pHS->getID( "ContMenuItem" ), RSC_NOTYPE ) );
1082 0 : pCont->SetTypeClass( pClassMenuItem );
1083 0 : nId = aNmTb.Put( "ItemList", VARNAME );
1084 0 : pClassMenu->SetVariable( nId, pCont, NULL, 0, RSC_MENU_ITEMS );
1085 : }
1086 0 : nId = aNmTb.Put( "Text", VARNAME );
1087 0 : pClassMenu->SetVariable( nId, &aLangString, NULL, 0, RSC_MENU_TEXT );
1088 0 : nId = aNmTb.Put( "DefaultItemId", VARNAME );
1089 : pClassMenu->SetVariable( nId, &aIdUShort, NULL, 0,
1090 0 : RSC_MENU_DEFAULTITEMID );
1091 :
1092 0 : return pClassMenu;
1093 : }
1094 :
1095 0 : RscTop * RscTypCont::InitClassMessBox( RscTop * pSuper,
1096 : RscEnum * pMessButtons,
1097 : RscEnum * pMessDefButton )
1098 : {
1099 : Atom nId;
1100 : RscTop * pClassMessBox;
1101 :
1102 : // Klasse anlegen
1103 0 : nId = pHS->getID( "MessBox" );
1104 0 : pClassMessBox = new RscClass( nId, RSC_MESSBOX, pSuper );
1105 0 : pClassMessBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
1106 0 : aNmTb.Put( nId, CLASSNAME, pClassMessBox );
1107 :
1108 : // Variablen anlegen
1109 0 : nId = aNmTb.Put( "Buttons", VARNAME );
1110 0 : pClassMessBox->SetVariable( nId, pMessButtons );
1111 0 : nId = aNmTb.Put( "DefButton", VARNAME );
1112 0 : pClassMessBox->SetVariable( nId, pMessDefButton );
1113 0 : nId = aNmTb.Put( "HelpID", VARNAME );
1114 0 : pClassMessBox->SetVariable( nId, &aStringLiteral );
1115 0 : nId = aNmTb.Put( "SysModal", VARNAME );
1116 0 : pClassMessBox->SetVariable( nId, &aBool );
1117 0 : nId = aNmTb.Put( "Title", VARNAME );
1118 0 : pClassMessBox->SetVariable( nId, &aLangString );
1119 0 : nId = aNmTb.Put( "Message", VARNAME );
1120 0 : pClassMessBox->SetVariable( nId, &aLangString );
1121 0 : nId = aNmTb.Put( "HelpText", VARNAME );
1122 0 : pClassMessBox->SetVariable( nId, &aLangString );
1123 :
1124 0 : return pClassMessBox;
1125 : }
1126 :
1127 0 : RscTop * RscTypCont::InitClassSplitter( RscTop * pSuper )
1128 : {
1129 : Atom nId;
1130 : RscTop * pClassSplitter;
1131 :
1132 : // Klasse anlegen
1133 0 : nId = pHS->getID( "Splitter" );
1134 0 : pClassSplitter = new RscClass( nId, RSC_SPLITTER, pSuper );
1135 0 : pClassSplitter->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
1136 :
1137 0 : aNmTb.Put( nId, CLASSNAME, pClassSplitter );
1138 :
1139 0 : INS_WINBIT(pClassSplitter,HScroll);
1140 0 : INS_WINBIT(pClassSplitter,VScroll);
1141 :
1142 0 : return pClassSplitter;
1143 : }
1144 :
1145 0 : RscTop * RscTypCont::InitClassSplitWindow( RscTop * pSuper )
1146 : {
1147 : Atom nId;
1148 : RscTop * pClassSplitWindow;
1149 :
1150 : // Klasse anlegen
1151 0 : nId = pHS->getID( "SplitWindow" );
1152 0 : pClassSplitWindow = new RscClass( nId, RSC_SPLITWINDOW, pSuper );
1153 0 : pClassSplitWindow->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
1154 :
1155 0 : aNmTb.Put( nId, CLASSNAME, pClassSplitWindow );
1156 :
1157 0 : INS_WINBIT(pClassSplitWindow,Sizeable)
1158 0 : INS_WINBIT(pClassSplitWindow,NoSplitDraw)
1159 :
1160 0 : return pClassSplitWindow;
1161 : }
1162 :
1163 0 : RscTop * RscTypCont::InitClassTime( RscTop * pSuper )
1164 : {
1165 : Atom nId;
1166 : RscTop * pClassTime;
1167 :
1168 : // Klasse anlegen
1169 0 : nId = pHS->getID( "Time" );
1170 0 : pClassTime = new RscClass( nId, RSC_TIME, pSuper );
1171 0 : pClassTime->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
1172 :
1173 0 : aNmTb.Put( nId, CLASSNAME, pClassTime );
1174 :
1175 : // Variablen anlegen
1176 0 : nId = aNmTb.Put( "Hour", VARNAME );
1177 0 : pClassTime->SetVariable( nId, &a0to23Short, NULL, 0, TIME_HOUR );
1178 :
1179 0 : nId = aNmTb.Put( "Minute", VARNAME );
1180 0 : pClassTime->SetVariable( nId, &a0to59Short, NULL, 0, TIME_MINUTE );
1181 :
1182 0 : nId = aNmTb.Put( "Second", VARNAME );
1183 0 : pClassTime->SetVariable( nId, &a0to59Short, NULL, 0, TIME_SECOND );
1184 :
1185 0 : nId = aNmTb.Put( "Sec100", VARNAME ); // weiss noch nich
1186 0 : pClassTime->SetVariable( nId, &a0to99Short, NULL, 0, TIME_SEC100 );
1187 :
1188 0 : return pClassTime;
1189 : }
1190 :
1191 0 : RscTop * RscTypCont::InitClassDate( RscTop * pSuper )
1192 : {
1193 : Atom nId;
1194 : RscTop * pClassDate;
1195 :
1196 : // Klasse anlegen
1197 0 : nId = pHS->getID( "Date" );
1198 0 : pClassDate = new RscClass( nId, RSC_DATE, pSuper );
1199 0 : pClassDate->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
1200 :
1201 0 : aNmTb.Put( nId, CLASSNAME, pClassDate );
1202 :
1203 : // Variablen anlegen
1204 0 : nId = aNmTb.Put( "Year", VARNAME );
1205 0 : pClassDate->SetVariable( nId, &a0to9999Short, NULL, 0, DATE_YEAR );
1206 :
1207 0 : nId = aNmTb.Put( "Month", VARNAME );
1208 0 : pClassDate->SetVariable( nId, &a1to12Short, NULL, 0, DATE_MONTH );
1209 :
1210 0 : nId = aNmTb.Put( "Day", VARNAME );
1211 0 : pClassDate->SetVariable( nId, &a1to31Short, NULL, 0, DATE_DAY );
1212 :
1213 0 : return pClassDate;
1214 : }
1215 :
1216 0 : RscTop * RscTypCont::InitClassPatternFormatter( RscTop * pSuper )
1217 : {
1218 : Atom nId;
1219 : RscTop * pClassPattern;
1220 :
1221 : // Klasse anlegen
1222 0 : nId = pHS->getID( "PatternFormatter" );
1223 0 : pClassPattern = new RscClass( nId, RSC_NOTYPE, pSuper );
1224 0 : pClassPattern->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
1225 :
1226 : // Variablen anlegen
1227 0 : nId = aNmTb.Put( "StrictFormat", VARNAME );
1228 : pClassPattern->SetVariable( nId, &aBool, NULL,
1229 0 : 0, PATTERNFORMATTER_STRICTFORMAT );
1230 0 : nId = aNmTb.Put( "EditMask", VARNAME );
1231 : pClassPattern->SetVariable( nId, &aLangString, NULL,
1232 0 : 0, PATTERNFORMATTER_EDITMASK );
1233 0 : nId = aNmTb.Put( "LiteralMask", VARNAME );
1234 : pClassPattern->SetVariable( nId, &aLangString, NULL,
1235 0 : 0, PATTERNFORMATTER_LITTERALMASK );
1236 :
1237 0 : return pClassPattern;
1238 : }
1239 :
1240 0 : RscTop * RscTypCont::InitClassNumericFormatter( RscTop * pSuper )
1241 : {
1242 : Atom nId;
1243 : RscTop * pClassNumeric;
1244 :
1245 : // Klasse anlegen
1246 0 : nId = pHS->getID( "NumericFormatter" );
1247 0 : pClassNumeric = new RscClass( nId, RSC_NOTYPE, pSuper );
1248 0 : pClassNumeric->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
1249 :
1250 : // Variablen anlegen
1251 0 : nId = aNmTb.Put( "Minimum", VARNAME );
1252 : pClassNumeric->SetVariable( nId, &aIdLong, NULL,
1253 0 : 0, NUMERICFORMATTER_MIN );
1254 0 : nId = aNmTb.Put( "Maximum", VARNAME );
1255 : pClassNumeric->SetVariable( nId, &aIdLong, NULL,
1256 0 : 0, NUMERICFORMATTER_MAX );
1257 0 : nId = aNmTb.Put( "StrictFormat", VARNAME );
1258 : pClassNumeric->SetVariable( nId, &aBool, NULL,
1259 0 : 0, NUMERICFORMATTER_STRICTFORMAT );
1260 0 : nId = aNmTb.Put( "DecimalDigits", VARNAME );
1261 : pClassNumeric->SetVariable( nId, &aUShort, NULL,
1262 0 : 0, NUMERICFORMATTER_DECIMALDIGITS );
1263 0 : nId = aNmTb.Put( "Value", VARNAME );
1264 : pClassNumeric->SetVariable( nId, &aIdLong, NULL,
1265 0 : 0, NUMERICFORMATTER_VALUE );
1266 0 : nId = aNmTb.Put( "NoThousandSep", VARNAME );
1267 : pClassNumeric->SetVariable( nId, &aBool, NULL,
1268 0 : 0, NUMERICFORMATTER_NOTHOUSANDSEP );
1269 :
1270 0 : return pClassNumeric;
1271 : }
1272 :
1273 0 : RscTop * RscTypCont::InitClassMetricFormatter( RscTop * pSuper,
1274 : RscEnum * pFieldUnits )
1275 : {
1276 : Atom nId;
1277 : RscTop * pClassMetric;
1278 :
1279 : // Klasse anlegen
1280 0 : nId = pHS->getID( "MetricFormatter" );
1281 0 : pClassMetric = new RscClass( nId, RSC_NOTYPE, pSuper );
1282 0 : pClassMetric->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
1283 :
1284 : // Variablen anlegen
1285 0 : nId = aNmTb.Put( "Unit", VARNAME );
1286 : pClassMetric->SetVariable( nId, pFieldUnits, NULL,
1287 0 : 0, METRICFORMATTER_UNIT );
1288 0 : nId = aNmTb.Put( "CustomUnitText", VARNAME );
1289 : pClassMetric->SetVariable( nId, &aLangString, NULL,
1290 0 : 0, METRICFORMATTER_CUSTOMUNITTEXT );
1291 :
1292 0 : return pClassMetric;
1293 : }
1294 :
1295 0 : RscTop * RscTypCont::InitClassDateFormatter( RscTop * pSuper,
1296 : RscTop * pClassDate )
1297 : {
1298 : Atom nId;
1299 : RscTop * pClassDateF;
1300 :
1301 : // Klasse anlegen
1302 0 : nId = pHS->getID( "DateFormatter" );
1303 0 : pClassDateF = new RscClass( nId, RSC_NOTYPE, pSuper );
1304 0 : pClassDateF->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
1305 :
1306 : // Variablen anlegen
1307 0 : nId = aNmTb.Put( "Minimum", VARNAME );
1308 : pClassDateF->SetVariable( nId, pClassDate, NULL,
1309 0 : 0, DATEFORMATTER_MIN );
1310 0 : nId = aNmTb.Put( "Maximum", VARNAME );
1311 : pClassDateF->SetVariable( nId, pClassDate, NULL,
1312 0 : 0, DATEFORMATTER_MAX );
1313 0 : nId = aNmTb.Put( "LongFormat", VARNAME );
1314 : pClassDateF->SetVariable( nId, &aBool, NULL,
1315 0 : 0, DATEFORMATTER_LONGFORMAT );
1316 0 : nId = aNmTb.Put( "StrictFormat", VARNAME );
1317 : pClassDateF->SetVariable( nId, &aBool, NULL,
1318 0 : 0, DATEFORMATTER_STRICTFORMAT );
1319 0 : nId = aNmTb.Put( "Value", VARNAME );
1320 : pClassDateF->SetVariable( nId, pClassDate, NULL,
1321 0 : 0, DATEFORMATTER_VALUE );
1322 :
1323 0 : return pClassDateF;
1324 : }
1325 :
1326 0 : RscTop * RscTypCont::InitClassTimeFormatter( RscTop * pSuper,
1327 : RscTop * pClassTime,
1328 : RscEnum * pTimeFieldFormat )
1329 : {
1330 : Atom nId;
1331 : RscTop * pClassTimeF;
1332 :
1333 : // Klasse anlegen
1334 0 : nId = pHS->getID( "TimeFormatter" );
1335 0 : pClassTimeF = new RscClass( nId, RSC_NOTYPE, pSuper );
1336 0 : pClassTimeF->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
1337 :
1338 : // Variablen anlegen
1339 0 : nId = aNmTb.Put( "Minimum", VARNAME );
1340 : pClassTimeF->SetVariable( nId, pClassTime, NULL,
1341 0 : 0, TIMEFORMATTER_MIN );
1342 0 : nId = aNmTb.Put( "Maximum", VARNAME );
1343 : pClassTimeF->SetVariable( nId, pClassTime, NULL,
1344 0 : 0, TIMEFORMATTER_MAX );
1345 0 : nId = aNmTb.Put( "Format", VARNAME );
1346 : pClassTimeF->SetVariable( nId, pTimeFieldFormat, NULL,
1347 0 : 0, TIMEFORMATTER_TIMEFIELDFORMAT );
1348 0 : nId = aNmTb.Put( "Duration", VARNAME );
1349 : pClassTimeF->SetVariable( nId, &aBool, NULL,
1350 0 : 0, TIMEFORMATTER_DURATION );
1351 0 : nId = aNmTb.Put( "StrictFormat", VARNAME );
1352 : pClassTimeF->SetVariable( nId, &aBool, NULL,
1353 0 : 0, TIMEFORMATTER_STRICTFORMAT );
1354 0 : nId = aNmTb.Put( "Value", VARNAME );
1355 : pClassTimeF->SetVariable( nId, pClassTime, NULL,
1356 0 : 0, TIMEFORMATTER_VALUE );
1357 :
1358 0 : return pClassTimeF;
1359 : }
1360 :
1361 0 : RscTop * RscTypCont::InitClassSpinField( RscTop * pSuper )
1362 : {
1363 : Atom nId;
1364 : RscTop * pClassSpinField;
1365 :
1366 : // Klasse anlegen
1367 0 : nId = pHS->getID( "SpinField" );
1368 0 : pClassSpinField = new RscClass( nId, RSC_SPINFIELD, pSuper );
1369 0 : pClassSpinField->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
1370 :
1371 0 : aNmTb.Put( nId, CLASSNAME, pClassSpinField );
1372 :
1373 0 : INS_WINBIT(pClassSpinField,Repeat)
1374 0 : INS_WINBIT(pClassSpinField,Spin)
1375 :
1376 0 : return pClassSpinField;
1377 : }
1378 :
1379 0 : RscTop * RscTypCont::InitClassPatternField( RscTop * pSuper )
1380 : {
1381 : Atom nId;
1382 : RscTop * pClassPatternField;
1383 :
1384 : // Klasse anlegen
1385 0 : nId = pHS->getID( "PatternField" );
1386 0 : pClassPatternField = new RscClass( nId, RSC_PATTERNFIELD, pSuper );
1387 0 : pClassPatternField->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
1388 :
1389 0 : aNmTb.Put( nId, CLASSNAME, pClassPatternField );
1390 :
1391 0 : return pClassPatternField;
1392 : }
1393 :
1394 0 : RscTop * RscTypCont::InitClassNumericField( RscTop * pSuper )
1395 : {
1396 : Atom nId;
1397 : RscTop * pClassNumericField;
1398 :
1399 : // Klasse anlegen
1400 0 : nId = pHS->getID( "NumericField" );
1401 0 : pClassNumericField = new RscClass( nId, RSC_NUMERICFIELD, pSuper );
1402 0 : pClassNumericField->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
1403 :
1404 0 : aNmTb.Put( nId, CLASSNAME, pClassNumericField );
1405 :
1406 : // Variablen anlegen
1407 0 : nId = aNmTb.Put( "First", VARNAME );
1408 : pClassNumericField->SetVariable( nId, &aIdLong, NULL,
1409 0 : 0, NUMERICFIELD_FIRST );
1410 0 : nId = aNmTb.Put( "Last", VARNAME );
1411 : pClassNumericField->SetVariable( nId, &aIdLong, NULL,
1412 0 : 0, NUMERICFIELD_LAST );
1413 0 : nId = aNmTb.Put( "SpinSize", VARNAME );
1414 : pClassNumericField->SetVariable( nId, &aIdLong, NULL,
1415 0 : 0, NUMERICFIELD_SPINSIZE );
1416 0 : return pClassNumericField;
1417 : }
1418 :
1419 0 : RscTop * RscTypCont::InitClassMetricField( RscTop * pSuper )
1420 : {
1421 : Atom nId;
1422 : RscTop * pClassMetricField;
1423 :
1424 : // Klasse anlegen
1425 0 : nId = pHS->getID( "MetricField" );
1426 0 : pClassMetricField = new RscClass( nId, RSC_METRICFIELD, pSuper );
1427 0 : pClassMetricField->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
1428 :
1429 0 : aNmTb.Put( nId, CLASSNAME, pClassMetricField );
1430 :
1431 : // Variablen anlegen
1432 0 : nId = aNmTb.Put( "First", VARNAME );
1433 : pClassMetricField->SetVariable( nId, &aIdLong, NULL,
1434 0 : 0, METRICFIELD_FIRST );
1435 0 : nId = aNmTb.Put( "Last", VARNAME );
1436 : pClassMetricField->SetVariable( nId, &aIdLong, NULL,
1437 0 : 0, METRICFIELD_LAST );
1438 0 : nId = aNmTb.Put( "SpinSize", VARNAME );
1439 : pClassMetricField->SetVariable( nId, &aIdLong, NULL,
1440 0 : 0, METRICFIELD_SPINSIZE );
1441 :
1442 0 : return pClassMetricField;
1443 : }
1444 :
1445 0 : RscTop * RscTypCont::InitClassDateField( RscTop * pSuper, RscTop * pClassDate )
1446 : {
1447 : Atom nId;
1448 : RscTop * pClassDateField;
1449 :
1450 : // Klasse anlegen
1451 0 : nId = pHS->getID( "DateField" );
1452 0 : pClassDateField = new RscClass( nId, RSC_DATEFIELD, pSuper );
1453 0 : pClassDateField->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
1454 :
1455 0 : aNmTb.Put( nId, CLASSNAME, pClassDateField );
1456 :
1457 : // Variablen anlegen
1458 0 : nId = aNmTb.Put( "First", VARNAME );
1459 0 : pClassDateField->SetVariable( nId, pClassDate, NULL, 0, DATEFIELD_FIRST );
1460 0 : nId = aNmTb.Put( "Last", VARNAME );
1461 0 : pClassDateField->SetVariable( nId, pClassDate, NULL, 0, DATEFIELD_LAST );
1462 :
1463 0 : return pClassDateField;
1464 : }
1465 :
1466 0 : RscTop * RscTypCont::InitClassTimeField( RscTop * pSuper, RscTop * pClassTime )
1467 : {
1468 : Atom nId;
1469 : RscTop * pClassTimeField;
1470 :
1471 : // Klasse anlegen
1472 0 : nId = pHS->getID( "TimeField" );
1473 0 : pClassTimeField = new RscClass( nId, RSC_TIMEFIELD, pSuper );
1474 0 : pClassTimeField->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
1475 :
1476 0 : aNmTb.Put( nId, CLASSNAME, pClassTimeField );
1477 :
1478 : // Variablen anlegen
1479 0 : nId = aNmTb.Put( "First", VARNAME );
1480 0 : pClassTimeField->SetVariable( nId, pClassTime, NULL, 0, TIMEFIELD_FIRST );
1481 0 : nId = aNmTb.Put( "Last", VARNAME );
1482 0 : pClassTimeField->SetVariable( nId, pClassTime, NULL, 0, TIMEFIELD_LAST );
1483 :
1484 0 : return pClassTimeField;
1485 : }
1486 :
1487 0 : RscTop * RscTypCont::InitClassPatternBox( RscTop * pSuper )
1488 : {
1489 : Atom nId;
1490 : RscTop * pClassPatternBox;
1491 :
1492 : // Klasse anlegen
1493 0 : nId = pHS->getID( "PatternBox" );
1494 0 : pClassPatternBox = new RscClass( nId, RSC_PATTERNBOX, pSuper );
1495 0 : pClassPatternBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
1496 :
1497 0 : aNmTb.Put( nId, CLASSNAME, pClassPatternBox );
1498 :
1499 0 : return pClassPatternBox;
1500 : }
1501 :
1502 0 : RscTop * RscTypCont::InitClassNumericBox( RscTop * pSuper )
1503 : {
1504 : Atom nId;
1505 : RscTop * pClassNumericBox;
1506 :
1507 : // Klasse anlegen
1508 0 : nId = pHS->getID( "NumericBox" );
1509 0 : pClassNumericBox = new RscClass( nId, RSC_NUMERICBOX, pSuper );
1510 0 : pClassNumericBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
1511 :
1512 0 : aNmTb.Put( nId, CLASSNAME, pClassNumericBox );
1513 :
1514 : // Variablen anlegen
1515 :
1516 0 : return pClassNumericBox;
1517 : }
1518 :
1519 0 : RscTop * RscTypCont::InitClassDockingWindow( RscTop * pSuper,
1520 : RscEnum * pMapUnit )
1521 : {
1522 : Atom nId;
1523 : RscTop * pClassDockWindow;
1524 :
1525 : // Klasse anlegen
1526 0 : nId = pHS->getID( "DockingWindow" );
1527 0 : pClassDockWindow = new RscClass( nId, RSC_DOCKINGWINDOW, pSuper );
1528 0 : pClassDockWindow->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
1529 0 : aNmTb.Put( nId, CLASSNAME, pClassDockWindow );
1530 :
1531 : // Variablen anlegen
1532 0 : nId = aNmTb.Put( "_FloatingPosMapMode", VARNAME );
1533 : pClassDockWindow->SetVariable( nId, pMapUnit, NULL, 0,
1534 0 : RSC_DOCKINGWINDOW_XYMAPMODE );
1535 0 : nId = aNmTb.Put( "_FloatingPosX", VARNAME );
1536 : pClassDockWindow->SetVariable( nId, &aShort, NULL, 0,
1537 0 : RSC_DOCKINGWINDOW_X );
1538 0 : nId = aNmTb.Put( "_FloatingPosY", VARNAME );
1539 : pClassDockWindow->SetVariable( nId, &aShort, NULL, 0,
1540 0 : RSC_DOCKINGWINDOW_Y );
1541 0 : nId = aNmTb.Put( "FloatingMode", VARNAME );
1542 : pClassDockWindow->SetVariable( nId, &aBool, NULL, 0,
1543 0 : RSC_DOCKINGWINDOW_FLOATING );
1544 :
1545 0 : INS_WINBIT(pClassDockWindow,Moveable)
1546 0 : INS_WINBIT(pClassDockWindow,Sizeable)
1547 0 : INS_WINBIT(pClassDockWindow,EnableResizing)
1548 0 : INS_WINBIT(pClassDockWindow,Closeable)
1549 0 : INS_WINBIT(pClassDockWindow,HideWhenDeactivate);
1550 0 : INS_WINBIT(pClassDockWindow,Zoomable);
1551 0 : INS_WINBIT(pClassDockWindow,Dockable);
1552 :
1553 0 : return pClassDockWindow;
1554 : }
1555 :
1556 0 : RscTop * RscTypCont::InitClassToolBoxItem( RscTop * pSuper,
1557 : RscTop * pClassBitmap,
1558 : RscTop * pClassImage,
1559 : RscEnum * pTriState )
1560 : {
1561 : Atom nId;
1562 : RscTop * pClassToolBoxItem;
1563 :
1564 : // Klasse anlegen
1565 0 : nId = pHS->getID( "ToolBoxItem" );
1566 0 : pClassToolBoxItem = new RscClass( nId, RSC_TOOLBOXITEM, pSuper );
1567 0 : aNmTb.Put( nId, CLASSNAME, pClassToolBoxItem );
1568 :
1569 : // Variablen anlegen
1570 0 : nId = aNmTb.Put( "Identifier", VARNAME );
1571 : pClassToolBoxItem->SetVariable( nId, &aIdNoZeroUShort, NULL, 0,
1572 0 : RSC_TOOLBOXITEM_ID );
1573 : {
1574 : RscEnum * pEnum;
1575 :
1576 0 : aBaseLst.push_back( pEnum = new RscEnum( pHS->getID( "EnumToolBoxItemType" ), RSC_NOTYPE ) );
1577 0 : SETCONST( pEnum, "TOOLBOXITEM_BUTTON", TOOLBOXITEM_BUTTON );
1578 0 : SETCONST( pEnum, "TOOLBOXITEM_SPACE", TOOLBOXITEM_SPACE );
1579 0 : SETCONST( pEnum, "TOOLBOXITEM_SEPARATOR", TOOLBOXITEM_SEPARATOR );
1580 0 : SETCONST( pEnum, "TOOLBOXITEM_BREAK", TOOLBOXITEM_BREAK );
1581 :
1582 : // Variable einfuegen
1583 0 : nId = aNmTb.Put( "Type", VARNAME );
1584 : pClassToolBoxItem->SetVariable( nId, pEnum, NULL, 0,
1585 0 : RSC_TOOLBOXITEM_TYPE );
1586 : }
1587 : {
1588 : RscFlag * pFlag;
1589 : RscClient * pClient;
1590 : Atom l_nVarId, l_nAutoCheckId, l_nRadioCheckId, l_nCheckableId, l_nLeftId, l_nAutoSizeId, l_nDropDownId;
1591 :
1592 0 : aBaseLst.push_back( pFlag = new RscFlag( pHS->getID( "FlagToolBoxState" ), RSC_NOTYPE ) );
1593 :
1594 : // Konstanten in Tabelle stellen
1595 0 : l_nCheckableId = pHS->getID( "TIB_CHECKABLE" );
1596 0 : SETCONST( pFlag, l_nCheckableId, TIB_CHECKABLE );
1597 0 : l_nAutoCheckId = pHS->getID( "TIB_AUTOCHECK" );
1598 0 : SETCONST( pFlag, l_nAutoCheckId, TIB_AUTOCHECK );
1599 0 : l_nRadioCheckId = pHS->getID( "TIB_RADIOCHECK" );
1600 0 : SETCONST( pFlag, l_nRadioCheckId, TIB_RADIOCHECK );
1601 0 : l_nLeftId = pHS->getID( "TIB_LEFT" );
1602 0 : SETCONST( pFlag, l_nLeftId, TIB_LEFT );
1603 0 : l_nAutoSizeId = pHS->getID( "TIB_AUTOSIZE" );
1604 0 : SETCONST( pFlag, l_nAutoSizeId, TIB_AUTOSIZE );
1605 0 : l_nDropDownId = pHS->getID( "TIB_DROPDOWN" );
1606 0 : SETCONST( pFlag, l_nDropDownId, TIB_DROPDOWN );
1607 :
1608 : // Variable einfuegen
1609 0 : l_nVarId = aNmTb.Put( "_ToolBoxItemFlags", VARNAME );
1610 : pClassToolBoxItem->SetVariable( l_nVarId, pFlag, NULL,
1611 : VAR_HIDDEN | VAR_NOENUM,
1612 0 : RSC_TOOLBOXITEM_STATUS );
1613 :
1614 : // Clientvariablen einfuegen
1615 : aBaseLst.push_back(
1616 0 : pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, l_nCheckableId )
1617 0 : );
1618 0 : nId = aNmTb.Put( "Checkable", VARNAME );
1619 0 : pClassToolBoxItem->SetVariable( nId, pClient, NULL, VAR_NODATAINST, 0, l_nVarId );
1620 :
1621 : aBaseLst.push_back(
1622 0 : pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, l_nAutoCheckId )
1623 0 : );
1624 0 : nId = aNmTb.Put( "AutoCheck", VARNAME );
1625 0 : pClassToolBoxItem->SetVariable( nId, pClient, NULL, VAR_NODATAINST, 0, l_nVarId );
1626 :
1627 : aBaseLst.push_back(
1628 0 : pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, l_nRadioCheckId )
1629 0 : );
1630 0 : nId = aNmTb.Put( "RadioCheck", VARNAME );
1631 0 : pClassToolBoxItem->SetVariable( nId, pClient, NULL, VAR_NODATAINST, 0, l_nVarId );
1632 :
1633 : aBaseLst.push_back(
1634 0 : pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, l_nLeftId )
1635 0 : );
1636 0 : nId = aNmTb.Put( "Left", VARNAME );
1637 0 : pClassToolBoxItem->SetVariable( nId, pClient, NULL, VAR_NODATAINST, 0, l_nVarId );
1638 :
1639 : aBaseLst.push_back(
1640 0 : pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, l_nAutoSizeId )
1641 0 : );
1642 0 : nId = aNmTb.Put( "AutoSize", VARNAME );
1643 0 : pClassToolBoxItem->SetVariable( nId, pClient, NULL, VAR_NODATAINST, 0, l_nVarId );
1644 :
1645 : aBaseLst.push_back(
1646 0 : pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, l_nDropDownId )
1647 0 : );
1648 0 : nId = aNmTb.Put( "DropDown", VARNAME );
1649 0 : pClassToolBoxItem->SetVariable( nId, pClient, NULL, VAR_NODATAINST, 0, l_nVarId );
1650 : }
1651 0 : nId = aNmTb.Put( "HelpID", VARNAME );
1652 : pClassToolBoxItem->SetVariable( nId, &aStringLiteral, NULL, 0,
1653 0 : RSC_TOOLBOXITEM_HELPID );
1654 0 : nId = aNmTb.Put( "Text", VARNAME );
1655 : pClassToolBoxItem->SetVariable( nId, &aLangString, NULL, 0,
1656 0 : RSC_TOOLBOXITEM_TEXT );
1657 0 : nId = aNmTb.Put( "HelpText", VARNAME );
1658 : pClassToolBoxItem->SetVariable( nId, &aLangString, NULL, 0,
1659 0 : RSC_TOOLBOXITEM_HELPTEXT );
1660 0 : nId = aNmTb.Put( "ItemBitmap", VARNAME );
1661 : pClassToolBoxItem->SetVariable( nId, pClassBitmap, NULL, 0,
1662 0 : RSC_TOOLBOXITEM_BITMAP );
1663 0 : nId = aNmTb.Put( "ItemImage", VARNAME );
1664 : pClassToolBoxItem->SetVariable( nId, pClassImage, NULL, 0,
1665 0 : RSC_TOOLBOXITEM_IMAGE );
1666 0 : nId = aNmTb.Put( "Disable", VARNAME );
1667 : pClassToolBoxItem->SetVariable( nId, &aBool, NULL, 0,
1668 0 : RSC_TOOLBOXITEM_DISABLE );
1669 :
1670 0 : nId = aNmTb.Put( "State", VARNAME );
1671 : pClassToolBoxItem->SetVariable( nId, pTriState, NULL, 0,
1672 0 : RSC_TOOLBOXITEM_STATE );
1673 0 : nId = aNmTb.Put( "Hide", VARNAME );
1674 : pClassToolBoxItem->SetVariable( nId, &aBool, NULL, 0,
1675 0 : RSC_TOOLBOXITEM_HIDE );
1676 0 : nId = aNmTb.Put( "Hide", VARNAME );
1677 : pClassToolBoxItem->SetVariable( nId, &aBool, NULL, 0,
1678 0 : RSC_TOOLBOXITEM_HIDE );
1679 0 : nId = aNmTb.Put( "Command", VARNAME );
1680 : pClassToolBoxItem->SetVariable( nId, &aString, NULL, 0,
1681 0 : RSC_TOOLBOXITEM_COMMAND );
1682 :
1683 0 : return pClassToolBoxItem;
1684 : }
1685 :
1686 0 : RscTop * RscTypCont::InitClassToolBox( RscTop * pSuper,
1687 : RscTop * pClassToolBoxItem,
1688 : RscTop * pClassImageList )
1689 : {
1690 : Atom nId;
1691 : RscTop * pClassToolBox;
1692 :
1693 : // Klasse anlegen
1694 0 : nId = pHS->getID( "ToolBox" );
1695 0 : pClassToolBox = new RscClass( nId, RSC_TOOLBOX, pSuper );
1696 0 : pClassToolBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
1697 0 : aNmTb.Put( nId, CLASSNAME, pClassToolBox );
1698 :
1699 : // Variablen anlegen
1700 : {
1701 : RscEnum * pEnum;
1702 :
1703 0 : aBaseLst.push_back( pEnum = new RscEnum( pHS->getID( "EnumButtonType" ), RSC_NOTYPE ) );
1704 0 : SETCONST( pEnum, "BUTTON_SYMBOL", BUTTON_SYMBOL );
1705 0 : SETCONST( pEnum, "BUTTON_TEXT", BUTTON_TEXT );
1706 0 : SETCONST( pEnum, "BUTTON_SYMBOLTEXT", BUTTON_SYMBOLTEXT );
1707 :
1708 : // Variable einfuegen
1709 0 : nId = aNmTb.Put( "ButtonType", VARNAME );
1710 : pClassToolBox->SetVariable( nId, pEnum, NULL, 0,
1711 0 : RSC_TOOLBOX_BUTTONTYPE );
1712 : }
1713 : {
1714 : RscEnum * pEnum;
1715 :
1716 0 : aBaseLst.push_back( pEnum = new RscEnum( pHS->getID( "EnumToolBoxAlign" ), RSC_NOTYPE ) );
1717 0 : SETCONST( pEnum, "BOXALIGN_TOP", WINDOWALIGN_TOP );
1718 0 : SETCONST( pEnum, "BOXALIGN_LEFT", WINDOWALIGN_LEFT );
1719 0 : SETCONST( pEnum, "BOXALIGN_RIGHT", WINDOWALIGN_RIGHT );
1720 0 : SETCONST( pEnum, "BOXALIGN_BOTTOM", WINDOWALIGN_BOTTOM );
1721 :
1722 : // Variable einfuegen
1723 0 : nId = aNmTb.Put( "Align", VARNAME );
1724 : pClassToolBox->SetVariable( nId, pEnum, NULL, 0,
1725 0 : RSC_TOOLBOX_ALIGN );
1726 : }
1727 0 : nId = aNmTb.Put( "LineCount", VARNAME );
1728 : pClassToolBox->SetVariable( nId, &aIdNoZeroUShort, NULL, 0,
1729 0 : RSC_TOOLBOX_LINECOUNT );
1730 0 : nId = aNmTb.Put( "FloatingLines", VARNAME );
1731 : pClassToolBox->SetVariable( nId, &aUShort, NULL, 0,
1732 0 : RSC_TOOLBOX_FLOATLINES );
1733 0 : nId = aNmTb.Put( "Customize", VARNAME );
1734 : pClassToolBox->SetVariable( nId, &aBool, NULL, 0,
1735 0 : RSC_TOOLBOX_CUSTOMIZE );
1736 0 : nId = aNmTb.Put( "MenuStrings", VARNAME );
1737 : pClassToolBox->SetVariable( nId, &aBool, NULL, 0,
1738 0 : RSC_TOOLBOX_MENUSTRINGS );
1739 0 : nId = aNmTb.Put( "ItemImageList", VARNAME );
1740 : pClassToolBox->SetVariable( nId, pClassImageList, NULL, 0,
1741 0 : RSC_TOOLBOX_ITEMIMAGELIST );
1742 : {
1743 : RscLangArray* pLA;
1744 : RscCont * pCont;
1745 :
1746 0 : aBaseLst.push_back( pCont = new RscCont( pHS->getID( "ContToolBoxItem" ), RSC_NOTYPE ) );
1747 0 : pCont->SetTypeClass( pClassToolBoxItem );
1748 : aBaseLst.push_back(
1749 0 : pLA = new RscLangArray( pHS->getID( "LangContToolBoxItem" )
1750 : , RSC_NOTYPE
1751 : , pCont
1752 : , &aLangType
1753 0 : )
1754 0 : );
1755 0 : nId = aNmTb.Put( "ItemList", VARNAME );
1756 : pClassToolBox->SetVariable( nId, pLA, NULL, 0,
1757 0 : RSC_TOOLBOX_ITEMLIST );
1758 : }
1759 0 : INS_WINBIT(pClassToolBox,Scroll)
1760 0 : INS_WINBIT(pClassToolBox,LineSpacing)
1761 0 : INS_WINBIT(pClassToolBox,RectStyle)
1762 0 : INS_WINBIT(pClassToolBox,Tabstop)
1763 :
1764 0 : return pClassToolBox;
1765 : }
1766 :
1767 0 : RscTop * RscTypCont::InitClassStatusBar( RscTop * pSuper )
1768 : {
1769 : Atom nId;
1770 : RscTop * pClassStatusBar;
1771 :
1772 : // Klasse anlegen
1773 0 : nId = pHS->getID( "StatusBar" );
1774 0 : pClassStatusBar = new RscClass( nId, RSC_STATUSBAR, pSuper );
1775 0 : pClassStatusBar->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
1776 0 : aNmTb.Put( nId, CLASSNAME, pClassStatusBar );
1777 :
1778 : // Variablen anlegen
1779 0 : INS_WINBIT(pClassStatusBar,Left)
1780 0 : INS_WINBIT(pClassStatusBar,Right)
1781 :
1782 0 : return pClassStatusBar;
1783 : }
1784 :
1785 0 : RscTop * RscTypCont::InitClassFloatingWindow( RscTop * pSuper,
1786 : RscEnum * pMapUnit )
1787 : {
1788 : Atom nId;
1789 : RscTop * pClassFloatingWindow;
1790 :
1791 : // Klasse anlegen
1792 0 : nId = pHS->getID( "FloatingWindow" );
1793 0 : pClassFloatingWindow = new RscClass( nId, RSC_FLOATINGWINDOW, pSuper );
1794 0 : pClassFloatingWindow->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
1795 0 : aNmTb.Put( nId, CLASSNAME, pClassFloatingWindow );
1796 :
1797 : // Variablen anlegen
1798 0 : nId = aNmTb.Put( "_ZoomInMapMode", VARNAME );
1799 : pClassFloatingWindow->SetVariable( nId, pMapUnit, NULL, 0,
1800 0 : RSC_FLOATINGWINDOW_WHMAPMODE );
1801 0 : nId = aNmTb.Put( "_ZoomInWidth", VARNAME );
1802 : pClassFloatingWindow->SetVariable( nId, &aShort, NULL, 0,
1803 0 : RSC_FLOATINGWINDOW_WIDTH );
1804 0 : nId = aNmTb.Put( "_ZoomInHeight", VARNAME );
1805 : pClassFloatingWindow->SetVariable( nId, &aShort, NULL, 0,
1806 0 : RSC_FLOATINGWINDOW_HEIGHT );
1807 0 : nId = aNmTb.Put( "ZoomIn", VARNAME );
1808 : pClassFloatingWindow->SetVariable( nId, &aBool, NULL, 0,
1809 0 : RSC_FLOATINGWINDOW_ZOOMIN );
1810 :
1811 0 : INS_WINBIT(pClassFloatingWindow,Zoomable)
1812 0 : INS_WINBIT(pClassFloatingWindow,HideWhenDeactivate)
1813 0 : INS_WINBIT(pClassFloatingWindow,EnableResizing)
1814 0 : INS_WINBIT(pClassFloatingWindow,StdPopup)
1815 :
1816 0 : return pClassFloatingWindow;
1817 : }
1818 :
1819 0 : RscTop * RscTypCont::InitClassTabControlItem( RscTop * pSuper )
1820 : {
1821 : Atom nId;
1822 : RscTop * pClassTabControlItem;
1823 :
1824 : // Klasse anlegen
1825 0 : nId = pHS->getID( "PageItem" );
1826 0 : pClassTabControlItem = new RscClass( nId, RSC_TABCONTROLITEM, pSuper );
1827 0 : aNmTb.Put( nId, CLASSNAME, pClassTabControlItem );
1828 :
1829 : // Variablen anlegen
1830 0 : nId = aNmTb.Put( "Identifier", VARNAME );
1831 : pClassTabControlItem->SetVariable( nId, &aIdNoZeroUShort, NULL, 0,
1832 0 : RSC_TABCONTROLITEM_ID );
1833 0 : nId = aNmTb.Put( "Text", VARNAME );
1834 : pClassTabControlItem->SetVariable( nId, &aLangString, NULL, 0,
1835 0 : RSC_TABCONTROLITEM_TEXT );
1836 0 : nId = aNmTb.Put( "PageResID", VARNAME );
1837 : pClassTabControlItem->SetVariable( nId, &aIdLong, NULL, 0,
1838 0 : RSC_TABCONTROLITEM_PAGERESID );
1839 :
1840 0 : return pClassTabControlItem;
1841 : }
1842 :
1843 0 : RscTop * RscTypCont::InitClassTabControl( RscTop * pSuper,
1844 : RscTop * pClassTabControlItem )
1845 : {
1846 : Atom nId;
1847 : RscTop * pClassTabControl;
1848 :
1849 : // Klasse anlegen
1850 0 : nId = pHS->getID( "TabControl" );
1851 0 : pClassTabControl = new RscClass( nId, RSC_TABCONTROL, pSuper );
1852 0 : pClassTabControl->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
1853 0 : aNmTb.Put( nId, CLASSNAME, pClassTabControl );
1854 :
1855 : // Variablen anlegen
1856 : {
1857 : RscCont * pCont;
1858 :
1859 0 : aBaseLst.push_back( pCont = new RscCont( pHS->getID( "ContTabControlItem" ), RSC_NOTYPE ) );
1860 0 : pCont->SetTypeClass( pClassTabControlItem );
1861 0 : nId = aNmTb.Put( "PageList", VARNAME );
1862 : pClassTabControl->SetVariable( nId, pCont, NULL, 0,
1863 0 : RSC_TABCONTROL_ITEMLIST );
1864 :
1865 0 : INS_WINBIT( pClassTabControl, DropDown );
1866 : }
1867 :
1868 0 : return pClassTabControl;
1869 : }
1870 :
1871 0 : RscTop * RscTypCont::InitClassSfxStyleFamilyItem( RscTop * pSuper,
1872 : RscTop * pClassBitmap,
1873 : RscTop * pClassImage,
1874 : RscArray * pStrLst )
1875 : {
1876 : Atom nId;
1877 : RscTop * pClassSfxFamilyStyleItem;
1878 :
1879 : // Klasse anlegen
1880 0 : nId = pHS->getID( "SfxStyleFamilyItem" );
1881 0 : pClassSfxFamilyStyleItem = new RscClass( nId, RSC_SFX_STYLE_FAMILY_ITEM, pSuper );
1882 0 : aNmTb.Put( nId, CLASSNAME, pClassSfxFamilyStyleItem );
1883 :
1884 0 : nId = aNmTb.Put( "FilterList", VARNAME );
1885 : pClassSfxFamilyStyleItem->SetVariable( nId, pStrLst, NULL, 0,
1886 0 : RSC_SFX_STYLE_ITEM_LIST );
1887 0 : nId = aNmTb.Put( "StyleBitmap", VARNAME );
1888 : pClassSfxFamilyStyleItem->SetVariable( nId, pClassBitmap, NULL, 0,
1889 0 : RSC_SFX_STYLE_ITEM_BITMAP );
1890 0 : nId = aNmTb.Put( "Text", VARNAME );
1891 : pClassSfxFamilyStyleItem->SetVariable( nId, &aLangString, NULL, 0,
1892 0 : RSC_SFX_STYLE_ITEM_TEXT );
1893 0 : nId = aNmTb.Put( "HelpText", VARNAME );
1894 : pClassSfxFamilyStyleItem->SetVariable( nId, &aLangString, NULL, 0,
1895 0 : RSC_SFX_STYLE_ITEM_HELPTEXT );
1896 : {
1897 : RscEnum * pSfxStyleFamily;
1898 0 : pSfxStyleFamily = new RscEnum( pHS->getID( "StyleFamily" ),
1899 0 : RSC_NOTYPE );
1900 :
1901 0 : SETCONST( pSfxStyleFamily, "SFX_STYLE_FAMILY_PARA", SFX_STYLE_FAMILY_PARA );
1902 0 : SETCONST( pSfxStyleFamily, "SFX_STYLE_FAMILY_CHAR", SFX_STYLE_FAMILY_CHAR );
1903 0 : SETCONST( pSfxStyleFamily, "SFX_STYLE_FAMILY_FRAME",SFX_STYLE_FAMILY_FRAME);
1904 0 : SETCONST( pSfxStyleFamily, "SFX_STYLE_FAMILY_PAGE", SFX_STYLE_FAMILY_PAGE );
1905 0 : SETCONST( pSfxStyleFamily, "SFX_STYLE_FAMILY_PSEUDO", SFX_STYLE_FAMILY_PSEUDO );
1906 0 : aBaseLst.push_back( pSfxStyleFamily );
1907 :
1908 0 : nId = aNmTb.Put( "StyleFamily", VARNAME );
1909 : pClassSfxFamilyStyleItem->SetVariable( nId, pSfxStyleFamily, NULL, 0,
1910 0 : RSC_SFX_STYLE_ITEM_STYLEFAMILY );
1911 : }
1912 0 : nId = aNmTb.Put( "StyleImage", VARNAME );
1913 : pClassSfxFamilyStyleItem->SetVariable( nId, pClassImage, NULL, 0,
1914 0 : RSC_SFX_STYLE_ITEM_IMAGE );
1915 0 : return pClassSfxFamilyStyleItem;
1916 : }
1917 :
1918 0 : RscTop * RscTypCont::InitClassSfxTemplateDialog( RscTop * pSuper,
1919 : RscTop * pClassFamilyStyleItem )
1920 : {
1921 : Atom nId;
1922 : RscTop * pClassSfxTemplateDialog;
1923 :
1924 : // Klasse anlegen
1925 0 : nId = pHS->getID( "SfxStyleFamilies" );
1926 0 : pClassSfxTemplateDialog = new RscClass( nId, RSC_SFX_STYLE_FAMILIES, pSuper );
1927 0 : aNmTb.Put( nId, CLASSNAME, pClassSfxTemplateDialog );
1928 :
1929 : // Variablen anlegen
1930 : {
1931 : RscCont * pCont;
1932 :
1933 : aBaseLst.push_back(
1934 0 : pCont = new RscCont( pHS->getID( "ContFamilyStyleItem" ), RSC_NOTYPE )
1935 0 : );
1936 0 : pCont->SetTypeClass( pClassFamilyStyleItem );
1937 0 : nId = aNmTb.Put( "StyleFamilyList", VARNAME );
1938 0 : pClassSfxTemplateDialog->SetVariable( nId, pCont );
1939 : }
1940 :
1941 0 : return pClassSfxTemplateDialog;
1942 : }
1943 :
1944 0 : RscTop * RscTypCont::InitClassSfxSlotInfo( RscTop * pSuper )
1945 : {
1946 : Atom nId;
1947 : RscTop * pClassSfxSlotInfo;
1948 :
1949 : // Klasse anlegen
1950 0 : nId = pHS->getID( "SfxSlotInfo" );
1951 0 : pClassSfxSlotInfo = new RscClass( nId, RSC_SFX_SLOT_INFO, pSuper );
1952 0 : aNmTb.Put( nId, CLASSNAME, pClassSfxSlotInfo );
1953 :
1954 0 : nId = aNmTb.Put( "SlotName", VARNAME );
1955 : pClassSfxSlotInfo->SetVariable( nId, &aLangString, NULL, 0,
1956 0 : RSC_SFX_SLOT_INFO_SLOTNAME );
1957 0 : nId = aNmTb.Put( "HelpText", VARNAME );
1958 : pClassSfxSlotInfo->SetVariable( nId, &aLangString, NULL, 0,
1959 0 : RSC_SFX_SLOT_INFO_HELPTEXT );
1960 0 : return pClassSfxSlotInfo;
1961 : }
1962 :
1963 :
1964 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|