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