LCOV - code coverage report
Current view: top level - rsc/source/parser - rscinit.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 391 0.0 %
Date: 2014-04-14 Functions: 0 1 0.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           0 : void RscTypCont::Init()
      45             : {
      46             :     RscEnum *   pFieldUnits;
      47             :     RscEnum *   pTimeFieldFormat;
      48             :     RscEnum *   pColor;
      49             :     RscEnum *   pMapUnit;
      50             :     RscEnum *   pKey;
      51             :     RscEnum *   pTriState;
      52             :     RscEnum *   pMessButtons;
      53             :     RscEnum *   pMessDefButton;
      54             :     RscTupel *  pGeometry;
      55             :     RscArray *  pLangGeometry;
      56             :     RscCont  *  pStringList;
      57             :     RscArray *  pLangStringList;
      58             :     RscTupel *  pStringTupel;
      59             :     RscTupel *  pStringLongTupel;
      60             :     RscCont  *  pStringTupelList;
      61             :     RscCont  *  pStringLongTupelList;
      62             :     RscArray *  pLangStringLongTupelList;
      63             : 
      64             :     RscTop   *  pClassMgr;
      65             :     RscTop   *  pClassString;
      66             :     RscTop   *  pClassStringArray;
      67             :     RscTop   *  pClassBitmap;
      68             :     RscTop   *  pClassColor;
      69             :     RscTop   *  pClassImage;
      70             :     RscTop   *  pClassImageList;
      71             :     RscTop   *  pClassWindow;
      72             :     RscTop   *  pClassSystemWindow;
      73             :     RscTop   *  pClassWorkWindow;
      74             :     RscTop   *  pClassDialog;
      75             :     RscTop   *  pClassModalDialog;
      76             :     RscTop   *  pClassModelessDialog;
      77             :     RscTop   *  pClassControl;
      78             :     RscTop   *  pClassButton;
      79             :     RscTop   *  pClassCheckBox;
      80             :     RscTop   *  pClassPushButton;
      81             :     RscTop   *  pClassOKButton;
      82             :     RscTop   *  pClassCancelButton;
      83             :     RscTop   *  pClassHelpButton;
      84             :     RscTop   *  pClassRadioButton;
      85             :     RscTop   *  pClassImageButton;
      86             :     RscTop   *  pClassTriStateBox;
      87             :     RscTop   *  pClassEdit;
      88             :     RscTop   *  pClassMultiLineEdit;
      89             :     RscTop   *  pClassScrollBar;
      90             :     RscTop   *  pClassListBox;
      91             :     RscTop   *  pClassMultiListBox;
      92             :     RscTop   *  pClassComboBox;
      93             :     RscTop   *  pClassFixedText;
      94             :     RscTop   *  pClassFixedBitmap;
      95             :     RscTop   *  pClassFixedImage;
      96             :     RscTop   *  pClassGroupBox;
      97             :     RscTop   *  pClassKeyCode;
      98             :     RscTop   *  pLangClassKeyCode;
      99             :     RscTop   *  pClassAccelItem;
     100             :     RscTop   *  pClassAccel;
     101             :     RscTop   *  pClassMenuItem;
     102             :     RscTop   *  pClassMenu;
     103             :     RscTop   *  pClassMenuButton;
     104             :     RscTop   *  pClassMessBox;
     105             :     RscTop   *  pClassInfoBox;
     106             :     RscTop   *  pClassWarningBox;
     107             :     RscTop   *  pClassErrorBox;
     108             :     RscTop   *  pClassQueryBox;
     109             :     RscTop   *  pClassSplitter;
     110             :     RscTop   *  pClassSplitWindow;
     111             :     RscTop   *  pClassSpinButton;
     112             :     RscTop   *  pClassTime;
     113             :     RscTop   *  pClassDate;
     114             :     RscTop   *  pClassSpinField;
     115             :     RscTop   *  pClassPatternField;
     116             :     RscTop   *  pClassNumericField;
     117             :     RscTop   *  pClassMetricField;
     118             :     RscTop   *  pClassDateField;
     119             :     RscTop   *  pClassTimeField;
     120             :     RscTop   *  pClassPatternBox;
     121             :     RscTop   *  pClassNumericBox;
     122             :     RscTop   *  pClassDockingWindow;
     123             :     RscTop   *  pClassToolBoxItem;
     124             :     RscTop   *  pClassToolBox;
     125             :     RscTop   *  pClassStatusBar;
     126             :     RscTop   *  pClassFloatingWindow;
     127             :     RscTop   *  pClassTabPage;
     128             :     RscTop   *  pClassTabDialog;
     129             :     RscTop   *  pClassTabControlItem;
     130             :     RscTop   *  pClassTabControl;
     131             :     RscTop   *  pClassFixedLine;
     132             :     RscTop   *  pClassScrollBarBox;
     133             :     RscTop *    pClassSfxStyleFamilyItem;
     134             :     RscTop *    pClassSfxTemplateDialog;
     135             :     RscTop *    pClassSfxSlotInfo;
     136             : 
     137             :     Atom        nId;
     138             : 
     139           0 :     aNmTb.SetSort( false );
     140             : {
     141           0 :     aNmTb.Put( "LINE",               LINE,           (long)0 );
     142           0 :     aNmTb.Put( "NOT",                NOT,            (long)0 );
     143           0 :     aNmTb.Put( "DEFINE",             DEFINE,         (long)0 );
     144           0 :     aNmTb.Put( "INCLUDE",            INCLUDE,        (long)0 );
     145           0 :     aNmTb.Put( "DEFAULT",            DEFAULT,        (long)0  );
     146           0 :     aNmTb.Put( "class",              CLASS,          (long)0  );
     147           0 :     aNmTb.Put( "extendable",         EXTENDABLE,     (long)0  );
     148           0 :     aNmTb.Put( "writeifset",         WRITEIFSET,     (long)0  );
     149             : 
     150             : /* Werte fuer Aufzaehlungstypen */
     151           0 :     aNmTb.Put( "TRUE",               BOOLEAN,        (long)sal_True  );
     152           0 :     aNmTb.Put( "FALSE",              BOOLEAN,        (long)sal_False );
     153             : 
     154           0 :     aNmTb.Put( "XSCALE",             XSCALE ,        (long)0     );
     155           0 :     aNmTb.Put( "YSCALE",             YSCALE ,        (long)0     );
     156           0 :     aNmTb.Put( "RGB",                RGB    ,        (long)0     );
     157           0 :     aNmTb.Put( "POSSIZE",            GEOMETRY,       (long)0     );
     158           0 :     aNmTb.Put( "POS",                POSITION,       (long)0     );
     159           0 :     aNmTb.Put( "SIZE",               DIMENSION,      (long)0     );
     160           0 :     aNmTb.Put( "ZoomInOutputSize",   INZOOMOUTPUTSIZE,(long)0    );
     161           0 :     aNmTb.Put( "FloatingPos",        FLOATINGPOS,    (long)0     );
     162             : }
     163             : {
     164           0 :     aShort.SetRange( -32768, 32767 );
     165             : 
     166           0 :     aUShort.SetRange( 0, 0xFFFF );
     167             : 
     168           0 :     aLong.SetRange( SAL_MIN_INT32, SAL_MAX_INT32 );
     169           0 :     aEnumLong.SetRange( SAL_MIN_INT32, SAL_MAX_INT32 );
     170             : 
     171           0 :     aIdUShort.SetRange( 0, 0xFFFF );
     172             : 
     173           0 :     aIdNoZeroUShort.SetRange( 1, 0xFFFF );
     174             : 
     175           0 :     aNoZeroShort.SetRange( -32768, 32767 );
     176           0 :     aNoZeroShort.SetOutRange( 0 );
     177             : 
     178           0 :         a1to12Short.SetRange( 1, 12 );
     179           0 :         a0to23Short.SetRange( 0, 23 );
     180           0 :         a1to31Short.SetRange( 1, 31 );
     181           0 :         a0to59Short.SetRange( 0, 59 );
     182           0 :         a0to99Short.SetRange( 0, 99 );
     183           0 :         a0to9999Short.SetRange( 0, 9999 );
     184             : 
     185           0 :     aIdLong.SetRange( SAL_MIN_INT32, SAL_MAX_INT32 );
     186             : }
     187             : {
     188             :     // Variablenname fuer WinBits
     189           0 :     nWinBitVarId = aNmTb.Put( "_WinBits", VARNAME );
     190             : 
     191             :     // Windows
     192           0 :     nBorderId       = pHS->getID( "WB_BORDER" );
     193           0 :     aWinBits.SetConstant( nBorderId, sal::static_int_cast<sal_Int32>(WB_BORDER) );
     194           0 :     nHideId         = pHS->getID( "WB_HIDE" );
     195           0 :     aWinBits.SetConstant( nHideId, sal::static_int_cast<sal_Int32>(WB_HIDE) );
     196           0 :     nClipChildrenId = pHS->getID( "WB_CLIPCHILDREN" );
     197           0 :     aWinBits.SetConstant( nClipChildrenId, sal::static_int_cast<sal_Int32>(WB_CLIPCHILDREN) );
     198           0 :     nSizeableId     = pHS->getID( "WB_SIZEABLE" );
     199           0 :     aWinBits.SetConstant( nSizeableId, sal::static_int_cast<sal_Int32>(WB_SIZEABLE) );
     200           0 :     nMoveableId     = pHS->getID( "WB_MOVEABLE" );
     201           0 :     aWinBits.SetConstant( nMoveableId, sal::static_int_cast<sal_Int32>(WB_MOVEABLE) );
     202           0 :     nMinimizeId     = pHS->getID( "WB_MINABLE" );
     203           0 :     aWinBits.SetConstant( nMinimizeId, 0 /*WB_MINABLE*/ );
     204           0 :     nMaximizeId     = pHS->getID( "WB_MAXABLE" );
     205           0 :     aWinBits.SetConstant( nMaximizeId, 0 /*WB_MAXABLE*/ );
     206           0 :     nCloseableId    = pHS->getID( "WB_CLOSEABLE" );
     207           0 :     aWinBits.SetConstant( nCloseableId, sal::static_int_cast<sal_Int32>(WB_CLOSEABLE) );
     208           0 :     nAppId          = pHS->getID( "WB_APP" );
     209           0 :     aWinBits.SetConstant( nAppId, sal::static_int_cast<sal_Int32>(WB_APP) );
     210           0 :     nTabstopId      = pHS->getID( "WB_TABSTOP" );
     211           0 :     aWinBits.SetConstant( nTabstopId, sal::static_int_cast<sal_Int32>(WB_TABSTOP) );
     212           0 :     nGroupId        = pHS->getID( "WB_GROUP" );
     213           0 :     aWinBits.SetConstant( nGroupId, sal::static_int_cast<sal_Int32>(WB_GROUP) );
     214           0 :     nSysmodalId     = pHS->getID( "WB_SYSMODAL" );
     215           0 :     aWinBits.SetConstant( nSysmodalId, 0 /*WB_SYSMODAL*/ );
     216             : }
     217             : {
     218           0 :     nLeftId         = pHS->getID( "WB_LEFT" );
     219           0 :     aWinBits.SetConstant( nLeftId, sal::static_int_cast<sal_Int32>(WB_LEFT) );
     220           0 :     nCenterId       = pHS->getID( "WB_CENTER" );
     221           0 :     aWinBits.SetConstant( nCenterId, sal::static_int_cast<sal_Int32>(WB_CENTER) );
     222           0 :     nRightId        = pHS->getID( "WB_RIGHT" );
     223           0 :     aWinBits.SetConstant( nRightId, sal::static_int_cast<sal_Int32>(WB_RIGHT) );
     224           0 :     nTopId          = pHS->getID( "WB_TOP" );
     225           0 :     aWinBits.SetConstant( nTopId, sal::static_int_cast<sal_Int32>(WB_TOP) );
     226           0 :     nVCenterId      = pHS->getID( "WB_VCENTER" );
     227           0 :     aWinBits.SetConstant( nVCenterId, sal::static_int_cast<sal_Int32>(WB_VCENTER) );
     228           0 :     nBottomId       = pHS->getID( "WB_BOTTOM" );
     229           0 :     aWinBits.SetConstant( nBottomId, sal::static_int_cast<sal_Int32>(WB_BOTTOM) );
     230           0 :     nHScrollId      = pHS->getID( "WB_HSCROLL" );
     231           0 :     aWinBits.SetConstant( nHScrollId, sal::static_int_cast<sal_Int32>(WB_HSCROLL) );
     232           0 :     nVScrollId      = pHS->getID( "WB_VSCROLL" );
     233           0 :     aWinBits.SetConstant( nVScrollId, sal::static_int_cast<sal_Int32>(WB_VSCROLL) );
     234           0 :     nSortId         = pHS->getID( "WB_SORT" );
     235           0 :     aWinBits.SetConstant( nSortId, sal::static_int_cast<sal_Int32>(WB_SORT) );
     236           0 :     nDefaultId          = pHS->getID( "WB_DEFBUTTON" );
     237           0 :     aWinBits.SetConstant( nDefaultId, sal::static_int_cast<sal_Int32>(WB_DEFBUTTON) );
     238           0 :     nRepeatId           = pHS->getID( "WB_REPEAT" );
     239           0 :     aWinBits.SetConstant( nRepeatId, sal::static_int_cast<sal_Int32>(WB_REPEAT) );
     240           0 :     nSVLookId           = pHS->getID( "WB_SVLOOK" );
     241           0 :     aWinBits.SetConstant( nSVLookId, sal::static_int_cast<sal_Int32>(WB_3DLOOK) );
     242           0 :     nDropDownId         = pHS->getID( "WB_DROPDOWN" );
     243           0 :     aWinBits.SetConstant( nDropDownId, sal::static_int_cast<sal_Int32>(WB_DROPDOWN) );
     244           0 :     nPassWordId         = pHS->getID( "WB_PASSWORD" );
     245           0 :     aWinBits.SetConstant( nPassWordId, sal::static_int_cast<sal_Int32>(WB_PASSWORD) );
     246           0 :     nReadOnlyId         = pHS->getID( "WB_READONLY" );
     247           0 :     aWinBits.SetConstant( nReadOnlyId, sal::static_int_cast<sal_Int32>(WB_READONLY) );
     248           0 :     nAutoSizeId         = pHS->getID( "WB_AUTOSIZE" );
     249           0 :     aWinBits.SetConstant( nAutoSizeId, sal::static_int_cast<sal_Int32>(WB_AUTOSIZE) );
     250           0 :     nSpinId             = pHS->getID( "WB_SPIN" );
     251           0 :     aWinBits.SetConstant( nSpinId, sal::static_int_cast<sal_Int32>(WB_SPIN) );
     252           0 :     nTabControlId       = pHS->getID( "WB_DIALOGCONTROL" );
     253           0 :     aWinBits.SetConstant( nTabControlId, sal::static_int_cast<sal_Int32>(WB_DIALOGCONTROL) );
     254           0 :     nSimpleModeId       = pHS->getID( "WB_SIMPLEMODE" );
     255           0 :     aWinBits.SetConstant( nSimpleModeId, sal::static_int_cast<sal_Int32>(WB_SIMPLEMODE) );
     256           0 :     nDragId             = pHS->getID( "WB_DRAG" );
     257           0 :     aWinBits.SetConstant( nDragId, sal::static_int_cast<sal_Int32>(WB_DRAG) );
     258           0 :     nScrollId           = pHS->getID( "WB_SCROLL" );
     259           0 :     aWinBits.SetConstant( nScrollId, sal::static_int_cast<sal_Int32>(WB_SCROLL) );
     260           0 :     nZoomableId         = pHS->getID( "WB_ZOOMABLE" );
     261           0 :     aWinBits.SetConstant( nZoomableId, sal::static_int_cast<sal_Int32>(WB_ROLLABLE) );
     262           0 :     nHideWhenDeactivateId = pHS->getID( "WB_HIDEWHENDEACTIVATE" );
     263           0 :     aWinBits.SetConstant( nHideWhenDeactivateId, 0 /*WB_HIDEWHENDEACTIVATE*/ );
     264           0 :     nAutoHScrollId      = pHS->getID( "WB_AUTOHSCROLL" );
     265           0 :     aWinBits.SetConstant( nAutoHScrollId, sal::static_int_cast<sal_Int32>(WB_AUTOHSCROLL) );
     266           0 :     nAutoVScrollId      = pHS->getID( "WB_AUTOVSCROLL" );
     267           0 :     aWinBits.SetConstant( nAutoVScrollId, sal::static_int_cast<sal_Int32>(WB_AUTOVSCROLL) );
     268           0 :     nDDExtraWidthId     = pHS->getID( "WB_DDEXTRAWIDTH" );
     269           0 :     aWinBits.SetConstant( nDDExtraWidthId, 0 /*WB_DDEXTRAWIDTH*/ );
     270           0 :     nWordBreakId        = pHS->getID( "WB_WORDBREAK" );
     271           0 :     aWinBits.SetConstant( nWordBreakId, sal::static_int_cast<sal_Int32>(WB_WORDBREAK) );
     272           0 :     nLeftLabelId        = pHS->getID( "WB_LEFTLABEL" );
     273           0 :     aWinBits.SetConstant( nLeftLabelId, 0 /*WB_LEFTLABEL*/ );
     274           0 :     nHasLinesId         = pHS->getID( "WB_HASLINES" );
     275           0 :     aWinBits.SetConstant( nHasLinesId, sal::static_int_cast<sal_Int32>(WB_HASLINES) );
     276           0 :     nHasButtonsId       = pHS->getID( "WB_HASBUTTONS" );
     277           0 :     aWinBits.SetConstant( nHasButtonsId, sal::static_int_cast<sal_Int32>(WB_HASBUTTONS) );
     278           0 :     nRectStyleId        = pHS->getID( "WB_RECTSTYLE" );
     279           0 :     aWinBits.SetConstant( nRectStyleId, sal::static_int_cast<sal_Int32>(WB_RECTSTYLE) );
     280           0 :     nLineSpacingId      = pHS->getID( "WB_LINESPACING" );
     281           0 :     aWinBits.SetConstant( nLineSpacingId, sal::static_int_cast<sal_Int32>(WB_LINESPACING) );
     282           0 :     nSmallStyleId       = pHS->getID( "WB_SMALLSTYLE" );
     283           0 :     aWinBits.SetConstant( nSmallStyleId, sal::static_int_cast<sal_Int32>(WB_SMALLSTYLE) );
     284           0 :     nEnableResizingId   = pHS->getID( "WB_ENABLERESIZING" );
     285           0 :     aWinBits.SetConstant( nEnableResizingId, 0 /*WB_ENABLERESIZING*/ );
     286           0 :     nDockableId         = pHS->getID( "WB_DOCKABLE" );
     287           0 :     aWinBits.SetConstant( nDockableId, sal::static_int_cast<sal_Int32>(WB_DOCKABLE) );
     288           0 :     nScaleId            = pHS->getID( "WB_SCALE" );
     289           0 :     aWinBits.SetConstant( nScaleId, sal::static_int_cast<sal_Int32>(WB_SCALE) );
     290           0 :     nIgnoreTabId        = pHS->getID( "WB_IGNORETAB" );
     291           0 :     aWinBits.SetConstant( nIgnoreTabId, sal::static_int_cast<sal_Int32>(WB_IGNORETAB) );
     292           0 :     nNoSplitDrawId      = pHS->getID( "WB_NOSPLITDRAW" );
     293           0 :     aWinBits.SetConstant( nNoSplitDrawId, sal::static_int_cast<sal_Int32>(WB_NOSPLITDRAW) );
     294           0 :     nTopImageId         = pHS->getID( "WB_TOPIMAGE" );
     295           0 :     aWinBits.SetConstant( nTopImageId, sal::static_int_cast<sal_Int32>(WB_TOPIMAGE) );
     296           0 :     nNoLabelId          = pHS->getID( "WB_NOLABEL" );
     297           0 :     aWinBits.SetConstant( nNoLabelId, sal::static_int_cast<sal_Int32>(WB_NOLABEL) );
     298           0 :     nVertId             = pHS->getID( "WB_VERT" );
     299           0 :     aWinBits.SetConstant( nVertId, sal::static_int_cast<sal_Int32>(WB_VERT) );
     300           0 :     nSysWinId           = pHS->getID( "WB_SYSTEMWINDOW" );
     301           0 :     aWinBits.SetConstant( nSysWinId, sal::static_int_cast<sal_Int32>(WB_SYSTEMWINDOW) );
     302           0 :     nStdPopupId         = pHS->getID( "WB_STDPOPUP" );
     303           0 :     aWinBits.SetConstant( nStdPopupId, sal::static_int_cast<sal_Int32>(WB_STDPOPUP) );
     304             : }
     305             : {
     306           0 :     InitLangType();
     307           0 :     aBaseLst.push_back( pFieldUnits      = InitFieldUnitsType() );
     308           0 :     aBaseLst.push_back( pTimeFieldFormat = InitTimeFieldFormat() );
     309           0 :     aBaseLst.push_back( pColor           = InitColor() );
     310           0 :     aBaseLst.push_back( pMapUnit         = InitMapUnit() );
     311           0 :     aBaseLst.push_back( pKey             = InitKey() );
     312           0 :     aBaseLst.push_back( pTriState        = InitTriState() );
     313           0 :     aBaseLst.push_back( pMessButtons     = InitMessButtons() );
     314           0 :     aBaseLst.push_back( pMessDefButton   = InitMessDefButton() );
     315             : 
     316           0 :     aBaseLst.push_back( pGeometry        = InitGeometry() );
     317           0 :     aBaseLst.push_back( pLangGeometry    = InitLangGeometry( pGeometry ) );
     318           0 :     aBaseLst.push_back( pStringList      = InitStringList() );
     319           0 :     aBaseLst.push_back( pLangStringList  = InitLangStringList( pStringList ) );
     320           0 :     aBaseLst.push_back( pStringTupel     = InitStringTupel() );
     321           0 :     aBaseLst.push_back( pStringTupelList = InitStringTupelList( pStringTupel ) );
     322           0 :     aBaseLst.push_back( InitLangStringTupelList( pStringTupelList ) );
     323           0 :     aBaseLst.push_back( pStringLongTupel = InitStringLongTupel() );
     324           0 :     aBaseLst.push_back( pStringLongTupelList = InitStringLongTupelList( pStringLongTupel ) );
     325           0 :     aBaseLst.push_back( pLangStringLongTupelList = InitLangStringLongTupelList( pStringLongTupelList ) );
     326             : }
     327             : {
     328           0 :     pRoot = pClassMgr = InitClassMgr();
     329             : 
     330           0 :     aVersion.pClass = new RscClass( pHS->getID( "VersionControl" ),
     331           0 :                                     RSC_VERSIONCONTROL, pClassMgr );
     332           0 :     aVersion = aVersion.pClass->Create( NULL, RSCINST() );
     333             : 
     334           0 :     pClassString = InitClassString( pClassMgr );
     335           0 :     pRoot->Insert( pClassString );
     336             : 
     337             :     // String als Referenzklasse des Basisstrings einsetzen
     338           0 :     aString.SetRefClass( pClassString );
     339             : 
     340             :     // Klasse anlegen
     341           0 :     nId = pHS->getID( "StringArray" );
     342           0 :     pClassStringArray = new RscClass( nId, RSC_STRINGARRAY, pClassMgr );
     343           0 :     pClassStringArray->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
     344           0 :     aNmTb.Put( nId, CLASSNAME, pClassStringArray );
     345           0 :     pRoot->Insert( pClassStringArray );
     346             : 
     347             :     // Variablen anlegen
     348           0 :     nId = aNmTb.Put( "ItemList", VARNAME );
     349           0 :     pClassStringArray->SetVariable( nId, pLangStringLongTupelList );
     350             : 
     351           0 :     pClassBitmap = InitClassBitmap( pClassMgr );
     352           0 :     pRoot->Insert( pClassBitmap );
     353             : 
     354             : }
     355             : {
     356           0 :     pClassColor = InitClassColor( pClassMgr, pColor );
     357           0 :     pRoot->Insert( pClassColor );
     358             : 
     359           0 :     pClassImage = InitClassImage( pClassMgr, pClassBitmap, pClassColor );
     360           0 :     pRoot->Insert( pClassImage );
     361             : 
     362             :      pClassImageList = InitClassImageList( pClassMgr,
     363           0 :                                           pClassColor, pStringLongTupelList );
     364           0 :     pRoot->Insert( pClassImageList );
     365             : 
     366             :     pClassWindow = InitClassWindow( pClassMgr, pMapUnit,
     367           0 :                                     pLangGeometry );
     368           0 :     pRoot->Insert( pClassWindow );
     369             : }
     370             : {
     371             : 
     372           0 :     pClassSystemWindow = InitClassSystemWindow( pClassWindow );
     373             :     //aBaseLst.Insert( pClassSystemWindow, LIST_APPEND );
     374           0 :     pRoot->Insert( pClassSystemWindow );
     375             : 
     376           0 :     pClassWorkWindow = InitClassWorkWindow( pClassSystemWindow );
     377           0 :     pRoot->Insert( pClassWorkWindow );
     378             : 
     379             :     // Klasse anlegen
     380           0 :     pClassDialog = new RscClass( pHS->getID( "Dialog" ),
     381           0 :                                  RSC_DIALOG, pClassSystemWindow );
     382           0 :     pClassDialog->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     383           0 :     aBaseLst.push_back( pClassDialog );
     384             : 
     385             :     // Klasse anlegen
     386           0 :     pClassModalDialog = InitClassModalDialog( pClassDialog );
     387           0 :     pRoot->Insert( pClassModalDialog );
     388             : 
     389             :     // Klasse anlegen
     390           0 :     pClassModelessDialog = InitClassModelessDialog( pClassDialog );
     391           0 :     pRoot->Insert( pClassModelessDialog );
     392             : }
     393             : {
     394           0 :     pClassControl = InitClassControl( pClassWindow );
     395           0 :     pRoot->Insert( pClassControl );
     396             : 
     397             :     // Klasse anlegen
     398           0 :     nId = pHS->getID( "Button" );
     399           0 :     pClassButton = new RscClass( nId, RSC_BUTTON, pClassControl );
     400           0 :     pClassButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     401           0 :     aNmTb.Put( nId, CLASSNAME, pClassButton );
     402           0 :     pRoot->Insert( pClassButton );
     403             : 
     404           0 :     pClassCheckBox = InitClassCheckBox( pClassButton );
     405           0 :     pRoot->Insert( pClassCheckBox );
     406             : 
     407             :     // Klasse anlegen
     408           0 :     pClassPushButton = InitClassPushButton( pClassButton );
     409           0 :     pRoot->Insert( pClassPushButton );
     410             : 
     411             :     // Klasse anlegen
     412           0 :     nId = pHS->getID( "HelpButton" );
     413             :     pClassHelpButton = new RscClass( nId, RSC_HELPBUTTON,
     414           0 :                                         pClassPushButton );
     415           0 :     pClassHelpButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     416           0 :     aNmTb.Put( nId, CLASSNAME, pClassHelpButton );
     417           0 :     pRoot->Insert( pClassHelpButton );
     418             : 
     419             :     // Klasse anlegen
     420           0 :     nId = pHS->getID( "OKButton" );
     421             :     pClassOKButton = new RscClass( nId, RSC_OKBUTTON,
     422           0 :                                         pClassPushButton );
     423           0 :     pClassOKButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     424           0 :     aNmTb.Put( nId, CLASSNAME, pClassOKButton );
     425           0 :     pRoot->Insert( pClassOKButton );
     426             : 
     427             :     // Klasse anlegen
     428           0 :     nId = pHS->getID( "CancelButton" );
     429             :     pClassCancelButton = new RscClass( nId, RSC_CANCELBUTTON,
     430           0 :                                         pClassPushButton );
     431           0 :     pClassCancelButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     432           0 :     aNmTb.Put( nId, CLASSNAME, pClassCancelButton );
     433           0 :     pRoot->Insert( pClassCancelButton );
     434             : }
     435             : {
     436           0 :     pClassRadioButton = InitClassRadioButton( pClassButton );
     437           0 :     pRoot->Insert( pClassRadioButton );
     438             : 
     439           0 :     pClassTriStateBox = InitClassTriStateBox( pClassControl, pTriState );
     440           0 :     pRoot->Insert( pClassTriStateBox );
     441             : 
     442             :     pClassImageButton = InitClassImageButton( pClassPushButton,
     443           0 :                                               pClassImage, pTriState );
     444           0 :     pRoot->Insert( pClassImageButton );
     445             : 
     446           0 :     pClassEdit = InitClassEdit( pClassControl );
     447           0 :     pRoot->Insert( pClassEdit );
     448             : 
     449           0 :     pClassMultiLineEdit = InitClassMultiLineEdit( pClassEdit );
     450           0 :     pRoot->Insert( pClassMultiLineEdit );
     451             : 
     452           0 :     pClassScrollBar = InitClassScrollBar( pClassControl );
     453           0 :     pRoot->Insert( pClassScrollBar );
     454             : 
     455             : }
     456             : {
     457           0 :     pClassListBox = InitClassListBox( pClassControl, pLangStringLongTupelList );
     458           0 :     pRoot->Insert( pClassListBox );
     459             : 
     460           0 :     pClassMultiListBox = InitClassMultiListBox( pClassListBox);
     461           0 :     pRoot->Insert( pClassMultiListBox );
     462             : 
     463           0 :     pClassComboBox = InitClassComboBox( pClassEdit, pLangStringList );
     464           0 :     pRoot->Insert( pClassComboBox );
     465             : 
     466           0 :     pClassFixedText = InitClassFixedText( pClassControl );
     467           0 :     pRoot->Insert( pClassFixedText );
     468             : 
     469           0 :     pClassFixedBitmap = InitClassFixedBitmap( pClassControl, pClassBitmap );
     470           0 :     pRoot->Insert( pClassFixedBitmap );
     471             : 
     472           0 :     pClassFixedImage = InitClassFixedImage( pClassControl, pClassImage );
     473           0 :     pRoot->Insert( pClassFixedImage );
     474             : 
     475             :     // Klasse anlegen
     476           0 :     nId = pHS->getID( "GroupBox" );
     477           0 :     pClassGroupBox = new RscClass( nId, RSC_GROUPBOX, pClassControl );
     478           0 :     pClassGroupBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     479           0 :     aNmTb.Put( nId, CLASSNAME, pClassGroupBox );
     480           0 :     pRoot->Insert( pClassGroupBox );
     481             : 
     482           0 :     pClassKeyCode = InitClassKeyCode( pClassMgr, pKey );
     483           0 :     pRoot->Insert( pClassKeyCode );
     484             :     {
     485           0 :     pLangClassKeyCode = new RscClassArray( pHS->getID( "LangKeyCode" ),
     486           0 :                     RSC_KEYCODE, pClassKeyCode, &aLangType );
     487           0 :     aBaseLst.push_back( pLangClassKeyCode );
     488             :     }
     489             : 
     490           0 :     pClassAccelItem = InitClassAccelItem( pClassMgr, pLangClassKeyCode );
     491           0 :     pRoot->Insert( pClassAccelItem );
     492             : }
     493             : {
     494           0 :     pClassAccel = InitClassAccel( pClassMgr, pClassAccelItem );
     495           0 :     pRoot->Insert( pClassAccel );
     496           0 :     nAcceleratorType = pClassAccel->GetId();
     497             : 
     498             :     // pClassAccel ist erst hier definiert
     499           0 :     nId = aNmTb.Put( "SubAccelerator", VARNAME );
     500             :     pClassAccelItem->SetVariable( nId, pClassAccel, NULL, VAR_SVDYNAMIC,
     501           0 :                                ACCELITEM_ACCEL );
     502             : 
     503             :     pClassMenuItem = InitClassMenuItem( pClassMgr, pClassBitmap,
     504           0 :                                         pLangClassKeyCode );
     505           0 :     pRoot->Insert( pClassMenuItem );
     506             : 
     507           0 :     pClassMenu = InitClassMenu( pClassMgr, pClassMenuItem );
     508           0 :     pRoot->Insert( pClassMenu );
     509             : 
     510             :     // pClassMenu ist erst hier definiert
     511           0 :     nId = aNmTb.Put( "SubMenu", VARNAME );
     512             :     pClassMenuItem->SetVariable( nId, pClassMenu, NULL, VAR_SVDYNAMIC,
     513           0 :                                  RSC_MENUITEM_MENU );
     514             : 
     515           0 :     pClassMenuButton = InitClassMenuButton( pClassControl, pClassMenu );
     516           0 :     pRoot->Insert( pClassMenuButton );
     517             : 
     518             :     pClassMessBox = InitClassMessBox( pClassMgr, pMessButtons,
     519           0 :                                          pMessDefButton );
     520           0 :     pRoot->Insert( pClassMessBox );
     521             : 
     522             :     // Klasse anlegen
     523           0 :     nId = pHS->getID( "InfoBox" );
     524           0 :     pClassInfoBox = new RscClass( nId, RSC_INFOBOX, pClassMessBox );
     525           0 :     pClassInfoBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     526           0 :     aNmTb.Put( nId, CLASSNAME, pClassInfoBox );
     527           0 :     pRoot->Insert( pClassInfoBox );
     528             : 
     529             :     // Klasse anlegen
     530           0 :     nId = pHS->getID( "WarningBox" );
     531           0 :     pClassWarningBox = new RscClass( nId, RSC_WARNINGBOX, pClassMessBox );
     532           0 :     pClassWarningBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     533           0 :     aNmTb.Put( nId, CLASSNAME, pClassWarningBox );
     534           0 :     pRoot->Insert( pClassWarningBox );
     535             : 
     536             :     // Klasse anlegen
     537           0 :     nId = pHS->getID( "ErrorBox" );
     538           0 :     pClassErrorBox = new RscClass( nId, RSC_ERRORBOX, pClassMessBox );
     539           0 :     pClassErrorBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     540           0 :     aNmTb.Put( nId, CLASSNAME, pClassErrorBox );
     541           0 :     pRoot->Insert( pClassErrorBox );
     542             : 
     543             :     // Klasse anlegen
     544           0 :     nId = pHS->getID( "QueryBox" );
     545           0 :     pClassQueryBox = new RscClass( nId, RSC_QUERYBOX, pClassMessBox );
     546           0 :     pClassQueryBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     547           0 :     aNmTb.Put( nId, CLASSNAME, pClassQueryBox );
     548           0 :     pRoot->Insert( pClassQueryBox );
     549             : }
     550             : {
     551           0 :     pClassSplitter = InitClassSplitter( pClassWindow );
     552           0 :     pRoot->Insert( pClassSplitter );
     553             : 
     554           0 :     pClassSplitWindow = InitClassSplitWindow( pClassWindow );
     555           0 :     pRoot->Insert( pClassSplitWindow );
     556             : 
     557             :     // Klasse anlegen
     558           0 :     nId = pHS->getID( "SpinButton" );
     559           0 :     pClassSpinButton = new RscClass( nId, RSC_SPINBUTTON, pClassControl );
     560           0 :     pClassSpinButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     561           0 :     aNmTb.Put( nId, CLASSNAME, pClassSpinButton );
     562             :     {
     563             :         RscClient * pClient;
     564             : 
     565             :         // Clientvariablen einfuegen
     566             :         // Sysmodal
     567             :         aBaseLst.push_back(
     568           0 :             pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, &aWinBits, nRepeatId )
     569           0 :         );
     570           0 :         nId = aNmTb.Put( "Repeat", VARNAME );
     571             :         pClassSpinButton->SetVariable( nId, pClient, NULL,
     572           0 :                                       VAR_NODATAINST, 0, nWinBitVarId );
     573             :     }
     574           0 :     pRoot->Insert( pClassSpinButton );
     575             : }
     576             : {
     577           0 :     pClassTime = InitClassTime( pClassMgr );
     578           0 :     pRoot->Insert( pClassTime );
     579             : 
     580           0 :     pClassDate = InitClassDate( pClassMgr );
     581           0 :     pRoot->Insert( pClassDate );
     582             : }
     583             : {
     584           0 :     pClassSpinField = InitClassSpinField( pClassEdit );
     585           0 :     pRoot->Insert( pClassSpinField );
     586             : }
     587             : {
     588             :     { // Mehrfachvererbung von Hand
     589           0 :     RscTop * pClassTmp = InitClassPatternFormatter( pClassSpinField );
     590           0 :     aBaseLst.push_back( pClassTmp );
     591             : 
     592           0 :     pClassPatternField = InitClassPatternField( pClassTmp );
     593           0 :     pRoot->Insert( pClassPatternField );
     594             :     }
     595             :     { // Mehrfachvererbung von Hand
     596           0 :     RscTop * pClassTmp = InitClassNumericFormatter( pClassSpinField );
     597           0 :     aBaseLst.push_back( pClassTmp );
     598             : 
     599           0 :     pClassNumericField = InitClassNumericField( pClassTmp );
     600           0 :     pRoot->Insert( pClassNumericField );
     601             :     }
     602             :     { // Mehrfachvererbung von Hand
     603           0 :     RscTop * pClassTmp = InitClassNumericFormatter( pClassSpinField );
     604           0 :     aBaseLst.push_back( pClassTmp );
     605           0 :     pClassTmp = InitClassMetricFormatter( pClassTmp, pFieldUnits );
     606           0 :     aBaseLst.push_back( pClassTmp );
     607             : 
     608           0 :     pClassMetricField = InitClassMetricField( pClassTmp );
     609           0 :     pRoot->Insert( pClassMetricField );
     610             :     }
     611             :     { // Mehrfachvererbung von Hand
     612           0 :     RscTop * pClassTmp = InitClassDateFormatter( pClassSpinField, pClassDate );
     613           0 :     aBaseLst.push_back( pClassTmp );
     614             : 
     615           0 :     pClassDateField = InitClassDateField( pClassTmp, pClassDate );
     616           0 :     pRoot->Insert( pClassDateField );
     617             :     }
     618             :     { // Mehrfachvererbung von Hand
     619             :     RscTop * pClassTmp = InitClassTimeFormatter( pClassSpinField, pClassTime,
     620           0 :                                                  pTimeFieldFormat );
     621           0 :     aBaseLst.push_back( pClassTmp );
     622             : 
     623           0 :     pClassTimeField = InitClassTimeField( pClassTmp, pClassTime );
     624           0 :     pRoot->Insert( pClassTimeField );
     625             :     }
     626             :     { // Mehrfachvererbung von Hand
     627           0 :     RscTop * pClassTmp = InitClassPatternFormatter( pClassComboBox );
     628           0 :     aBaseLst.push_back( pClassTmp );
     629             : 
     630           0 :     pClassPatternBox = InitClassPatternBox( pClassTmp );
     631           0 :     pRoot->Insert( pClassPatternBox );
     632             :     }
     633             :     { // Mehrfachvererbung von Hand
     634           0 :     RscTop * pClassTmp = InitClassNumericFormatter( pClassComboBox );
     635           0 :     aBaseLst.push_back( pClassTmp );
     636             : 
     637           0 :     pClassNumericBox = InitClassNumericBox( pClassTmp );
     638           0 :     pRoot->Insert( pClassNumericBox );
     639             :     }
     640             : }
     641             : {
     642           0 :     pClassDockingWindow = InitClassDockingWindow( pClassWindow, pMapUnit );
     643           0 :     pRoot->Insert( pClassDockingWindow );
     644             : 
     645             :     pClassToolBoxItem = InitClassToolBoxItem( pClassMgr, pClassBitmap,
     646           0 :                                               pClassImage, pTriState );
     647           0 :     pRoot->Insert( pClassToolBoxItem );
     648             : 
     649             :     pClassToolBox = InitClassToolBox( pClassDockingWindow, pClassToolBoxItem,
     650           0 :                                       pClassImageList );
     651           0 :     pRoot->Insert( pClassToolBox );
     652             : 
     653           0 :     pClassStatusBar = InitClassStatusBar( pClassWindow );
     654           0 :     pRoot->Insert( pClassStatusBar );
     655             : 
     656             :     pClassFloatingWindow = InitClassFloatingWindow( pClassSystemWindow,
     657           0 :                                                     pMapUnit );
     658           0 :     pRoot->Insert( pClassFloatingWindow );
     659             : 
     660             :     // Klasse anlegen
     661           0 :     nId = pHS->getID( "TabPage" );
     662             :     pClassTabPage =
     663           0 :           new RscClass( nId, RSC_TABPAGE, pClassWindow );
     664           0 :     pClassTabPage->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     665           0 :     aNmTb.Put( nId, CLASSNAME, pClassTabPage );
     666           0 :     pRoot->Insert( pClassTabPage );
     667             : 
     668             :     // Klasse anlegen
     669           0 :     nId = pHS->getID( "TabDialog" );
     670             :     pClassTabDialog =
     671           0 :           new RscClass( nId, RSC_TABDIALOG, pClassModalDialog );
     672           0 :     pClassTabDialog->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     673           0 :     aNmTb.Put( nId, CLASSNAME, pClassTabDialog );
     674           0 :     pRoot->Insert( pClassTabDialog );
     675             : 
     676           0 :     pClassTabControlItem = InitClassTabControlItem( pClassMgr );
     677           0 :     pRoot->Insert( pClassTabControlItem );
     678             : 
     679             :     pClassTabControl = InitClassTabControl( pClassControl,
     680           0 :                                             pClassTabControlItem );
     681           0 :     pRoot->Insert( pClassTabControl );
     682             : 
     683             :     // Klasse anlegen
     684           0 :     nId = pHS->getID( "FixedLine" );
     685             :     pClassFixedLine =
     686           0 :           new RscClass( nId, RSC_FIXEDLINE, pClassControl );
     687           0 :     pClassFixedLine->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     688             : 
     689           0 :     INS_WINBIT(pClassFixedLine,Vert)
     690             : 
     691           0 :     aNmTb.Put( nId, CLASSNAME, pClassFixedLine );
     692           0 :     pRoot->Insert( pClassFixedLine );
     693             : 
     694             :     // Klasse anlegen
     695           0 :     nId = pHS->getID( "ScrollBarBox" );
     696             :     pClassScrollBarBox =
     697           0 :           new RscClass( nId, RSC_SCROLLBARBOX, pClassWindow );
     698           0 :     pClassScrollBarBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
     699           0 :     aNmTb.Put( nId, CLASSNAME, pClassScrollBarBox );
     700           0 :     pRoot->Insert( pClassScrollBarBox );
     701           0 :     INS_WINBIT(pClassScrollBarBox,Sizeable)
     702             : 
     703             :     pClassSfxStyleFamilyItem = InitClassSfxStyleFamilyItem( pClassMgr,
     704             :                                                    pClassBitmap,
     705             :                                                    pClassImage,
     706           0 :                                                    pLangStringLongTupelList );
     707           0 :     pRoot->Insert( pClassSfxStyleFamilyItem );
     708             : 
     709             :     pClassSfxTemplateDialog = InitClassSfxTemplateDialog( pClassMgr,
     710           0 :                                                   pClassSfxStyleFamilyItem );
     711           0 :     pRoot->Insert( pClassSfxTemplateDialog );
     712             : 
     713           0 :     pClassSfxSlotInfo = InitClassSfxSlotInfo( pClassMgr );
     714           0 :     pRoot->Insert( pClassSfxSlotInfo );
     715             : }
     716             : 
     717           0 :     aNmTb.SetSort();
     718           0 : }
     719             : 
     720             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10