LCOV - code coverage report
Current view: top level - rsc/source/parser - rscinit.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 270 270 100.0 %
Date: 2015-06-13 12:38:46 Functions: 1 1 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             : 
      27             : #include <rsctree.hxx>
      28             : #include <rsctop.hxx>
      29             : #include <rscrange.hxx>
      30             : #include <rscconst.hxx>
      31             : #include <rscflag.hxx>
      32             : #include <rscstr.hxx>
      33             : #include <rsccont.hxx>
      34             : #include <rscmgr.hxx>
      35             : #include <rscclass.hxx>
      36             : #include <rsckey.hxx>
      37             : #include <rscdb.hxx>
      38             : #include <rsclex.hxx>
      39             : #include <rscyacc.hxx>
      40             : 
      41             : #define INS_WINBIT( pClass, WinBit )        \
      42             :     InsWinBit( pClass, #WinBit, n##WinBit##Id );
      43             : 
      44         417 : void RscTypCont::Init()
      45             : {
      46             :     RscEnum *   pFieldUnits;
      47             :     RscEnum *   pColor;
      48             :     RscEnum *   pMapUnit;
      49             :     RscEnum *   pKey;
      50             :     RscEnum *   pTriState;
      51             :     RscTupel *  pGeometry;
      52             :     RscArray *  pLangGeometry;
      53             :     RscCont  *  pStringList;
      54             :     RscArray *  pLangStringList;
      55             :     RscTupel *  pStringTupel;
      56             :     RscTupel *  pStringLongTupel;
      57             :     RscCont  *  pStringTupelList;
      58             :     RscCont  *  pStringLongTupelList;
      59             :     RscArray *  pLangStringLongTupelList;
      60             : 
      61             :     RscTop   *  pClassMgr;
      62             :     RscTop   *  pClassString;
      63             :     RscTop   *  pClassStringArray;
      64             :     RscTop   *  pClassBitmap;
      65             :     RscTop   *  pClassColor;
      66             :     RscTop   *  pClassImage;
      67             :     RscTop   *  pClassImageList;
      68             :     RscTop   *  pClassWindow;
      69             :     RscTop   *  pClassSystemWindow;
      70             :     RscTop   *  pClassWorkWindow;
      71             :     RscTop   *  pClassControl;
      72             :     RscTop   *  pClassButton;
      73             :     RscTop   *  pClassCheckBox;
      74             :     RscTop   *  pClassPushButton;
      75             :     RscTop   *  pClassRadioButton;
      76             :     RscTop   *  pClassImageButton;
      77             :     RscTop   *  pClassEdit;
      78             :     RscTop   *  pClassListBox;
      79             :     RscTop   *  pClassComboBox;
      80             :     RscTop   *  pClassFixedText;
      81             :     RscTop   *  pClassFixedImage;
      82             :     RscTop   *  pClassKeyCode;
      83             :     RscTop   *  pLangClassKeyCode;
      84             :     RscTop   *  pClassAccelItem;
      85             :     RscTop   *  pClassAccel;
      86             :     RscTop   *  pClassMenuItem;
      87             :     RscTop   *  pClassMenu;
      88             :     RscTop   *  pClassSplitWindow;
      89             :     RscTop   *  pClassSpinButton;
      90             :     RscTop   *  pClassSpinField;
      91             :     RscTop   *  pClassNumericField;
      92             :     RscTop   *  pClassMetricField;
      93             :     RscTop   *  pClassDockingWindow;
      94             :     RscTop   *  pClassToolBoxItem;
      95             :     RscTop   *  pClassToolBox;
      96             :     RscTop   *  pClassFixedLine;
      97             :     RscTop *    pClassSfxStyleFamilyItem;
      98             :     RscTop *    pClassSfxTemplateDialog;
      99             :     RscTop *    pClassSfxSlotInfo;
     100             : 
     101             :     Atom        nId;
     102             : 
     103         417 :     aNmTb.SetSort( false );
     104             : {
     105         417 :     aNmTb.Put( "LINE",               LINE,           (sal_IntPtr)0 );
     106         417 :     aNmTb.Put( "NOT",                NOT,            (sal_IntPtr)0 );
     107         417 :     aNmTb.Put( "DEFINE",             DEFINE,         (sal_IntPtr)0 );
     108         417 :     aNmTb.Put( "INCLUDE",            INCLUDE,        (sal_IntPtr)0 );
     109         417 :     aNmTb.Put( "DEFAULT",            DEFAULT,        (sal_IntPtr)0  );
     110         417 :     aNmTb.Put( "class",              CLASS,          (sal_IntPtr)0  );
     111         417 :     aNmTb.Put( "extendable",         EXTENDABLE,     (sal_IntPtr)0  );
     112         417 :     aNmTb.Put( "writeifset",         WRITEIFSET,     (sal_IntPtr)0  );
     113             : 
     114             : /* Werte fuer Aufzaehlungstypen */
     115         417 :     aNmTb.Put( "TRUE",               BOOLEAN,        (sal_IntPtr)sal_True  );
     116         417 :     aNmTb.Put( "FALSE",              BOOLEAN,        (sal_IntPtr)sal_False );
     117             : 
     118         417 :     aNmTb.Put( "XSCALE",             XSCALE ,        (sal_IntPtr)0     );
     119         417 :     aNmTb.Put( "YSCALE",             YSCALE ,        (sal_IntPtr)0     );
     120         417 :     aNmTb.Put( "RGB",                RGB    ,        (sal_IntPtr)0     );
     121         417 :     aNmTb.Put( "POSSIZE",            GEOMETRY,       (sal_IntPtr)0     );
     122         417 :     aNmTb.Put( "POS",                POSITION,       (sal_IntPtr)0     );
     123         417 :     aNmTb.Put( "SIZE",               DIMENSION,      (sal_IntPtr)0     );
     124         417 :     aNmTb.Put( "ZoomInOutputSize",   INZOOMOUTPUTSIZE,(sal_IntPtr)0    );
     125         417 :     aNmTb.Put( "FloatingPos",        FLOATINGPOS,    (sal_IntPtr)0     );
     126             : }
     127             : {
     128         417 :     aShort.SetRange( -32768, 32767 );
     129             : 
     130         417 :     aUShort.SetRange( 0, 0xFFFF );
     131             : 
     132         417 :     aLong.SetRange( SAL_MIN_INT32, SAL_MAX_INT32 );
     133         417 :     aEnumLong.SetRange( SAL_MIN_INT32, SAL_MAX_INT32 );
     134             : 
     135         417 :     aIdUShort.SetRange( 0, 0xFFFF );
     136             : 
     137         417 :     aIdNoZeroUShort.SetRange( 1, 0xFFFF );
     138             : 
     139         417 :     aNoZeroShort.SetRange( -32768, 32767 );
     140         417 :     aNoZeroShort.SetOutRange( 0 );
     141             : 
     142         417 :     aIdLong.SetRange( SAL_MIN_INT32, SAL_MAX_INT32 );
     143             : }
     144             : {
     145             :     // Variablenname fuer WinBits
     146         417 :     nWinBitVarId = aNmTb.Put( "_WinBits", VARNAME );
     147             : 
     148             :     // Windows
     149         417 :     nBorderId       = pHS->getID( "WB_BORDER" );
     150         417 :     aWinBits.SetConstant( nBorderId, sal::static_int_cast<sal_Int32>(WB_BORDER) );
     151         417 :     nHideId         = pHS->getID( "WB_HIDE" );
     152         417 :     aWinBits.SetConstant( nHideId, sal::static_int_cast<sal_Int32>(WB_HIDE) );
     153         417 :     nClipChildrenId = pHS->getID( "WB_CLIPCHILDREN" );
     154         417 :     aWinBits.SetConstant( nClipChildrenId, sal::static_int_cast<sal_Int32>(WB_CLIPCHILDREN) );
     155         417 :     nSizeableId     = pHS->getID( "WB_SIZEABLE" );
     156         417 :     aWinBits.SetConstant( nSizeableId, sal::static_int_cast<sal_Int32>(WB_SIZEABLE) );
     157         417 :     nMoveableId     = pHS->getID( "WB_MOVEABLE" );
     158         417 :     aWinBits.SetConstant( nMoveableId, sal::static_int_cast<sal_Int32>(WB_MOVEABLE) );
     159         417 :     nMinimizeId     = pHS->getID( "WB_MINABLE" );
     160         417 :     aWinBits.SetConstant( nMinimizeId, 0 /*WB_MINABLE*/ );
     161         417 :     nMaximizeId     = pHS->getID( "WB_MAXABLE" );
     162         417 :     aWinBits.SetConstant( nMaximizeId, 0 /*WB_MAXABLE*/ );
     163         417 :     nCloseableId    = pHS->getID( "WB_CLOSEABLE" );
     164         417 :     aWinBits.SetConstant( nCloseableId, sal::static_int_cast<sal_Int32>(WB_CLOSEABLE) );
     165         417 :     nAppId          = pHS->getID( "WB_APP" );
     166         417 :     aWinBits.SetConstant( nAppId, sal::static_int_cast<sal_Int32>(WB_APP) );
     167         417 :     nTabstopId      = pHS->getID( "WB_TABSTOP" );
     168         417 :     aWinBits.SetConstant( nTabstopId, sal::static_int_cast<sal_Int32>(WB_TABSTOP) );
     169         417 :     nGroupId        = pHS->getID( "WB_GROUP" );
     170         417 :     aWinBits.SetConstant( nGroupId, sal::static_int_cast<sal_Int32>(WB_GROUP) );
     171         417 :     nSysmodalId     = pHS->getID( "WB_SYSMODAL" );
     172         417 :     aWinBits.SetConstant( nSysmodalId, 0 /*WB_SYSMODAL*/ );
     173             : }
     174             : {
     175         417 :     nLeftId         = pHS->getID( "WB_LEFT" );
     176         417 :     aWinBits.SetConstant( nLeftId, sal::static_int_cast<sal_Int32>(WB_LEFT) );
     177         417 :     nCenterId       = pHS->getID( "WB_CENTER" );
     178         417 :     aWinBits.SetConstant( nCenterId, sal::static_int_cast<sal_Int32>(WB_CENTER) );
     179         417 :     nRightId        = pHS->getID( "WB_RIGHT" );
     180         417 :     aWinBits.SetConstant( nRightId, sal::static_int_cast<sal_Int32>(WB_RIGHT) );
     181         417 :     nTopId          = pHS->getID( "WB_TOP" );
     182         417 :     aWinBits.SetConstant( nTopId, sal::static_int_cast<sal_Int32>(WB_TOP) );
     183         417 :     nVCenterId      = pHS->getID( "WB_VCENTER" );
     184         417 :     aWinBits.SetConstant( nVCenterId, sal::static_int_cast<sal_Int32>(WB_VCENTER) );
     185         417 :     nBottomId       = pHS->getID( "WB_BOTTOM" );
     186         417 :     aWinBits.SetConstant( nBottomId, sal::static_int_cast<sal_Int32>(WB_BOTTOM) );
     187         417 :     nHScrollId      = pHS->getID( "WB_HSCROLL" );
     188         417 :     aWinBits.SetConstant( nHScrollId, sal::static_int_cast<sal_Int32>(WB_HSCROLL) );
     189         417 :     nVScrollId      = pHS->getID( "WB_VSCROLL" );
     190         417 :     aWinBits.SetConstant( nVScrollId, sal::static_int_cast<sal_Int32>(WB_VSCROLL) );
     191         417 :     nSortId         = pHS->getID( "WB_SORT" );
     192         417 :     aWinBits.SetConstant( nSortId, sal::static_int_cast<sal_Int32>(WB_SORT) );
     193         417 :     nDefaultId          = pHS->getID( "WB_DEFBUTTON" );
     194         417 :     aWinBits.SetConstant( nDefaultId, sal::static_int_cast<sal_Int32>(WB_DEFBUTTON) );
     195         417 :     nRepeatId           = pHS->getID( "WB_REPEAT" );
     196         417 :     aWinBits.SetConstant( nRepeatId, sal::static_int_cast<sal_Int32>(WB_REPEAT) );
     197         417 :     nSVLookId           = pHS->getID( "WB_SVLOOK" );
     198         417 :     aWinBits.SetConstant( nSVLookId, sal::static_int_cast<sal_Int32>(WB_3DLOOK) );
     199         417 :     nDropDownId         = pHS->getID( "WB_DROPDOWN" );
     200         417 :     aWinBits.SetConstant( nDropDownId, sal::static_int_cast<sal_Int32>(WB_DROPDOWN) );
     201         417 :     nPassWordId         = pHS->getID( "WB_PASSWORD" );
     202         417 :     aWinBits.SetConstant( nPassWordId, sal::static_int_cast<sal_Int32>(WB_PASSWORD) );
     203         417 :     nReadOnlyId         = pHS->getID( "WB_READONLY" );
     204         417 :     aWinBits.SetConstant( nReadOnlyId, sal::static_int_cast<sal_Int32>(WB_READONLY) );
     205         417 :     nAutoSizeId         = pHS->getID( "WB_AUTOSIZE" );
     206         417 :     aWinBits.SetConstant( nAutoSizeId, sal::static_int_cast<sal_Int32>(WB_AUTOSIZE) );
     207         417 :     nSpinId             = pHS->getID( "WB_SPIN" );
     208         417 :     aWinBits.SetConstant( nSpinId, sal::static_int_cast<sal_Int32>(WB_SPIN) );
     209         417 :     nTabControlId       = pHS->getID( "WB_DIALOGCONTROL" );
     210         417 :     aWinBits.SetConstant( nTabControlId, sal::static_int_cast<sal_Int32>(WB_DIALOGCONTROL) );
     211         417 :     nSimpleModeId       = pHS->getID( "WB_SIMPLEMODE" );
     212         417 :     aWinBits.SetConstant( nSimpleModeId, sal::static_int_cast<sal_Int32>(WB_SIMPLEMODE) );
     213         417 :     nDragId             = pHS->getID( "WB_DRAG" );
     214         417 :     aWinBits.SetConstant( nDragId, sal::static_int_cast<sal_Int32>(WB_DRAG) );
     215         417 :     nScrollId           = pHS->getID( "WB_SCROLL" );
     216         417 :     aWinBits.SetConstant( nScrollId, sal::static_int_cast<sal_Int32>(WB_SCROLL) );
     217         417 :     nZoomableId         = pHS->getID( "WB_ZOOMABLE" );
     218         417 :     aWinBits.SetConstant( nZoomableId, sal::static_int_cast<sal_Int32>(WB_ROLLABLE) );
     219         417 :     nHideWhenDeactivateId = pHS->getID( "WB_HIDEWHENDEACTIVATE" );
     220         417 :     aWinBits.SetConstant( nHideWhenDeactivateId, 0 /*WB_HIDEWHENDEACTIVATE*/ );
     221         417 :     nAutoHScrollId      = pHS->getID( "WB_AUTOHSCROLL" );
     222         417 :     aWinBits.SetConstant( nAutoHScrollId, sal::static_int_cast<sal_Int32>(WB_AUTOHSCROLL) );
     223         417 :     nAutoVScrollId      = pHS->getID( "WB_AUTOVSCROLL" );
     224         417 :     aWinBits.SetConstant( nAutoVScrollId, sal::static_int_cast<sal_Int32>(WB_AUTOVSCROLL) );
     225         417 :     nDDExtraWidthId     = pHS->getID( "WB_DDEXTRAWIDTH" );
     226         417 :     aWinBits.SetConstant( nDDExtraWidthId, 0 /*WB_DDEXTRAWIDTH*/ );
     227         417 :     nWordBreakId        = pHS->getID( "WB_WORDBREAK" );
     228         417 :     aWinBits.SetConstant( nWordBreakId, sal::static_int_cast<sal_Int32>(WB_WORDBREAK) );
     229         417 :     nLeftLabelId        = pHS->getID( "WB_LEFTLABEL" );
     230         417 :     aWinBits.SetConstant( nLeftLabelId, 0 /*WB_LEFTLABEL*/ );
     231         417 :     nHasLinesId         = pHS->getID( "WB_HASLINES" );
     232         417 :     aWinBits.SetConstant( nHasLinesId, sal::static_int_cast<sal_Int32>(WB_HASLINES) );
     233         417 :     nHasButtonsId       = pHS->getID( "WB_HASBUTTONS" );
     234         417 :     aWinBits.SetConstant( nHasButtonsId, sal::static_int_cast<sal_Int32>(WB_HASBUTTONS) );
     235         417 :     nRectStyleId        = pHS->getID( "WB_RECTSTYLE" );
     236         417 :     aWinBits.SetConstant( nRectStyleId, sal::static_int_cast<sal_Int32>(WB_RECTSTYLE) );
     237         417 :     nLineSpacingId      = pHS->getID( "WB_LINESPACING" );
     238         417 :     aWinBits.SetConstant( nLineSpacingId, sal::static_int_cast<sal_Int32>(WB_LINESPACING) );
     239         417 :     nSmallStyleId       = pHS->getID( "WB_SMALLSTYLE" );
     240         417 :     aWinBits.SetConstant( nSmallStyleId, sal::static_int_cast<sal_Int32>(WB_SMALLSTYLE) );
     241         417 :     nEnableResizingId   = pHS->getID( "WB_ENABLERESIZING" );
     242         417 :     aWinBits.SetConstant( nEnableResizingId, 0 /*WB_ENABLERESIZING*/ );
     243         417 :     nDockableId         = pHS->getID( "WB_DOCKABLE" );
     244         417 :     aWinBits.SetConstant( nDockableId, sal::static_int_cast<sal_Int32>(WB_DOCKABLE) );
     245         417 :     nScaleId            = pHS->getID( "WB_SCALE" );
     246         417 :     aWinBits.SetConstant( nScaleId, sal::static_int_cast<sal_Int32>(WB_SCALE) );
     247         417 :     nIgnoreTabId        = pHS->getID( "WB_IGNORETAB" );
     248         417 :     aWinBits.SetConstant( nIgnoreTabId, sal::static_int_cast<sal_Int32>(WB_IGNORETAB) );
     249         417 :     nNoSplitDrawId      = pHS->getID( "WB_NOSPLITDRAW" );
     250         417 :     aWinBits.SetConstant( nNoSplitDrawId, sal::static_int_cast<sal_Int32>(WB_NOSPLITDRAW) );
     251         417 :     nTopImageId         = pHS->getID( "WB_TOPIMAGE" );
     252         417 :     aWinBits.SetConstant( nTopImageId, sal::static_int_cast<sal_Int32>(WB_TOPIMAGE) );
     253         417 :     nNoLabelId          = pHS->getID( "WB_NOLABEL" );
     254         417 :     aWinBits.SetConstant( nNoLabelId, sal::static_int_cast<sal_Int32>(WB_NOLABEL) );
     255         417 :     nVertId             = pHS->getID( "WB_VERT" );
     256         417 :     aWinBits.SetConstant( nVertId, sal::static_int_cast<sal_Int32>(WB_VERT) );
     257         417 :     nSysWinId           = pHS->getID( "WB_SYSTEMWINDOW" );
     258         417 :     aWinBits.SetConstant( nSysWinId, sal::static_int_cast<sal_Int32>(WB_SYSTEMWINDOW) );
     259         417 :     nStdPopupId         = pHS->getID( "WB_STDPOPUP" );
     260         417 :     aWinBits.SetConstant( nStdPopupId, sal::static_int_cast<sal_Int32>(WB_STDPOPUP) );
     261             : }
     262             : {
     263         417 :     InitLangType();
     264         417 :     aBaseLst.push_back( pFieldUnits      = InitFieldUnitsType() );
     265         417 :     aBaseLst.push_back( pColor           = InitColor() );
     266         417 :     aBaseLst.push_back( pMapUnit         = InitMapUnit() );
     267         417 :     aBaseLst.push_back( pKey             = InitKey() );
     268         417 :     aBaseLst.push_back( pTriState        = InitTriState() );
     269             : 
     270         417 :     aBaseLst.push_back( pGeometry        = InitGeometry() );
     271         417 :     aBaseLst.push_back( pLangGeometry    = InitLangGeometry( pGeometry ) );
     272         417 :     aBaseLst.push_back( pStringList      = InitStringList() );
     273         417 :     aBaseLst.push_back( pLangStringList  = InitLangStringList( pStringList ) );
     274         417 :     aBaseLst.push_back( pStringTupel     = InitStringTupel() );
     275         417 :     aBaseLst.push_back( pStringTupelList = InitStringTupelList( pStringTupel ) );
     276         417 :     aBaseLst.push_back( InitLangStringTupelList( pStringTupelList ) );
     277         417 :     aBaseLst.push_back( pStringLongTupel = InitStringLongTupel() );
     278         417 :     aBaseLst.push_back( pStringLongTupelList = InitStringLongTupelList( pStringLongTupel ) );
     279         417 :     aBaseLst.push_back( pLangStringLongTupelList = InitLangStringLongTupelList( pStringLongTupelList ) );
     280             : }
     281             : {
     282         417 :     pRoot = pClassMgr = InitClassMgr();
     283             : 
     284         834 :     aVersion.pClass = new RscClass( pHS->getID( "VersionControl" ),
     285         417 :                                     RSC_VERSIONCONTROL, pClassMgr );
     286         417 :     aVersion = aVersion.pClass->Create( NULL, RSCINST() );
     287             : 
     288         417 :     pClassString = InitClassString( pClassMgr );
     289         417 :     pRoot->Insert( pClassString );
     290             : 
     291             :     // String als Referenzklasse des Basisstrings einsetzen
     292         417 :     aString.SetRefClass( pClassString );
     293             : 
     294             :     // Klasse anlegen
     295         417 :     nId = pHS->getID( "StringArray" );
     296         417 :     pClassStringArray = new RscClass( nId, RSC_STRINGARRAY, pClassMgr );
     297         417 :     pClassStringArray->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
     298         417 :     aNmTb.Put( nId, CLASSNAME, pClassStringArray );
     299         417 :     pRoot->Insert( pClassStringArray );
     300             : 
     301             :     // Variablen anlegen
     302         417 :     nId = aNmTb.Put( "ItemList", VARNAME );
     303         417 :     pClassStringArray->SetVariable( nId, pLangStringLongTupelList );
     304             : 
     305         417 :     pClassBitmap = InitClassBitmap( pClassMgr );
     306         417 :     pRoot->Insert( pClassBitmap );
     307             : 
     308             : }
     309             : {
     310         417 :     pClassColor = InitClassColor( pClassMgr, pColor );
     311         417 :     pRoot->Insert( pClassColor );
     312             : 
     313         417 :     pClassImage = InitClassImage( pClassMgr, pClassBitmap, pClassColor );
     314         417 :     pRoot->Insert( pClassImage );
     315             : 
     316             :      pClassImageList = InitClassImageList( pClassMgr,
     317         417 :                                           pClassColor, pStringLongTupelList );
     318         417 :     pRoot->Insert( pClassImageList );
     319             : 
     320             :     pClassWindow = InitClassWindow( pClassMgr, pMapUnit,
     321         417 :                                     pLangGeometry );
     322         417 :     pRoot->Insert( pClassWindow );
     323             : }
     324             : {
     325             : 
     326         417 :     pClassSystemWindow = InitClassSystemWindow( pClassWindow );
     327             :     //aBaseLst.Insert( pClassSystemWindow, LIST_APPEND );
     328         417 :     pRoot->Insert( pClassSystemWindow );
     329             : 
     330         417 :     pClassWorkWindow = InitClassWorkWindow( pClassSystemWindow );
     331         417 :     pRoot->Insert( pClassWorkWindow );
     332             : }
     333             : {
     334         417 :     pClassControl = InitClassControl( pClassWindow );
     335         417 :     pRoot->Insert( pClassControl );
     336             : 
     337             :     // Klasse anlegen
     338         417 :     nId = pHS->getID( "Button" );
     339         417 :     pClassButton = new RscClass( nId, RSC_BUTTON, pClassControl );
     340         417 :     pClassButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     341         417 :     aNmTb.Put( nId, CLASSNAME, pClassButton );
     342         417 :     pRoot->Insert( pClassButton );
     343             : 
     344         417 :     pClassCheckBox = InitClassCheckBox( pClassButton );
     345         417 :     pRoot->Insert( pClassCheckBox );
     346             : 
     347             :     // Klasse anlegen
     348         417 :     pClassPushButton = InitClassPushButton( pClassButton );
     349         417 :     pRoot->Insert( pClassPushButton );
     350             : }
     351             : {
     352         417 :     pClassRadioButton = InitClassRadioButton( pClassButton );
     353         417 :     pRoot->Insert( pClassRadioButton );
     354             : 
     355             :     pClassImageButton = InitClassImageButton( pClassPushButton,
     356         417 :                                               pClassImage, pTriState );
     357         417 :     pRoot->Insert( pClassImageButton );
     358             : 
     359         417 :     pClassEdit = InitClassEdit( pClassControl );
     360         417 :     pRoot->Insert( pClassEdit );
     361             : }
     362             : {
     363         417 :     pClassListBox = InitClassListBox( pClassControl, pLangStringLongTupelList );
     364         417 :     pRoot->Insert( pClassListBox );
     365             : 
     366         417 :     pClassComboBox = InitClassComboBox( pClassEdit, pLangStringList );
     367         417 :     pRoot->Insert( pClassComboBox );
     368             : 
     369         417 :     pClassFixedText = InitClassFixedText( pClassControl );
     370         417 :     pRoot->Insert( pClassFixedText );
     371             : 
     372         417 :     pClassFixedImage = InitClassFixedImage( pClassControl, pClassImage );
     373         417 :     pRoot->Insert( pClassFixedImage );
     374             : 
     375         417 :     pClassKeyCode = InitClassKeyCode( pClassMgr, pKey );
     376         417 :     pRoot->Insert( pClassKeyCode );
     377             :     {
     378         834 :     pLangClassKeyCode = new RscClassArray( pHS->getID( "LangKeyCode" ),
     379         417 :                     RSC_KEYCODE, pClassKeyCode, &aLangType );
     380         417 :     aBaseLst.push_back( pLangClassKeyCode );
     381             :     }
     382             : 
     383         417 :     pClassAccelItem = InitClassAccelItem( pClassMgr, pLangClassKeyCode );
     384         417 :     pRoot->Insert( pClassAccelItem );
     385             : }
     386             : {
     387         417 :     pClassAccel = InitClassAccel( pClassMgr, pClassAccelItem );
     388         417 :     pRoot->Insert( pClassAccel );
     389         417 :     nAcceleratorType = pClassAccel->GetId();
     390             : 
     391             :     // pClassAccel ist erst hier definiert
     392         417 :     nId = aNmTb.Put( "SubAccelerator", VARNAME );
     393             :     pClassAccelItem->SetVariable( nId, pClassAccel, NULL, VAR_SVDYNAMIC,
     394         417 :                                ACCELITEM_ACCEL );
     395             : 
     396             :     pClassMenuItem = InitClassMenuItem( pClassMgr, pClassBitmap,
     397         417 :                                         pLangClassKeyCode );
     398         417 :     pRoot->Insert( pClassMenuItem );
     399             : 
     400         417 :     pClassMenu = InitClassMenu( pClassMgr, pClassMenuItem );
     401         417 :     pRoot->Insert( pClassMenu );
     402             : 
     403             :     // pClassMenu ist erst hier definiert
     404         417 :     nId = aNmTb.Put( "SubMenu", VARNAME );
     405             :     pClassMenuItem->SetVariable( nId, pClassMenu, NULL, VAR_SVDYNAMIC,
     406         417 :                                  RSC_MENUITEM_MENU );
     407             : }
     408             : {
     409         417 :     pClassSplitWindow = InitClassSplitWindow( pClassWindow );
     410         417 :     pRoot->Insert( pClassSplitWindow );
     411             : 
     412             :     // Klasse anlegen
     413         417 :     nId = pHS->getID( "SpinButton" );
     414         417 :     pClassSpinButton = new RscClass( nId, RSC_SPINBUTTON, pClassControl );
     415         417 :     pClassSpinButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     416         417 :     aNmTb.Put( nId, CLASSNAME, pClassSpinButton );
     417             :     {
     418             :         RscClient * pClient;
     419             : 
     420             :         // Clientvariablen einfuegen
     421             :         // Sysmodal
     422             :         aBaseLst.push_back(
     423        1251 :             pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, &aWinBits, nRepeatId )
     424         834 :         );
     425         417 :         nId = aNmTb.Put( "Repeat", VARNAME );
     426             :         pClassSpinButton->SetVariable( nId, pClient, NULL,
     427         417 :                                       VAR_NODATAINST, 0, nWinBitVarId );
     428             :     }
     429         417 :     pRoot->Insert( pClassSpinButton );
     430             : }
     431             : {
     432         417 :     pClassSpinField = InitClassSpinField( pClassEdit );
     433         417 :     pRoot->Insert( pClassSpinField );
     434             : }
     435             : {
     436             :     { // Mehrfachvererbung von Hand
     437         417 :     RscTop * pClassTmp = InitClassNumericFormatter( pClassSpinField );
     438         417 :     aBaseLst.push_back( pClassTmp );
     439             : 
     440         417 :     pClassNumericField = InitClassNumericField( pClassTmp );
     441         417 :     pRoot->Insert( pClassNumericField );
     442             :     }
     443             :     { // Mehrfachvererbung von Hand
     444         417 :     RscTop * pClassTmp = InitClassNumericFormatter( pClassSpinField );
     445         417 :     aBaseLst.push_back( pClassTmp );
     446         417 :     pClassTmp = InitClassMetricFormatter( pClassTmp, pFieldUnits );
     447         417 :     aBaseLst.push_back( pClassTmp );
     448             : 
     449         417 :     pClassMetricField = InitClassMetricField( pClassTmp );
     450         417 :     pRoot->Insert( pClassMetricField );
     451             :     }
     452             : }
     453             : {
     454         417 :     pClassDockingWindow = InitClassDockingWindow( pClassWindow, pMapUnit );
     455         417 :     pRoot->Insert( pClassDockingWindow );
     456             : 
     457             :     pClassToolBoxItem = InitClassToolBoxItem( pClassMgr, pClassBitmap,
     458         417 :                                               pClassImage, pTriState );
     459         417 :     pRoot->Insert( pClassToolBoxItem );
     460             : 
     461             :     pClassToolBox = InitClassToolBox( pClassDockingWindow, pClassToolBoxItem,
     462         417 :                                       pClassImageList );
     463         417 :     pRoot->Insert( pClassToolBox );
     464             : 
     465             :     // Klasse anlegen
     466         417 :     nId = pHS->getID( "FixedLine" );
     467             :     pClassFixedLine =
     468         417 :           new RscClass( nId, RSC_FIXEDLINE, pClassControl );
     469         417 :     pClassFixedLine->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     470             : 
     471         417 :     INS_WINBIT(pClassFixedLine,Vert)
     472             : 
     473         417 :     aNmTb.Put( nId, CLASSNAME, pClassFixedLine );
     474         417 :     pRoot->Insert( pClassFixedLine );
     475             : 
     476             :     pClassSfxStyleFamilyItem = InitClassSfxStyleFamilyItem( pClassMgr,
     477             :                                                    pClassBitmap,
     478             :                                                    pClassImage,
     479         417 :                                                    pLangStringLongTupelList );
     480         417 :     pRoot->Insert( pClassSfxStyleFamilyItem );
     481             : 
     482             :     pClassSfxTemplateDialog = InitClassSfxTemplateDialog( pClassMgr,
     483         417 :                                                   pClassSfxStyleFamilyItem );
     484         417 :     pRoot->Insert( pClassSfxTemplateDialog );
     485             : 
     486         417 :     pClassSfxSlotInfo = InitClassSfxSlotInfo( pClassMgr );
     487         417 :     pRoot->Insert( pClassSfxSlotInfo );
     488             : }
     489             : 
     490         417 :     aNmTb.SetSort();
     491         417 : }
     492             : 
     493             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11