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 #include <string.h> 36*cdf0e10cSrcweir 37*cdf0e10cSrcweir #include <i18npool/mslangid.hxx> 38*cdf0e10cSrcweir #include <tools/rc.h> 39*cdf0e10cSrcweir #include <tools/color.hxx> 40*cdf0e10cSrcweir 41*cdf0e10cSrcweir #include <vclrsc.hxx> 42*cdf0e10cSrcweir #include <rscconst.hxx> 43*cdf0e10cSrcweir #include <rscarray.hxx> 44*cdf0e10cSrcweir #include <rscclass.hxx> 45*cdf0e10cSrcweir #include <rsccont.hxx> 46*cdf0e10cSrcweir #include <rscdb.hxx> 47*cdf0e10cSrcweir 48*cdf0e10cSrcweir 49*cdf0e10cSrcweir #include "rsclex.hxx" 50*cdf0e10cSrcweir #include <yyrscyacc.hxx> 51*cdf0e10cSrcweir 52*cdf0e10cSrcweir #include <hash_map> 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir /****************** M A C R O S ******************************************/ 55*cdf0e10cSrcweir void RscTypCont::SETCONST( RscConst * pClass, const char * szString, sal_uInt32 nVal ) 56*cdf0e10cSrcweir { 57*cdf0e10cSrcweir #if OSL_DEBUG_LEVEL > 2 58*cdf0e10cSrcweir fprintf( stderr, "setconst : %s\n", szString ); 59*cdf0e10cSrcweir #endif 60*cdf0e10cSrcweir pClass->SetConstant( aNmTb.Put( szString, 61*cdf0e10cSrcweir CONSTNAME, nVal ), nVal ); 62*cdf0e10cSrcweir } 63*cdf0e10cSrcweir 64*cdf0e10cSrcweir void RscTypCont::SETCONST( RscConst * pClass, Atom nName, sal_uInt32 nVal ) 65*cdf0e10cSrcweir { 66*cdf0e10cSrcweir #if OSL_DEBUG_LEVEL > 2 67*cdf0e10cSrcweir fprintf( stderr, "setconst hash: %u\n", (unsigned int)nName ); 68*cdf0e10cSrcweir #endif 69*cdf0e10cSrcweir pClass->SetConstant( aNmTb.Put( nName, 70*cdf0e10cSrcweir CONSTNAME, nVal ), nVal ); 71*cdf0e10cSrcweir } 72*cdf0e10cSrcweir 73*cdf0e10cSrcweir /****************** C O D E **********************************************/ 74*cdf0e10cSrcweir /************************************************************************* 75*cdf0e10cSrcweir |* RscTypCont::InitLangType() 76*cdf0e10cSrcweir |* 77*cdf0e10cSrcweir |* Beschreibung 78*cdf0e10cSrcweir *************************************************************************/ 79*cdf0e10cSrcweir 80*cdf0e10cSrcweir typedef std::hash_map< rtl::OString, sal_uInt32, rtl::OStringHash > langmap; 81*cdf0e10cSrcweir static langmap ULong_Iso_map; 82*cdf0e10cSrcweir 83*cdf0e10cSrcweir sal_uInt32 GetLangId( const ByteString& aLang ) 84*cdf0e10cSrcweir { 85*cdf0e10cSrcweir langmap::iterator pIter = ULong_Iso_map.find( aLang ); 86*cdf0e10cSrcweir if ( pIter != ULong_Iso_map.end()) 87*cdf0e10cSrcweir return pIter->second; 88*cdf0e10cSrcweir return 0; 89*cdf0e10cSrcweir } 90*cdf0e10cSrcweir 91*cdf0e10cSrcweir void RscLangEnum::Init( RscNameTable& rNames ) 92*cdf0e10cSrcweir { 93*cdf0e10cSrcweir SetConstant( rNames.Put( "SYSTEM", CONSTNAME, (long)LANGUAGE_SYSTEM ), LANGUAGE_SYSTEM ); 94*cdf0e10cSrcweir SetConstant( rNames.Put( "DONTKNOW", CONSTNAME, LANGUAGE_DONTKNOW ), LANGUAGE_DONTKNOW ); 95*cdf0e10cSrcweir 96*cdf0e10cSrcweir sal_Int32 nIndex = 0; 97*cdf0e10cSrcweir mnLangId = 0x400; // stay away from selfdefined... 98*cdf0e10cSrcweir char csep = '-'; 99*cdf0e10cSrcweir const MsLangId::IsoLangEntry* pLangEntry; 100*cdf0e10cSrcweir ByteString aCountry, aLang; 101*cdf0e10cSrcweir 102*cdf0e10cSrcweir while ( NULL != ( pLangEntry = MsLangId::getIsoLangEntry( nIndex )) && ( pLangEntry->mnLang != LANGUAGE_DONTKNOW )) 103*cdf0e10cSrcweir { 104*cdf0e10cSrcweir #if OSL_DEBUG_LEVEL > 2 105*cdf0e10cSrcweir fprintf( stderr, "ISO Language in : %d\n", 106*cdf0e10cSrcweir (int)nIndex, 107*cdf0e10cSrcweir pLangEntry->mnLang, 108*cdf0e10cSrcweir MsLangId::convertLanguageToIsoByteString( pLangEntry->mnLang ).getStr() ); 109*cdf0e10cSrcweir #endif 110*cdf0e10cSrcweir aLang = pLangEntry->maLangStr; 111*cdf0e10cSrcweir aCountry = pLangEntry->maCountry; 112*cdf0e10cSrcweir if ( aLang.EqualsIgnoreCaseAscii( aCountry ) || ! aCountry.Len() ) 113*cdf0e10cSrcweir { 114*cdf0e10cSrcweir SetConstant( rNames.Put( aLang.GetBuffer(), CONSTNAME, mnLangId ), mnLangId ); 115*cdf0e10cSrcweir if ( ! GetLangId( aLang )) 116*cdf0e10cSrcweir ULong_Iso_map[ aLang ] = mnLangId; 117*cdf0e10cSrcweir #if OSL_DEBUG_LEVEL > 2 118*cdf0e10cSrcweir fprintf( stderr, "ISO Language out: %s 0x%lx\n", aLang.GetBuffer(), mnLangId ); 119*cdf0e10cSrcweir #endif 120*cdf0e10cSrcweir mnLangId++; 121*cdf0e10cSrcweir } 122*cdf0e10cSrcweir else 123*cdf0e10cSrcweir { 124*cdf0e10cSrcweir SetConstant( rNames.Put( aLang.GetBuffer(), CONSTNAME, mnLangId ), mnLangId ); 125*cdf0e10cSrcweir if ( ! GetLangId( aLang )) 126*cdf0e10cSrcweir ULong_Iso_map[ aLang ] = mnLangId; 127*cdf0e10cSrcweir #if OSL_DEBUG_LEVEL > 2 128*cdf0e10cSrcweir fprintf( stderr, "ISO Language out: %s 0x%lx", aLang.GetBuffer(), mnLangId ); 129*cdf0e10cSrcweir #endif 130*cdf0e10cSrcweir mnLangId++; 131*cdf0e10cSrcweir aLang += csep; 132*cdf0e10cSrcweir aLang += aCountry.ToUpperAscii(); 133*cdf0e10cSrcweir SetConstant( rNames.Put( aLang.GetBuffer(), CONSTNAME, mnLangId ), mnLangId ); 134*cdf0e10cSrcweir if ( ! GetLangId( aLang )) 135*cdf0e10cSrcweir ULong_Iso_map[ aLang ] = mnLangId; 136*cdf0e10cSrcweir #if OSL_DEBUG_LEVEL > 2 137*cdf0e10cSrcweir fprintf( stderr, " %s 0x%lx\n", aLang.GetBuffer(), mnLangId ); 138*cdf0e10cSrcweir #endif 139*cdf0e10cSrcweir mnLangId++; 140*cdf0e10cSrcweir // hack - survive "x-no-translate" 141*cdf0e10cSrcweir if ( aLang == "en-US" ) 142*cdf0e10cSrcweir { 143*cdf0e10cSrcweir // SetConstant( rNames.Put( "x-no-translate", CONSTNAME, mnLangId ), mnLangId ); 144*cdf0e10cSrcweir // mnLangId++; 145*cdf0e10cSrcweir SetConstant( rNames.Put( "x-comment", CONSTNAME, mnLangId ), mnLangId ); 146*cdf0e10cSrcweir mnLangId++; 147*cdf0e10cSrcweir } 148*cdf0e10cSrcweir } 149*cdf0e10cSrcweir nIndex++; 150*cdf0e10cSrcweir } 151*cdf0e10cSrcweir 152*cdf0e10cSrcweir ByteString aEnvIsoTokens = getenv( "RSC_LANG_ISO" ); 153*cdf0e10cSrcweir if ( aEnvIsoTokens.Len() ) 154*cdf0e10cSrcweir { 155*cdf0e10cSrcweir ByteString aIsoToken; 156*cdf0e10cSrcweir sal_uInt16 nTokenCounter = 0; 157*cdf0e10cSrcweir sal_Bool bOneMore = 1; 158*cdf0e10cSrcweir while ( bOneMore ) 159*cdf0e10cSrcweir { 160*cdf0e10cSrcweir aIsoToken = aEnvIsoTokens.GetToken( nTokenCounter, ' ' ); 161*cdf0e10cSrcweir if ( aIsoToken.Len() ) 162*cdf0e10cSrcweir { 163*cdf0e10cSrcweir SetConstant( rNames.Put( aIsoToken.GetBuffer(), CONSTNAME, mnLangId ), mnLangId ); 164*cdf0e10cSrcweir if ( ! GetLangId( aIsoToken )) 165*cdf0e10cSrcweir ULong_Iso_map[ aIsoToken ] = mnLangId; 166*cdf0e10cSrcweir #if OSL_DEBUG_LEVEL > 2 167*cdf0e10cSrcweir fprintf( stderr, "Env ISO Language out: %s 0x%lx\n", aIsoToken.GetBuffer(), mnLangId ); 168*cdf0e10cSrcweir #endif 169*cdf0e10cSrcweir mnLangId++; 170*cdf0e10cSrcweir } 171*cdf0e10cSrcweir else 172*cdf0e10cSrcweir bOneMore = 0; 173*cdf0e10cSrcweir nTokenCounter++; 174*cdf0e10cSrcweir } 175*cdf0e10cSrcweir } 176*cdf0e10cSrcweir 177*cdf0e10cSrcweir SetConstant( rNames.Put( "LANGUAGE_USER1", CONSTNAME, LANGUAGE_USER1 ), LANGUAGE_USER1 ); 178*cdf0e10cSrcweir SetConstant( rNames.Put( "LANGUAGE_USER2", CONSTNAME, LANGUAGE_USER2 ), LANGUAGE_USER2 ); 179*cdf0e10cSrcweir SetConstant( rNames.Put( "LANGUAGE_USER3", CONSTNAME, LANGUAGE_USER3 ), LANGUAGE_USER3 ); 180*cdf0e10cSrcweir SetConstant( rNames.Put( "LANGUAGE_USER4", CONSTNAME, LANGUAGE_USER4 ), LANGUAGE_USER4 ); 181*cdf0e10cSrcweir SetConstant( rNames.Put( "LANGUAGE_USER5", CONSTNAME, LANGUAGE_USER5 ), LANGUAGE_USER5 ); 182*cdf0e10cSrcweir SetConstant( rNames.Put( "LANGUAGE_USER6", CONSTNAME, LANGUAGE_USER6 ), LANGUAGE_USER6 ); 183*cdf0e10cSrcweir SetConstant( rNames.Put( "LANGUAGE_USER7", CONSTNAME, LANGUAGE_USER7 ), LANGUAGE_USER7 ); 184*cdf0e10cSrcweir SetConstant( rNames.Put( "LANGUAGE_USER8", CONSTNAME, LANGUAGE_USER8 ), LANGUAGE_USER8 ); 185*cdf0e10cSrcweir SetConstant( rNames.Put( "EXTERN", CONSTNAME, LANGUAGE_USER9 ), LANGUAGE_USER9 ); 186*cdf0e10cSrcweir } 187*cdf0e10cSrcweir 188*cdf0e10cSrcweir Atom RscLangEnum::AddLanguage( const char* pLang, RscNameTable& rNames ) 189*cdf0e10cSrcweir { 190*cdf0e10cSrcweir Atom nResult = 0; 191*cdf0e10cSrcweir KEY_STRUCT aStruct; 192*cdf0e10cSrcweir if( ! rNames.Get( nResult = pHS->getID( pLang ), &aStruct ) ) 193*cdf0e10cSrcweir { 194*cdf0e10cSrcweir SetConstant( nResult = rNames.Put( pLang, CONSTNAME, mnLangId ), mnLangId ); 195*cdf0e10cSrcweir // insert new lang to ULong_Iso_map 196*cdf0e10cSrcweir rtl::OString aLang( pLang ); 197*cdf0e10cSrcweir if ( ! GetLangId( aLang )) 198*cdf0e10cSrcweir ULong_Iso_map[ aLang ] = mnLangId; 199*cdf0e10cSrcweir // increase id counter 200*cdf0e10cSrcweir mnLangId++; 201*cdf0e10cSrcweir } 202*cdf0e10cSrcweir #if OSL_DEBUG_LEVEL > 2 203*cdf0e10cSrcweir fprintf( stderr, "AddLanguage( %s ) = %d\n", pLang, nResult ); 204*cdf0e10cSrcweir #endif 205*cdf0e10cSrcweir return nResult; 206*cdf0e10cSrcweir } 207*cdf0e10cSrcweir 208*cdf0e10cSrcweir RscEnum * RscTypCont::InitLangType() 209*cdf0e10cSrcweir { 210*cdf0e10cSrcweir aLangType.Init( aNmTb ); 211*cdf0e10cSrcweir return( &aLangType ); 212*cdf0e10cSrcweir } 213*cdf0e10cSrcweir 214*cdf0e10cSrcweir /************************************************************************* 215*cdf0e10cSrcweir |* 216*cdf0e10cSrcweir |* RscTypCont::InitFieldUnitsType() 217*cdf0e10cSrcweir |* 218*cdf0e10cSrcweir |* Beschreibung 219*cdf0e10cSrcweir |* Ersterstellung MM 22.03.91 220*cdf0e10cSrcweir |* Letzte Aenderung MM 27.06.91 221*cdf0e10cSrcweir |* 222*cdf0e10cSrcweir *************************************************************************/ 223*cdf0e10cSrcweir RscEnum * RscTypCont::InitFieldUnitsType() 224*cdf0e10cSrcweir { 225*cdf0e10cSrcweir RscEnum * pFieldUnits; 226*cdf0e10cSrcweir pFieldUnits = new RscEnum( pHS->getID( "EnumFieldUnit" ), RSC_NOTYPE ); 227*cdf0e10cSrcweir 228*cdf0e10cSrcweir SETCONST( pFieldUnits, "FUNIT_NONE", FUNIT_NONE ); 229*cdf0e10cSrcweir SETCONST( pFieldUnits, "FUNIT_MM", FUNIT_MM ); 230*cdf0e10cSrcweir SETCONST( pFieldUnits, "FUNIT_CM", FUNIT_CM ); 231*cdf0e10cSrcweir SETCONST( pFieldUnits, "FUNIT_M", FUNIT_M ); 232*cdf0e10cSrcweir SETCONST( pFieldUnits, "FUNIT_KM", FUNIT_KM ); 233*cdf0e10cSrcweir SETCONST( pFieldUnits, "FUNIT_TWIP", FUNIT_TWIP ); 234*cdf0e10cSrcweir SETCONST( pFieldUnits, "FUNIT_POINT", FUNIT_POINT ); 235*cdf0e10cSrcweir SETCONST( pFieldUnits, "FUNIT_PICA", FUNIT_PICA ); 236*cdf0e10cSrcweir SETCONST( pFieldUnits, "FUNIT_INCH", FUNIT_INCH ); 237*cdf0e10cSrcweir SETCONST( pFieldUnits, "FUNIT_FOOT", FUNIT_FOOT ); 238*cdf0e10cSrcweir SETCONST( pFieldUnits, "FUNIT_MILE", FUNIT_MILE ); 239*cdf0e10cSrcweir SETCONST( pFieldUnits, "FUNIT_CUSTOM", FUNIT_CUSTOM ); 240*cdf0e10cSrcweir SETCONST( pFieldUnits, "FUNIT_PERCENT", FUNIT_PERCENT ); 241*cdf0e10cSrcweir 242*cdf0e10cSrcweir return pFieldUnits; 243*cdf0e10cSrcweir } 244*cdf0e10cSrcweir 245*cdf0e10cSrcweir /************************************************************************* 246*cdf0e10cSrcweir |* 247*cdf0e10cSrcweir |* RscTypCont::InitTimeFieldFormat() 248*cdf0e10cSrcweir |* 249*cdf0e10cSrcweir |* Beschreibung 250*cdf0e10cSrcweir |* Ersterstellung MM 22.03.91 251*cdf0e10cSrcweir |* Letzte Aenderung MM 27.06.91 252*cdf0e10cSrcweir |* 253*cdf0e10cSrcweir *************************************************************************/ 254*cdf0e10cSrcweir RscEnum * RscTypCont::InitTimeFieldFormat() 255*cdf0e10cSrcweir { 256*cdf0e10cSrcweir RscEnum * pTimeFieldFormat; 257*cdf0e10cSrcweir pTimeFieldFormat = new RscEnum( pHS->getID( "EnumTimeFieldFormat" ), 258*cdf0e10cSrcweir RSC_NOTYPE ); 259*cdf0e10cSrcweir 260*cdf0e10cSrcweir SETCONST( pTimeFieldFormat, "TIMEF_NONE", TIMEF_NONE ); 261*cdf0e10cSrcweir SETCONST( pTimeFieldFormat, "TIMEF_SEC", TIMEF_SEC ); 262*cdf0e10cSrcweir SETCONST( pTimeFieldFormat, "TIMEF_100TH_SEC", TIMEF_100TH_SEC ); 263*cdf0e10cSrcweir 264*cdf0e10cSrcweir return pTimeFieldFormat; 265*cdf0e10cSrcweir } 266*cdf0e10cSrcweir 267*cdf0e10cSrcweir /************************************************************************* 268*cdf0e10cSrcweir |* 269*cdf0e10cSrcweir |* RscTypCont::InitColor() 270*cdf0e10cSrcweir |* 271*cdf0e10cSrcweir |* Beschreibung 272*cdf0e10cSrcweir |* Ersterstellung MM 24.05.91 273*cdf0e10cSrcweir |* Letzte Aenderung MM 24.05.91 274*cdf0e10cSrcweir |* 275*cdf0e10cSrcweir *************************************************************************/ 276*cdf0e10cSrcweir RscEnum * RscTypCont::InitColor(){ 277*cdf0e10cSrcweir RscEnum * pColor; 278*cdf0e10cSrcweir pColor = new RscEnum( pHS->getID( "EnumColor" ), RSC_NOTYPE ); 279*cdf0e10cSrcweir 280*cdf0e10cSrcweir SETCONST( pColor, "COL_BLACK", COL_BLACK ); 281*cdf0e10cSrcweir SETCONST( pColor, "COL_BLUE", COL_BLUE ); 282*cdf0e10cSrcweir SETCONST( pColor, "COL_GREEN", COL_GREEN ); 283*cdf0e10cSrcweir SETCONST( pColor, "COL_CYAN", COL_CYAN ); 284*cdf0e10cSrcweir SETCONST( pColor, "COL_RED", COL_RED ); 285*cdf0e10cSrcweir SETCONST( pColor, "COL_MAGENTA", COL_MAGENTA ); 286*cdf0e10cSrcweir SETCONST( pColor, "COL_BROWN", COL_BROWN ); 287*cdf0e10cSrcweir SETCONST( pColor, "COL_GRAY", COL_GRAY ); 288*cdf0e10cSrcweir SETCONST( pColor, "COL_LIGHTGRAY", COL_LIGHTGRAY ); 289*cdf0e10cSrcweir SETCONST( pColor, "COL_LIGHTBLUE", COL_LIGHTBLUE ); 290*cdf0e10cSrcweir SETCONST( pColor, "COL_LIGHTGREEN", COL_LIGHTGREEN ); 291*cdf0e10cSrcweir SETCONST( pColor, "COL_LIGHTCYAN", COL_LIGHTCYAN ); 292*cdf0e10cSrcweir SETCONST( pColor, "COL_LIGHTRED", COL_LIGHTRED ); 293*cdf0e10cSrcweir SETCONST( pColor, "COL_LIGHTMAGENTA", COL_LIGHTMAGENTA ); 294*cdf0e10cSrcweir SETCONST( pColor, "COL_YELLOW", COL_YELLOW ); 295*cdf0e10cSrcweir SETCONST( pColor, "COL_WHITE", COL_WHITE ); 296*cdf0e10cSrcweir 297*cdf0e10cSrcweir return( pColor ); 298*cdf0e10cSrcweir } 299*cdf0e10cSrcweir 300*cdf0e10cSrcweir /************************************************************************* 301*cdf0e10cSrcweir |* 302*cdf0e10cSrcweir |* RscTypCont::InitMapUnit() 303*cdf0e10cSrcweir |* 304*cdf0e10cSrcweir |* Beschreibung 305*cdf0e10cSrcweir |* Ersterstellung MM 24.05.91 306*cdf0e10cSrcweir |* Letzte Aenderung MM 24.05.91 307*cdf0e10cSrcweir |* 308*cdf0e10cSrcweir *************************************************************************/ 309*cdf0e10cSrcweir RscEnum * RscTypCont::InitMapUnit(){ 310*cdf0e10cSrcweir RscEnum * pMapUnit; 311*cdf0e10cSrcweir pMapUnit = new RscEnum( pHS->getID( "EnumMapUnit" ), RSC_NOTYPE ); 312*cdf0e10cSrcweir 313*cdf0e10cSrcweir SETCONST( pMapUnit, "MAP_PIXEL", MAP_PIXEL ); 314*cdf0e10cSrcweir SETCONST( pMapUnit, "MAP_SYSFONT", MAP_SYSFONT ); 315*cdf0e10cSrcweir SETCONST( pMapUnit, "MAP_100TH_MM", MAP_100TH_MM ); 316*cdf0e10cSrcweir SETCONST( pMapUnit, "MAP_10TH_MM", MAP_10TH_MM ); 317*cdf0e10cSrcweir SETCONST( pMapUnit, "MAP_MM", MAP_MM ); 318*cdf0e10cSrcweir SETCONST( pMapUnit, "MAP_CM", MAP_CM ); 319*cdf0e10cSrcweir SETCONST( pMapUnit, "MAP_1000TH_INCH", MAP_1000TH_INCH ); 320*cdf0e10cSrcweir SETCONST( pMapUnit, "MAP_100TH_INCH", MAP_100TH_INCH ); 321*cdf0e10cSrcweir SETCONST( pMapUnit, "MAP_10TH_INCH", MAP_10TH_INCH ); 322*cdf0e10cSrcweir SETCONST( pMapUnit, "MAP_INCH", MAP_INCH ); 323*cdf0e10cSrcweir SETCONST( pMapUnit, "MAP_POINT", MAP_POINT ); 324*cdf0e10cSrcweir SETCONST( pMapUnit, "MAP_TWIP", MAP_TWIP ); 325*cdf0e10cSrcweir SETCONST( pMapUnit, "MAP_APPFONT", MAP_APPFONT ); 326*cdf0e10cSrcweir SETCONST( pMapUnit, "MAP_SV", RSC_EXTRAMAPUNIT ); 327*cdf0e10cSrcweir return( pMapUnit ); 328*cdf0e10cSrcweir } 329*cdf0e10cSrcweir 330*cdf0e10cSrcweir /************************************************************************* 331*cdf0e10cSrcweir |* 332*cdf0e10cSrcweir |* RscTypCont::InitKey() 333*cdf0e10cSrcweir |* 334*cdf0e10cSrcweir |* Beschreibung 335*cdf0e10cSrcweir |* Ersterstellung MM 24.05.91 336*cdf0e10cSrcweir |* Letzte Aenderung MM 24.05.91 337*cdf0e10cSrcweir |* 338*cdf0e10cSrcweir *************************************************************************/ 339*cdf0e10cSrcweir RscEnum * RscTypCont::InitKey(){ 340*cdf0e10cSrcweir RscEnum * pKey; 341*cdf0e10cSrcweir pKey = new RscEnum( pHS->getID( "EnumKey" ), RSC_NOTYPE ); 342*cdf0e10cSrcweir 343*cdf0e10cSrcweir SETCONST( pKey, "KEY_0", com::sun::star::awt::Key::NUM0 ); 344*cdf0e10cSrcweir SETCONST( pKey, "KEY_1", com::sun::star::awt::Key::NUM1 ); 345*cdf0e10cSrcweir SETCONST( pKey, "KEY_2", com::sun::star::awt::Key::NUM2 ); 346*cdf0e10cSrcweir SETCONST( pKey, "KEY_3", com::sun::star::awt::Key::NUM3 ); 347*cdf0e10cSrcweir SETCONST( pKey, "KEY_4", com::sun::star::awt::Key::NUM4 ); 348*cdf0e10cSrcweir SETCONST( pKey, "KEY_5", com::sun::star::awt::Key::NUM5 ); 349*cdf0e10cSrcweir SETCONST( pKey, "KEY_6", com::sun::star::awt::Key::NUM6 ); 350*cdf0e10cSrcweir SETCONST( pKey, "KEY_7", com::sun::star::awt::Key::NUM7 ); 351*cdf0e10cSrcweir SETCONST( pKey, "KEY_8", com::sun::star::awt::Key::NUM8 ); 352*cdf0e10cSrcweir SETCONST( pKey, "KEY_9", com::sun::star::awt::Key::NUM9 ); 353*cdf0e10cSrcweir 354*cdf0e10cSrcweir SETCONST( pKey, "KEY_A", com::sun::star::awt::Key::A ); 355*cdf0e10cSrcweir SETCONST( pKey, "KEY_B", com::sun::star::awt::Key::B ); 356*cdf0e10cSrcweir SETCONST( pKey, "KEY_C", com::sun::star::awt::Key::C ); 357*cdf0e10cSrcweir SETCONST( pKey, "KEY_D", com::sun::star::awt::Key::D ); 358*cdf0e10cSrcweir SETCONST( pKey, "KEY_E", com::sun::star::awt::Key::E ); 359*cdf0e10cSrcweir SETCONST( pKey, "KEY_F", com::sun::star::awt::Key::F ); 360*cdf0e10cSrcweir SETCONST( pKey, "KEY_G", com::sun::star::awt::Key::G ); 361*cdf0e10cSrcweir SETCONST( pKey, "KEY_H", com::sun::star::awt::Key::H ); 362*cdf0e10cSrcweir SETCONST( pKey, "KEY_I", com::sun::star::awt::Key::I ); 363*cdf0e10cSrcweir SETCONST( pKey, "KEY_J", com::sun::star::awt::Key::J ); 364*cdf0e10cSrcweir SETCONST( pKey, "KEY_K", com::sun::star::awt::Key::K ); 365*cdf0e10cSrcweir SETCONST( pKey, "KEY_L", com::sun::star::awt::Key::L ); 366*cdf0e10cSrcweir SETCONST( pKey, "KEY_M", com::sun::star::awt::Key::M ); 367*cdf0e10cSrcweir SETCONST( pKey, "KEY_N", com::sun::star::awt::Key::N ); 368*cdf0e10cSrcweir SETCONST( pKey, "KEY_O", com::sun::star::awt::Key::O ); 369*cdf0e10cSrcweir SETCONST( pKey, "KEY_P", com::sun::star::awt::Key::P ); 370*cdf0e10cSrcweir SETCONST( pKey, "KEY_Q", com::sun::star::awt::Key::Q ); 371*cdf0e10cSrcweir SETCONST( pKey, "KEY_R", com::sun::star::awt::Key::R ); 372*cdf0e10cSrcweir SETCONST( pKey, "KEY_S", com::sun::star::awt::Key::S ); 373*cdf0e10cSrcweir SETCONST( pKey, "KEY_T", com::sun::star::awt::Key::T ); 374*cdf0e10cSrcweir SETCONST( pKey, "KEY_U", com::sun::star::awt::Key::U ); 375*cdf0e10cSrcweir SETCONST( pKey, "KEY_V", com::sun::star::awt::Key::V ); 376*cdf0e10cSrcweir SETCONST( pKey, "KEY_W", com::sun::star::awt::Key::W ); 377*cdf0e10cSrcweir SETCONST( pKey, "KEY_X", com::sun::star::awt::Key::X ); 378*cdf0e10cSrcweir SETCONST( pKey, "KEY_Y", com::sun::star::awt::Key::Y ); 379*cdf0e10cSrcweir SETCONST( pKey, "KEY_Z", com::sun::star::awt::Key::Z ); 380*cdf0e10cSrcweir 381*cdf0e10cSrcweir SETCONST( pKey, "KEY_F1", com::sun::star::awt::Key::F1 ); 382*cdf0e10cSrcweir SETCONST( pKey, "KEY_F2", com::sun::star::awt::Key::F2 ); 383*cdf0e10cSrcweir SETCONST( pKey, "KEY_F3", com::sun::star::awt::Key::F3 ); 384*cdf0e10cSrcweir SETCONST( pKey, "KEY_F4", com::sun::star::awt::Key::F4 ); 385*cdf0e10cSrcweir SETCONST( pKey, "KEY_F5", com::sun::star::awt::Key::F5 ); 386*cdf0e10cSrcweir SETCONST( pKey, "KEY_F6", com::sun::star::awt::Key::F6 ); 387*cdf0e10cSrcweir SETCONST( pKey, "KEY_F7", com::sun::star::awt::Key::F7 ); 388*cdf0e10cSrcweir SETCONST( pKey, "KEY_F8", com::sun::star::awt::Key::F8 ); 389*cdf0e10cSrcweir SETCONST( pKey, "KEY_F9", com::sun::star::awt::Key::F9 ); 390*cdf0e10cSrcweir SETCONST( pKey, "KEY_F10", com::sun::star::awt::Key::F10 ); 391*cdf0e10cSrcweir SETCONST( pKey, "KEY_F11", com::sun::star::awt::Key::F11 ); 392*cdf0e10cSrcweir SETCONST( pKey, "KEY_F12", com::sun::star::awt::Key::F12 ); 393*cdf0e10cSrcweir SETCONST( pKey, "KEY_F13", com::sun::star::awt::Key::F13 ); 394*cdf0e10cSrcweir SETCONST( pKey, "KEY_F14", com::sun::star::awt::Key::F14 ); 395*cdf0e10cSrcweir SETCONST( pKey, "KEY_F15", com::sun::star::awt::Key::F15 ); 396*cdf0e10cSrcweir SETCONST( pKey, "KEY_F16", com::sun::star::awt::Key::F16 ); 397*cdf0e10cSrcweir SETCONST( pKey, "KEY_F17", com::sun::star::awt::Key::F17 ); 398*cdf0e10cSrcweir SETCONST( pKey, "KEY_F18", com::sun::star::awt::Key::F18 ); 399*cdf0e10cSrcweir SETCONST( pKey, "KEY_F19", com::sun::star::awt::Key::F19 ); 400*cdf0e10cSrcweir SETCONST( pKey, "KEY_F20", com::sun::star::awt::Key::F20 ); 401*cdf0e10cSrcweir SETCONST( pKey, "KEY_F21", com::sun::star::awt::Key::F21 ); 402*cdf0e10cSrcweir SETCONST( pKey, "KEY_F22", com::sun::star::awt::Key::F22 ); 403*cdf0e10cSrcweir SETCONST( pKey, "KEY_F23", com::sun::star::awt::Key::F23 ); 404*cdf0e10cSrcweir SETCONST( pKey, "KEY_F24", com::sun::star::awt::Key::F24 ); 405*cdf0e10cSrcweir SETCONST( pKey, "KEY_F25", com::sun::star::awt::Key::F25 ); 406*cdf0e10cSrcweir SETCONST( pKey, "KEY_F26", com::sun::star::awt::Key::F26 ); 407*cdf0e10cSrcweir 408*cdf0e10cSrcweir SETCONST( pKey, "KEY_DOWN", com::sun::star::awt::Key::DOWN ); 409*cdf0e10cSrcweir SETCONST( pKey, "KEY_UP", com::sun::star::awt::Key::UP ); 410*cdf0e10cSrcweir SETCONST( pKey, "KEY_LEFT", com::sun::star::awt::Key::LEFT ); 411*cdf0e10cSrcweir SETCONST( pKey, "KEY_RIGHT", com::sun::star::awt::Key::RIGHT ); 412*cdf0e10cSrcweir SETCONST( pKey, "KEY_HOME", com::sun::star::awt::Key::HOME ); 413*cdf0e10cSrcweir SETCONST( pKey, "KEY_END", com::sun::star::awt::Key::END ); 414*cdf0e10cSrcweir SETCONST( pKey, "KEY_PAGEUP", com::sun::star::awt::Key::PAGEUP ); 415*cdf0e10cSrcweir SETCONST( pKey, "KEY_PAGEDOWN", com::sun::star::awt::Key::PAGEDOWN ); 416*cdf0e10cSrcweir 417*cdf0e10cSrcweir SETCONST( pKey, "KEY_RETURN", com::sun::star::awt::Key::RETURN ); 418*cdf0e10cSrcweir SETCONST( pKey, "KEY_ESCAPE", com::sun::star::awt::Key::ESCAPE ); 419*cdf0e10cSrcweir SETCONST( pKey, "KEY_TAB", com::sun::star::awt::Key::TAB ); 420*cdf0e10cSrcweir SETCONST( pKey, "KEY_BACKSPACE", com::sun::star::awt::Key::BACKSPACE ); 421*cdf0e10cSrcweir SETCONST( pKey, "KEY_SPACE", com::sun::star::awt::Key::SPACE ); 422*cdf0e10cSrcweir SETCONST( pKey, "KEY_INSERT", com::sun::star::awt::Key::INSERT ); 423*cdf0e10cSrcweir SETCONST( pKey, "KEY_DELETE", com::sun::star::awt::Key::DELETE ); 424*cdf0e10cSrcweir 425*cdf0e10cSrcweir SETCONST( pKey, "KEY_ADD", com::sun::star::awt::Key::ADD ); 426*cdf0e10cSrcweir SETCONST( pKey, "KEY_SUBTRACT", com::sun::star::awt::Key::SUBTRACT ); 427*cdf0e10cSrcweir SETCONST( pKey, "KEY_MULTIPLY", com::sun::star::awt::Key::MULTIPLY ); 428*cdf0e10cSrcweir SETCONST( pKey, "KEY_DIVIDE", com::sun::star::awt::Key::DIVIDE ); 429*cdf0e10cSrcweir SETCONST( pKey, "KEY_POINT", com::sun::star::awt::Key::POINT ); 430*cdf0e10cSrcweir SETCONST( pKey, "KEY_COMMA", com::sun::star::awt::Key::COMMA ); 431*cdf0e10cSrcweir SETCONST( pKey, "KEY_LESS", com::sun::star::awt::Key::LESS ); 432*cdf0e10cSrcweir SETCONST( pKey, "KEY_GREATER", com::sun::star::awt::Key::GREATER ); 433*cdf0e10cSrcweir SETCONST( pKey, "KEY_EQUAL", com::sun::star::awt::Key::EQUAL ); 434*cdf0e10cSrcweir 435*cdf0e10cSrcweir SETCONST( pKey, "KEY_OPEN", com::sun::star::awt::Key::OPEN ); 436*cdf0e10cSrcweir SETCONST( pKey, "KEY_CUT", com::sun::star::awt::Key::CUT ); 437*cdf0e10cSrcweir SETCONST( pKey, "KEY_COPY", com::sun::star::awt::Key::COPY ); 438*cdf0e10cSrcweir SETCONST( pKey, "KEY_PASTE", com::sun::star::awt::Key::PASTE ); 439*cdf0e10cSrcweir SETCONST( pKey, "KEY_UNDO", com::sun::star::awt::Key::UNDO ); 440*cdf0e10cSrcweir SETCONST( pKey, "KEY_REPEAT", com::sun::star::awt::Key::REPEAT ); 441*cdf0e10cSrcweir SETCONST( pKey, "KEY_FIND", com::sun::star::awt::Key::FIND ); 442*cdf0e10cSrcweir SETCONST( pKey, "KEY_PROPERTIES", com::sun::star::awt::Key::PROPERTIES ); 443*cdf0e10cSrcweir SETCONST( pKey, "KEY_FRONT", com::sun::star::awt::Key::FRONT ); 444*cdf0e10cSrcweir SETCONST( pKey, "KEY_CONTEXTMENU", com::sun::star::awt::Key::CONTEXTMENU ); 445*cdf0e10cSrcweir SETCONST( pKey, "KEY_HELP", com::sun::star::awt::Key::HELP ); 446*cdf0e10cSrcweir SETCONST( pKey, "KEY_HANGUL_HANJA", com::sun::star::awt::Key::HANGUL_HANJA ); 447*cdf0e10cSrcweir SETCONST( pKey, "KEY_DECIMAL", com::sun::star::awt::Key::DECIMAL ); 448*cdf0e10cSrcweir SETCONST( pKey, "KEY_TILDE", com::sun::star::awt::Key::TILDE ); 449*cdf0e10cSrcweir SETCONST( pKey, "KEY_QUOTELEFT", com::sun::star::awt::Key::QUOTELEFT ); 450*cdf0e10cSrcweir 451*cdf0e10cSrcweir return( pKey ); 452*cdf0e10cSrcweir } 453*cdf0e10cSrcweir 454*cdf0e10cSrcweir /************************************************************************* 455*cdf0e10cSrcweir |* 456*cdf0e10cSrcweir |* RscTypCont::InitTriState() 457*cdf0e10cSrcweir |* 458*cdf0e10cSrcweir |* Beschreibung 459*cdf0e10cSrcweir |* Ersterstellung MM 26.11.91 460*cdf0e10cSrcweir |* Letzte Aenderung MM 26.11.91 461*cdf0e10cSrcweir |* 462*cdf0e10cSrcweir *************************************************************************/ 463*cdf0e10cSrcweir RscEnum * RscTypCont::InitTriState(){ 464*cdf0e10cSrcweir RscEnum * pTriState; 465*cdf0e10cSrcweir pTriState = new RscEnum( pHS->getID( "EnumTriState" ), RSC_NOTYPE ); 466*cdf0e10cSrcweir 467*cdf0e10cSrcweir SETCONST( pTriState, "STATE_NOCHECK", STATE_NOCHECK ); 468*cdf0e10cSrcweir SETCONST( pTriState, "STATE_CHECK", STATE_CHECK ); 469*cdf0e10cSrcweir SETCONST( pTriState, "STATE_DONTKNOW", STATE_DONTKNOW ); 470*cdf0e10cSrcweir 471*cdf0e10cSrcweir return( pTriState ); 472*cdf0e10cSrcweir } 473*cdf0e10cSrcweir 474*cdf0e10cSrcweir /************************************************************************* 475*cdf0e10cSrcweir |* 476*cdf0e10cSrcweir |* RscTypCont::InitMessButtons() 477*cdf0e10cSrcweir |* 478*cdf0e10cSrcweir |* Beschreibung 479*cdf0e10cSrcweir |* Ersterstellung MM 24.05.91 480*cdf0e10cSrcweir |* Letzte Aenderung MM 24.05.91 481*cdf0e10cSrcweir |* 482*cdf0e10cSrcweir *************************************************************************/ 483*cdf0e10cSrcweir RscEnum * RscTypCont::InitMessButtons() 484*cdf0e10cSrcweir { 485*cdf0e10cSrcweir RscEnum * pMessButtons; 486*cdf0e10cSrcweir pMessButtons = new RscEnum( pHS->getID( "EnumMessButtons" ), RSC_NOTYPE ); 487*cdf0e10cSrcweir SETCONST( pMessButtons, "WB_OK", sal::static_int_cast<sal_uInt32>(WB_OK) ); 488*cdf0e10cSrcweir SETCONST( pMessButtons, "WB_OK_CANCEL", sal::static_int_cast<sal_uInt32>(WB_OK_CANCEL) ); 489*cdf0e10cSrcweir SETCONST( pMessButtons, "WB_YES_NO", sal::static_int_cast<sal_uInt32>(WB_YES_NO) ); 490*cdf0e10cSrcweir SETCONST( pMessButtons, "WB_YES_NO_CANCEL", sal::static_int_cast<sal_uInt32>(WB_YES_NO_CANCEL) ); 491*cdf0e10cSrcweir SETCONST( pMessButtons, "WB_RETRY_CANCEL", sal::static_int_cast<sal_uInt32>(WB_RETRY_CANCEL) ); 492*cdf0e10cSrcweir SETCONST( pMessButtons, "WB_ABORT_RETRY_IGNORE", sal::static_int_cast<sal_uInt32>(WB_ABORT_RETRY_IGNORE) ); 493*cdf0e10cSrcweir return( pMessButtons ); 494*cdf0e10cSrcweir } 495*cdf0e10cSrcweir 496*cdf0e10cSrcweir /************************************************************************* 497*cdf0e10cSrcweir |* 498*cdf0e10cSrcweir |* RscTypCont::InitMessDefButton() 499*cdf0e10cSrcweir |* 500*cdf0e10cSrcweir |* Beschreibung 501*cdf0e10cSrcweir |* Ersterstellung MM 24.05.91 502*cdf0e10cSrcweir |* Letzte Aenderung MM 24.05.91 503*cdf0e10cSrcweir |* 504*cdf0e10cSrcweir *************************************************************************/ 505*cdf0e10cSrcweir RscEnum * RscTypCont::InitMessDefButton(){ 506*cdf0e10cSrcweir RscEnum * pMessDefButton; 507*cdf0e10cSrcweir pMessDefButton = new RscEnum( pHS->getID( "EnumMessDefButton" ), 508*cdf0e10cSrcweir RSC_NOTYPE ); 509*cdf0e10cSrcweir 510*cdf0e10cSrcweir SETCONST( pMessDefButton, "WB_DEF_OK", sal::static_int_cast<sal_uInt32>(WB_DEF_OK) ); 511*cdf0e10cSrcweir SETCONST( pMessDefButton, "WB_DEF_CANCEL", sal::static_int_cast<sal_uInt32>(WB_DEF_CANCEL) ); 512*cdf0e10cSrcweir SETCONST( pMessDefButton, "WB_DEF_RETRY", sal::static_int_cast<sal_uInt32>(WB_DEF_RETRY) ); 513*cdf0e10cSrcweir SETCONST( pMessDefButton, "WB_DEF_YES", sal::static_int_cast<sal_uInt32>(WB_DEF_YES) ); 514*cdf0e10cSrcweir SETCONST( pMessDefButton, "WB_DEF_NO", sal::static_int_cast<sal_uInt32>(WB_DEF_NO) ); 515*cdf0e10cSrcweir SETCONST( pMessDefButton, "WB_DEF_IGNORE", sal::static_int_cast<sal_uInt32>(WB_DEF_IGNORE) ); 516*cdf0e10cSrcweir return( pMessDefButton ); 517*cdf0e10cSrcweir } 518*cdf0e10cSrcweir 519*cdf0e10cSrcweir /************************************************************************* 520*cdf0e10cSrcweir |* 521*cdf0e10cSrcweir |* RscTypCont::InitGeometry() 522*cdf0e10cSrcweir |* 523*cdf0e10cSrcweir |* Beschreibung 524*cdf0e10cSrcweir |* Ersterstellung MM 24.05.91 525*cdf0e10cSrcweir |* Letzte Aenderung MM 24.05.91 526*cdf0e10cSrcweir |* 527*cdf0e10cSrcweir *************************************************************************/ 528*cdf0e10cSrcweir RscTupel * RscTypCont::InitGeometry() 529*cdf0e10cSrcweir { 530*cdf0e10cSrcweir RscTop * pTupel; 531*cdf0e10cSrcweir Atom nId; 532*cdf0e10cSrcweir 533*cdf0e10cSrcweir // Clientvariablen einfuegen 534*cdf0e10cSrcweir pTupel = new RscTupel( pHS->getID( "TupelDeltaSystem" ), 535*cdf0e10cSrcweir RSC_NOTYPE, NULL ); 536*cdf0e10cSrcweir nId = aNmTb.Put( "X", VARNAME ); 537*cdf0e10cSrcweir pTupel->SetVariable( nId, &aShort ); 538*cdf0e10cSrcweir nId = aNmTb.Put( "Y", VARNAME ); 539*cdf0e10cSrcweir pTupel->SetVariable( nId, &aShort ); 540*cdf0e10cSrcweir nId = aNmTb.Put( "WIDTH", VARNAME ); 541*cdf0e10cSrcweir pTupel->SetVariable( nId, &aShort ); 542*cdf0e10cSrcweir nId = aNmTb.Put( "HEIGHT", VARNAME ); 543*cdf0e10cSrcweir pTupel->SetVariable( nId, &aShort ); 544*cdf0e10cSrcweir 545*cdf0e10cSrcweir return (RscTupel *)pTupel; 546*cdf0e10cSrcweir } 547*cdf0e10cSrcweir 548*cdf0e10cSrcweir /************************************************************************* 549*cdf0e10cSrcweir |* 550*cdf0e10cSrcweir |* RscTypCont::InitLangGeometry() 551*cdf0e10cSrcweir |* 552*cdf0e10cSrcweir |* Beschreibung 553*cdf0e10cSrcweir |* Ersterstellung MM 24.05.91 554*cdf0e10cSrcweir |* Letzte Aenderung MM 24.05.91 555*cdf0e10cSrcweir |* 556*cdf0e10cSrcweir *************************************************************************/ 557*cdf0e10cSrcweir RscArray * RscTypCont::InitLangGeometry( RscTupel * pGeo ) 558*cdf0e10cSrcweir { 559*cdf0e10cSrcweir return new RscArray( pHS->getID( "Lang_TupelGeometry" ), RSC_NOTYPE, pGeo, &aLangType ); 560*cdf0e10cSrcweir } 561*cdf0e10cSrcweir 562*cdf0e10cSrcweir /************************************************************************* 563*cdf0e10cSrcweir |* 564*cdf0e10cSrcweir |* RscTypCont::InitStringList() 565*cdf0e10cSrcweir |* 566*cdf0e10cSrcweir |* Beschreibung 567*cdf0e10cSrcweir |* Ersterstellung MM 24.05.91 568*cdf0e10cSrcweir |* Letzte Aenderung MM 24.05.91 569*cdf0e10cSrcweir |* 570*cdf0e10cSrcweir *************************************************************************/ 571*cdf0e10cSrcweir RscCont * RscTypCont::InitStringList() 572*cdf0e10cSrcweir { 573*cdf0e10cSrcweir RscCont * pCont; 574*cdf0e10cSrcweir 575*cdf0e10cSrcweir pCont = new RscCont( pHS->getID( "Chars[]" ), RSC_NOTYPE ); 576*cdf0e10cSrcweir pCont->SetTypeClass( &aString ); 577*cdf0e10cSrcweir 578*cdf0e10cSrcweir return pCont; 579*cdf0e10cSrcweir } 580*cdf0e10cSrcweir 581*cdf0e10cSrcweir /************************************************************************* 582*cdf0e10cSrcweir |* 583*cdf0e10cSrcweir |* RscTypCont::InitLangStringList() 584*cdf0e10cSrcweir |* 585*cdf0e10cSrcweir |* Beschreibung 586*cdf0e10cSrcweir |* Ersterstellung MM 24.05.91 587*cdf0e10cSrcweir |* Letzte Aenderung MM 24.05.91 588*cdf0e10cSrcweir |* 589*cdf0e10cSrcweir *************************************************************************/ 590*cdf0e10cSrcweir RscArray * RscTypCont::InitLangStringList( RscCont * pStrLst ) 591*cdf0e10cSrcweir { 592*cdf0e10cSrcweir return new RscArray( pHS->getID( "Lang_CharsList" ), 593*cdf0e10cSrcweir RSC_NOTYPE, pStrLst, &aLangType ); 594*cdf0e10cSrcweir } 595*cdf0e10cSrcweir 596*cdf0e10cSrcweir /************************************************************************* 597*cdf0e10cSrcweir |* 598*cdf0e10cSrcweir |* RscTypCont::InitStringTupel() 599*cdf0e10cSrcweir |* 600*cdf0e10cSrcweir |* Beschreibung 601*cdf0e10cSrcweir |* Ersterstellung MM 24.05.91 602*cdf0e10cSrcweir |* Letzte Aenderung MM 24.05.91 603*cdf0e10cSrcweir |* 604*cdf0e10cSrcweir *************************************************************************/ 605*cdf0e10cSrcweir RscTupel * RscTypCont::InitStringTupel() 606*cdf0e10cSrcweir { 607*cdf0e10cSrcweir RscTop * pTupel; 608*cdf0e10cSrcweir Atom nId; 609*cdf0e10cSrcweir 610*cdf0e10cSrcweir // Clientvariablen einfuegen 611*cdf0e10cSrcweir pTupel = new RscTupel( pHS->getID( "CharsTupel" ), RSC_NOTYPE, NULL ); 612*cdf0e10cSrcweir nId = aNmTb.Put( "FILTER", VARNAME ); 613*cdf0e10cSrcweir pTupel->SetVariable( nId, &aString ); 614*cdf0e10cSrcweir nId = aNmTb.Put( "MASK", VARNAME ); 615*cdf0e10cSrcweir pTupel->SetVariable( nId, &aString ); 616*cdf0e10cSrcweir 617*cdf0e10cSrcweir return (RscTupel *)pTupel; 618*cdf0e10cSrcweir } 619*cdf0e10cSrcweir 620*cdf0e10cSrcweir /************************************************************************* 621*cdf0e10cSrcweir |* 622*cdf0e10cSrcweir |* RscTypCont::InitStringLongTupel() 623*cdf0e10cSrcweir |* 624*cdf0e10cSrcweir |* Beschreibung 625*cdf0e10cSrcweir |* Ersterstellung MM 18.07.94 626*cdf0e10cSrcweir |* Letzte Aenderung MM 18.07.94 627*cdf0e10cSrcweir |* 628*cdf0e10cSrcweir *************************************************************************/ 629*cdf0e10cSrcweir RscTupel * RscTypCont::InitStringLongTupel() 630*cdf0e10cSrcweir { 631*cdf0e10cSrcweir RscTop * pTupel; 632*cdf0e10cSrcweir Atom nId; 633*cdf0e10cSrcweir 634*cdf0e10cSrcweir // Clientvariablen einfuegen 635*cdf0e10cSrcweir pTupel = new RscTupel( pHS->getID( "CharsLongTupel" ), RSC_NOTYPE, NULL ); 636*cdf0e10cSrcweir nId = aNmTb.Put( "ItemText", VARNAME ); 637*cdf0e10cSrcweir pTupel->SetVariable( nId, &aString ); 638*cdf0e10cSrcweir nId = aNmTb.Put( "ItemId", VARNAME ); 639*cdf0e10cSrcweir pTupel->SetVariable( nId, &aEnumLong ); 640*cdf0e10cSrcweir 641*cdf0e10cSrcweir return (RscTupel *)pTupel; 642*cdf0e10cSrcweir } 643*cdf0e10cSrcweir 644*cdf0e10cSrcweir /************************************************************************* 645*cdf0e10cSrcweir |* 646*cdf0e10cSrcweir |* RscTypCont::InitStringTupelList() 647*cdf0e10cSrcweir |* 648*cdf0e10cSrcweir |* Beschreibung 649*cdf0e10cSrcweir |* Ersterstellung MM 24.05.91 650*cdf0e10cSrcweir |* Letzte Aenderung MM 24.05.91 651*cdf0e10cSrcweir |* 652*cdf0e10cSrcweir *************************************************************************/ 653*cdf0e10cSrcweir RscCont * RscTypCont::InitStringTupelList( RscTupel * pTupelString ) 654*cdf0e10cSrcweir { 655*cdf0e10cSrcweir RscCont * pCont; 656*cdf0e10cSrcweir 657*cdf0e10cSrcweir pCont = new RscCont( pHS->getID( "CharsCharsTupel[]" ), RSC_NOTYPE ); 658*cdf0e10cSrcweir pCont->SetTypeClass( pTupelString ); 659*cdf0e10cSrcweir 660*cdf0e10cSrcweir return pCont; 661*cdf0e10cSrcweir } 662*cdf0e10cSrcweir 663*cdf0e10cSrcweir /************************************************************************* 664*cdf0e10cSrcweir |* 665*cdf0e10cSrcweir |* RscTypCont::InitStringLongTupelList() 666*cdf0e10cSrcweir |* 667*cdf0e10cSrcweir |* Beschreibung 668*cdf0e10cSrcweir |* Ersterstellung MM 24.05.91 669*cdf0e10cSrcweir |* Letzte Aenderung MM 24.05.91 670*cdf0e10cSrcweir |* 671*cdf0e10cSrcweir *************************************************************************/ 672*cdf0e10cSrcweir RscCont * RscTypCont::InitStringLongTupelList( RscTupel * pStringLong ) 673*cdf0e10cSrcweir { 674*cdf0e10cSrcweir RscCont * pCont; 675*cdf0e10cSrcweir 676*cdf0e10cSrcweir pCont = new RscCont( pHS->getID( "CharsLongTupel[]" ), RSC_NOTYPE ); 677*cdf0e10cSrcweir pCont->SetTypeClass( pStringLong ); 678*cdf0e10cSrcweir 679*cdf0e10cSrcweir return pCont; 680*cdf0e10cSrcweir } 681*cdf0e10cSrcweir 682*cdf0e10cSrcweir /************************************************************************* 683*cdf0e10cSrcweir |* 684*cdf0e10cSrcweir |* RscTypCont::InitLangStringTupelList() 685*cdf0e10cSrcweir |* 686*cdf0e10cSrcweir |* Beschreibung 687*cdf0e10cSrcweir |* Ersterstellung MM 24.05.91 688*cdf0e10cSrcweir |* Letzte Aenderung MM 24.05.91 689*cdf0e10cSrcweir |* 690*cdf0e10cSrcweir *************************************************************************/ 691*cdf0e10cSrcweir RscArray * RscTypCont::InitLangStringTupelList( RscCont * pStrTupelLst ) 692*cdf0e10cSrcweir { 693*cdf0e10cSrcweir return new RscArray( pHS->getID( "Lang_CharsCharsTupel" ), 694*cdf0e10cSrcweir RSC_NOTYPE, pStrTupelLst, &aLangType ); 695*cdf0e10cSrcweir } 696*cdf0e10cSrcweir 697*cdf0e10cSrcweir /************************************************************************* 698*cdf0e10cSrcweir |* 699*cdf0e10cSrcweir |* RscTypCont::InitLangStringLongTupelList() 700*cdf0e10cSrcweir |* 701*cdf0e10cSrcweir |* Beschreibung 702*cdf0e10cSrcweir |* Ersterstellung MM 24.05.91 703*cdf0e10cSrcweir |* Letzte Aenderung MM 24.05.91 704*cdf0e10cSrcweir |* 705*cdf0e10cSrcweir *************************************************************************/ 706*cdf0e10cSrcweir RscArray * RscTypCont::InitLangStringLongTupelList( RscCont * pStrLongTupelLst ) 707*cdf0e10cSrcweir { 708*cdf0e10cSrcweir return new RscArray( pHS->getID( "Lang_CharsLongTupelList" ), 709*cdf0e10cSrcweir RSC_NOTYPE, pStrLongTupelLst, &aLangType ); 710*cdf0e10cSrcweir } 711*cdf0e10cSrcweir 712