LCOV - code coverage report
Current view: top level - rsc/source/parser - rscicpx.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 709 709 100.0 %
Date: 2015-06-13 12:38:46 Functions: 37 37 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : 
      21             : #include <stdlib.h>
      22             : #include <stdio.h>
      23             : 
      24             : #include <tools/rc.h>
      25             : #include <tools/wintypes.hxx>
      26             : #include <rsc/rsc-vcl-shared-types.hxx>
      27             : 
      28             : #include <rscmgr.hxx>
      29             : #include <rscclass.hxx>
      30             : #include <rsccont.hxx>
      31             : #include <rscdb.hxx>
      32             : #include <rsc/rscsfx.hxx>
      33             : #include <rsclex.hxx>
      34             : #include <rscyacc.hxx>
      35             : 
      36       30441 : void RscTypCont::InsWinBit( RscTop * pClass, const OString& rName,
      37             :                             Atom nVal )
      38             : {
      39             :     RscClient * pClient;
      40             : 
      41             :     // Clientvariablen einfuegen
      42             :     aBaseLst.push_back(
      43       91323 :         pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, &aWinBits, nVal )
      44       60882 :     );
      45       30441 :     Atom nId = aNmTb.Put( rName.getStr(), VARNAME );
      46             :     pClass->SetVariable( nId, pClient, NULL,
      47       30441 :                          VAR_NODATAINST, 0, nWinBitVarId );
      48       30441 : }
      49             : 
      50             : #define INS_WINBIT( pClass, WinBit )        \
      51             :     InsWinBit( pClass, #WinBit, n##WinBit##Id );
      52             : 
      53         417 : RscTop * RscTypCont::InitClassMgr()
      54             : {
      55             :     RscTop      *   pClassMgr;
      56             :     RscBaseCont *   pClass;
      57             :     Atom            nId;
      58             : 
      59         417 :     aBaseLst.push_back( pClass = new RscBaseCont( InvalidAtom, RSC_NOTYPE, NULL, false ) );
      60             : 
      61         417 :     nId = pHS->getID( "Resource" );
      62         417 :     pClassMgr = new RscMgr( nId, RSC_RESOURCE, pClass );
      63         417 :     aNmTb.Put( nId, CLASSNAME, pClassMgr );
      64         417 :     pClassMgr->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
      65             : 
      66             :     // Variablen anlegen
      67             :     {
      68             :         RscContWriteSrc *   pCont;
      69             : 
      70             :         // Variablen anlegen
      71         417 :         aBaseLst.push_back( pCont = new RscContExtraData( pHS->getID( "ContExtradata" ), RSC_NOTYPE ) );
      72         417 :         pCont->SetTypeClass( &aShort, &aString );
      73         417 :         nRsc_EXTRADATA = nId = aNmTb.Put( "ExtraData", VARNAME );
      74         417 :         pClassMgr->SetVariable( nId, pCont );
      75             :     };
      76         417 :     nId = aNmTb.Put( "Comment", VARNAME );
      77         417 :     pClassMgr->SetVariable( nId, &aString, NULL, VAR_NORC );
      78             : 
      79         417 :     pClass->SetTypeClass( pClassMgr );
      80             : 
      81         417 :     return pClassMgr;
      82             : }
      83             : 
      84         417 : RscTop * RscTypCont::InitClassString( RscTop * pSuper )
      85             : {
      86             :     Atom        nId;
      87             :     RscTop *    pClassString;
      88             : 
      89         417 :     nId = pHS->getID( "String" );
      90         417 :     pClassString = new RscClass( nId, RSC_STRING, pSuper );
      91         417 :     aNmTb.Put( nId, CLASSNAME, pClassString );
      92         417 :     pClassString->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
      93             : 
      94             :     // Variablen anlegen
      95         417 :     nId = aNmTb.Put( "Text", VARNAME );
      96         417 :     pClassString->SetVariable( nId, &aLangString );
      97         417 :     return pClassString;
      98             : }
      99             : 
     100         417 : RscTop * RscTypCont::InitClassBitmap( RscTop * pSuper )
     101             : {
     102             :     Atom        nId;
     103             :     RscTop *    pClassBitmap;
     104             : 
     105         417 :     nId = pHS->getID( "Bitmap" );
     106         417 :     pClassBitmap = new RscSysDepend( nId, RSC_BITMAP, pSuper );
     107         417 :     pClassBitmap->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
     108         417 :     aNmTb.Put( nId, CLASSNAME, pClassBitmap );
     109             : 
     110             :     // Die Klasse RscSysDepend behandelt die Variablen
     111             :     // "FILE" gesondert
     112         417 :     nId = aNmTb.Put( "File", VARNAME );
     113         417 :     pClassBitmap->SetVariable( nId, &aLangString, NULL, VAR_NORC );
     114             : 
     115         417 :     return pClassBitmap;
     116             : }
     117             : 
     118         417 : RscTop * RscTypCont::InitClassColor( RscTop * pSuper, RscEnum * pColor )
     119             : {
     120             :     Atom        nId;
     121             :     RscTop *    pClassColor;
     122             : 
     123             :     // Klasse anlegen
     124         417 :     nId = pHS->getID( "Color" );
     125         417 :     pClassColor = new RscClass( nId, RSC_COLOR, pSuper );
     126         417 :     pClassColor->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
     127         417 :     aNmTb.Put( nId, CLASSNAME, pClassColor );
     128             : 
     129             :     // Variablen anlegen
     130         417 :     nId = aNmTb.Put( "Red", VARNAME );
     131         417 :     pClassColor->SetVariable( nId, &aUShort );
     132         417 :     nId = aNmTb.Put( "Green", VARNAME );
     133         417 :     pClassColor->SetVariable( nId, &aUShort );
     134         417 :     nId = aNmTb.Put( "Blue", VARNAME );
     135         417 :     pClassColor->SetVariable( nId, &aUShort );
     136         417 :     nId = aNmTb.Put( "Predefine", VARNAME );
     137         417 :     pClassColor->SetVariable( nId, pColor );
     138             : 
     139         417 :     return pClassColor;
     140             : }
     141             : 
     142         417 : RscTop * RscTypCont::InitClassImage( RscTop * pSuper, RscTop * pClassBitmap,
     143             :                                      RscTop * pClassColor )
     144             : {
     145             :     Atom        nId;
     146             :     RscTop *    pClassImage;
     147             : 
     148             :     // Klasse anlegen
     149         417 :     nId = pHS->getID( "Image" );
     150         417 :     pClassImage = new RscClass( nId, RSC_IMAGE, pSuper );
     151         417 :     pClassImage->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
     152         417 :     aNmTb.Put( nId, CLASSNAME, pClassImage );
     153             : 
     154             :     // Variablen anlegen
     155         417 :     nId = aNmTb.Put( "ImageBitmap", VARNAME );
     156         417 :     pClassImage->SetVariable( nId, pClassBitmap, NULL, 0, RSC_IMAGE_IMAGEBITMAP );
     157         417 :     nId = aNmTb.Put( "MaskBitmap", VARNAME );
     158         417 :     pClassImage->SetVariable( nId, pClassBitmap, NULL, 0, RSC_IMAGE_MASKBITMAP );
     159         417 :     nId = aNmTb.Put( "MaskColor", VARNAME );
     160             :     pClassImage->SetVariable( nId, pClassColor, NULL,
     161         417 :                               VAR_SVDYNAMIC, RSC_IMAGE_MASKCOLOR );
     162             : 
     163         417 :     return pClassImage;
     164             : }
     165             : 
     166         417 : RscTop * RscTypCont::InitClassImageList( RscTop * pSuper,
     167             :                                          RscTop * pClassColor, RscCont * pStrLst )
     168             : {
     169             :     Atom        nId;
     170             :     RscTop *    pClassImageList;
     171             : 
     172             :     // Klasse anlegen
     173         417 :     nId = pHS->getID( "ImageList" );
     174         417 :     pClassImageList = new RscClass( nId, RSC_IMAGELIST, pSuper );
     175         417 :     pClassImageList->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
     176         417 :     aNmTb.Put( nId, CLASSNAME, pClassImageList );
     177             : 
     178         417 :     nId = aNmTb.Put( "Prefix", VARNAME );
     179         417 :     pClassImageList->SetVariable( nId, &aString );
     180             : 
     181         417 :     nId = aNmTb.Put( "MaskColor", VARNAME );
     182             :     pClassImageList->SetVariable( nId, pClassColor, NULL,
     183         417 :                                   VAR_SVDYNAMIC, RSC_IMAGELIST_MASKCOLOR );
     184             : 
     185         417 :     RscCont * pCont = new RscCont( pHS->getID( "sal_uInt16 *" ), RSC_NOTYPE );
     186         417 :     pCont->SetTypeClass( &aIdUShort );
     187         417 :     aBaseLst.push_back( pCont );
     188         417 :     nId = aNmTb.Put( "IdList", VARNAME );
     189             :     pClassImageList->SetVariable( nId, pCont, NULL, 0,
     190         417 :                                       RSC_IMAGELIST_IDLIST );
     191             : 
     192         417 :     nId = aNmTb.Put( "FileList", VARNAME );
     193         417 :     pClassImageList->SetVariable( nId, pStrLst );
     194             : 
     195         417 :     nId = aNmTb.Put( "IdCount", VARNAME );
     196             :     pClassImageList->SetVariable( nId, &aUShort, NULL, 0,
     197         417 :                                   RSC_IMAGELIST_IDCOUNT );
     198         417 :     return pClassImageList;
     199             : }
     200             : 
     201         417 : RscTop * RscTypCont::InitClassWindow( RscTop * pSuper, RscEnum * pMapUnit,
     202             :                                       RscArray * pLangGeo )
     203             : {
     204             :     Atom        nId;
     205             :     RscTop *    pClassWindow;
     206             : 
     207             :     // Klasse anlegen
     208         417 :     nId = pHS->getID( "Window" );
     209         417 :     pClassWindow = new RscClass( nId, RSC_WINDOW, pSuper );
     210         417 :     pClassWindow->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     211         417 :     aNmTb.Put( nId, CLASSNAME, pClassWindow );
     212             : 
     213             :     // Variablen anlegen
     214             :     {
     215             :         RscFlag *   pFlag;
     216             :         RscClient * pClient;
     217             :         Atom        nVarId, nDisableId, nOutputSizeId;
     218             : 
     219         417 :         aBaseLst.push_back( pFlag = new RscFlag( pHS->getID( "FlagWndExtra" ), RSC_NOTYPE ) );
     220             : 
     221             :         // Konstanten in Tabelle stellen
     222         417 :         nDisableId = pHS->getID( "RSWND_DISABLE" );
     223         417 :         SETCONST( pFlag, nDisableId, RSWND_DISABLED );
     224         417 :         nOutputSizeId = pHS->getID( "RSWND_OUTPUTSIZE" );
     225         417 :         SETCONST( pFlag, nOutputSizeId, RSWND_CLIENTSIZE );
     226             : 
     227             :         // Variable einfuegen
     228         417 :         nVarId = aNmTb.Put( "_RscExtraFlags", VARNAME );
     229             :         pClassWindow->SetVariable( nVarId, pFlag, NULL,
     230         417 :                                                                         VAR_HIDDEN | VAR_NOENUM );
     231             : 
     232             :         aBaseLst.push_back(
     233        1251 :             pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, nDisableId )
     234         834 :         );
     235         417 :         nId = aNmTb.Put( "Disable", VARNAME );
     236             :         pClassWindow->SetVariable( nId, pClient, NULL,
     237         417 :                                    VAR_NODATAINST, 0, nVarId );
     238             : 
     239             :         aBaseLst.push_back(
     240        1251 :             pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, nOutputSizeId )
     241         834 :         );
     242         417 :         nId = aNmTb.Put( "OutputSize", VARNAME );
     243             :         pClassWindow->SetVariable( nId, pClient, NULL,
     244         417 :                                    VAR_NODATAINST, 0, nVarId );
     245             :     }
     246             : 
     247             :     pClassWindow->SetVariable( nWinBitVarId, &aWinBits, NULL,
     248         417 :                                VAR_HIDDEN | VAR_NOENUM );
     249             : 
     250         417 :     INS_WINBIT(pClassWindow,Border)
     251         417 :     INS_WINBIT(pClassWindow,Hide)
     252         417 :     INS_WINBIT(pClassWindow,ClipChildren)
     253         417 :     INS_WINBIT(pClassWindow,SVLook)
     254         417 :     InsWinBit( pClassWindow, "DialogControl", nTabControlId );
     255             : 
     256         417 :     nId = aNmTb.Put( "HelpID", VARNAME );
     257         417 :     pClassWindow->SetVariable( nId, &aStringLiteral, NULL, 0, WINDOW_HELPID );
     258             : 
     259             : 
     260         417 :     nRsc_XYMAPMODEId = nId = aNmTb.Put( "_XYMapMode", VARNAME );
     261         417 :     pClassWindow->SetVariable( nId, pMapUnit, NULL, 0, WINDOW_XYMAPMODE  );
     262         417 :     nRsc_X = nId = aNmTb.Put( "_X", VARNAME );
     263         417 :     pClassWindow->SetVariable( nId, &aLong, NULL, 0, WINDOW_X  );
     264         417 :     nRsc_Y = nId = aNmTb.Put( "_Y", VARNAME );
     265         417 :     pClassWindow->SetVariable( nId, &aLong, NULL, 0, WINDOW_Y  );
     266             : 
     267         417 :     nRsc_WHMAPMODEId = nId = aNmTb.Put( "_WHMapMode", VARNAME );
     268         417 :     pClassWindow->SetVariable( nId, pMapUnit, NULL, 0, WINDOW_WHMAPMODE  );
     269         417 :     nRsc_WIDTH = nId = aNmTb.Put( "_Width", VARNAME );
     270         417 :     pClassWindow->SetVariable( nId, &aLong, NULL, 0, WINDOW_WIDTH  );
     271         417 :     nRsc_HEIGHT = nId = aNmTb.Put( "_Height", VARNAME );
     272         417 :     pClassWindow->SetVariable( nId, &aLong, NULL, 0, WINDOW_HEIGHT  );
     273             : 
     274         417 :     nRsc_DELTALANG = nId = aNmTb.Put( "DeltaLang", VARNAME );
     275         417 :     pClassWindow->SetVariable( nId, pLangGeo, NULL, VAR_NORC | VAR_NOENUM);
     276         417 :     nId = aNmTb.Put( "Text", VARNAME );
     277         417 :     pClassWindow->SetVariable( nId, &aLangString, NULL, 0, WINDOW_TEXT );
     278         417 :     nId = aNmTb.Put( "HelpText", VARNAME );
     279         417 :     pClassWindow->SetVariable( nId, &aLangString, NULL, 0, WINDOW_HELPTEXT );
     280         417 :     nId = aNmTb.Put( "QuickHelpText", VARNAME );
     281         417 :     pClassWindow->SetVariable( nId, &aLangString, NULL, 0, WINDOW_QUICKTEXT );
     282         417 :     nId = aNmTb.Put( "ExtraLong", VARNAME );
     283         417 :     pClassWindow->SetVariable( nId, &aLong, NULL, 0, WINDOW_EXTRALONG );
     284         417 :     nId = aNmTb.Put( "UniqueId", VARNAME );
     285         417 :     pClassWindow->SetVariable( nId, &aString, NULL, 0, WINDOW_UNIQUEID );
     286             : 
     287             :     // BorderStyle
     288         417 :     RscEnum* pBorderStyleEnum = new RscEnum( pHS->getID( "WindowBorderStyle" ), RSC_NOTYPE );
     289         417 :     aBaseLst.push_back( pBorderStyleEnum );
     290             : 
     291             :     // Konstanten in Tabelle stellen
     292         417 :     SETCONST( pBorderStyleEnum, pHS->getID( "WINDOW_BORDER_NORMAL" ),    WindowBorderStyle::NORMAL );
     293         417 :     SETCONST( pBorderStyleEnum, pHS->getID( "WINDOW_BORDER_MONO" ),      WindowBorderStyle::MONO );
     294         417 :     SETCONST( pBorderStyleEnum, pHS->getID( "WINDOW_BORDER_MENU" ),      WindowBorderStyle::MENU );
     295         417 :     SETCONST( pBorderStyleEnum, pHS->getID( "WINDOW_BORDER_NOBORDER" ),  WindowBorderStyle::NOBORDER );
     296             : 
     297             :     // Variable einfuegen
     298         417 :     nId = aNmTb.Put( "BorderStyle", VARNAME );
     299             :     pClassWindow->SetVariable( nId, pBorderStyleEnum, NULL,
     300             :                                     0,
     301         417 :                                     WINDOW_BORDER_STYLE );
     302             : 
     303         417 :     return pClassWindow;
     304             : }
     305             : 
     306         417 : RscTop * RscTypCont::InitClassSystemWindow( RscTop * pSuper )
     307             : {
     308             :     Atom        nId;
     309             :     RscTop *    pClassSystemWindow;
     310             : 
     311             :     // Klasse anlegen
     312         417 :     nId = pHS->getID( "SystemWindow" );
     313         417 :     pClassSystemWindow = new RscClass( nId, RSC_SYSWINDOW, pSuper );
     314         417 :     pClassSystemWindow->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     315         417 :     aNmTb.Put( nId, CLASSNAME, pClassSystemWindow );
     316             : 
     317         417 :     INS_WINBIT(pClassSystemWindow,Sizeable)
     318         417 :     INS_WINBIT(pClassSystemWindow,Moveable)
     319         417 :     InsWinBit( pClassSystemWindow, "Minable", nMinimizeId );
     320         417 :     InsWinBit( pClassSystemWindow, "Maxable", nMaximizeId );
     321         417 :     INS_WINBIT(pClassSystemWindow,Closeable)
     322         417 :     INS_WINBIT(pClassSystemWindow,App)
     323         417 :     INS_WINBIT(pClassSystemWindow,SysWin)
     324             : 
     325         417 :     return pClassSystemWindow ;
     326             : }
     327             : 
     328         417 : RscTop * RscTypCont::InitClassWorkWindow( RscTop * pSuper )
     329             : {
     330             :     Atom        nId;
     331             :     RscTop *    pClassWorkWindow;
     332             : 
     333             :     // Klasse anlegen
     334         417 :     nId = pHS->getID( "WorkWindow" );
     335         417 :     pClassWorkWindow = new RscClass( nId, RSC_WORKWIN, pSuper );
     336         417 :     pClassWorkWindow->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     337             : 
     338         417 :     aNmTb.Put( nId, CLASSNAME, pClassWorkWindow );
     339             : 
     340             :     // Variablen anlegen
     341             :     {
     342             :         Atom        nVarId;
     343             :         RscEnum   * pShow;
     344             : 
     345         417 :         aBaseLst.push_back( pShow = new RscEnum( pHS->getID( "EnumShowState" ), RSC_NOTYPE ) );
     346             : 
     347         417 :         SETCONST( pShow, "SHOW_NORMAL",        WORKWIN_SHOWNORMAL    );
     348         417 :         SETCONST( pShow, "SHOW_MINIMIZED",     WORKWIN_SHOWMINIMIZED );
     349         417 :         SETCONST( pShow, "SHOW_MAXIMIZED",     WORKWIN_SHOWMAXIMIZED );
     350             : 
     351             : 
     352             :         // Variable einfuegen
     353         417 :         nVarId = aNmTb.Put( "Show", VARNAME );
     354         417 :         pClassWorkWindow->SetVariable( nVarId, pShow, NULL );
     355             :     }
     356             : 
     357         417 :     return pClassWorkWindow;
     358             : }
     359             : 
     360         417 : RscTop * RscTypCont::InitClassControl( RscTop * pSuper )
     361             : {
     362             :     Atom        nId;
     363             :     RscTop *    pClassControl;
     364             : 
     365             :     // Klasse anlegen
     366         417 :     nId = pHS->getID( "Control" );
     367         417 :     pClassControl = new RscClass( nId, RSC_CONTROL, pSuper );
     368         417 :     pClassControl->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     369         417 :     aNmTb.Put( nId, CLASSNAME, pClassControl );
     370             : 
     371         417 :     InsWinBit( pClassControl, "TabStop", nTabstopId );
     372         417 :     INS_WINBIT(pClassControl,Group)
     373             : 
     374         417 :     return pClassControl;
     375             : }
     376             : 
     377         417 : RscTop * RscTypCont::InitClassCheckBox( RscTop * pSuper )
     378             : {
     379             :     Atom        nId;
     380             :     RscTop *    pClassCheckBox;
     381             : 
     382             :     // Klasse anlegen
     383         417 :     nId = pHS->getID( "CheckBox" );
     384         417 :     pClassCheckBox = new RscClass( nId, RSC_CHECKBOX, pSuper );
     385         417 :     pClassCheckBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     386         417 :     aNmTb.Put( nId, CLASSNAME, pClassCheckBox );
     387             : 
     388             :     // Variablen anlegen
     389         417 :     INS_WINBIT( pClassCheckBox, WordBreak )
     390         417 :     INS_WINBIT( pClassCheckBox, Top )
     391         417 :     INS_WINBIT( pClassCheckBox, VCenter )
     392         417 :     INS_WINBIT( pClassCheckBox, Bottom )
     393             : 
     394         417 :     nId = aNmTb.Put( "Check", VARNAME );
     395         417 :     pClassCheckBox->SetVariable( nId, &aBool );
     396             : 
     397         417 :     return pClassCheckBox;
     398             : }
     399             : 
     400         417 : RscTop * RscTypCont::InitClassPushButton( RscTop * pSuper )
     401             : {
     402             :     Atom        nId;
     403             :     RscTop *    pClassPushButton;
     404             : 
     405             :     // Klasse anlegen
     406         417 :     nId = pHS->getID( "PushButton" );
     407         417 :     pClassPushButton = new RscClass( nId, RSC_PUSHBUTTON, pSuper );
     408         417 :     pClassPushButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     409         417 :     aNmTb.Put( nId, CLASSNAME, pClassPushButton );
     410             : 
     411         417 :     InsWinBit( pClassPushButton, "DefButton", nDefaultId );
     412         417 :     INS_WINBIT( pClassPushButton, Top )
     413         417 :     INS_WINBIT( pClassPushButton, VCenter )
     414         417 :     INS_WINBIT( pClassPushButton, Bottom )
     415             : 
     416         417 :     return pClassPushButton;
     417             : }
     418             : 
     419         417 : RscTop * RscTypCont::InitClassImageButton( RscTop * pSuper,
     420             :                                            RscTop * pClassImage,
     421             :                                            RscEnum * pTriState )
     422             : {
     423             :     Atom        nId;
     424             :     RscTop *    pClassImageButton;
     425             : 
     426             :     // Klasse anlegen
     427         417 :     nId = pHS->getID( "ImageButton" );
     428         417 :     pClassImageButton = new RscClass( nId, RSC_IMAGEBUTTON, pSuper );
     429         417 :     pClassImageButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     430         417 :     aNmTb.Put( nId, CLASSNAME, pClassImageButton );
     431             : 
     432             :     // Variablen anlegen
     433             :     {
     434         417 :         nId = aNmTb.Put( "ButtonImage", VARNAME );
     435             :         pClassImageButton->SetVariable( nId, pClassImage, NULL, 0,
     436         417 :                                          RSC_IMAGEBUTTON_IMAGE );
     437             :     }
     438             :     // Variablen anlegen
     439             :     {
     440             :         Atom        nVarId;
     441             :         RscEnum   * pSymbol;
     442             : 
     443         417 :         aBaseLst.push_back( pSymbol = new RscEnum( pHS->getID( "EnumSymbolButton" ), RSC_NOTYPE ) );
     444             : 
     445         417 :         SETCONST( pSymbol, "IMAGEBUTTON_DONTKNOW",      SymbolType::DONTKNOW );
     446         417 :         SETCONST( pSymbol, "IMAGEBUTTON_IMAGE",         SymbolType::IMAGE );
     447         417 :         SETCONST( pSymbol, "IMAGEBUTTON_ARROW_UP",      SymbolType::ARROW_UP );
     448         417 :         SETCONST( pSymbol, "IMAGEBUTTON_ARROW_DOWN",    SymbolType::ARROW_DOWN );
     449         417 :         SETCONST( pSymbol, "IMAGEBUTTON_ARROW_LEFT",    SymbolType::ARROW_LEFT );
     450         417 :         SETCONST( pSymbol, "IMAGEBUTTON_ARROW_RIGHT",   SymbolType::ARROW_RIGHT );
     451         417 :         SETCONST( pSymbol, "IMAGEBUTTON_SPIN_UP",       SymbolType::SPIN_UP );
     452         417 :         SETCONST( pSymbol, "IMAGEBUTTON_SPIN_DOWN",     SymbolType::SPIN_DOWN );
     453         417 :         SETCONST( pSymbol, "IMAGEBUTTON_SPIN_LEFT",     SymbolType::SPIN_LEFT );
     454         417 :         SETCONST( pSymbol, "IMAGEBUTTON_SPIN_RIGHT",    SymbolType::SPIN_RIGHT );
     455         417 :         SETCONST( pSymbol, "IMAGEBUTTON_FIRST",         SymbolType::FIRST );
     456         417 :         SETCONST( pSymbol, "IMAGEBUTTON_LAST",          SymbolType::LAST );
     457         417 :         SETCONST( pSymbol, "IMAGEBUTTON_PREV",          SymbolType::PREV );
     458         417 :         SETCONST( pSymbol, "IMAGEBUTTON_NEXT",          SymbolType::NEXT );
     459         417 :         SETCONST( pSymbol, "IMAGEBUTTON_PAGEUP",        SymbolType::PAGEUP );
     460         417 :         SETCONST( pSymbol, "IMAGEBUTTON_PAGEDOWN",      SymbolType::PAGEDOWN );
     461         417 :         SETCONST( pSymbol, "IMAGEBUTTON_PLAY",          SymbolType::PLAY );
     462         417 :         SETCONST( pSymbol, "IMAGEBUTTON_REVERSEPLAY",   SymbolType::REVERSEPLAY );
     463         417 :         SETCONST( pSymbol, "IMAGEBUTTON_STOP",          SymbolType::STOP );
     464         417 :         SETCONST( pSymbol, "IMAGEBUTTON_PAUSE",         SymbolType::PAUSE );
     465         417 :         SETCONST( pSymbol, "IMAGEBUTTON_WINDSTART",     SymbolType::WINDSTART );
     466         417 :         SETCONST( pSymbol, "IMAGEBUTTON_WINDEND",       SymbolType::WINDEND );
     467         417 :         SETCONST( pSymbol, "IMAGEBUTTON_WINDBACKWARD",  SymbolType::WINDBACKWARD );
     468         417 :         SETCONST( pSymbol, "IMAGEBUTTON_WINDFORWARD",   SymbolType::WINDFORWARD );
     469             : 
     470             :         // Variable einfuegen
     471         417 :         nVarId = aNmTb.Put( "Symbol", VARNAME );
     472             :         pClassImageButton->SetVariable( nVarId, pSymbol, NULL, 0,
     473         417 :                                         RSC_IMAGEBUTTON_SYMBOL );
     474             :     }
     475         417 :     nId = aNmTb.Put( "State", VARNAME );
     476             :     pClassImageButton->SetVariable( nId, pTriState, NULL, 0,
     477         417 :                                     RSC_IMAGEBUTTON_STATE );
     478             : 
     479         417 :     INS_WINBIT(pClassImageButton,Repeat)
     480         417 :     INS_WINBIT(pClassImageButton,SmallStyle)
     481         417 :     INS_WINBIT(pClassImageButton,RectStyle)
     482             : 
     483         417 :     return pClassImageButton;
     484             : }
     485             : 
     486         417 : RscTop * RscTypCont::InitClassEdit( RscTop * pSuper )
     487             : {
     488             :     Atom        nId;
     489             :     RscTop *    pClassEdit;
     490             : 
     491             :     // Klasse anlegen
     492         417 :     nId                     = pHS->getID( "Edit" );
     493         417 :     pClassEdit = new RscClass( nId, RSC_EDIT, pSuper );
     494         417 :     pClassEdit->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     495         417 :     aNmTb.Put( nId, CLASSNAME, pClassEdit );
     496             : 
     497         417 :     INS_WINBIT(pClassEdit,Left)
     498         417 :     INS_WINBIT(pClassEdit,Center)
     499         417 :     INS_WINBIT(pClassEdit,Right)
     500         417 :     INS_WINBIT(pClassEdit,PassWord)
     501         417 :     INS_WINBIT(pClassEdit,ReadOnly)
     502             : 
     503         417 :     nId = aNmTb.Put( "MaxTextLength", VARNAME );
     504         417 :     pClassEdit->SetVariable( nId, &aUShort );
     505             : 
     506         417 :     return pClassEdit;
     507             : }
     508             : 
     509         417 : RscTop * RscTypCont::InitClassListBox( RscTop * pSuper, RscArray * pStrLst )
     510             : {
     511             :     Atom        nId;
     512             :     RscTop *    pClassListBox;
     513             : 
     514             :     // Klasse anlegen
     515         417 :     nId = pHS->getID( "ListBox" );
     516         417 :     pClassListBox = new RscClass( nId, RSC_LISTBOX, pSuper );
     517         417 :     pClassListBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     518         417 :     aNmTb.Put( nId, CLASSNAME, pClassListBox );
     519             : 
     520             :     // Variablen anlegen
     521         417 :     INS_WINBIT(pClassListBox,Sort)
     522         417 :     INS_WINBIT(pClassListBox,DropDown)
     523         417 :     INS_WINBIT(pClassListBox,HScroll);
     524         417 :     INS_WINBIT(pClassListBox,VScroll);
     525         417 :     INS_WINBIT(pClassListBox,AutoSize)
     526         417 :     INS_WINBIT(pClassListBox,AutoHScroll)
     527         417 :     INS_WINBIT(pClassListBox,DDExtraWidth)
     528             : 
     529             :     {
     530         417 :         RSCINST aDflt = aUShort.Create( NULL, RSCINST(), false );
     531         417 :         aDflt.pClass->SetNumber( aDflt, (sal_uInt16)0xFFFF );
     532         417 :         nId = aNmTb.Put( "CurPos", VARNAME );
     533         417 :         pClassListBox->SetVariable( nId, &aUShort, &aDflt );
     534             :     }
     535         417 :     nId = aNmTb.Put( "StringList", VARNAME );
     536         417 :     pClassListBox->SetVariable( nId, pStrLst );
     537             : 
     538         417 :     return pClassListBox;
     539             : }
     540             : 
     541         417 : RscTop * RscTypCont::InitClassComboBox( RscTop * pSuper, RscArray * pStrLst )
     542             : {
     543             :     Atom        nId;
     544             :     RscTop *    pClassComboBox;
     545             : 
     546             :     // Klasse anlegen
     547         417 :     nId = pHS->getID( "ComboBox" );
     548         417 :     pClassComboBox = new RscClass( nId, RSC_COMBOBOX, pSuper );
     549         417 :     pClassComboBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     550         417 :     aNmTb.Put( nId, CLASSNAME, pClassComboBox );
     551             : 
     552             :     // Variablen anlegen
     553         417 :     INS_WINBIT(pClassComboBox,DropDown)
     554         417 :     INS_WINBIT(pClassComboBox,Sort)
     555         417 :     INS_WINBIT(pClassComboBox,HScroll);
     556         417 :     INS_WINBIT(pClassComboBox,VScroll);
     557         417 :     INS_WINBIT(pClassComboBox,AutoSize)
     558         417 :     INS_WINBIT(pClassComboBox,AutoHScroll)
     559         417 :     INS_WINBIT(pClassComboBox,DDExtraWidth)
     560             : 
     561         417 :     nId = aNmTb.Put( "StringList", VARNAME );
     562         417 :     pClassComboBox->SetVariable( nId, pStrLst );
     563             : 
     564         417 :     return pClassComboBox;
     565             : }
     566             : 
     567         417 : RscTop * RscTypCont::InitClassFixedText( RscTop * pSuper )
     568             : {
     569             :     Atom        nId;
     570             :     RscTop *    pClassFixedText;
     571             : 
     572             :     // Klasse anlegen
     573         417 :     nId = pHS->getID( "FixedText" );
     574         417 :     pClassFixedText = new RscClass( nId, RSC_TEXT, pSuper );
     575         417 :     pClassFixedText->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     576         417 :     aNmTb.Put( nId, CLASSNAME, pClassFixedText );
     577             : 
     578             :     // Variablen anlegen
     579         417 :     INS_WINBIT(pClassFixedText,Left)
     580         417 :     INS_WINBIT(pClassFixedText,Center)
     581         417 :     INS_WINBIT(pClassFixedText,Right)
     582         417 :     INS_WINBIT(pClassFixedText,WordBreak)
     583         417 :     INS_WINBIT(pClassFixedText,LeftLabel)
     584         417 :     INS_WINBIT(pClassFixedText,NoLabel)
     585         417 :     INS_WINBIT(pClassFixedText,Top)
     586         417 :     INS_WINBIT(pClassFixedText,VCenter)
     587         417 :     INS_WINBIT(pClassFixedText,Bottom)
     588             : 
     589         417 :     return pClassFixedText;
     590             : }
     591             : 
     592         417 : RscTop * RscTypCont::InitClassFixedImage( RscTop * pSuper, RscTop * pClassImage )
     593             : {
     594             :     Atom        nId;
     595             :     RscTop *    pClassFixedImage;
     596             : 
     597             :     // Klasse anlegen
     598         417 :     nId = pHS->getID( "FixedImage" );
     599         417 :     pClassFixedImage = new RscClass( nId, RSC_FIXEDIMAGE, pSuper );
     600         417 :     pClassFixedImage->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     601         417 :     aNmTb.Put( nId, CLASSNAME, pClassFixedImage );
     602             : 
     603             :     // Variablen anlegen
     604         417 :     nId = aNmTb.Put( "Fixed", VARNAME );
     605         417 :     pClassFixedImage->SetVariable( nId, pClassImage, 0, 0, RSC_FIXEDIMAGE_IMAGE );
     606             : 
     607         417 :     return pClassFixedImage;
     608             : }
     609             : 
     610         417 : RscTop * RscTypCont::InitClassRadioButton( RscTop * pSuper )
     611             : {
     612             :     Atom        nId;
     613             :     RscTop *    pClassRadioButton;
     614             : 
     615             :     // Klasse anlegen
     616         417 :     nId = pHS->getID( "RadioButton" );
     617         417 :     pClassRadioButton = new RscClass( nId, RSC_RADIOBUTTON, pSuper );
     618         417 :     pClassRadioButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     619         417 :     aNmTb.Put( nId, CLASSNAME, pClassRadioButton );
     620             : 
     621             :     // Variablen anlegen
     622         417 :     INS_WINBIT( pClassRadioButton, WordBreak )
     623         417 :     INS_WINBIT( pClassRadioButton, Top )
     624         417 :     INS_WINBIT( pClassRadioButton, VCenter )
     625         417 :     INS_WINBIT( pClassRadioButton, Bottom )
     626             : 
     627         417 :     nId = aNmTb.Put( "Check", VARNAME );
     628         417 :     pClassRadioButton->SetVariable( nId, &aBool );
     629             : 
     630         417 :     return pClassRadioButton;
     631             : }
     632             : 
     633         417 : RscTop * RscTypCont::InitClassKeyCode( RscTop * pSuper, RscEnum * pKey )
     634             : {
     635             :     Atom        nId;
     636             :     RscTop *    pClassKeyCode;
     637             : 
     638             :     // Klasse anlegen
     639         417 :     nId = pHS->getID( "KeyCode" );
     640         417 :     pClassKeyCode = new RscClass( nId, RSC_KEYCODE, pSuper );
     641         417 :     aNmTb.Put( nId, CLASSNAME, pClassKeyCode );
     642             : 
     643             :     // Variablen anlegen
     644         417 :     nId = aNmTb.Put( "Code", VARNAME );
     645         417 :     pClassKeyCode->SetVariable( nId, pKey );
     646             : 
     647             :     {
     648             :         RscFlag *   pFlag;
     649             :         RscClient * pClient;
     650             :         Atom        nVarId, nShiftId, nMod1Id, nMod2Id;
     651             : 
     652         417 :         aBaseLst.push_back( pFlag = new RscFlag( pHS->getID( "FlagKeyModifier" ), RSC_NOTYPE ) );
     653             : 
     654             :         // Konstanten in Tabelle stellen
     655         417 :         nShiftId = pHS->getID( "KEY_SHIFT" );
     656         417 :         SETCONST( pFlag, nShiftId, KEY_SHIFT );
     657         417 :         nMod1Id = pHS->getID( "KEY_MOD1" );
     658         417 :         SETCONST( pFlag, nMod1Id, KEY_MOD1 );
     659         417 :         nMod2Id = pHS->getID( "KEY_MOD2" );
     660         417 :         SETCONST( pFlag, nMod2Id, KEY_MOD2 );
     661             : 
     662             :         // Variable einfuegen
     663         417 :         nVarId = aNmTb.Put( "_ModifierFlags", VARNAME );
     664             :         pClassKeyCode->SetVariable( nVarId, pFlag, NULL,
     665         417 :                                                                         VAR_HIDDEN | VAR_NOENUM );
     666             : 
     667             :         // Clientvariablen einfuegen
     668             :         aBaseLst.push_back(
     669        1251 :             pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, nShiftId )
     670         834 :         );
     671         417 :         nId = aNmTb.Put( "Shift", VARNAME );
     672             :         pClassKeyCode->SetVariable( nId, pClient, NULL,
     673         417 :                                    VAR_NODATAINST, 0, nVarId );
     674             : 
     675             :         aBaseLst.push_back(
     676        1251 :             pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, nMod1Id )
     677         834 :         );
     678         417 :         nId = aNmTb.Put( "Modifier1", VARNAME );
     679             :         pClassKeyCode->SetVariable( nId, pClient, NULL,
     680         417 :                                    VAR_NODATAINST, 0, nVarId );
     681             : 
     682             : 
     683             :         aBaseLst.push_back(
     684        1251 :             pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, nMod2Id )
     685         834 :         );
     686         417 :         nId = aNmTb.Put( "Modifier2", VARNAME );
     687             :         pClassKeyCode->SetVariable( nId, pClient, NULL,
     688         417 :                                    VAR_NODATAINST, 0, nVarId );
     689             :     }
     690             :     {
     691             :         Atom        nVarId;
     692             :         RscEnum   * pKeyFunc;
     693             : 
     694         417 :         aBaseLst.push_back( pKeyFunc = new RscEnum( pHS->getID( "EnumKeyFunc" ), RSC_NOTYPE ) );
     695             : 
     696         417 :         SETCONST( pKeyFunc, "KEYFUNC_DONTKNOW",         KeyFuncType::DONTKNOW        );
     697         417 :         SETCONST( pKeyFunc, "KEYFUNC_NEW",              KeyFuncType::NEW             );
     698         417 :         SETCONST( pKeyFunc, "KEYFUNC_OPEN",             KeyFuncType::OPEN            );
     699         417 :         SETCONST( pKeyFunc, "KEYFUNC_SAVE",             KeyFuncType::SAVE            );
     700         417 :         SETCONST( pKeyFunc, "KEYFUNC_SAVEAS",           KeyFuncType::SAVEAS          );
     701         417 :         SETCONST( pKeyFunc, "KEYFUNC_PRINT",            KeyFuncType::PRINT           );
     702         417 :         SETCONST( pKeyFunc, "KEYFUNC_CLOSE",            KeyFuncType::CLOSE           );
     703         417 :         SETCONST( pKeyFunc, "KEYFUNC_QUIT",             KeyFuncType::QUIT            );
     704         417 :         SETCONST( pKeyFunc, "KEYFUNC_CUT",              KeyFuncType::CUT             );
     705         417 :         SETCONST( pKeyFunc, "KEYFUNC_COPY",             KeyFuncType::COPY            );
     706         417 :         SETCONST( pKeyFunc, "KEYFUNC_PASTE",            KeyFuncType::PASTE           );
     707         417 :         SETCONST( pKeyFunc, "KEYFUNC_UNDO",             KeyFuncType::UNDO            );
     708         417 :         SETCONST( pKeyFunc, "KEYFUNC_REDO",             KeyFuncType::REDO            );
     709         417 :         SETCONST( pKeyFunc, "KEYFUNC_DELETE",           KeyFuncType::DELETE          );
     710         417 :         SETCONST( pKeyFunc, "KEYFUNC_REPEAT",           KeyFuncType::REPEAT          );
     711         417 :         SETCONST( pKeyFunc, "KEYFUNC_FIND",             KeyFuncType::FIND            );
     712         417 :         SETCONST( pKeyFunc, "KEYFUNC_PROPERTIES",       KeyFuncType::PROPERTIES      );
     713         417 :         SETCONST( pKeyFunc, "KEYFUNC_FRONT",            KeyFuncType::FRONT           );
     714         417 :         SETCONST( pKeyFunc, "KEYFUNC_FINDBACKWARD",     KeyFuncType::FINDBACKWARD );
     715             :         // Variable einfuegen
     716         417 :         nVarId = aNmTb.Put( "Function", VARNAME );
     717         417 :         pClassKeyCode->SetVariable( nVarId, pKeyFunc, NULL );
     718             :     }
     719             : 
     720         417 :     return pClassKeyCode;
     721             : }
     722             : 
     723         417 : RscTop * RscTypCont::InitClassAccelItem( RscTop * pSuper,
     724             :                                          RscTop * pClassKeyCode )
     725             : {
     726             :     Atom        nId;
     727             :     RscTop *    pClassAccelItem;
     728             : 
     729             :     // Klasse anlegen
     730         417 :     nId = pHS->getID( "AcceleratorItem" );
     731         417 :     pClassAccelItem = new RscClass( nId, RSC_ACCELITEM, pSuper );
     732         417 :     aNmTb.Put( nId, CLASSNAME, pClassAccelItem );
     733             : 
     734             :     // Variablen anlegen
     735         417 :     nId = aNmTb.Put( "Identifier", VARNAME );
     736         417 :     pClassAccelItem->SetVariable( nId, &aIdNoZeroUShort );
     737         417 :     nId = aNmTb.Put( "Disable", VARNAME );
     738         417 :     pClassAccelItem->SetVariable( nId, &aBool );
     739         417 :     nId = aNmTb.Put( "Key", VARNAME );
     740             :     pClassAccelItem->SetVariable( nId, pClassKeyCode, NULL, 0,
     741         417 :                                   ACCELITEM_KEY );
     742             : 
     743         417 :     return pClassAccelItem;
     744             : }
     745             : 
     746         417 : RscTop * RscTypCont::InitClassAccel( RscTop * pSuper, RscTop * pClassAccelItem )
     747             : {
     748             :     Atom        nId;
     749             :     RscTop *    pClassAccel;
     750             : 
     751             :     // Klasse anlegen
     752         417 :     nId = pHS->getID( "Accelerator" );
     753         417 :     pClassAccel = new RscClass( nId, RSC_ACCEL, pSuper );
     754         417 :     pClassAccel->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
     755         417 :     aNmTb.Put( nId, CLASSNAME, pClassAccel );
     756             : 
     757             :     // Variablen anlegen
     758         417 :     nId = aNmTb.Put( "HelpText", VARNAME );
     759         417 :     pClassAccel->SetVariable( nId, &aLangString );
     760             :     {
     761             :         RscCont * pCont;
     762             : 
     763             :         aBaseLst.push_back(
     764        1251 :             pCont = new RscCont( pHS->getID( "ContAcceleratorKey" ), RSC_NOTYPE )
     765         834 :         );
     766         417 :         pCont->SetTypeClass( pClassAccelItem );
     767         417 :         nId = aNmTb.Put( "ItemList", VARNAME );
     768         417 :         pClassAccel->SetVariable( nId, pCont );
     769             :     }
     770             : 
     771         417 :     return pClassAccel;
     772             : }
     773             : 
     774         417 : RscTop * RscTypCont::InitClassMenuItem( RscTop * pSuper,
     775             :                                         RscTop * pClassBitmap,
     776             :                                                                                 RscTop * pClassKeyCode )
     777             : {
     778             :     Atom        nId;
     779             :     RscTop *    pClassMenuItem;
     780             : 
     781             :     // Klasse anlegen
     782         417 :     nId = pHS->getID( "MenuItem" );
     783         417 :     pClassMenuItem = new RscClass( nId, RSC_MENUITEM, pSuper );
     784         417 :     aNmTb.Put( nId, CLASSNAME, pClassMenuItem );
     785             : 
     786             :     // Variablen anlegen
     787         417 :     nId = aNmTb.Put( "Separator", VARNAME );
     788             :     pClassMenuItem->SetVariable( nId, &aBool, NULL, 0,
     789         417 :                                  RSC_MENUITEM_SEPARATOR );
     790         417 :     nId = aNmTb.Put( "Identifier", VARNAME );
     791             :     pClassMenuItem->SetVariable( nId, &aIdNoZeroUShort, NULL, 0,
     792         417 :                                  RSC_MENUITEM_ID );
     793             :     {
     794             :         RscFlag *   pFlag;
     795             :         RscClient * pClient;
     796             :         Atom        nVarId, nAutoCheckId, nRadioCheckId;
     797             :         Atom        nCheckableId, nAboutId, nHelpId;
     798             : 
     799         417 :         aBaseLst.push_back( pFlag = new RscFlag( pHS->getID( "FlagMenuState" ), RSC_NOTYPE ) );
     800             : 
     801             :         // Konstanten in Tabelle stellen
     802         417 :         nCheckableId = pHS->getID( "MIB_CHECKABLE" );
     803         417 :         SETCONST( pFlag, nCheckableId, MenuItemBits::CHECKABLE );
     804         417 :         nAutoCheckId = pHS->getID( "MIB_AUTOCHECK" );
     805         417 :         SETCONST( pFlag, nAutoCheckId, MenuItemBits::AUTOCHECK );
     806         417 :         nRadioCheckId = pHS->getID( "MIB_RADIOCHECK" );
     807         417 :         SETCONST( pFlag, nRadioCheckId, MenuItemBits::RADIOCHECK );
     808         417 :         nAboutId = pHS->getID( "MIB_ABOUT" );
     809         417 :         SETCONST( pFlag, nAboutId, MenuItemBits::ABOUT );
     810         417 :         nHelpId = pHS->getID( "MIB_HELP" );
     811         417 :         SETCONST( pFlag, nHelpId, MenuItemBits::HELP );
     812             : 
     813             :         // Variable einfuegen
     814         417 :         nVarId = aNmTb.Put( "_MenuItemFlags", VARNAME );
     815             :         pClassMenuItem->SetVariable( nVarId, pFlag, NULL,
     816             :                                      VAR_HIDDEN | VAR_NOENUM,
     817         417 :                                      RSC_MENUITEM_STATUS );
     818             : 
     819             :         // Clientvariablen einfuegen
     820             :         aBaseLst.push_back(
     821        1251 :             pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, nCheckableId )
     822         834 :         );
     823         417 :         nId = aNmTb.Put( "Checkable", VARNAME );
     824             :         pClassMenuItem->SetVariable( nId, pClient, NULL,
     825         417 :                                      VAR_NODATAINST, 0, nVarId );
     826             : 
     827             :         aBaseLst.push_back(
     828        1251 :             pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, nAutoCheckId )
     829         834 :         );
     830         417 :         nId = aNmTb.Put( "AutoCheck", VARNAME );
     831             :         pClassMenuItem->SetVariable( nId, pClient, NULL,
     832         417 :                                      VAR_NODATAINST, 0, nVarId );
     833             : 
     834             :         aBaseLst.push_back(
     835        1251 :             pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, nRadioCheckId )
     836         834 :         );
     837         417 :         nId = aNmTb.Put( "RadioCheck", VARNAME );
     838             :         pClassMenuItem->SetVariable( nId, pClient, NULL,
     839         417 :                                      VAR_NODATAINST, 0, nVarId );
     840             : 
     841             :         aBaseLst.push_back(
     842        1251 :             pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, nAboutId )
     843         834 :         );
     844         417 :         nId = aNmTb.Put( "About", VARNAME );
     845             :         pClassMenuItem->SetVariable( nId, pClient, NULL,
     846         417 :                                      VAR_NODATAINST, 0, nVarId );
     847             : 
     848             :         aBaseLst.push_back(
     849        1251 :             pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, nHelpId )
     850         834 :         );
     851         417 :         nId = aNmTb.Put( "Help", VARNAME );
     852             :         pClassMenuItem->SetVariable( nId, pClient, NULL,
     853         417 :                                      VAR_NODATAINST, 0, nVarId );
     854             : 
     855             :     }
     856         417 :     nId = aNmTb.Put( "Text", VARNAME );
     857             :     pClassMenuItem->SetVariable( nId, &aLangString, NULL, 0,
     858         417 :                                  RSC_MENUITEM_TEXT );
     859         417 :     nId = aNmTb.Put( "ItemBitmap", VARNAME );
     860             :     pClassMenuItem->SetVariable( nId, pClassBitmap, NULL, 0,
     861         417 :                                  RSC_MENUITEM_BITMAP );
     862         417 :     nId = aNmTb.Put( "HelpText", VARNAME );
     863             :     pClassMenuItem->SetVariable( nId, &aLangString, NULL, 0,
     864         417 :                                  RSC_MENUITEM_HELPTEXT );
     865         417 :     nId = aNmTb.Put( "HelpID", VARNAME );
     866             :     pClassMenuItem->SetVariable( nId, &aStringLiteral, NULL, 0,
     867         417 :                                  RSC_MENUITEM_HELPID );
     868         417 :     nId = aNmTb.Put( "AccelKey", VARNAME );
     869             :     pClassMenuItem->SetVariable( nId, pClassKeyCode, NULL, 0,
     870         417 :                                  RSC_MENUITEM_KEYCODE );
     871         417 :     nId = aNmTb.Put( "Check", VARNAME );
     872             :     pClassMenuItem->SetVariable( nId, &aBool, NULL, 0,
     873         417 :                                  RSC_MENUITEM_CHECKED );
     874         417 :     nId = aNmTb.Put( "Disable", VARNAME );
     875             :     pClassMenuItem->SetVariable( nId, &aBool, NULL, 0,
     876         417 :                                  RSC_MENUITEM_DISABLE );
     877         417 :     nId = aNmTb.Put( "Command", VARNAME );
     878             :     pClassMenuItem->SetVariable( nId, &aString, NULL, 0,
     879         417 :                                     RSC_MENUITEM_COMMAND );
     880             : 
     881         417 :     return pClassMenuItem;
     882             : }
     883             : 
     884         417 : RscTop * RscTypCont::InitClassMenu( RscTop * pSuper,
     885             :                                     RscTop * pClassMenuItem )
     886             : {
     887             :     Atom        nId;
     888             :     RscTop *    pClassMenu;
     889             : 
     890             :     // Klasse anlegen
     891         417 :     nId = pHS->getID( "Menu" );
     892         417 :     pClassMenu = new RscClass( nId, RSC_MENU, pSuper );
     893         417 :     pClassMenu->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
     894         417 :     aNmTb.Put( nId, CLASSNAME, pClassMenu );
     895             : 
     896             :     // Variablen anlegen
     897             :     {
     898             :         RscCont * pCont;
     899             : 
     900         417 :         aBaseLst.push_back( pCont = new RscCont( pHS->getID( "ContMenuItem" ), RSC_NOTYPE ) );
     901         417 :         pCont->SetTypeClass( pClassMenuItem );
     902         417 :         nId = aNmTb.Put( "ItemList", VARNAME );
     903         417 :         pClassMenu->SetVariable( nId, pCont, NULL, 0, RSC_MENU_ITEMS );
     904             :     }
     905         417 :     nId = aNmTb.Put( "Text", VARNAME );
     906         417 :     pClassMenu->SetVariable( nId, &aLangString, NULL, 0, RSC_MENU_TEXT );
     907         417 :     nId = aNmTb.Put( "DefaultItemId", VARNAME );
     908             :     pClassMenu->SetVariable( nId, &aIdUShort, NULL, 0,
     909         417 :                                  RSC_MENU_DEFAULTITEMID );
     910             : 
     911         417 :     return pClassMenu;
     912             : }
     913             : 
     914         417 : RscTop * RscTypCont::InitClassSplitWindow( RscTop * pSuper )
     915             : {
     916             :     Atom        nId;
     917             :     RscTop *    pClassSplitWindow;
     918             : 
     919             :     // Klasse anlegen
     920         417 :     nId = pHS->getID( "SplitWindow" );
     921         417 :     pClassSplitWindow = new RscClass( nId, RSC_SPLITWINDOW, pSuper );
     922         417 :     pClassSplitWindow->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     923             : 
     924         417 :     aNmTb.Put( nId, CLASSNAME, pClassSplitWindow );
     925             : 
     926         417 :     INS_WINBIT(pClassSplitWindow,Sizeable)
     927         417 :     INS_WINBIT(pClassSplitWindow,NoSplitDraw)
     928             : 
     929         417 :     return pClassSplitWindow;
     930             : }
     931             : 
     932         834 : RscTop * RscTypCont::InitClassNumericFormatter( RscTop * pSuper )
     933             : {
     934             :     Atom        nId;
     935             :     RscTop *    pClassNumeric;
     936             : 
     937             :     // Klasse anlegen
     938         834 :     nId = pHS->getID( "NumericFormatter" );
     939         834 :     pClassNumeric = new RscClass( nId, RSC_NOTYPE, pSuper );
     940         834 :     pClassNumeric->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
     941             : 
     942             :     // Variablen anlegen
     943         834 :     nId = aNmTb.Put( "Minimum", VARNAME );
     944             :     pClassNumeric->SetVariable( nId, &aIdLong, NULL,
     945         834 :                                 0, NUMERICFORMATTER_MIN );
     946         834 :     nId = aNmTb.Put( "Maximum", VARNAME );
     947             :     pClassNumeric->SetVariable( nId, &aIdLong, NULL,
     948         834 :                                 0, NUMERICFORMATTER_MAX );
     949         834 :     nId = aNmTb.Put( "StrictFormat", VARNAME );
     950             :     pClassNumeric->SetVariable( nId, &aBool, NULL,
     951         834 :                                 0, NUMERICFORMATTER_STRICTFORMAT );
     952         834 :     nId = aNmTb.Put( "DecimalDigits", VARNAME );
     953             :     pClassNumeric->SetVariable( nId, &aUShort, NULL,
     954         834 :                                 0, NUMERICFORMATTER_DECIMALDIGITS );
     955         834 :     nId = aNmTb.Put( "Value", VARNAME );
     956             :     pClassNumeric->SetVariable( nId, &aIdLong, NULL,
     957         834 :                                 0, NUMERICFORMATTER_VALUE );
     958         834 :     nId = aNmTb.Put( "NoThousandSep", VARNAME );
     959             :     pClassNumeric->SetVariable( nId, &aBool, NULL,
     960         834 :                                 0, NUMERICFORMATTER_NOTHOUSANDSEP );
     961             : 
     962         834 :     return pClassNumeric;
     963             : }
     964             : 
     965         417 : RscTop * RscTypCont::InitClassMetricFormatter( RscTop * pSuper,
     966             :                                                                                         RscEnum * pFieldUnits )
     967             : {
     968             :     Atom        nId;
     969             :     RscTop *    pClassMetric;
     970             : 
     971             :     // Klasse anlegen
     972         417 :     nId = pHS->getID( "MetricFormatter" );
     973         417 :     pClassMetric = new RscClass( nId, RSC_NOTYPE, pSuper );
     974         417 :     pClassMetric->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
     975             : 
     976             :     // Variablen anlegen
     977         417 :     nId = aNmTb.Put( "Unit", VARNAME );
     978             :     pClassMetric->SetVariable( nId, pFieldUnits, NULL,
     979         417 :                                0, METRICFORMATTER_UNIT );
     980         417 :     nId = aNmTb.Put( "CustomUnitText", VARNAME );
     981             :     pClassMetric->SetVariable( nId, &aLangString, NULL,
     982         417 :                                0, METRICFORMATTER_CUSTOMUNITTEXT );
     983             : 
     984         417 :     return pClassMetric;
     985             : }
     986             : 
     987         417 : RscTop * RscTypCont::InitClassSpinField( RscTop * pSuper )
     988             : {
     989             :     Atom        nId;
     990             :     RscTop *    pClassSpinField;
     991             : 
     992             :     // Klasse anlegen
     993         417 :     nId = pHS->getID( "SpinField" );
     994         417 :     pClassSpinField = new RscClass( nId, RSC_SPINFIELD, pSuper );
     995         417 :     pClassSpinField->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     996             : 
     997         417 :     aNmTb.Put( nId, CLASSNAME, pClassSpinField );
     998             : 
     999         417 :     INS_WINBIT(pClassSpinField,Repeat)
    1000         417 :     INS_WINBIT(pClassSpinField,Spin)
    1001             : 
    1002         417 :     return pClassSpinField;
    1003             : }
    1004             : 
    1005         417 : RscTop * RscTypCont::InitClassNumericField( RscTop * pSuper )
    1006             : {
    1007             :     Atom        nId;
    1008             :     RscTop *    pClassNumericField;
    1009             : 
    1010             :     // Klasse anlegen
    1011         417 :     nId = pHS->getID( "NumericField" );
    1012         417 :     pClassNumericField = new RscClass( nId, RSC_NUMERICFIELD, pSuper );
    1013         417 :     pClassNumericField->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
    1014             : 
    1015         417 :     aNmTb.Put( nId, CLASSNAME, pClassNumericField );
    1016             : 
    1017             :     // Variablen anlegen
    1018         417 :     nId = aNmTb.Put( "First", VARNAME );
    1019             :     pClassNumericField->SetVariable( nId, &aIdLong, NULL,
    1020         417 :                                                                         0, NUMERICFIELD_FIRST );
    1021         417 :     nId = aNmTb.Put( "Last", VARNAME );
    1022             :     pClassNumericField->SetVariable( nId, &aIdLong, NULL,
    1023         417 :                                                                         0, NUMERICFIELD_LAST );
    1024         417 :     nId = aNmTb.Put( "SpinSize", VARNAME );
    1025             :     pClassNumericField->SetVariable( nId, &aIdLong, NULL,
    1026         417 :                                                                         0, NUMERICFIELD_SPINSIZE  );
    1027         417 :     return pClassNumericField;
    1028             : }
    1029             : 
    1030         417 : RscTop * RscTypCont::InitClassMetricField( RscTop * pSuper )
    1031             : {
    1032             :     Atom        nId;
    1033             :     RscTop *    pClassMetricField;
    1034             : 
    1035             :     // Klasse anlegen
    1036         417 :     nId = pHS->getID( "MetricField" );
    1037         417 :     pClassMetricField = new RscClass( nId, RSC_METRICFIELD, pSuper );
    1038         417 :     pClassMetricField->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
    1039             : 
    1040         417 :     aNmTb.Put( nId, CLASSNAME, pClassMetricField );
    1041             : 
    1042             :     // Variablen anlegen
    1043         417 :     nId = aNmTb.Put( "First", VARNAME );
    1044             :     pClassMetricField->SetVariable( nId, &aIdLong, NULL,
    1045         417 :                                     0, METRICFIELD_FIRST );
    1046         417 :     nId = aNmTb.Put( "Last", VARNAME );
    1047             :     pClassMetricField->SetVariable( nId, &aIdLong, NULL,
    1048         417 :                                     0, METRICFIELD_LAST );
    1049         417 :     nId = aNmTb.Put( "SpinSize", VARNAME );
    1050             :     pClassMetricField->SetVariable( nId, &aIdLong, NULL,
    1051         417 :                                     0, METRICFIELD_SPINSIZE  );
    1052             : 
    1053         417 :     return pClassMetricField;
    1054             : }
    1055             : 
    1056         417 : RscTop * RscTypCont::InitClassDockingWindow( RscTop * pSuper,
    1057             :                                              RscEnum * pMapUnit )
    1058             : {
    1059             :     Atom        nId;
    1060             :     RscTop *    pClassDockWindow;
    1061             : 
    1062             :     // Klasse anlegen
    1063         417 :     nId = pHS->getID( "DockingWindow" );
    1064         417 :     pClassDockWindow = new RscClass( nId, RSC_DOCKINGWINDOW, pSuper );
    1065         417 :     pClassDockWindow->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
    1066         417 :     aNmTb.Put( nId, CLASSNAME, pClassDockWindow );
    1067             : 
    1068             :     // Variablen anlegen
    1069         417 :     nId = aNmTb.Put( "_FloatingPosMapMode", VARNAME );
    1070             :     pClassDockWindow->SetVariable( nId, pMapUnit, NULL, 0,
    1071         417 :                                    RSC_DOCKINGWINDOW_XYMAPMODE  );
    1072         417 :     nId = aNmTb.Put( "_FloatingPosX", VARNAME );
    1073             :     pClassDockWindow->SetVariable( nId, &aShort, NULL, 0,
    1074         417 :                                    RSC_DOCKINGWINDOW_X );
    1075         417 :     nId = aNmTb.Put( "_FloatingPosY", VARNAME );
    1076             :     pClassDockWindow->SetVariable( nId, &aShort, NULL, 0,
    1077         417 :                                    RSC_DOCKINGWINDOW_Y );
    1078         417 :     nId = aNmTb.Put( "FloatingMode", VARNAME );
    1079             :     pClassDockWindow->SetVariable( nId, &aBool, NULL, 0,
    1080         417 :                                    RSC_DOCKINGWINDOW_FLOATING );
    1081             : 
    1082         417 :     INS_WINBIT(pClassDockWindow,Moveable)
    1083         417 :     INS_WINBIT(pClassDockWindow,Sizeable)
    1084         417 :     INS_WINBIT(pClassDockWindow,EnableResizing)
    1085         417 :     INS_WINBIT(pClassDockWindow,Closeable)
    1086         417 :     INS_WINBIT(pClassDockWindow,HideWhenDeactivate);
    1087         417 :     INS_WINBIT(pClassDockWindow,Zoomable);
    1088         417 :     INS_WINBIT(pClassDockWindow,Dockable);
    1089             : 
    1090         417 :     return pClassDockWindow;
    1091             : }
    1092             : 
    1093         417 : RscTop * RscTypCont::InitClassToolBoxItem( RscTop * pSuper,
    1094             :                                            RscTop * pClassBitmap,
    1095             :                                            RscTop * pClassImage,
    1096             :                                            RscEnum * pTriState )
    1097             : {
    1098             :     Atom        nId;
    1099             :     RscTop *    pClassToolBoxItem;
    1100             : 
    1101             :     // Klasse anlegen
    1102         417 :     nId = pHS->getID( "ToolBoxItem" );
    1103         417 :     pClassToolBoxItem = new RscClass( nId, RSC_TOOLBOXITEM, pSuper );
    1104         417 :     aNmTb.Put( nId, CLASSNAME, pClassToolBoxItem );
    1105             : 
    1106             :     // Variablen anlegen
    1107         417 :     nId = aNmTb.Put( "Identifier", VARNAME );
    1108             :     pClassToolBoxItem->SetVariable( nId, &aIdNoZeroUShort, NULL, 0,
    1109         417 :                                     RSC_TOOLBOXITEM_ID );
    1110             :     {
    1111             :         RscEnum   * pEnum;
    1112             : 
    1113         417 :         aBaseLst.push_back( pEnum = new RscEnum( pHS->getID( "EnumToolBoxItemType" ), RSC_NOTYPE ) );
    1114         417 :         SETCONST( pEnum, "TOOLBOXITEM_BUTTON", ToolBoxItemType::BUTTON );
    1115         417 :         SETCONST( pEnum, "TOOLBOXITEM_SPACE", ToolBoxItemType::SPACE );
    1116         417 :         SETCONST( pEnum, "TOOLBOXITEM_SEPARATOR", ToolBoxItemType::SEPARATOR );
    1117         417 :         SETCONST( pEnum, "TOOLBOXITEM_BREAK", ToolBoxItemType::BREAK );
    1118             : 
    1119             :         // Variable einfuegen
    1120         417 :         nId = aNmTb.Put( "Type", VARNAME );
    1121             :         pClassToolBoxItem->SetVariable( nId, pEnum, NULL, 0,
    1122         417 :                                   RSC_TOOLBOXITEM_TYPE  );
    1123             :     }
    1124             :     {
    1125             :         RscFlag *   pFlag;
    1126             :         RscClient * pClient;
    1127             :         Atom        l_nVarId, l_nAutoCheckId, l_nRadioCheckId, l_nCheckableId, l_nLeftId, l_nAutoSizeId, l_nDropDownId;
    1128             : 
    1129         417 :         aBaseLst.push_back( pFlag = new RscFlag( pHS->getID( "FlagToolBoxState" ), RSC_NOTYPE ) );
    1130             : 
    1131             :         // Konstanten in Tabelle stellen
    1132         417 :         l_nCheckableId = pHS->getID( "ToolBoxItemBits::CHECKABLE" );
    1133         417 :         SETCONST( pFlag, l_nCheckableId, ToolBoxItemBits::CHECKABLE );
    1134         417 :         l_nAutoCheckId = pHS->getID( "ToolBoxItemBits::AUTOCHECK" );
    1135         417 :         SETCONST( pFlag, l_nAutoCheckId, ToolBoxItemBits::AUTOCHECK );
    1136         417 :         l_nRadioCheckId = pHS->getID( "ToolBoxItemBits::RADIOCHECK" );
    1137         417 :         SETCONST( pFlag, l_nRadioCheckId, ToolBoxItemBits::RADIOCHECK );
    1138         417 :         l_nLeftId = pHS->getID( "ToolBoxItemBits::LEFT" );
    1139         417 :         SETCONST( pFlag, l_nLeftId, ToolBoxItemBits::LEFT );
    1140         417 :         l_nAutoSizeId = pHS->getID( "ToolBoxItemBits::AUTOSIZE" );
    1141         417 :         SETCONST( pFlag, l_nAutoSizeId, ToolBoxItemBits::AUTOSIZE );
    1142         417 :         l_nDropDownId = pHS->getID( "ToolBoxItemBits::DROPDOWN" );
    1143         417 :         SETCONST( pFlag, l_nDropDownId, ToolBoxItemBits::DROPDOWN );
    1144             : 
    1145             :         // Variable einfuegen
    1146         417 :         l_nVarId = aNmTb.Put( "_ToolBoxItemFlags", VARNAME );
    1147             :         pClassToolBoxItem->SetVariable( l_nVarId, pFlag, NULL,
    1148             :                                      VAR_HIDDEN | VAR_NOENUM,
    1149         417 :                                      RSC_TOOLBOXITEM_STATUS );
    1150             : 
    1151             :         // Clientvariablen einfuegen
    1152             :         aBaseLst.push_back(
    1153        1251 :             pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, l_nCheckableId )
    1154         834 :         );
    1155         417 :         nId = aNmTb.Put( "Checkable", VARNAME );
    1156         417 :         pClassToolBoxItem->SetVariable( nId, pClient, NULL, VAR_NODATAINST, 0, l_nVarId );
    1157             : 
    1158             :         aBaseLst.push_back(
    1159        1251 :             pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, l_nAutoCheckId )
    1160         834 :         );
    1161         417 :         nId = aNmTb.Put( "AutoCheck", VARNAME );
    1162         417 :         pClassToolBoxItem->SetVariable( nId, pClient, NULL, VAR_NODATAINST, 0, l_nVarId );
    1163             : 
    1164             :         aBaseLst.push_back(
    1165        1251 :             pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, l_nRadioCheckId )
    1166         834 :         );
    1167         417 :         nId = aNmTb.Put( "RadioCheck", VARNAME );
    1168         417 :         pClassToolBoxItem->SetVariable( nId, pClient, NULL, VAR_NODATAINST, 0, l_nVarId );
    1169             : 
    1170             :         aBaseLst.push_back(
    1171        1251 :             pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, l_nLeftId )
    1172         834 :         );
    1173         417 :         nId = aNmTb.Put( "Left", VARNAME );
    1174         417 :         pClassToolBoxItem->SetVariable( nId, pClient, NULL, VAR_NODATAINST, 0, l_nVarId );
    1175             : 
    1176             :         aBaseLst.push_back(
    1177        1251 :             pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, l_nAutoSizeId )
    1178         834 :         );
    1179         417 :         nId = aNmTb.Put( "AutoSize", VARNAME );
    1180         417 :         pClassToolBoxItem->SetVariable( nId, pClient, NULL, VAR_NODATAINST, 0, l_nVarId );
    1181             : 
    1182             :         aBaseLst.push_back(
    1183        1251 :             pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, pFlag, l_nDropDownId )
    1184         834 :         );
    1185         417 :         nId = aNmTb.Put( "DropDown", VARNAME );
    1186         417 :         pClassToolBoxItem->SetVariable( nId, pClient, NULL, VAR_NODATAINST, 0, l_nVarId );
    1187             :     }
    1188         417 :     nId = aNmTb.Put( "HelpID", VARNAME );
    1189             :     pClassToolBoxItem->SetVariable( nId, &aStringLiteral, NULL, 0,
    1190         417 :                                     RSC_TOOLBOXITEM_HELPID  );
    1191         417 :     nId = aNmTb.Put( "Text", VARNAME );
    1192             :     pClassToolBoxItem->SetVariable( nId, &aLangString, NULL, 0,
    1193         417 :                                     RSC_TOOLBOXITEM_TEXT );
    1194         417 :     nId = aNmTb.Put( "HelpText", VARNAME );
    1195             :     pClassToolBoxItem->SetVariable( nId, &aLangString, NULL, 0,
    1196         417 :                                     RSC_TOOLBOXITEM_HELPTEXT );
    1197         417 :     nId = aNmTb.Put( "ItemBitmap", VARNAME );
    1198             :     pClassToolBoxItem->SetVariable( nId, pClassBitmap, NULL, 0,
    1199         417 :                                     RSC_TOOLBOXITEM_BITMAP );
    1200         417 :     nId = aNmTb.Put( "ItemImage", VARNAME );
    1201             :     pClassToolBoxItem->SetVariable( nId, pClassImage, NULL, 0,
    1202         417 :                                     RSC_TOOLBOXITEM_IMAGE );
    1203         417 :     nId = aNmTb.Put( "Disable", VARNAME );
    1204             :     pClassToolBoxItem->SetVariable( nId, &aBool, NULL, 0,
    1205         417 :                                     RSC_TOOLBOXITEM_DISABLE );
    1206             : 
    1207         417 :     nId = aNmTb.Put( "State", VARNAME );
    1208             :     pClassToolBoxItem->SetVariable( nId, pTriState, NULL, 0,
    1209         417 :                                     RSC_TOOLBOXITEM_STATE );
    1210         417 :     nId = aNmTb.Put( "Hide", VARNAME );
    1211             :     pClassToolBoxItem->SetVariable( nId, &aBool, NULL, 0,
    1212         417 :                                     RSC_TOOLBOXITEM_HIDE );
    1213         417 :     nId = aNmTb.Put( "Hide", VARNAME );
    1214             :     pClassToolBoxItem->SetVariable( nId, &aBool, NULL, 0,
    1215         417 :                                     RSC_TOOLBOXITEM_HIDE );
    1216         417 :     nId = aNmTb.Put( "Command", VARNAME );
    1217             :     pClassToolBoxItem->SetVariable( nId, &aString, NULL, 0,
    1218         417 :                                     RSC_TOOLBOXITEM_COMMAND );
    1219             : 
    1220         417 :     return pClassToolBoxItem;
    1221             : }
    1222             : 
    1223         417 : RscTop * RscTypCont::InitClassToolBox( RscTop * pSuper,
    1224             :                                        RscTop * pClassToolBoxItem,
    1225             :                                        RscTop * pClassImageList )
    1226             : {
    1227             :     Atom        nId;
    1228             :     RscTop *    pClassToolBox;
    1229             : 
    1230             :     // Klasse anlegen
    1231         417 :     nId = pHS->getID( "ToolBox" );
    1232         417 :     pClassToolBox = new RscClass( nId, RSC_TOOLBOX, pSuper );
    1233         417 :     pClassToolBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
    1234         417 :     aNmTb.Put( nId, CLASSNAME, pClassToolBox );
    1235             : 
    1236             :     // Variablen anlegen
    1237             :     {
    1238             :         RscEnum   * pEnum;
    1239             : 
    1240         417 :         aBaseLst.push_back( pEnum = new RscEnum( pHS->getID( "EnumButtonType" ), RSC_NOTYPE ) );
    1241         417 :         SETCONST( pEnum, "BUTTON_SYMBOL",               ButtonType::SYMBOLONLY );
    1242         417 :         SETCONST( pEnum, "BUTTON_TEXT",                 ButtonType::TEXT );
    1243         417 :         SETCONST( pEnum, "BUTTON_SYMBOLTEXT",   ButtonType::SYMBOLTEXT );
    1244             : 
    1245             :         // Variable einfuegen
    1246         417 :         nId = aNmTb.Put( "ButtonType", VARNAME );
    1247             :         pClassToolBox->SetVariable( nId, pEnum, NULL, 0,
    1248         417 :                                   RSC_TOOLBOX_BUTTONTYPE  );
    1249             :     }
    1250             :     {
    1251             :         RscEnum   * pEnum;
    1252             : 
    1253         417 :         aBaseLst.push_back( pEnum = new RscEnum( pHS->getID( "EnumToolBoxAlign" ), RSC_NOTYPE ) );
    1254         417 :         SETCONST( pEnum, "BOXALIGN_TOP",                WINDOWALIGN_TOP );
    1255         417 :         SETCONST( pEnum, "BOXALIGN_LEFT",               WINDOWALIGN_LEFT );
    1256         417 :         SETCONST( pEnum, "BOXALIGN_RIGHT",              WINDOWALIGN_RIGHT );
    1257         417 :         SETCONST( pEnum, "BOXALIGN_BOTTOM",             WINDOWALIGN_BOTTOM );
    1258             : 
    1259             :         // Variable einfuegen
    1260         417 :         nId = aNmTb.Put( "Align", VARNAME );
    1261             :         pClassToolBox->SetVariable( nId, pEnum, NULL, 0,
    1262         417 :                                   RSC_TOOLBOX_ALIGN  );
    1263             :     }
    1264         417 :     nId = aNmTb.Put( "LineCount", VARNAME );
    1265             :     pClassToolBox->SetVariable( nId, &aIdNoZeroUShort, NULL, 0,
    1266         417 :                                 RSC_TOOLBOX_LINECOUNT  );
    1267         417 :     nId = aNmTb.Put( "FloatingLines", VARNAME );
    1268             :     pClassToolBox->SetVariable( nId, &aUShort, NULL, 0,
    1269         417 :                                 RSC_TOOLBOX_FLOATLINES  );
    1270         417 :     nId = aNmTb.Put( "Customize", VARNAME );
    1271             :     pClassToolBox->SetVariable( nId, &aBool, NULL, 0,
    1272         417 :                                 RSC_TOOLBOX_CUSTOMIZE );
    1273         417 :     nId = aNmTb.Put( "MenuStrings", VARNAME );
    1274             :     pClassToolBox->SetVariable( nId, &aBool, NULL, 0,
    1275         417 :                                 RSC_TOOLBOX_MENUSTRINGS );
    1276         417 :     nId = aNmTb.Put( "ItemImageList", VARNAME );
    1277             :     pClassToolBox->SetVariable( nId, pClassImageList, NULL, 0,
    1278         417 :                                 RSC_TOOLBOX_ITEMIMAGELIST );
    1279             :     {
    1280             :         RscLangArray* pLA;
    1281             :         RscCont * pCont;
    1282             : 
    1283         417 :         aBaseLst.push_back( pCont = new RscCont( pHS->getID( "ContToolBoxItem" ), RSC_NOTYPE ) );
    1284         417 :         pCont->SetTypeClass( pClassToolBoxItem );
    1285             :         aBaseLst.push_back(
    1286         834 :             pLA = new RscLangArray( pHS->getID( "LangContToolBoxItem" )
    1287             :                                   , RSC_NOTYPE
    1288             :                                   , pCont
    1289             :                                   , &aLangType
    1290         417 :                                   )
    1291         834 :         );
    1292         417 :         nId = aNmTb.Put( "ItemList", VARNAME );
    1293             :         pClassToolBox->SetVariable( nId, pLA, NULL, 0,
    1294         417 :                                     RSC_TOOLBOX_ITEMLIST );
    1295             :     }
    1296         417 :     INS_WINBIT(pClassToolBox,Scroll)
    1297         417 :     INS_WINBIT(pClassToolBox,LineSpacing)
    1298         417 :     INS_WINBIT(pClassToolBox,RectStyle)
    1299         417 :     INS_WINBIT(pClassToolBox,Tabstop)
    1300             : 
    1301         417 :     return pClassToolBox;
    1302             : }
    1303             : 
    1304         417 : RscTop * RscTypCont::InitClassSfxStyleFamilyItem( RscTop * pSuper,
    1305             :                                                   RscTop * pClassBitmap,
    1306             :                                                   RscTop * pClassImage,
    1307             :                                                   RscArray * pStrLst )
    1308             : {
    1309             :     Atom        nId;
    1310             :     RscTop *    pClassSfxFamilyStyleItem;
    1311             : 
    1312             :     // Klasse anlegen
    1313         417 :     nId = pHS->getID( "SfxStyleFamilyItem" );
    1314         417 :     pClassSfxFamilyStyleItem = new RscClass( nId, RSC_SFX_STYLE_FAMILY_ITEM, pSuper );
    1315         417 :     aNmTb.Put( nId, CLASSNAME, pClassSfxFamilyStyleItem );
    1316             : 
    1317         417 :     nId = aNmTb.Put( "FilterList", VARNAME );
    1318             :     pClassSfxFamilyStyleItem->SetVariable( nId, pStrLst, NULL, 0,
    1319         417 :                                            RSC_SFX_STYLE_ITEM_LIST );
    1320         417 :     nId = aNmTb.Put( "StyleBitmap", VARNAME );
    1321             :     pClassSfxFamilyStyleItem->SetVariable( nId, pClassBitmap, NULL, 0,
    1322         417 :                                            RSC_SFX_STYLE_ITEM_BITMAP );
    1323         417 :     nId = aNmTb.Put( "Text", VARNAME );
    1324             :     pClassSfxFamilyStyleItem->SetVariable( nId, &aLangString, NULL, 0,
    1325         417 :                                            RSC_SFX_STYLE_ITEM_TEXT );
    1326         417 :     nId = aNmTb.Put( "HelpText", VARNAME );
    1327             :     pClassSfxFamilyStyleItem->SetVariable( nId, &aLangString, NULL, 0,
    1328         417 :                                            RSC_SFX_STYLE_ITEM_HELPTEXT );
    1329             :     {
    1330             :         RscEnum * pSfxStyleFamily;
    1331         834 :         pSfxStyleFamily = new RscEnum( pHS->getID( "StyleFamily" ),
    1332         417 :                                     RSC_NOTYPE );
    1333             : 
    1334         417 :         SETCONST( pSfxStyleFamily, "SFX_STYLE_FAMILY_PARA", SFX_STYLE_FAMILY_PARA );
    1335         417 :         SETCONST( pSfxStyleFamily, "SFX_STYLE_FAMILY_CHAR", SFX_STYLE_FAMILY_CHAR );
    1336         417 :         SETCONST( pSfxStyleFamily, "SFX_STYLE_FAMILY_FRAME",SFX_STYLE_FAMILY_FRAME);
    1337         417 :         SETCONST( pSfxStyleFamily, "SFX_STYLE_FAMILY_PAGE", SFX_STYLE_FAMILY_PAGE );
    1338         417 :         SETCONST( pSfxStyleFamily, "SFX_STYLE_FAMILY_PSEUDO", SFX_STYLE_FAMILY_PSEUDO );
    1339         417 :         aBaseLst.push_back( pSfxStyleFamily );
    1340             : 
    1341         417 :         nId = aNmTb.Put( "StyleFamily", VARNAME );
    1342             :         pClassSfxFamilyStyleItem->SetVariable( nId, pSfxStyleFamily, NULL, 0,
    1343         417 :                                            RSC_SFX_STYLE_ITEM_STYLEFAMILY );
    1344             :     }
    1345         417 :     nId = aNmTb.Put( "StyleImage", VARNAME );
    1346             :     pClassSfxFamilyStyleItem->SetVariable( nId, pClassImage, NULL, 0,
    1347         417 :                                            RSC_SFX_STYLE_ITEM_IMAGE );
    1348         417 :     return pClassSfxFamilyStyleItem;
    1349             : }
    1350             : 
    1351         417 : RscTop * RscTypCont::InitClassSfxTemplateDialog( RscTop * pSuper,
    1352             :                                                  RscTop * pClassFamilyStyleItem )
    1353             : {
    1354             :     Atom        nId;
    1355             :     RscTop *    pClassSfxTemplateDialog;
    1356             : 
    1357             :     // Klasse anlegen
    1358         417 :     nId = pHS->getID( "SfxStyleFamilies" );
    1359         417 :     pClassSfxTemplateDialog = new RscClass( nId, RSC_SFX_STYLE_FAMILIES, pSuper );
    1360         417 :     aNmTb.Put( nId, CLASSNAME, pClassSfxTemplateDialog );
    1361             : 
    1362             :     // Variablen anlegen
    1363             :     {
    1364             :         RscCont * pCont;
    1365             : 
    1366             :         aBaseLst.push_back(
    1367        1251 :             pCont = new RscCont( pHS->getID( "ContFamilyStyleItem" ), RSC_NOTYPE )
    1368         834 :         );
    1369         417 :         pCont->SetTypeClass( pClassFamilyStyleItem );
    1370         417 :         nId = aNmTb.Put( "StyleFamilyList", VARNAME );
    1371         417 :         pClassSfxTemplateDialog->SetVariable( nId, pCont );
    1372             :     }
    1373             : 
    1374         417 :     return pClassSfxTemplateDialog;
    1375             : }
    1376             : 
    1377         417 : RscTop * RscTypCont::InitClassSfxSlotInfo( RscTop * pSuper )
    1378             : {
    1379             :     Atom        nId;
    1380             :     RscTop *    pClassSfxSlotInfo;
    1381             : 
    1382             :     // Klasse anlegen
    1383         417 :     nId = pHS->getID( "SfxSlotInfo" );
    1384         417 :     pClassSfxSlotInfo = new RscClass( nId, RSC_SFX_SLOT_INFO, pSuper );
    1385         417 :     aNmTb.Put( nId, CLASSNAME, pClassSfxSlotInfo );
    1386             : 
    1387         417 :     nId = aNmTb.Put( "SlotName", VARNAME );
    1388             :     pClassSfxSlotInfo->SetVariable( nId, &aLangString, NULL, 0,
    1389         417 :                                     RSC_SFX_SLOT_INFO_SLOTNAME );
    1390         417 :     nId = aNmTb.Put( "HelpText", VARNAME );
    1391             :     pClassSfxSlotInfo->SetVariable( nId, &aLangString, NULL, 0,
    1392         417 :                                     RSC_SFX_SLOT_INFO_HELPTEXT );
    1393         417 :     return pClassSfxSlotInfo;
    1394             : }
    1395             : 
    1396             : 
    1397             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11