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