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