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