1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 29*cdf0e10cSrcweir #include "precompiled_rsc.hxx" 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir /****************** I N C L U D E S **************************************/ 32*cdf0e10cSrcweir // C and C++ Includes. 33*cdf0e10cSrcweir #include <stdlib.h> 34*cdf0e10cSrcweir #include <stdio.h> 35*cdf0e10cSrcweir 36*cdf0e10cSrcweir #include <tools/rc.h> 37*cdf0e10cSrcweir 38*cdf0e10cSrcweir #include <vclrsc.hxx> 39*cdf0e10cSrcweir 40*cdf0e10cSrcweir // Programmabhaengige Includes. 41*cdf0e10cSrcweir #include <rsctree.hxx> 42*cdf0e10cSrcweir #include <rsctop.hxx> 43*cdf0e10cSrcweir #include <rscrange.hxx> 44*cdf0e10cSrcweir #include <rscconst.hxx> 45*cdf0e10cSrcweir #include <rscflag.hxx> 46*cdf0e10cSrcweir #include <rscstr.hxx> 47*cdf0e10cSrcweir #include <rsccont.hxx> 48*cdf0e10cSrcweir #include <rscmgr.hxx> 49*cdf0e10cSrcweir #include <rscclass.hxx> 50*cdf0e10cSrcweir #include <rsckey.hxx> 51*cdf0e10cSrcweir #include <rscdb.hxx> 52*cdf0e10cSrcweir 53*cdf0e10cSrcweir #include "rsclex.hxx" 54*cdf0e10cSrcweir #include <yyrscyacc.hxx> 55*cdf0e10cSrcweir 56*cdf0e10cSrcweir /****************** M a c r o s ******************************************/ 57*cdf0e10cSrcweir #define INS_WINBIT( pClass, WinBit ) \ 58*cdf0e10cSrcweir InsWinBit( pClass, #WinBit, n##WinBit##Id ); 59*cdf0e10cSrcweir 60*cdf0e10cSrcweir /****************** C O D E **********************************************/ 61*cdf0e10cSrcweir void NameToVerCtrl( RSCINST & aVersion, RscTop * pClass, 62*cdf0e10cSrcweir RscTop * pClassString ) 63*cdf0e10cSrcweir { 64*cdf0e10cSrcweir if( pClass ) 65*cdf0e10cSrcweir { 66*cdf0e10cSrcweir NameToVerCtrl( aVersion, (RscTop *)pClass->Left(), pClassString ); 67*cdf0e10cSrcweir { 68*cdf0e10cSrcweir RSCINST aVI; 69*cdf0e10cSrcweir RSCINST aStr; 70*cdf0e10cSrcweir 71*cdf0e10cSrcweir // Namen in Versionskontrolle einsetzen 72*cdf0e10cSrcweir aVersion.pClass-> 73*cdf0e10cSrcweir GetElement( aVersion, RscId( pClass->GetTypId() ), 74*cdf0e10cSrcweir pClassString, RSCINST(), &aVI ); 75*cdf0e10cSrcweir aStr = aVI.pClass->GetVariable( aVI, pHS->getID( "TEXT" ), 76*cdf0e10cSrcweir RSCINST() ); 77*cdf0e10cSrcweir aStr.pClass->SetString( aStr, pHS->getString( pClass->GetId() ).getStr() ); 78*cdf0e10cSrcweir } 79*cdf0e10cSrcweir NameToVerCtrl( aVersion, (RscTop *)pClass->Right(), pClassString ); 80*cdf0e10cSrcweir } 81*cdf0e10cSrcweir } 82*cdf0e10cSrcweir 83*cdf0e10cSrcweir /************************************************************************* 84*cdf0e10cSrcweir |* 85*cdf0e10cSrcweir |* RscTypCont::Init() 86*cdf0e10cSrcweir |* 87*cdf0e10cSrcweir |* Beschreibung 88*cdf0e10cSrcweir |* Ersterstellung MM 22.03.91 89*cdf0e10cSrcweir |* Letzte Aenderung MM 27.06.91 90*cdf0e10cSrcweir |* 91*cdf0e10cSrcweir *************************************************************************/ 92*cdf0e10cSrcweir void RscTypCont::Init() 93*cdf0e10cSrcweir { 94*cdf0e10cSrcweir RscEnum * pFieldUnits; 95*cdf0e10cSrcweir RscEnum * pTimeFieldFormat; 96*cdf0e10cSrcweir RscEnum * pColor; 97*cdf0e10cSrcweir RscEnum * pMapUnit; 98*cdf0e10cSrcweir RscEnum * pKey; 99*cdf0e10cSrcweir RscEnum * pTriState; 100*cdf0e10cSrcweir RscEnum * pMessButtons; 101*cdf0e10cSrcweir RscEnum * pMessDefButton; 102*cdf0e10cSrcweir RscTupel * pGeometry; 103*cdf0e10cSrcweir RscArray * pLangGeometry; 104*cdf0e10cSrcweir RscCont * pStringList; 105*cdf0e10cSrcweir RscArray * pLangStringList; 106*cdf0e10cSrcweir RscTupel * pStringTupel; 107*cdf0e10cSrcweir RscTupel * pStringLongTupel; 108*cdf0e10cSrcweir RscCont * pStringTupelList; 109*cdf0e10cSrcweir RscCont * pStringLongTupelList; 110*cdf0e10cSrcweir RscArray * pLangStringTupelList; 111*cdf0e10cSrcweir RscArray * pLangStringLongTupelList; 112*cdf0e10cSrcweir 113*cdf0e10cSrcweir RscTop * pClassMgr; 114*cdf0e10cSrcweir RscTop * pClassString; 115*cdf0e10cSrcweir RscTop * pClassStringArray; 116*cdf0e10cSrcweir RscTop * pClassBitmap; 117*cdf0e10cSrcweir RscTop * pClassColor; 118*cdf0e10cSrcweir RscTop * pClassImage; 119*cdf0e10cSrcweir RscTop * pClassImageList; 120*cdf0e10cSrcweir RscTop * pClassWindow; 121*cdf0e10cSrcweir RscTop * pClassSystemWindow; 122*cdf0e10cSrcweir RscTop * pClassWorkWindow; 123*cdf0e10cSrcweir RscTop * pClassDialog; 124*cdf0e10cSrcweir RscTop * pClassModalDialog; 125*cdf0e10cSrcweir RscTop * pClassModelessDialog; 126*cdf0e10cSrcweir RscTop * pClassControl; 127*cdf0e10cSrcweir RscTop * pClassButton; 128*cdf0e10cSrcweir RscTop * pClassCheckBox; 129*cdf0e10cSrcweir RscTop * pClassPushButton; 130*cdf0e10cSrcweir RscTop * pClassOKButton; 131*cdf0e10cSrcweir RscTop * pClassCancelButton; 132*cdf0e10cSrcweir RscTop * pClassHelpButton; 133*cdf0e10cSrcweir RscTop * pClassRadioButton; 134*cdf0e10cSrcweir RscTop * pClassImageRadioButton; 135*cdf0e10cSrcweir RscTop * pClassImageButton; 136*cdf0e10cSrcweir RscTop * pClassTriStateBox; 137*cdf0e10cSrcweir RscTop * pClassEdit; 138*cdf0e10cSrcweir RscTop * pClassMultiLineEdit; 139*cdf0e10cSrcweir RscTop * pClassScrollBar; 140*cdf0e10cSrcweir RscTop * pClassListBox; 141*cdf0e10cSrcweir RscTop * pClassMultiListBox; 142*cdf0e10cSrcweir RscTop * pClassComboBox; 143*cdf0e10cSrcweir RscTop * pClassFixedText; 144*cdf0e10cSrcweir RscTop * pClassFixedBitmap; 145*cdf0e10cSrcweir RscTop * pClassFixedImage; 146*cdf0e10cSrcweir RscTop * pClassGroupBox; 147*cdf0e10cSrcweir RscTop * pClassKeyCode; 148*cdf0e10cSrcweir RscTop * pLangClassKeyCode; 149*cdf0e10cSrcweir RscTop * pClassAccelItem; 150*cdf0e10cSrcweir RscTop * pClassAccel; 151*cdf0e10cSrcweir RscTop * pClassMenuItem; 152*cdf0e10cSrcweir RscTop * pClassMenu; 153*cdf0e10cSrcweir RscTop * pClassMenuButton; 154*cdf0e10cSrcweir RscTop * pClassMessBox; 155*cdf0e10cSrcweir RscTop * pClassInfoBox; 156*cdf0e10cSrcweir RscTop * pClassWarningBox; 157*cdf0e10cSrcweir RscTop * pClassErrorBox; 158*cdf0e10cSrcweir RscTop * pClassQueryBox; 159*cdf0e10cSrcweir RscTop * pClassSplitter; 160*cdf0e10cSrcweir RscTop * pClassSplitWindow; 161*cdf0e10cSrcweir RscTop * pClassSpinButton; 162*cdf0e10cSrcweir RscTop * pClassTime; 163*cdf0e10cSrcweir RscTop * pClassDate; 164*cdf0e10cSrcweir RscTop * pClassSpinField; 165*cdf0e10cSrcweir RscTop * pClassPatternField; 166*cdf0e10cSrcweir RscTop * pClassNumericField; 167*cdf0e10cSrcweir RscTop * pClassMetricField; 168*cdf0e10cSrcweir RscTop * pClassCurrencyField; 169*cdf0e10cSrcweir RscTop * pClassLongCurrencyField; 170*cdf0e10cSrcweir RscTop * pClassDateField; 171*cdf0e10cSrcweir RscTop * pClassTimeField; 172*cdf0e10cSrcweir RscTop * pClassPatternBox; 173*cdf0e10cSrcweir RscTop * pClassNumericBox; 174*cdf0e10cSrcweir RscTop * pClassMetricBox; 175*cdf0e10cSrcweir RscTop * pClassCurrencyBox; 176*cdf0e10cSrcweir RscTop * pClassLongCurrencyBox; 177*cdf0e10cSrcweir RscTop * pClassDateBox; 178*cdf0e10cSrcweir RscTop * pClassTimeBox; 179*cdf0e10cSrcweir RscTop * pClassDockingWindow; 180*cdf0e10cSrcweir RscTop * pClassToolBoxItem; 181*cdf0e10cSrcweir RscTop * pClassToolBox; 182*cdf0e10cSrcweir RscTop * pClassStatusBar; 183*cdf0e10cSrcweir RscTop * pClassMoreButton; 184*cdf0e10cSrcweir RscTop * pClassFloatingWindow; 185*cdf0e10cSrcweir RscTop * pClassTabPage; 186*cdf0e10cSrcweir RscTop * pClassTabDialog; 187*cdf0e10cSrcweir RscTop * pClassTabControlItem; 188*cdf0e10cSrcweir RscTop * pClassTabControl; 189*cdf0e10cSrcweir RscTop * pClassFixedLine; 190*cdf0e10cSrcweir RscTop * pClassScrollBarBox; 191*cdf0e10cSrcweir RscTop * pClassSfxStyleFamilyItem; 192*cdf0e10cSrcweir RscTop * pClassSfxTemplateDialog; 193*cdf0e10cSrcweir RscTop * pClassSfxSlotInfo; 194*cdf0e10cSrcweir 195*cdf0e10cSrcweir Atom nId; 196*cdf0e10cSrcweir 197*cdf0e10cSrcweir aNmTb.SetSort( sal_False ); 198*cdf0e10cSrcweir { 199*cdf0e10cSrcweir /********** C O M P I L E R T Y P E N ******************************/ 200*cdf0e10cSrcweir aNmTb.Put( "LINE", LINE, (long)0 ); 201*cdf0e10cSrcweir aNmTb.Put( "NOT", NOT, (long)0 ); 202*cdf0e10cSrcweir aNmTb.Put( "DEFINE", DEFINE, (long)0 ); 203*cdf0e10cSrcweir aNmTb.Put( "INCLUDE", INCLUDE, (long)0 ); 204*cdf0e10cSrcweir aNmTb.Put( "DEFAULT", DEFAULT, (long)0 ); 205*cdf0e10cSrcweir aNmTb.Put( "class", CLASS, (long)0 ); 206*cdf0e10cSrcweir aNmTb.Put( "extendable", EXTENDABLE, (long)0 ); 207*cdf0e10cSrcweir aNmTb.Put( "writeifset", WRITEIFSET, (long)0 ); 208*cdf0e10cSrcweir 209*cdf0e10cSrcweir /* Werte fuer Aufzaehlungstypen */ 210*cdf0e10cSrcweir aNmTb.Put( "TRUE", BOOLEAN, (long)sal_True ); 211*cdf0e10cSrcweir aNmTb.Put( "FALSE", BOOLEAN, (long)sal_False ); 212*cdf0e10cSrcweir 213*cdf0e10cSrcweir #if 0 214*cdf0e10cSrcweir /* Vordefinierte HilfeId's */ 215*cdf0e10cSrcweir aNmTb.Put( "HELP_INDEX", NUMBER, OOO_HELP_INDEX ); 216*cdf0e10cSrcweir aNmTb.Put( "HELP_HELPONHELP", NUMBER, OOO_HELP_HELPONHELP ); 217*cdf0e10cSrcweir #endif 218*cdf0e10cSrcweir 219*cdf0e10cSrcweir aNmTb.Put( "XSCALE", XSCALE , (long)0 ); 220*cdf0e10cSrcweir aNmTb.Put( "YSCALE", YSCALE , (long)0 ); 221*cdf0e10cSrcweir aNmTb.Put( "RGB", RGB , (long)0 ); 222*cdf0e10cSrcweir aNmTb.Put( "POSSIZE", GEOMETRY, (long)0 ); 223*cdf0e10cSrcweir aNmTb.Put( "POS", POSITION, (long)0 ); 224*cdf0e10cSrcweir aNmTb.Put( "SIZE", DIMENSION, (long)0 ); 225*cdf0e10cSrcweir aNmTb.Put( "ZoomInOutputSize", INZOOMOUTPUTSIZE,(long)0 ); 226*cdf0e10cSrcweir aNmTb.Put( "FloatingPos", FLOATINGPOS, (long)0 ); 227*cdf0e10cSrcweir } 228*cdf0e10cSrcweir /********** B A S I S T Y P E N ************************************/ 229*cdf0e10cSrcweir { 230*cdf0e10cSrcweir /********** S H O R T ************************************************/ 231*cdf0e10cSrcweir aShort.SetRange( -32768, 32767 ); 232*cdf0e10cSrcweir 233*cdf0e10cSrcweir /********** U S H O R T **********************************************/ 234*cdf0e10cSrcweir aUShort.SetRange( 0, 0xFFFF ); 235*cdf0e10cSrcweir 236*cdf0e10cSrcweir /********** L O N G **************************************************/ 237*cdf0e10cSrcweir aLong.SetRange( SAL_MIN_INT32, SAL_MAX_INT32 ); 238*cdf0e10cSrcweir aEnumLong.SetRange( SAL_MIN_INT32, SAL_MAX_INT32 ); 239*cdf0e10cSrcweir 240*cdf0e10cSrcweir /********** I D U S H O R T ******************************************/ 241*cdf0e10cSrcweir aIdUShort.SetRange( 0, 0xFFFF ); 242*cdf0e10cSrcweir 243*cdf0e10cSrcweir /********** I D N O Z E R O U S H O R T ******************************/ 244*cdf0e10cSrcweir aIdNoZeroUShort.SetRange( 1, 0xFFFF ); 245*cdf0e10cSrcweir 246*cdf0e10cSrcweir /********** N O Z E R O S H O R T ************************************/ 247*cdf0e10cSrcweir aNoZeroShort.SetRange( -32768, 32767 ); 248*cdf0e10cSrcweir aNoZeroShort.SetOutRange( 0 ); 249*cdf0e10cSrcweir 250*cdf0e10cSrcweir /********** R A N G E S H O R T **************************************/ 251*cdf0e10cSrcweir a1to12Short.SetRange( 1, 12 ); 252*cdf0e10cSrcweir a0to23Short.SetRange( 0, 23 ); 253*cdf0e10cSrcweir a1to31Short.SetRange( 1, 31 ); 254*cdf0e10cSrcweir a0to59Short.SetRange( 0, 59 ); 255*cdf0e10cSrcweir a0to99Short.SetRange( 0, 99 ); 256*cdf0e10cSrcweir a0to9999Short.SetRange( 0, 9999 ); 257*cdf0e10cSrcweir 258*cdf0e10cSrcweir /********** I D R A N G E ********************************************/ 259*cdf0e10cSrcweir aIdLong.SetRange( SAL_MIN_INT32, SAL_MAX_INT32 ); 260*cdf0e10cSrcweir } 261*cdf0e10cSrcweir { 262*cdf0e10cSrcweir /********** W I N B I T S F L A G ************************************/ 263*cdf0e10cSrcweir // Variablenname fuer WinBits 264*cdf0e10cSrcweir nWinBitVarId = aNmTb.Put( "_WinBits", VARNAME ); 265*cdf0e10cSrcweir 266*cdf0e10cSrcweir // Windows 267*cdf0e10cSrcweir nBorderId = pHS->getID( "WB_BORDER" ); 268*cdf0e10cSrcweir aWinBits.SetConstant( nBorderId, sal::static_int_cast<sal_Int32>(WB_BORDER) ); 269*cdf0e10cSrcweir nHideId = pHS->getID( "WB_HIDE" ); 270*cdf0e10cSrcweir aWinBits.SetConstant( nHideId, sal::static_int_cast<sal_Int32>(WB_HIDE) ); 271*cdf0e10cSrcweir nClipChildrenId = pHS->getID( "WB_CLIPCHILDREN" ); 272*cdf0e10cSrcweir aWinBits.SetConstant( nClipChildrenId, sal::static_int_cast<sal_Int32>(WB_CLIPCHILDREN) ); 273*cdf0e10cSrcweir nSizeableId = pHS->getID( "WB_SIZEABLE" ); 274*cdf0e10cSrcweir aWinBits.SetConstant( nSizeableId, sal::static_int_cast<sal_Int32>(WB_SIZEABLE) ); 275*cdf0e10cSrcweir nMoveableId = pHS->getID( "WB_MOVEABLE" ); 276*cdf0e10cSrcweir aWinBits.SetConstant( nMoveableId, sal::static_int_cast<sal_Int32>(WB_MOVEABLE) ); 277*cdf0e10cSrcweir nMinimizeId = pHS->getID( "WB_MINABLE" ); 278*cdf0e10cSrcweir aWinBits.SetConstant( nMinimizeId, 0 /*WB_MINABLE*/ ); 279*cdf0e10cSrcweir nMaximizeId = pHS->getID( "WB_MAXABLE" ); 280*cdf0e10cSrcweir aWinBits.SetConstant( nMaximizeId, 0 /*WB_MAXABLE*/ ); 281*cdf0e10cSrcweir nCloseableId = pHS->getID( "WB_CLOSEABLE" ); 282*cdf0e10cSrcweir aWinBits.SetConstant( nCloseableId, sal::static_int_cast<sal_Int32>(WB_CLOSEABLE) ); 283*cdf0e10cSrcweir nAppId = pHS->getID( "WB_APP" ); 284*cdf0e10cSrcweir aWinBits.SetConstant( nAppId, sal::static_int_cast<sal_Int32>(WB_APP) ); 285*cdf0e10cSrcweir nTabstopId = pHS->getID( "WB_TABSTOP" ); 286*cdf0e10cSrcweir aWinBits.SetConstant( nTabstopId, sal::static_int_cast<sal_Int32>(WB_TABSTOP) ); 287*cdf0e10cSrcweir nGroupId = pHS->getID( "WB_GROUP" ); 288*cdf0e10cSrcweir aWinBits.SetConstant( nGroupId, sal::static_int_cast<sal_Int32>(WB_GROUP) ); 289*cdf0e10cSrcweir nSysmodalId = pHS->getID( "WB_SYSMODAL" ); 290*cdf0e10cSrcweir aWinBits.SetConstant( nSysmodalId, 0 /*WB_SYSMODAL*/ ); 291*cdf0e10cSrcweir } 292*cdf0e10cSrcweir { 293*cdf0e10cSrcweir nLeftId = pHS->getID( "WB_LEFT" ); 294*cdf0e10cSrcweir aWinBits.SetConstant( nLeftId, sal::static_int_cast<sal_Int32>(WB_LEFT) ); 295*cdf0e10cSrcweir nCenterId = pHS->getID( "WB_CENTER" ); 296*cdf0e10cSrcweir aWinBits.SetConstant( nCenterId, sal::static_int_cast<sal_Int32>(WB_CENTER) ); 297*cdf0e10cSrcweir nRightId = pHS->getID( "WB_RIGHT" ); 298*cdf0e10cSrcweir aWinBits.SetConstant( nRightId, sal::static_int_cast<sal_Int32>(WB_RIGHT) ); 299*cdf0e10cSrcweir nTopId = pHS->getID( "WB_TOP" ); 300*cdf0e10cSrcweir aWinBits.SetConstant( nTopId, sal::static_int_cast<sal_Int32>(WB_TOP) ); 301*cdf0e10cSrcweir nVCenterId = pHS->getID( "WB_VCENTER" ); 302*cdf0e10cSrcweir aWinBits.SetConstant( nVCenterId, sal::static_int_cast<sal_Int32>(WB_VCENTER) ); 303*cdf0e10cSrcweir nBottomId = pHS->getID( "WB_BOTTOM" ); 304*cdf0e10cSrcweir aWinBits.SetConstant( nBottomId, sal::static_int_cast<sal_Int32>(WB_BOTTOM) ); 305*cdf0e10cSrcweir nHScrollId = pHS->getID( "WB_HSCROLL" ); 306*cdf0e10cSrcweir aWinBits.SetConstant( nHScrollId, sal::static_int_cast<sal_Int32>(WB_HSCROLL) ); 307*cdf0e10cSrcweir nVScrollId = pHS->getID( "WB_VSCROLL" ); 308*cdf0e10cSrcweir aWinBits.SetConstant( nVScrollId, sal::static_int_cast<sal_Int32>(WB_VSCROLL) ); 309*cdf0e10cSrcweir nSortId = pHS->getID( "WB_SORT" ); 310*cdf0e10cSrcweir aWinBits.SetConstant( nSortId, sal::static_int_cast<sal_Int32>(WB_SORT) ); 311*cdf0e10cSrcweir nDefaultId = pHS->getID( "WB_DEFBUTTON" ); 312*cdf0e10cSrcweir aWinBits.SetConstant( nDefaultId, sal::static_int_cast<sal_Int32>(WB_DEFBUTTON) ); 313*cdf0e10cSrcweir nRepeatId = pHS->getID( "WB_REPEAT" ); 314*cdf0e10cSrcweir aWinBits.SetConstant( nRepeatId, sal::static_int_cast<sal_Int32>(WB_REPEAT) ); 315*cdf0e10cSrcweir nSVLookId = pHS->getID( "WB_SVLOOK" ); 316*cdf0e10cSrcweir aWinBits.SetConstant( nSVLookId, sal::static_int_cast<sal_Int32>(WB_3DLOOK) ); 317*cdf0e10cSrcweir nDropDownId = pHS->getID( "WB_DROPDOWN" ); 318*cdf0e10cSrcweir aWinBits.SetConstant( nDropDownId, sal::static_int_cast<sal_Int32>(WB_DROPDOWN) ); 319*cdf0e10cSrcweir nPassWordId = pHS->getID( "WB_PASSWORD" ); 320*cdf0e10cSrcweir aWinBits.SetConstant( nPassWordId, sal::static_int_cast<sal_Int32>(WB_PASSWORD) ); 321*cdf0e10cSrcweir nReadOnlyId = pHS->getID( "WB_READONLY" ); 322*cdf0e10cSrcweir aWinBits.SetConstant( nReadOnlyId, sal::static_int_cast<sal_Int32>(WB_READONLY) ); 323*cdf0e10cSrcweir nAutoSizeId = pHS->getID( "WB_AUTOSIZE" ); 324*cdf0e10cSrcweir aWinBits.SetConstant( nAutoSizeId, sal::static_int_cast<sal_Int32>(WB_AUTOSIZE) ); 325*cdf0e10cSrcweir nSpinId = pHS->getID( "WB_SPIN" ); 326*cdf0e10cSrcweir aWinBits.SetConstant( nSpinId, sal::static_int_cast<sal_Int32>(WB_SPIN) ); 327*cdf0e10cSrcweir nTabControlId = pHS->getID( "WB_DIALOGCONTROL" ); 328*cdf0e10cSrcweir aWinBits.SetConstant( nTabControlId, sal::static_int_cast<sal_Int32>(WB_DIALOGCONTROL) ); 329*cdf0e10cSrcweir nSimpleModeId = pHS->getID( "WB_SIMPLEMODE" ); 330*cdf0e10cSrcweir aWinBits.SetConstant( nSimpleModeId, sal::static_int_cast<sal_Int32>(WB_SIMPLEMODE) ); 331*cdf0e10cSrcweir nDragId = pHS->getID( "WB_DRAG" ); 332*cdf0e10cSrcweir aWinBits.SetConstant( nDragId, sal::static_int_cast<sal_Int32>(WB_DRAG) ); 333*cdf0e10cSrcweir nScrollId = pHS->getID( "WB_SCROLL" ); 334*cdf0e10cSrcweir aWinBits.SetConstant( nScrollId, sal::static_int_cast<sal_Int32>(WB_SCROLL) ); 335*cdf0e10cSrcweir nZoomableId = pHS->getID( "WB_ZOOMABLE" ); 336*cdf0e10cSrcweir aWinBits.SetConstant( nZoomableId, sal::static_int_cast<sal_Int32>(WB_ROLLABLE) ); 337*cdf0e10cSrcweir nHideWhenDeactivateId = pHS->getID( "WB_HIDEWHENDEACTIVATE" ); 338*cdf0e10cSrcweir aWinBits.SetConstant( nHideWhenDeactivateId, 0 /*WB_HIDEWHENDEACTIVATE*/ ); 339*cdf0e10cSrcweir nAutoHScrollId = pHS->getID( "WB_AUTOHSCROLL" ); 340*cdf0e10cSrcweir aWinBits.SetConstant( nAutoHScrollId, sal::static_int_cast<sal_Int32>(WB_AUTOHSCROLL) ); 341*cdf0e10cSrcweir nAutoVScrollId = pHS->getID( "WB_AUTOVSCROLL" ); 342*cdf0e10cSrcweir aWinBits.SetConstant( nAutoVScrollId, sal::static_int_cast<sal_Int32>(WB_AUTOVSCROLL) ); 343*cdf0e10cSrcweir nDDExtraWidthId = pHS->getID( "WB_DDEXTRAWIDTH" ); 344*cdf0e10cSrcweir aWinBits.SetConstant( nDDExtraWidthId, 0 /*WB_DDEXTRAWIDTH*/ ); 345*cdf0e10cSrcweir nWordBreakId = pHS->getID( "WB_WORDBREAK" ); 346*cdf0e10cSrcweir aWinBits.SetConstant( nWordBreakId, sal::static_int_cast<sal_Int32>(WB_WORDBREAK) ); 347*cdf0e10cSrcweir nLeftLabelId = pHS->getID( "WB_LEFTLABEL" ); 348*cdf0e10cSrcweir aWinBits.SetConstant( nLeftLabelId, 0 /*WB_LEFTLABEL*/ ); 349*cdf0e10cSrcweir nHasLinesId = pHS->getID( "WB_HASLINES" ); 350*cdf0e10cSrcweir aWinBits.SetConstant( nHasLinesId, sal::static_int_cast<sal_Int32>(WB_HASLINES) ); 351*cdf0e10cSrcweir nHasButtonsId = pHS->getID( "WB_HASBUTTONS" ); 352*cdf0e10cSrcweir aWinBits.SetConstant( nHasButtonsId, sal::static_int_cast<sal_Int32>(WB_HASBUTTONS) ); 353*cdf0e10cSrcweir nRectStyleId = pHS->getID( "WB_RECTSTYLE" ); 354*cdf0e10cSrcweir aWinBits.SetConstant( nRectStyleId, sal::static_int_cast<sal_Int32>(WB_RECTSTYLE) ); 355*cdf0e10cSrcweir nLineSpacingId = pHS->getID( "WB_LINESPACING" ); 356*cdf0e10cSrcweir aWinBits.SetConstant( nLineSpacingId, sal::static_int_cast<sal_Int32>(WB_LINESPACING) ); 357*cdf0e10cSrcweir nSmallStyleId = pHS->getID( "WB_SMALLSTYLE" ); 358*cdf0e10cSrcweir aWinBits.SetConstant( nSmallStyleId, sal::static_int_cast<sal_Int32>(WB_SMALLSTYLE) ); 359*cdf0e10cSrcweir nEnableResizingId = pHS->getID( "WB_ENABLERESIZING" ); 360*cdf0e10cSrcweir aWinBits.SetConstant( nEnableResizingId, 0 /*WB_ENABLERESIZING*/ ); 361*cdf0e10cSrcweir nDockableId = pHS->getID( "WB_DOCKABLE" ); 362*cdf0e10cSrcweir aWinBits.SetConstant( nDockableId, sal::static_int_cast<sal_Int32>(WB_DOCKABLE) ); 363*cdf0e10cSrcweir nScaleId = pHS->getID( "WB_SCALE" ); 364*cdf0e10cSrcweir aWinBits.SetConstant( nScaleId, sal::static_int_cast<sal_Int32>(WB_SCALE) ); 365*cdf0e10cSrcweir nIgnoreTabId = pHS->getID( "WB_IGNORETAB" ); 366*cdf0e10cSrcweir aWinBits.SetConstant( nIgnoreTabId, sal::static_int_cast<sal_Int32>(WB_IGNORETAB) ); 367*cdf0e10cSrcweir nNoSplitDrawId = pHS->getID( "WB_NOSPLITDRAW" ); 368*cdf0e10cSrcweir aWinBits.SetConstant( nNoSplitDrawId, sal::static_int_cast<sal_Int32>(WB_NOSPLITDRAW) ); 369*cdf0e10cSrcweir nTopImageId = pHS->getID( "WB_TOPIMAGE" ); 370*cdf0e10cSrcweir aWinBits.SetConstant( nTopImageId, sal::static_int_cast<sal_Int32>(WB_TOPIMAGE) ); 371*cdf0e10cSrcweir nNoLabelId = pHS->getID( "WB_NOLABEL" ); 372*cdf0e10cSrcweir aWinBits.SetConstant( nNoLabelId, sal::static_int_cast<sal_Int32>(WB_NOLABEL) ); 373*cdf0e10cSrcweir nVertId = pHS->getID( "WB_VERT" ); 374*cdf0e10cSrcweir aWinBits.SetConstant( nVertId, sal::static_int_cast<sal_Int32>(WB_VERT) ); 375*cdf0e10cSrcweir nSysWinId = pHS->getID( "WB_SYSTEMWINDOW" ); 376*cdf0e10cSrcweir aWinBits.SetConstant( nSysWinId, sal::static_int_cast<sal_Int32>(WB_SYSTEMWINDOW) ); 377*cdf0e10cSrcweir } 378*cdf0e10cSrcweir { 379*cdf0e10cSrcweir /********** I n i t B a s i c T y p e s **************************/ 380*cdf0e10cSrcweir InitLangType(); 381*cdf0e10cSrcweir aBaseLst.Insert( pFieldUnits = InitFieldUnitsType(), LIST_APPEND ); 382*cdf0e10cSrcweir aBaseLst.Insert( pTimeFieldFormat = InitTimeFieldFormat(), LIST_APPEND ); 383*cdf0e10cSrcweir aBaseLst.Insert( pColor = InitColor(), LIST_APPEND ); 384*cdf0e10cSrcweir aBaseLst.Insert( pMapUnit = InitMapUnit(), LIST_APPEND ); 385*cdf0e10cSrcweir aBaseLst.Insert( pKey = InitKey(), LIST_APPEND ); 386*cdf0e10cSrcweir aBaseLst.Insert( pTriState = InitTriState(), LIST_APPEND ); 387*cdf0e10cSrcweir aBaseLst.Insert( pMessButtons = InitMessButtons(), LIST_APPEND ); 388*cdf0e10cSrcweir aBaseLst.Insert( pMessDefButton = InitMessDefButton(), LIST_APPEND ); 389*cdf0e10cSrcweir 390*cdf0e10cSrcweir aBaseLst.Insert( pGeometry = InitGeometry(), LIST_APPEND ); 391*cdf0e10cSrcweir aBaseLst.Insert( pLangGeometry = InitLangGeometry( pGeometry ), 392*cdf0e10cSrcweir LIST_APPEND ); 393*cdf0e10cSrcweir aBaseLst.Insert( pStringList = InitStringList(), LIST_APPEND ); 394*cdf0e10cSrcweir aBaseLst.Insert( pLangStringList = InitLangStringList( pStringList ), 395*cdf0e10cSrcweir LIST_APPEND ); 396*cdf0e10cSrcweir aBaseLst.Insert( pStringTupel = InitStringTupel(), LIST_APPEND ); 397*cdf0e10cSrcweir aBaseLst.Insert( pStringTupelList = InitStringTupelList( pStringTupel ), 398*cdf0e10cSrcweir LIST_APPEND ); 399*cdf0e10cSrcweir aBaseLst.Insert( pLangStringTupelList = 400*cdf0e10cSrcweir InitLangStringTupelList( pStringTupelList ), LIST_APPEND ); 401*cdf0e10cSrcweir aBaseLst.Insert( pStringLongTupel = InitStringLongTupel(), LIST_APPEND ); 402*cdf0e10cSrcweir aBaseLst.Insert( pStringLongTupelList = InitStringLongTupelList( pStringLongTupel ), 403*cdf0e10cSrcweir LIST_APPEND ); 404*cdf0e10cSrcweir aBaseLst.Insert( pLangStringLongTupelList = 405*cdf0e10cSrcweir InitLangStringLongTupelList( pStringLongTupelList ), LIST_APPEND ); 406*cdf0e10cSrcweir } 407*cdf0e10cSrcweir { 408*cdf0e10cSrcweir /********** R E S O U R C E T Y P E N ******************************/ 409*cdf0e10cSrcweir /********** R S C M G R **********************************************/ 410*cdf0e10cSrcweir pRoot = pClassMgr = InitClassMgr(); 411*cdf0e10cSrcweir 412*cdf0e10cSrcweir /********** V e r s i o n s k o n t r o l l e ************************/ 413*cdf0e10cSrcweir aVersion.pClass = new RscClass( pHS->getID( "VersionControl" ), 414*cdf0e10cSrcweir RSC_VERSIONCONTROL, pClassMgr ); 415*cdf0e10cSrcweir aVersion = aVersion.pClass->Create( NULL, RSCINST() ); 416*cdf0e10cSrcweir 417*cdf0e10cSrcweir /********** S T R I N G **********************************************/ 418*cdf0e10cSrcweir pClassString = InitClassString( pClassMgr ); 419*cdf0e10cSrcweir pRoot->Insert( pClassString ); 420*cdf0e10cSrcweir 421*cdf0e10cSrcweir // String als Referenzklasse des Basisstrings einsetzen 422*cdf0e10cSrcweir aString.SetRefClass( pClassString ); 423*cdf0e10cSrcweir 424*cdf0e10cSrcweir /********** S T R I N G L I S T **************************************/ 425*cdf0e10cSrcweir // Klasse anlegen 426*cdf0e10cSrcweir nId = pHS->getID( "StringArray" ); 427*cdf0e10cSrcweir pClassStringArray = new RscClass( nId, RSC_STRINGARRAY, pClassMgr ); 428*cdf0e10cSrcweir pClassStringArray->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType ); 429*cdf0e10cSrcweir aNmTb.Put( nId, CLASSNAME, pClassStringArray ); 430*cdf0e10cSrcweir pRoot->Insert( pClassStringArray ); 431*cdf0e10cSrcweir 432*cdf0e10cSrcweir // Variablen anlegen 433*cdf0e10cSrcweir nId = aNmTb.Put( "ItemList", VARNAME ); 434*cdf0e10cSrcweir pClassStringArray->SetVariable( nId, pLangStringLongTupelList ); 435*cdf0e10cSrcweir 436*cdf0e10cSrcweir /********** B I T M A P **********************************************/ 437*cdf0e10cSrcweir pClassBitmap = InitClassBitmap( pClassMgr ); 438*cdf0e10cSrcweir pRoot->Insert( pClassBitmap ); 439*cdf0e10cSrcweir 440*cdf0e10cSrcweir } 441*cdf0e10cSrcweir { 442*cdf0e10cSrcweir /********** C O L O R ************************************************/ 443*cdf0e10cSrcweir pClassColor = InitClassColor( pClassMgr, pColor ); 444*cdf0e10cSrcweir pRoot->Insert( pClassColor ); 445*cdf0e10cSrcweir 446*cdf0e10cSrcweir /********** I M A G E ************************************************/ 447*cdf0e10cSrcweir pClassImage = InitClassImage( pClassMgr, pClassBitmap, pClassColor ); 448*cdf0e10cSrcweir pRoot->Insert( pClassImage ); 449*cdf0e10cSrcweir 450*cdf0e10cSrcweir /********** I M A G E L I S T ****************************************/ 451*cdf0e10cSrcweir pClassImageList = InitClassImageList( pClassMgr, pClassBitmap, 452*cdf0e10cSrcweir pClassColor, pStringLongTupelList ); 453*cdf0e10cSrcweir pRoot->Insert( pClassImageList ); 454*cdf0e10cSrcweir 455*cdf0e10cSrcweir /********** W I N D O W **********************************************/ 456*cdf0e10cSrcweir pClassWindow = InitClassWindow( pClassMgr, pMapUnit, 457*cdf0e10cSrcweir pLangGeometry ); 458*cdf0e10cSrcweir pRoot->Insert( pClassWindow ); 459*cdf0e10cSrcweir } 460*cdf0e10cSrcweir { 461*cdf0e10cSrcweir 462*cdf0e10cSrcweir /********** S Y S T E M W I N D O W **********************************/ 463*cdf0e10cSrcweir pClassSystemWindow = InitClassSystemWindow( pClassWindow ); 464*cdf0e10cSrcweir //aBaseLst.Insert( pClassSystemWindow, LIST_APPEND ); 465*cdf0e10cSrcweir pRoot->Insert( pClassSystemWindow ); 466*cdf0e10cSrcweir 467*cdf0e10cSrcweir /********** W O R K W I N D O W **************************************/ 468*cdf0e10cSrcweir pClassWorkWindow = InitClassWorkWindow( pClassSystemWindow ); 469*cdf0e10cSrcweir pRoot->Insert( pClassWorkWindow ); 470*cdf0e10cSrcweir 471*cdf0e10cSrcweir /********** D I A L O G **********************************************/ 472*cdf0e10cSrcweir // Klasse anlegen 473*cdf0e10cSrcweir pClassDialog = new RscClass( pHS->getID( "Dialog" ), 474*cdf0e10cSrcweir RSC_DIALOG, pClassSystemWindow ); 475*cdf0e10cSrcweir pClassDialog->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType ); 476*cdf0e10cSrcweir aBaseLst.Insert( pClassDialog, LIST_APPEND ); 477*cdf0e10cSrcweir 478*cdf0e10cSrcweir /********** M O D A L D I A L O G ***********************************/ 479*cdf0e10cSrcweir // Klasse anlegen 480*cdf0e10cSrcweir pClassModalDialog = InitClassModalDialog( pClassDialog ); 481*cdf0e10cSrcweir pRoot->Insert( pClassModalDialog ); 482*cdf0e10cSrcweir 483*cdf0e10cSrcweir /********** M O D E L E S S D I A L O G ******************************/ 484*cdf0e10cSrcweir // Klasse anlegen 485*cdf0e10cSrcweir pClassModelessDialog = InitClassModelessDialog( pClassDialog ); 486*cdf0e10cSrcweir pRoot->Insert( pClassModelessDialog ); 487*cdf0e10cSrcweir } 488*cdf0e10cSrcweir { 489*cdf0e10cSrcweir /********** C O N T R O L ********************************************/ 490*cdf0e10cSrcweir pClassControl = InitClassControl( pClassWindow ); 491*cdf0e10cSrcweir pRoot->Insert( pClassControl ); 492*cdf0e10cSrcweir 493*cdf0e10cSrcweir /********** B U T T O N **********************************************/ 494*cdf0e10cSrcweir // Klasse anlegen 495*cdf0e10cSrcweir nId = pHS->getID( "Button" ); 496*cdf0e10cSrcweir pClassButton = new RscClass( nId, RSC_BUTTON, pClassControl ); 497*cdf0e10cSrcweir pClassButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType ); 498*cdf0e10cSrcweir aNmTb.Put( nId, CLASSNAME, pClassButton ); 499*cdf0e10cSrcweir pRoot->Insert( pClassButton ); 500*cdf0e10cSrcweir 501*cdf0e10cSrcweir /********** C H E C K B O X ******************************************/ 502*cdf0e10cSrcweir pClassCheckBox = InitClassCheckBox( pClassButton ); 503*cdf0e10cSrcweir pRoot->Insert( pClassCheckBox ); 504*cdf0e10cSrcweir 505*cdf0e10cSrcweir /********** P U S H B U T T O N **************************************/ 506*cdf0e10cSrcweir // Klasse anlegen 507*cdf0e10cSrcweir pClassPushButton = InitClassPushButton( pClassButton ); 508*cdf0e10cSrcweir pRoot->Insert( pClassPushButton ); 509*cdf0e10cSrcweir 510*cdf0e10cSrcweir /********** H E L P B U T T O N **************************************/ 511*cdf0e10cSrcweir // Klasse anlegen 512*cdf0e10cSrcweir nId = pHS->getID( "HelpButton" ); 513*cdf0e10cSrcweir pClassHelpButton = new RscClass( nId, RSC_HELPBUTTON, 514*cdf0e10cSrcweir pClassPushButton ); 515*cdf0e10cSrcweir pClassHelpButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType ); 516*cdf0e10cSrcweir aNmTb.Put( nId, CLASSNAME, pClassHelpButton ); 517*cdf0e10cSrcweir pRoot->Insert( pClassHelpButton ); 518*cdf0e10cSrcweir 519*cdf0e10cSrcweir /********** O K B U T T O N ******************************************/ 520*cdf0e10cSrcweir // Klasse anlegen 521*cdf0e10cSrcweir nId = pHS->getID( "OKButton" ); 522*cdf0e10cSrcweir pClassOKButton = new RscClass( nId, RSC_OKBUTTON, 523*cdf0e10cSrcweir pClassPushButton ); 524*cdf0e10cSrcweir pClassOKButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType ); 525*cdf0e10cSrcweir aNmTb.Put( nId, CLASSNAME, pClassOKButton ); 526*cdf0e10cSrcweir pRoot->Insert( pClassOKButton ); 527*cdf0e10cSrcweir 528*cdf0e10cSrcweir /********** C A N C E L B U T T O N **********************************/ 529*cdf0e10cSrcweir // Klasse anlegen 530*cdf0e10cSrcweir nId = pHS->getID( "CancelButton" ); 531*cdf0e10cSrcweir pClassCancelButton = new RscClass( nId, RSC_CANCELBUTTON, 532*cdf0e10cSrcweir pClassPushButton ); 533*cdf0e10cSrcweir pClassCancelButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType ); 534*cdf0e10cSrcweir aNmTb.Put( nId, CLASSNAME, pClassCancelButton ); 535*cdf0e10cSrcweir pRoot->Insert( pClassCancelButton ); 536*cdf0e10cSrcweir } 537*cdf0e10cSrcweir { 538*cdf0e10cSrcweir /********** R A D I O B U T T O N ************************************/ 539*cdf0e10cSrcweir pClassRadioButton = InitClassRadioButton( pClassButton ); 540*cdf0e10cSrcweir pRoot->Insert( pClassRadioButton ); 541*cdf0e10cSrcweir 542*cdf0e10cSrcweir /********** I m a g e R a d i o B u t t o n **************************/ 543*cdf0e10cSrcweir nId = pHS->getID( "ImageRadioButton" ); 544*cdf0e10cSrcweir pClassImageRadioButton = InitClassImageRadioButton( pClassRadioButton, 545*cdf0e10cSrcweir pClassImage ); 546*cdf0e10cSrcweir pRoot->Insert( pClassImageRadioButton ); 547*cdf0e10cSrcweir 548*cdf0e10cSrcweir /********** T R I S T A T E B O X ************************************/ 549*cdf0e10cSrcweir pClassTriStateBox = InitClassTriStateBox( pClassControl, pTriState ); 550*cdf0e10cSrcweir pRoot->Insert( pClassTriStateBox ); 551*cdf0e10cSrcweir 552*cdf0e10cSrcweir /********** I M A G E B U T T O N ************************************/ 553*cdf0e10cSrcweir pClassImageButton = InitClassImageButton( pClassPushButton, 554*cdf0e10cSrcweir pClassImage, pTriState ); 555*cdf0e10cSrcweir pRoot->Insert( pClassImageButton ); 556*cdf0e10cSrcweir 557*cdf0e10cSrcweir /********** E D I T **************************************************/ 558*cdf0e10cSrcweir pClassEdit = InitClassEdit( pClassControl ); 559*cdf0e10cSrcweir pRoot->Insert( pClassEdit ); 560*cdf0e10cSrcweir 561*cdf0e10cSrcweir /********** M U L T I L I N E E D I T ********************************/ 562*cdf0e10cSrcweir pClassMultiLineEdit = InitClassMultiLineEdit( pClassEdit ); 563*cdf0e10cSrcweir pRoot->Insert( pClassMultiLineEdit ); 564*cdf0e10cSrcweir 565*cdf0e10cSrcweir /********** S C R O L L B A R ****************************************/ 566*cdf0e10cSrcweir pClassScrollBar = InitClassScrollBar( pClassControl ); 567*cdf0e10cSrcweir pRoot->Insert( pClassScrollBar ); 568*cdf0e10cSrcweir 569*cdf0e10cSrcweir } 570*cdf0e10cSrcweir { 571*cdf0e10cSrcweir /********** L I S T B O X ********************************************/ 572*cdf0e10cSrcweir pClassListBox = InitClassListBox( pClassControl, pLangStringLongTupelList ); 573*cdf0e10cSrcweir pRoot->Insert( pClassListBox ); 574*cdf0e10cSrcweir 575*cdf0e10cSrcweir /********** M U L T I L I S T B O X **********************************/ 576*cdf0e10cSrcweir pClassMultiListBox = InitClassMultiListBox( pClassListBox); 577*cdf0e10cSrcweir pRoot->Insert( pClassMultiListBox ); 578*cdf0e10cSrcweir 579*cdf0e10cSrcweir /********** C O M B O B O X ******************************************/ 580*cdf0e10cSrcweir pClassComboBox = InitClassComboBox( pClassEdit, pLangStringList ); 581*cdf0e10cSrcweir pRoot->Insert( pClassComboBox ); 582*cdf0e10cSrcweir 583*cdf0e10cSrcweir /********** F I X E D T E X T ****************************************/ 584*cdf0e10cSrcweir pClassFixedText = InitClassFixedText( pClassControl ); 585*cdf0e10cSrcweir pRoot->Insert( pClassFixedText ); 586*cdf0e10cSrcweir 587*cdf0e10cSrcweir /********** F i x e d B i t m a p ************************************/ 588*cdf0e10cSrcweir pClassFixedBitmap = InitClassFixedBitmap( pClassControl, pClassBitmap ); 589*cdf0e10cSrcweir pRoot->Insert( pClassFixedBitmap ); 590*cdf0e10cSrcweir 591*cdf0e10cSrcweir /********** F i x e d I m a g e **************************************/ 592*cdf0e10cSrcweir pClassFixedImage = InitClassFixedImage( pClassControl, pClassImage ); 593*cdf0e10cSrcweir pRoot->Insert( pClassFixedImage ); 594*cdf0e10cSrcweir 595*cdf0e10cSrcweir /********** G R O U P B O X ******************************************/ 596*cdf0e10cSrcweir // Klasse anlegen 597*cdf0e10cSrcweir nId = pHS->getID( "GroupBox" ); 598*cdf0e10cSrcweir pClassGroupBox = new RscClass( nId, RSC_GROUPBOX, pClassControl ); 599*cdf0e10cSrcweir pClassGroupBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType ); 600*cdf0e10cSrcweir aNmTb.Put( nId, CLASSNAME, pClassGroupBox ); 601*cdf0e10cSrcweir pRoot->Insert( pClassGroupBox ); 602*cdf0e10cSrcweir 603*cdf0e10cSrcweir /********** K E Y C O D E ********************************************/ 604*cdf0e10cSrcweir pClassKeyCode = InitClassKeyCode( pClassMgr, pKey ); 605*cdf0e10cSrcweir pRoot->Insert( pClassKeyCode ); 606*cdf0e10cSrcweir { 607*cdf0e10cSrcweir pLangClassKeyCode = new RscClassArray( pHS->getID( "LangKeyCode" ), 608*cdf0e10cSrcweir RSC_KEYCODE, pClassKeyCode, &aLangType ); 609*cdf0e10cSrcweir aBaseLst.Insert( pLangClassKeyCode ); 610*cdf0e10cSrcweir } 611*cdf0e10cSrcweir 612*cdf0e10cSrcweir /********** A C C E L I T E M ***************************************/ 613*cdf0e10cSrcweir pClassAccelItem = InitClassAccelItem( pClassMgr, pLangClassKeyCode ); 614*cdf0e10cSrcweir pRoot->Insert( pClassAccelItem ); 615*cdf0e10cSrcweir } 616*cdf0e10cSrcweir { 617*cdf0e10cSrcweir /********** A C C E L E R A T O R ************************************/ 618*cdf0e10cSrcweir pClassAccel = InitClassAccel( pClassMgr, pClassAccelItem ); 619*cdf0e10cSrcweir pRoot->Insert( pClassAccel ); 620*cdf0e10cSrcweir nAcceleratorType = pClassAccel->GetId(); 621*cdf0e10cSrcweir 622*cdf0e10cSrcweir /********** A C C E L I T E M ***************************************/ 623*cdf0e10cSrcweir // pClassAccel ist erst hier definiert 624*cdf0e10cSrcweir nId = aNmTb.Put( "SubAccelerator", VARNAME ); 625*cdf0e10cSrcweir pClassAccelItem->SetVariable( nId, pClassAccel, NULL, VAR_SVDYNAMIC, 626*cdf0e10cSrcweir ACCELITEM_ACCEL ); 627*cdf0e10cSrcweir 628*cdf0e10cSrcweir /********** M E N U I T E M ******************************************/ 629*cdf0e10cSrcweir pClassMenuItem = InitClassMenuItem( pClassMgr, pClassBitmap, 630*cdf0e10cSrcweir pLangClassKeyCode ); 631*cdf0e10cSrcweir pRoot->Insert( pClassMenuItem ); 632*cdf0e10cSrcweir 633*cdf0e10cSrcweir /********** M E N U **************************************************/ 634*cdf0e10cSrcweir pClassMenu = InitClassMenu( pClassMgr, pClassMenuItem ); 635*cdf0e10cSrcweir pRoot->Insert( pClassMenu ); 636*cdf0e10cSrcweir 637*cdf0e10cSrcweir /********** M E N U I T E M ******************************************/ 638*cdf0e10cSrcweir // pClassMenu ist erst hier definiert 639*cdf0e10cSrcweir nId = aNmTb.Put( "SubMenu", VARNAME ); 640*cdf0e10cSrcweir pClassMenuItem->SetVariable( nId, pClassMenu, NULL, VAR_SVDYNAMIC, 641*cdf0e10cSrcweir RSC_MENUITEM_MENU ); 642*cdf0e10cSrcweir 643*cdf0e10cSrcweir /********** M E N U B U T T O N **************************************/ 644*cdf0e10cSrcweir pClassMenuButton = InitClassMenuButton( pClassControl, pClassMenu ); 645*cdf0e10cSrcweir pRoot->Insert( pClassMenuButton ); 646*cdf0e10cSrcweir 647*cdf0e10cSrcweir /********** M E S S A G E B O X **************************************/ 648*cdf0e10cSrcweir pClassMessBox = InitClassMessBox( pClassMgr, pMessButtons, 649*cdf0e10cSrcweir pMessDefButton ); 650*cdf0e10cSrcweir pRoot->Insert( pClassMessBox ); 651*cdf0e10cSrcweir 652*cdf0e10cSrcweir /********** I N F O B O X ********************************************/ 653*cdf0e10cSrcweir // Klasse anlegen 654*cdf0e10cSrcweir nId = pHS->getID( "InfoBox" ); 655*cdf0e10cSrcweir pClassInfoBox = new RscClass( nId, RSC_INFOBOX, pClassMessBox ); 656*cdf0e10cSrcweir pClassInfoBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType ); 657*cdf0e10cSrcweir aNmTb.Put( nId, CLASSNAME, pClassInfoBox ); 658*cdf0e10cSrcweir pRoot->Insert( pClassInfoBox ); 659*cdf0e10cSrcweir 660*cdf0e10cSrcweir /********** W A R N I N G B O X **************************************/ 661*cdf0e10cSrcweir // Klasse anlegen 662*cdf0e10cSrcweir nId = pHS->getID( "WarningBox" ); 663*cdf0e10cSrcweir pClassWarningBox = new RscClass( nId, RSC_WARNINGBOX, pClassMessBox ); 664*cdf0e10cSrcweir pClassWarningBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType ); 665*cdf0e10cSrcweir aNmTb.Put( nId, CLASSNAME, pClassWarningBox ); 666*cdf0e10cSrcweir pRoot->Insert( pClassWarningBox ); 667*cdf0e10cSrcweir 668*cdf0e10cSrcweir /********** E R R O R B O X ******************************************/ 669*cdf0e10cSrcweir // Klasse anlegen 670*cdf0e10cSrcweir nId = pHS->getID( "ErrorBox" ); 671*cdf0e10cSrcweir pClassErrorBox = new RscClass( nId, RSC_ERRORBOX, pClassMessBox ); 672*cdf0e10cSrcweir pClassErrorBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType ); 673*cdf0e10cSrcweir aNmTb.Put( nId, CLASSNAME, pClassErrorBox ); 674*cdf0e10cSrcweir pRoot->Insert( pClassErrorBox ); 675*cdf0e10cSrcweir 676*cdf0e10cSrcweir /********** Q U E R Y B O X ******************************************/ 677*cdf0e10cSrcweir // Klasse anlegen 678*cdf0e10cSrcweir nId = pHS->getID( "QueryBox" ); 679*cdf0e10cSrcweir pClassQueryBox = new RscClass( nId, RSC_QUERYBOX, pClassMessBox ); 680*cdf0e10cSrcweir pClassQueryBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType ); 681*cdf0e10cSrcweir aNmTb.Put( nId, CLASSNAME, pClassQueryBox ); 682*cdf0e10cSrcweir pRoot->Insert( pClassQueryBox ); 683*cdf0e10cSrcweir } 684*cdf0e10cSrcweir { 685*cdf0e10cSrcweir /********** S P L I T T E R ******************************************/ 686*cdf0e10cSrcweir pClassSplitter = InitClassSplitter( pClassWindow ); 687*cdf0e10cSrcweir pRoot->Insert( pClassSplitter ); 688*cdf0e10cSrcweir 689*cdf0e10cSrcweir /********** S P L I T W I N D O W ************************************/ 690*cdf0e10cSrcweir pClassSplitWindow = InitClassSplitWindow( pClassWindow ); 691*cdf0e10cSrcweir pRoot->Insert( pClassSplitWindow ); 692*cdf0e10cSrcweir 693*cdf0e10cSrcweir /********** S P I N B U T T O N **************************************/ 694*cdf0e10cSrcweir // Klasse anlegen 695*cdf0e10cSrcweir nId = pHS->getID( "SpinButton" ); 696*cdf0e10cSrcweir pClassSpinButton = new RscClass( nId, RSC_SPINBUTTON, pClassControl ); 697*cdf0e10cSrcweir pClassSpinButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType ); 698*cdf0e10cSrcweir aNmTb.Put( nId, CLASSNAME, pClassSpinButton ); 699*cdf0e10cSrcweir { 700*cdf0e10cSrcweir RscClient * pClient; 701*cdf0e10cSrcweir 702*cdf0e10cSrcweir // Clientvariablen einfuegen 703*cdf0e10cSrcweir // Sysmodal 704*cdf0e10cSrcweir aBaseLst.Insert( 705*cdf0e10cSrcweir pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, 706*cdf0e10cSrcweir &aWinBits, nRepeatId ), 707*cdf0e10cSrcweir LIST_APPEND ); 708*cdf0e10cSrcweir nId = aNmTb.Put( "Repeat", VARNAME ); 709*cdf0e10cSrcweir pClassSpinButton->SetVariable( nId, pClient, NULL, 710*cdf0e10cSrcweir VAR_NODATAINST, 0, nWinBitVarId ); 711*cdf0e10cSrcweir } 712*cdf0e10cSrcweir pRoot->Insert( pClassSpinButton ); 713*cdf0e10cSrcweir } 714*cdf0e10cSrcweir { 715*cdf0e10cSrcweir /********** T I M E **************************************************/ 716*cdf0e10cSrcweir pClassTime = InitClassTime( pClassMgr ); 717*cdf0e10cSrcweir pRoot->Insert( pClassTime ); 718*cdf0e10cSrcweir 719*cdf0e10cSrcweir /********** D A T E **************************************************/ 720*cdf0e10cSrcweir pClassDate = InitClassDate( pClassMgr ); 721*cdf0e10cSrcweir pRoot->Insert( pClassDate ); 722*cdf0e10cSrcweir } 723*cdf0e10cSrcweir { 724*cdf0e10cSrcweir /********** S P I N F I E L D ****************************************/ 725*cdf0e10cSrcweir pClassSpinField = InitClassSpinField( pClassEdit ); 726*cdf0e10cSrcweir pRoot->Insert( pClassSpinField ); 727*cdf0e10cSrcweir } 728*cdf0e10cSrcweir { 729*cdf0e10cSrcweir /********** P A T T E R N F I E L D **********************************/ 730*cdf0e10cSrcweir { // Mehrfachvererbung von Hand 731*cdf0e10cSrcweir RscTop * pClassTmp = InitClassPatternFormatter( pClassSpinField ); 732*cdf0e10cSrcweir aBaseLst.Insert( pClassTmp, LIST_APPEND ); 733*cdf0e10cSrcweir 734*cdf0e10cSrcweir pClassPatternField = InitClassPatternField( pClassTmp ); 735*cdf0e10cSrcweir pRoot->Insert( pClassPatternField ); 736*cdf0e10cSrcweir } 737*cdf0e10cSrcweir /********** N U M E R I C F I E L D **********************************/ 738*cdf0e10cSrcweir { // Mehrfachvererbung von Hand 739*cdf0e10cSrcweir RscTop * pClassTmp = InitClassNumericFormatter( pClassSpinField ); 740*cdf0e10cSrcweir aBaseLst.Insert( pClassTmp, LIST_APPEND ); 741*cdf0e10cSrcweir 742*cdf0e10cSrcweir pClassNumericField = InitClassNumericField( pClassTmp ); 743*cdf0e10cSrcweir pRoot->Insert( pClassNumericField ); 744*cdf0e10cSrcweir } 745*cdf0e10cSrcweir /********** M E T R I C F I E L D ************************************/ 746*cdf0e10cSrcweir { // Mehrfachvererbung von Hand 747*cdf0e10cSrcweir RscTop * pClassTmp = InitClassNumericFormatter( pClassSpinField ); 748*cdf0e10cSrcweir aBaseLst.Insert( pClassTmp, LIST_APPEND ); 749*cdf0e10cSrcweir pClassTmp = InitClassMetricFormatter( pClassTmp, pFieldUnits ); 750*cdf0e10cSrcweir aBaseLst.Insert( pClassTmp, LIST_APPEND ); 751*cdf0e10cSrcweir 752*cdf0e10cSrcweir pClassMetricField = InitClassMetricField( pClassTmp ); 753*cdf0e10cSrcweir pRoot->Insert( pClassMetricField ); 754*cdf0e10cSrcweir } 755*cdf0e10cSrcweir /********** C U R R E N C Y F I E L D ********************************/ 756*cdf0e10cSrcweir { // Mehrfachvererbung von Hand 757*cdf0e10cSrcweir RscTop * pClassTmp = InitClassNumericFormatter( pClassSpinField ); 758*cdf0e10cSrcweir aBaseLst.Insert( pClassTmp, LIST_APPEND ); 759*cdf0e10cSrcweir pClassTmp = InitClassCurrencyFormatter( pClassTmp, pFieldUnits ); 760*cdf0e10cSrcweir aBaseLst.Insert( pClassTmp, LIST_APPEND ); 761*cdf0e10cSrcweir 762*cdf0e10cSrcweir pClassCurrencyField = InitClassCurrencyField( "CurrencyField", RSC_CURRENCYFIELD, pClassTmp ); 763*cdf0e10cSrcweir pRoot->Insert( pClassCurrencyField ); 764*cdf0e10cSrcweir 765*cdf0e10cSrcweir pClassLongCurrencyField = InitClassCurrencyField( "LongCurrencyField", RSC_LONGCURRENCYFIELD, pClassTmp ); 766*cdf0e10cSrcweir pRoot->Insert( pClassLongCurrencyField ); 767*cdf0e10cSrcweir 768*cdf0e10cSrcweir } 769*cdf0e10cSrcweir /********** D A T E F I E L D ****************************************/ 770*cdf0e10cSrcweir { // Mehrfachvererbung von Hand 771*cdf0e10cSrcweir RscTop * pClassTmp = InitClassDateFormatter( pClassSpinField, pClassDate ); 772*cdf0e10cSrcweir aBaseLst.Insert( pClassTmp, LIST_APPEND ); 773*cdf0e10cSrcweir 774*cdf0e10cSrcweir pClassDateField = InitClassDateField( pClassTmp, pClassDate ); 775*cdf0e10cSrcweir pRoot->Insert( pClassDateField ); 776*cdf0e10cSrcweir } 777*cdf0e10cSrcweir /********** T I M E F I E L D ****************************************/ 778*cdf0e10cSrcweir { // Mehrfachvererbung von Hand 779*cdf0e10cSrcweir RscTop * pClassTmp = InitClassTimeFormatter( pClassSpinField, pClassTime, 780*cdf0e10cSrcweir pTimeFieldFormat ); 781*cdf0e10cSrcweir aBaseLst.Insert( pClassTmp, LIST_APPEND ); 782*cdf0e10cSrcweir 783*cdf0e10cSrcweir pClassTimeField = InitClassTimeField( pClassTmp, pClassTime ); 784*cdf0e10cSrcweir pRoot->Insert( pClassTimeField ); 785*cdf0e10cSrcweir } 786*cdf0e10cSrcweir /********** P A T T E R N B O X **************************************/ 787*cdf0e10cSrcweir { // Mehrfachvererbung von Hand 788*cdf0e10cSrcweir RscTop * pClassTmp = InitClassPatternFormatter( pClassComboBox ); 789*cdf0e10cSrcweir aBaseLst.Insert( pClassTmp, LIST_APPEND ); 790*cdf0e10cSrcweir 791*cdf0e10cSrcweir pClassPatternBox = InitClassPatternBox( pClassTmp ); 792*cdf0e10cSrcweir pRoot->Insert( pClassPatternBox ); 793*cdf0e10cSrcweir } 794*cdf0e10cSrcweir /********** N U M E R I C B O X **************************************/ 795*cdf0e10cSrcweir { // Mehrfachvererbung von Hand 796*cdf0e10cSrcweir RscTop * pClassTmp = InitClassNumericFormatter( pClassComboBox ); 797*cdf0e10cSrcweir aBaseLst.Insert( pClassTmp, LIST_APPEND ); 798*cdf0e10cSrcweir 799*cdf0e10cSrcweir pClassNumericBox = InitClassNumericBox( pClassTmp ); 800*cdf0e10cSrcweir pRoot->Insert( pClassNumericBox ); 801*cdf0e10cSrcweir } 802*cdf0e10cSrcweir } 803*cdf0e10cSrcweir { 804*cdf0e10cSrcweir /********** M E T R I C B O X ****************************************/ 805*cdf0e10cSrcweir { // Mehrfachvererbung von Hand 806*cdf0e10cSrcweir RscTop * pClassTmp = InitClassNumericFormatter( pClassComboBox ); 807*cdf0e10cSrcweir aBaseLst.Insert( pClassTmp, LIST_APPEND ); 808*cdf0e10cSrcweir pClassTmp = InitClassMetricFormatter( pClassTmp, pFieldUnits ); 809*cdf0e10cSrcweir aBaseLst.Insert( pClassTmp, LIST_APPEND ); 810*cdf0e10cSrcweir 811*cdf0e10cSrcweir pClassMetricBox = InitClassMetricBox( pClassTmp ); 812*cdf0e10cSrcweir pRoot->Insert( pClassMetricBox ); 813*cdf0e10cSrcweir } 814*cdf0e10cSrcweir /********** C U R R E N C Y B O X ************************************/ 815*cdf0e10cSrcweir { // Mehrfachvererbung von Hand 816*cdf0e10cSrcweir RscTop * pClassTmp = InitClassNumericFormatter( pClassComboBox ); 817*cdf0e10cSrcweir aBaseLst.Insert( pClassTmp, LIST_APPEND ); 818*cdf0e10cSrcweir pClassTmp = InitClassCurrencyFormatter( pClassTmp, pFieldUnits ); 819*cdf0e10cSrcweir aBaseLst.Insert( pClassTmp, LIST_APPEND ); 820*cdf0e10cSrcweir 821*cdf0e10cSrcweir pClassCurrencyBox = InitClassCurrencyBox( "CurrencyBox", RSC_CURRENCYBOX, pClassTmp ); 822*cdf0e10cSrcweir pRoot->Insert( pClassCurrencyBox ); 823*cdf0e10cSrcweir 824*cdf0e10cSrcweir pClassLongCurrencyBox = InitClassCurrencyBox( "LongCurrencyBox", RSC_LONGCURRENCYBOX, pClassTmp ); 825*cdf0e10cSrcweir pRoot->Insert( pClassLongCurrencyBox ); 826*cdf0e10cSrcweir } 827*cdf0e10cSrcweir /********** D A T E B O X ********************************************/ 828*cdf0e10cSrcweir { // Mehrfachvererbung von Hand 829*cdf0e10cSrcweir RscTop * pClassTmp = InitClassDateFormatter( pClassComboBox, pClassDate ); 830*cdf0e10cSrcweir aBaseLst.Insert( pClassTmp, LIST_APPEND ); 831*cdf0e10cSrcweir 832*cdf0e10cSrcweir pClassDateBox = InitClassDateBox( pClassTmp, pClassDate ); 833*cdf0e10cSrcweir pRoot->Insert( pClassDateBox ); 834*cdf0e10cSrcweir } 835*cdf0e10cSrcweir /********** T I M E B O X ********************************************/ 836*cdf0e10cSrcweir { // Mehrfachvererbung von Hand 837*cdf0e10cSrcweir RscTop * pClassTmp = InitClassTimeFormatter( pClassComboBox, pClassTime, 838*cdf0e10cSrcweir pTimeFieldFormat ); 839*cdf0e10cSrcweir aBaseLst.Insert( pClassTmp, LIST_APPEND ); 840*cdf0e10cSrcweir 841*cdf0e10cSrcweir pClassTimeBox = InitClassTimeBox( pClassTmp, pClassTime ); 842*cdf0e10cSrcweir pRoot->Insert( pClassTimeBox ); 843*cdf0e10cSrcweir } 844*cdf0e10cSrcweir /********** D O C K I N G W I N D O W ********************************/ 845*cdf0e10cSrcweir pClassDockingWindow = InitClassDockingWindow( pClassWindow, pMapUnit ); 846*cdf0e10cSrcweir pRoot->Insert( pClassDockingWindow ); 847*cdf0e10cSrcweir 848*cdf0e10cSrcweir /********** T O O L B O X I T E M ************************************/ 849*cdf0e10cSrcweir pClassToolBoxItem = InitClassToolBoxItem( pClassMgr, pClassBitmap, 850*cdf0e10cSrcweir pClassImage, pTriState ); 851*cdf0e10cSrcweir pRoot->Insert( pClassToolBoxItem ); 852*cdf0e10cSrcweir 853*cdf0e10cSrcweir /********** T O O L B O X ********************************************/ 854*cdf0e10cSrcweir pClassToolBox = InitClassToolBox( pClassDockingWindow, pClassToolBoxItem, 855*cdf0e10cSrcweir pClassImageList ); 856*cdf0e10cSrcweir pRoot->Insert( pClassToolBox ); 857*cdf0e10cSrcweir 858*cdf0e10cSrcweir /********** S T A T U S B A R ****************************************/ 859*cdf0e10cSrcweir pClassStatusBar = InitClassStatusBar( pClassWindow ); 860*cdf0e10cSrcweir pRoot->Insert( pClassStatusBar ); 861*cdf0e10cSrcweir 862*cdf0e10cSrcweir /********** M O R E B U T T O N **************************************/ 863*cdf0e10cSrcweir pClassMoreButton = InitClassMoreButton( pClassPushButton, pMapUnit ); 864*cdf0e10cSrcweir pRoot->Insert( pClassMoreButton ); 865*cdf0e10cSrcweir 866*cdf0e10cSrcweir /********** F L O A T W I N D O W ************************************/ 867*cdf0e10cSrcweir pClassFloatingWindow = InitClassFloatingWindow( pClassSystemWindow, 868*cdf0e10cSrcweir pMapUnit ); 869*cdf0e10cSrcweir pRoot->Insert( pClassFloatingWindow ); 870*cdf0e10cSrcweir 871*cdf0e10cSrcweir /********** T A B P A G E ********************************************/ 872*cdf0e10cSrcweir // Klasse anlegen 873*cdf0e10cSrcweir nId = pHS->getID( "TabPage" ); 874*cdf0e10cSrcweir pClassTabPage = 875*cdf0e10cSrcweir new RscClass( nId, RSC_TABPAGE, pClassWindow ); 876*cdf0e10cSrcweir pClassTabPage->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType ); 877*cdf0e10cSrcweir aNmTb.Put( nId, CLASSNAME, pClassTabPage ); 878*cdf0e10cSrcweir pRoot->Insert( pClassTabPage ); 879*cdf0e10cSrcweir 880*cdf0e10cSrcweir /********** T A B D I A L O G ****************************************/ 881*cdf0e10cSrcweir // Klasse anlegen 882*cdf0e10cSrcweir nId = pHS->getID( "TabDialog" ); 883*cdf0e10cSrcweir pClassTabDialog = 884*cdf0e10cSrcweir new RscClass( nId, RSC_TABDIALOG, pClassModalDialog ); 885*cdf0e10cSrcweir pClassTabDialog->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType ); 886*cdf0e10cSrcweir aNmTb.Put( nId, CLASSNAME, pClassTabDialog ); 887*cdf0e10cSrcweir pRoot->Insert( pClassTabDialog ); 888*cdf0e10cSrcweir 889*cdf0e10cSrcweir /********** T A B C O N T R O L I T E M *******************************/ 890*cdf0e10cSrcweir pClassTabControlItem = InitClassTabControlItem( pClassMgr, 891*cdf0e10cSrcweir pClassTabPage ); 892*cdf0e10cSrcweir pRoot->Insert( pClassTabControlItem ); 893*cdf0e10cSrcweir 894*cdf0e10cSrcweir /********** T A B C O N T R O L **************************************/ 895*cdf0e10cSrcweir pClassTabControl = InitClassTabControl( pClassControl, 896*cdf0e10cSrcweir pClassTabControlItem ); 897*cdf0e10cSrcweir pRoot->Insert( pClassTabControl ); 898*cdf0e10cSrcweir 899*cdf0e10cSrcweir /********** F I X E D L I N E ****************************************/ 900*cdf0e10cSrcweir // Klasse anlegen 901*cdf0e10cSrcweir nId = pHS->getID( "FixedLine" ); 902*cdf0e10cSrcweir pClassFixedLine = 903*cdf0e10cSrcweir new RscClass( nId, RSC_FIXEDLINE, pClassControl ); 904*cdf0e10cSrcweir pClassFixedLine->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType ); 905*cdf0e10cSrcweir 906*cdf0e10cSrcweir INS_WINBIT(pClassFixedLine,Vert) 907*cdf0e10cSrcweir 908*cdf0e10cSrcweir aNmTb.Put( nId, CLASSNAME, pClassFixedLine ); 909*cdf0e10cSrcweir pRoot->Insert( pClassFixedLine ); 910*cdf0e10cSrcweir 911*cdf0e10cSrcweir /********** S C R O L L B A R B O X **********************************/ 912*cdf0e10cSrcweir // Klasse anlegen 913*cdf0e10cSrcweir nId = pHS->getID( "ScrollBarBox" ); 914*cdf0e10cSrcweir pClassScrollBarBox = 915*cdf0e10cSrcweir new RscClass( nId, RSC_SCROLLBARBOX, pClassWindow ); 916*cdf0e10cSrcweir pClassScrollBarBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType ); 917*cdf0e10cSrcweir aNmTb.Put( nId, CLASSNAME, pClassScrollBarBox ); 918*cdf0e10cSrcweir pRoot->Insert( pClassScrollBarBox ); 919*cdf0e10cSrcweir INS_WINBIT(pClassScrollBarBox,Sizeable) 920*cdf0e10cSrcweir 921*cdf0e10cSrcweir /********** S F X S T Y L E F A M I L Y I T E M **********************/ 922*cdf0e10cSrcweir pClassSfxStyleFamilyItem = InitClassSfxStyleFamilyItem( pClassMgr, 923*cdf0e10cSrcweir pClassBitmap, 924*cdf0e10cSrcweir pClassImage, 925*cdf0e10cSrcweir pLangStringLongTupelList ); 926*cdf0e10cSrcweir pRoot->Insert( pClassSfxStyleFamilyItem ); 927*cdf0e10cSrcweir 928*cdf0e10cSrcweir /********** S F X T E M P L A T E D I A L O G ************************/ 929*cdf0e10cSrcweir pClassSfxTemplateDialog = InitClassSfxTemplateDialog( pClassMgr, 930*cdf0e10cSrcweir pClassSfxStyleFamilyItem ); 931*cdf0e10cSrcweir pRoot->Insert( pClassSfxTemplateDialog ); 932*cdf0e10cSrcweir 933*cdf0e10cSrcweir /********** S F X I N F O I T E M ************************************/ 934*cdf0e10cSrcweir pClassSfxSlotInfo = InitClassSfxSlotInfo( pClassMgr ); 935*cdf0e10cSrcweir pRoot->Insert( pClassSfxSlotInfo ); 936*cdf0e10cSrcweir } 937*cdf0e10cSrcweir NameToVerCtrl( aVersion, pRoot, pClassString ); 938*cdf0e10cSrcweir 939*cdf0e10cSrcweir aNmTb.SetSort(); 940*cdf0e10cSrcweir } 941*cdf0e10cSrcweir 942