xref: /aoo42x/main/rsc/source/res/rsctop.cxx (revision cdf0e10c)
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 /****************** I N C L U D E S **************************************/
31*cdf0e10cSrcweir 
32*cdf0e10cSrcweir // C and C++ Includes.
33*cdf0e10cSrcweir #include <stdio.h>
34*cdf0e10cSrcweir #include <string.h>
35*cdf0e10cSrcweir 
36*cdf0e10cSrcweir // Solar Definitionen
37*cdf0e10cSrcweir #include <tools/solar.h>
38*cdf0e10cSrcweir #include <rsctop.hxx>
39*cdf0e10cSrcweir /****************** C O D E **********************************************/
40*cdf0e10cSrcweir /****************** R s c T o p ******************************************/
41*cdf0e10cSrcweir /*************************************************************************
42*cdf0e10cSrcweir |*
43*cdf0e10cSrcweir |*	  RscTop::RscTop()
44*cdf0e10cSrcweir |*
45*cdf0e10cSrcweir |*	  Beschreibung
46*cdf0e10cSrcweir |*	  Ersterstellung	MM 03.06.91
47*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 03.06.91
48*cdf0e10cSrcweir |*
49*cdf0e10cSrcweir *************************************************************************/
50*cdf0e10cSrcweir RscTop::RscTop( Atom nId, sal_uInt32 nTypIdent, RscTop * pSuperCl )
51*cdf0e10cSrcweir 	: RefNode( nId )
52*cdf0e10cSrcweir 	, pSuperClass( pSuperCl )
53*cdf0e10cSrcweir 	, nTypId( nTypIdent )
54*cdf0e10cSrcweir {
55*cdf0e10cSrcweir 	pRefClass = this;
56*cdf0e10cSrcweir 	if( pSuperClass )
57*cdf0e10cSrcweir 		SetCallPar( pSuperClass->aCallPar1, pSuperClass->aCallPar2,
58*cdf0e10cSrcweir 					pSuperClass->aCallParType );
59*cdf0e10cSrcweir }
60*cdf0e10cSrcweir 
61*cdf0e10cSrcweir /*************************************************************************
62*cdf0e10cSrcweir |*
63*cdf0e10cSrcweir |*	  RscTop::SetCallPar()
64*cdf0e10cSrcweir |*
65*cdf0e10cSrcweir |*	  Beschreibung
66*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
67*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
68*cdf0e10cSrcweir |*
69*cdf0e10cSrcweir *************************************************************************/
70*cdf0e10cSrcweir void RscTop::SetCallPar( const ByteString & rPar1, const ByteString & rPar2,
71*cdf0e10cSrcweir 						 const ByteString & rParType )
72*cdf0e10cSrcweir {
73*cdf0e10cSrcweir 	aCallPar1 = rPar1;
74*cdf0e10cSrcweir 	aCallPar2 = rPar2;
75*cdf0e10cSrcweir 	aCallParType = rParType;
76*cdf0e10cSrcweir }
77*cdf0e10cSrcweir 
78*cdf0e10cSrcweir /*************************************************************************
79*cdf0e10cSrcweir |*
80*cdf0e10cSrcweir |*	  RscTop::GetDefault()
81*cdf0e10cSrcweir |*
82*cdf0e10cSrcweir |*	  Beschreibung
83*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
84*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
85*cdf0e10cSrcweir |*
86*cdf0e10cSrcweir *************************************************************************/
87*cdf0e10cSrcweir RSCINST RscTop::GetDefault()
88*cdf0e10cSrcweir {
89*cdf0e10cSrcweir 	if( !aDfltInst.IsInst() )
90*cdf0e10cSrcweir 		aDfltInst = this->Create( NULL, RSCINST() );
91*cdf0e10cSrcweir 	return aDfltInst;
92*cdf0e10cSrcweir }
93*cdf0e10cSrcweir 
94*cdf0e10cSrcweir /*************************************************************************
95*cdf0e10cSrcweir |*
96*cdf0e10cSrcweir |*	  RscTop::Pre_dtor()
97*cdf0e10cSrcweir |*
98*cdf0e10cSrcweir |*	  Beschreibung
99*cdf0e10cSrcweir |*	  Ersterstellung	MM 19.06.91
100*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 19.06.91
101*cdf0e10cSrcweir |*
102*cdf0e10cSrcweir *************************************************************************/
103*cdf0e10cSrcweir void RscTop :: Pre_dtor(){
104*cdf0e10cSrcweir 	if( aDfltInst.IsInst() ){
105*cdf0e10cSrcweir 		aDfltInst.pClass->Destroy( aDfltInst );
106*cdf0e10cSrcweir 		rtl_freeMemory( aDfltInst.pData );
107*cdf0e10cSrcweir 		aDfltInst = RSCINST();
108*cdf0e10cSrcweir 	};
109*cdf0e10cSrcweir }
110*cdf0e10cSrcweir 
111*cdf0e10cSrcweir /*************************************************************************
112*cdf0e10cSrcweir |*
113*cdf0e10cSrcweir |*	  RscTop::GetConstant()
114*cdf0e10cSrcweir |*
115*cdf0e10cSrcweir |*	  Beschreibung
116*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
117*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
118*cdf0e10cSrcweir |*
119*cdf0e10cSrcweir *************************************************************************/
120*cdf0e10cSrcweir Atom	RscTop :: GetConstant( sal_uInt32 ){
121*cdf0e10cSrcweir 	return InvalidAtom;
122*cdf0e10cSrcweir }
123*cdf0e10cSrcweir 
124*cdf0e10cSrcweir /*************************************************************************
125*cdf0e10cSrcweir |*
126*cdf0e10cSrcweir |*	  RscTop::GetIndexType()
127*cdf0e10cSrcweir |*
128*cdf0e10cSrcweir |*	  Beschreibung
129*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
130*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
131*cdf0e10cSrcweir |*
132*cdf0e10cSrcweir *************************************************************************/
133*cdf0e10cSrcweir RscTop * RscTop::GetTypeClass() const
134*cdf0e10cSrcweir {
135*cdf0e10cSrcweir 	if( pSuperClass )
136*cdf0e10cSrcweir 		return pSuperClass->GetTypeClass();
137*cdf0e10cSrcweir 	else
138*cdf0e10cSrcweir 		return NULL;
139*cdf0e10cSrcweir }
140*cdf0e10cSrcweir 
141*cdf0e10cSrcweir /*************************************************************************
142*cdf0e10cSrcweir |*
143*cdf0e10cSrcweir |*	  RscTop::Size()
144*cdf0e10cSrcweir |*
145*cdf0e10cSrcweir |*	  Beschreibung
146*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
147*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
148*cdf0e10cSrcweir |*
149*cdf0e10cSrcweir *************************************************************************/
150*cdf0e10cSrcweir sal_uInt32 RscTop :: Size()
151*cdf0e10cSrcweir {
152*cdf0e10cSrcweir 	if( pSuperClass )
153*cdf0e10cSrcweir 		return pSuperClass->Size();
154*cdf0e10cSrcweir 	else
155*cdf0e10cSrcweir 		return 0;
156*cdf0e10cSrcweir }
157*cdf0e10cSrcweir 
158*cdf0e10cSrcweir /*************************************************************************
159*cdf0e10cSrcweir |*
160*cdf0e10cSrcweir |*	  RscTop::GetRef()
161*cdf0e10cSrcweir |*
162*cdf0e10cSrcweir |*	  Beschreibung
163*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
164*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
165*cdf0e10cSrcweir |*
166*cdf0e10cSrcweir *************************************************************************/
167*cdf0e10cSrcweir ERRTYPE RscTop :: GetRef( const RSCINST & rInst, RscId * pRscId ){
168*cdf0e10cSrcweir 	if( pSuperClass )
169*cdf0e10cSrcweir 		return pSuperClass->GetRef( rInst, pRscId );
170*cdf0e10cSrcweir 	else
171*cdf0e10cSrcweir 		return ERR_UNKNOWN_METHOD;
172*cdf0e10cSrcweir }
173*cdf0e10cSrcweir 
174*cdf0e10cSrcweir /*************************************************************************
175*cdf0e10cSrcweir |*
176*cdf0e10cSrcweir |*	  RscTop::InHierarchy()
177*cdf0e10cSrcweir |*
178*cdf0e10cSrcweir |*	  Beschreibung
179*cdf0e10cSrcweir |*	  Ersterstellung	MM 17.05.91
180*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 17.05.91
181*cdf0e10cSrcweir |*
182*cdf0e10cSrcweir *************************************************************************/
183*cdf0e10cSrcweir sal_Bool RscTop::InHierarchy( RscTop * pClass ){
184*cdf0e10cSrcweir 	if( this == pClass )
185*cdf0e10cSrcweir 		return( sal_True );
186*cdf0e10cSrcweir 	if( pSuperClass )
187*cdf0e10cSrcweir 		return( pSuperClass->InHierarchy( pClass ) );
188*cdf0e10cSrcweir 	return( sal_False );
189*cdf0e10cSrcweir }
190*cdf0e10cSrcweir 
191*cdf0e10cSrcweir /*************************************************************************
192*cdf0e10cSrcweir |*
193*cdf0e10cSrcweir |*	  RscTop::SetVariable()
194*cdf0e10cSrcweir |*
195*cdf0e10cSrcweir |*	  Beschreibung
196*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
197*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
198*cdf0e10cSrcweir |*
199*cdf0e10cSrcweir *************************************************************************/
200*cdf0e10cSrcweir ERRTYPE RscTop::SetVariable( Atom nVarName, RscTop * pClass,
201*cdf0e10cSrcweir 					 RSCINST * pDflt, RSCVAR nVarType, sal_uInt32 nMask,
202*cdf0e10cSrcweir 					 Atom nDataBaseName )
203*cdf0e10cSrcweir {
204*cdf0e10cSrcweir 	if( pSuperClass )
205*cdf0e10cSrcweir 		return pSuperClass->
206*cdf0e10cSrcweir 			   SetVariable( nVarName, pClass, pDflt,
207*cdf0e10cSrcweir 					nVarType, nMask, nDataBaseName );
208*cdf0e10cSrcweir 	else
209*cdf0e10cSrcweir 		return ERR_UNKNOWN_METHOD;
210*cdf0e10cSrcweir }
211*cdf0e10cSrcweir 
212*cdf0e10cSrcweir /*************************************************************************
213*cdf0e10cSrcweir |*
214*cdf0e10cSrcweir |*	  RscTop::EnumVariable()
215*cdf0e10cSrcweir |*
216*cdf0e10cSrcweir |*	  Beschreibung
217*cdf0e10cSrcweir |*	  Ersterstellung	MM 03.02.93
218*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 03.02.93
219*cdf0e10cSrcweir |*
220*cdf0e10cSrcweir *************************************************************************/
221*cdf0e10cSrcweir void RscTop::EnumVariables( void * pData, VarEnumCallbackProc pProc )
222*cdf0e10cSrcweir {
223*cdf0e10cSrcweir 	if( pSuperClass )
224*cdf0e10cSrcweir 		pSuperClass->EnumVariables( pData, pProc );
225*cdf0e10cSrcweir }
226*cdf0e10cSrcweir 
227*cdf0e10cSrcweir /*************************************************************************
228*cdf0e10cSrcweir |*
229*cdf0e10cSrcweir |*	  RscTop::GetVariable()
230*cdf0e10cSrcweir |*
231*cdf0e10cSrcweir |*	  Beschreibung
232*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
233*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
234*cdf0e10cSrcweir |*
235*cdf0e10cSrcweir *************************************************************************/
236*cdf0e10cSrcweir RSCINST RscTop::GetVariable
237*cdf0e10cSrcweir (
238*cdf0e10cSrcweir 	const RSCINST & rInst,
239*cdf0e10cSrcweir 	Atom nVarName,
240*cdf0e10cSrcweir 	const RSCINST & rInitInst,
241*cdf0e10cSrcweir 	sal_Bool bInitDflt,
242*cdf0e10cSrcweir 	RscTop * pCreateClass
243*cdf0e10cSrcweir )
244*cdf0e10cSrcweir {
245*cdf0e10cSrcweir 	if( pSuperClass )
246*cdf0e10cSrcweir 		return pSuperClass->
247*cdf0e10cSrcweir 			GetVariable( rInst, nVarName, rInitInst, bInitDflt, pCreateClass );
248*cdf0e10cSrcweir 	else
249*cdf0e10cSrcweir 		return RSCINST();
250*cdf0e10cSrcweir }
251*cdf0e10cSrcweir 
252*cdf0e10cSrcweir /*************************************************************************
253*cdf0e10cSrcweir |*
254*cdf0e10cSrcweir |*	  RscTop::GetCopyVar()
255*cdf0e10cSrcweir |*
256*cdf0e10cSrcweir |*	  Beschreibung
257*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
258*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
259*cdf0e10cSrcweir |*
260*cdf0e10cSrcweir *************************************************************************/
261*cdf0e10cSrcweir RSCINST RscTop::GetCopyVar( const RSCINST & rInst, Atom nVarName )
262*cdf0e10cSrcweir {
263*cdf0e10cSrcweir 	if( pSuperClass )
264*cdf0e10cSrcweir 		return pSuperClass->
265*cdf0e10cSrcweir 			GetCopyVar( rInst, nVarName );
266*cdf0e10cSrcweir 	else
267*cdf0e10cSrcweir 		return RSCINST();
268*cdf0e10cSrcweir }
269*cdf0e10cSrcweir 
270*cdf0e10cSrcweir /*************************************************************************
271*cdf0e10cSrcweir |*
272*cdf0e10cSrcweir |*	  RscTop::GetTupelVar()
273*cdf0e10cSrcweir |*
274*cdf0e10cSrcweir |*	  Beschreibung
275*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
276*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
277*cdf0e10cSrcweir |*
278*cdf0e10cSrcweir *************************************************************************/
279*cdf0e10cSrcweir RSCINST RscTop::GetTupelVar( const RSCINST & rInst, sal_uInt32 nPos,
280*cdf0e10cSrcweir 							const RSCINST & rInitInst )
281*cdf0e10cSrcweir {
282*cdf0e10cSrcweir 	if( pSuperClass )
283*cdf0e10cSrcweir 		return pSuperClass->GetTupelVar( rInst, nPos, rInitInst );
284*cdf0e10cSrcweir 	else
285*cdf0e10cSrcweir 		return RSCINST();
286*cdf0e10cSrcweir }
287*cdf0e10cSrcweir 
288*cdf0e10cSrcweir /*************************************************************************
289*cdf0e10cSrcweir |*
290*cdf0e10cSrcweir |*	  RscTop::GetElement()
291*cdf0e10cSrcweir |*
292*cdf0e10cSrcweir |*	  Beschreibung
293*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
294*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
295*cdf0e10cSrcweir |*
296*cdf0e10cSrcweir *************************************************************************/
297*cdf0e10cSrcweir ERRTYPE RscTop::GetElement( const RSCINST & rInst, const RscId & rEleName,
298*cdf0e10cSrcweir 					RscTop *pCreateClass, const RSCINST & rCreateInst,
299*cdf0e10cSrcweir 					RSCINST * pGetInst )
300*cdf0e10cSrcweir {
301*cdf0e10cSrcweir 	if( pSuperClass )
302*cdf0e10cSrcweir 		return pSuperClass->
303*cdf0e10cSrcweir 			GetElement( rInst, rEleName,
304*cdf0e10cSrcweir 						pCreateClass, rCreateInst,
305*cdf0e10cSrcweir 						pGetInst );
306*cdf0e10cSrcweir 	else
307*cdf0e10cSrcweir 		return ERR_UNKNOWN_METHOD;
308*cdf0e10cSrcweir }
309*cdf0e10cSrcweir 
310*cdf0e10cSrcweir /*************************************************************************
311*cdf0e10cSrcweir |*
312*cdf0e10cSrcweir |*	  RscTop::GetArrayEle()
313*cdf0e10cSrcweir |*
314*cdf0e10cSrcweir |*	  Beschreibung
315*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
316*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
317*cdf0e10cSrcweir |*
318*cdf0e10cSrcweir *************************************************************************/
319*cdf0e10cSrcweir ERRTYPE RscTop::GetArrayEle
320*cdf0e10cSrcweir (
321*cdf0e10cSrcweir 	const RSCINST & rInst,
322*cdf0e10cSrcweir 	Atom nId,
323*cdf0e10cSrcweir 	RscTop * pCreateClass,
324*cdf0e10cSrcweir 	RSCINST * pGetInst
325*cdf0e10cSrcweir )
326*cdf0e10cSrcweir {
327*cdf0e10cSrcweir 	if( pSuperClass )
328*cdf0e10cSrcweir 		return pSuperClass->GetArrayEle( rInst, nId, pCreateClass, pGetInst );
329*cdf0e10cSrcweir 	else
330*cdf0e10cSrcweir 		return ERR_UNKNOWN_METHOD;
331*cdf0e10cSrcweir }
332*cdf0e10cSrcweir 
333*cdf0e10cSrcweir /*************************************************************************
334*cdf0e10cSrcweir |*
335*cdf0e10cSrcweir |*	  RscTop::GetValueEle()
336*cdf0e10cSrcweir |*
337*cdf0e10cSrcweir |*	  Beschreibung
338*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
339*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
340*cdf0e10cSrcweir |*
341*cdf0e10cSrcweir *************************************************************************/
342*cdf0e10cSrcweir ERRTYPE RscTop::GetValueEle
343*cdf0e10cSrcweir (
344*cdf0e10cSrcweir 	const RSCINST & rInst,
345*cdf0e10cSrcweir 	sal_Int32 lValue,
346*cdf0e10cSrcweir 	RscTop * pCreateClass,
347*cdf0e10cSrcweir 	RSCINST * pGetInst
348*cdf0e10cSrcweir )
349*cdf0e10cSrcweir {
350*cdf0e10cSrcweir 	if( pSuperClass )
351*cdf0e10cSrcweir 		return pSuperClass->GetValueEle( rInst, lValue, pCreateClass, pGetInst );
352*cdf0e10cSrcweir 	else
353*cdf0e10cSrcweir 		return ERR_UNKNOWN_METHOD;
354*cdf0e10cSrcweir }
355*cdf0e10cSrcweir 
356*cdf0e10cSrcweir /*************************************************************************
357*cdf0e10cSrcweir |*
358*cdf0e10cSrcweir |*	  RscTop::SearchEle()
359*cdf0e10cSrcweir |*
360*cdf0e10cSrcweir |*	  Beschreibung
361*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
362*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
363*cdf0e10cSrcweir |*
364*cdf0e10cSrcweir *************************************************************************/
365*cdf0e10cSrcweir RSCINST RscTop::SearchEle( const RSCINST & rInst, const RscId & rEleName,
366*cdf0e10cSrcweir 				   RscTop * pClass )
367*cdf0e10cSrcweir {
368*cdf0e10cSrcweir 	if( pSuperClass )
369*cdf0e10cSrcweir 		return pSuperClass->
370*cdf0e10cSrcweir 			SearchEle( rInst, rEleName, pClass );
371*cdf0e10cSrcweir 	else
372*cdf0e10cSrcweir 		return RSCINST();
373*cdf0e10cSrcweir }
374*cdf0e10cSrcweir 
375*cdf0e10cSrcweir /*************************************************************************
376*cdf0e10cSrcweir |*
377*cdf0e10cSrcweir |*	  RscTop::GetPosEle()
378*cdf0e10cSrcweir |*
379*cdf0e10cSrcweir |*	  Beschreibung
380*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
381*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
382*cdf0e10cSrcweir |*
383*cdf0e10cSrcweir *************************************************************************/
384*cdf0e10cSrcweir RSCINST RscTop::GetPosEle( const RSCINST & rInst, sal_uInt32 nPos ){
385*cdf0e10cSrcweir 	if( pSuperClass )
386*cdf0e10cSrcweir 		return pSuperClass->
387*cdf0e10cSrcweir 			GetPosEle( rInst, nPos );
388*cdf0e10cSrcweir 	else
389*cdf0e10cSrcweir 		return RSCINST();
390*cdf0e10cSrcweir }
391*cdf0e10cSrcweir 
392*cdf0e10cSrcweir /*************************************************************************
393*cdf0e10cSrcweir |*
394*cdf0e10cSrcweir |*	  RscTop::MovePosEle()
395*cdf0e10cSrcweir |*
396*cdf0e10cSrcweir |*	  Beschreibung
397*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
398*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
399*cdf0e10cSrcweir |*
400*cdf0e10cSrcweir *************************************************************************/
401*cdf0e10cSrcweir ERRTYPE RscTop::MovePosEle( const RSCINST & rInst, sal_uInt32 nDestPos,
402*cdf0e10cSrcweir 					sal_uInt32 nSourcePos )
403*cdf0e10cSrcweir {
404*cdf0e10cSrcweir 	if( pSuperClass )
405*cdf0e10cSrcweir 		return pSuperClass->
406*cdf0e10cSrcweir 			MovePosEle( rInst, nDestPos, nSourcePos );
407*cdf0e10cSrcweir 	else
408*cdf0e10cSrcweir 		return ERR_UNKNOWN_METHOD;
409*cdf0e10cSrcweir }
410*cdf0e10cSrcweir 
411*cdf0e10cSrcweir /*************************************************************************
412*cdf0e10cSrcweir |*
413*cdf0e10cSrcweir |*	  RscTop::SetPosRscId()
414*cdf0e10cSrcweir |*
415*cdf0e10cSrcweir |*	  Beschreibung
416*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
417*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
418*cdf0e10cSrcweir |*
419*cdf0e10cSrcweir *************************************************************************/
420*cdf0e10cSrcweir ERRTYPE RscTop::SetPosRscId( const RSCINST & rInst, sal_uInt32 nPos,
421*cdf0e10cSrcweir 					 const RscId & rRscId )
422*cdf0e10cSrcweir {
423*cdf0e10cSrcweir 	if( pSuperClass )
424*cdf0e10cSrcweir 		return pSuperClass->
425*cdf0e10cSrcweir 			SetPosRscId( rInst, nPos, rRscId );
426*cdf0e10cSrcweir 	else
427*cdf0e10cSrcweir 		return ERR_UNKNOWN_METHOD;
428*cdf0e10cSrcweir }
429*cdf0e10cSrcweir 
430*cdf0e10cSrcweir /*************************************************************************
431*cdf0e10cSrcweir |*
432*cdf0e10cSrcweir |*	  RscTop::GetInfoEle()
433*cdf0e10cSrcweir |*
434*cdf0e10cSrcweir |*	  Beschreibung
435*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
436*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
437*cdf0e10cSrcweir |*
438*cdf0e10cSrcweir *************************************************************************/
439*cdf0e10cSrcweir SUBINFO_STRUCT RscTop::GetInfoEle( const RSCINST & rInst, sal_uInt32 nPos ){
440*cdf0e10cSrcweir 	if( pSuperClass )
441*cdf0e10cSrcweir 		return pSuperClass->
442*cdf0e10cSrcweir 			GetInfoEle( rInst, nPos );
443*cdf0e10cSrcweir 	else
444*cdf0e10cSrcweir 		return SUBINFO_STRUCT();
445*cdf0e10cSrcweir }
446*cdf0e10cSrcweir 
447*cdf0e10cSrcweir /*************************************************************************
448*cdf0e10cSrcweir |*
449*cdf0e10cSrcweir |*	  RscTop::GetCount()
450*cdf0e10cSrcweir |*
451*cdf0e10cSrcweir |*	  Beschreibung
452*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
453*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
454*cdf0e10cSrcweir |*
455*cdf0e10cSrcweir *************************************************************************/
456*cdf0e10cSrcweir sal_uInt32	RscTop::GetCount( const RSCINST & rInst ){
457*cdf0e10cSrcweir 	if( pSuperClass )
458*cdf0e10cSrcweir 		return pSuperClass->GetCount( rInst );
459*cdf0e10cSrcweir 	else
460*cdf0e10cSrcweir 		return 0;
461*cdf0e10cSrcweir }
462*cdf0e10cSrcweir 
463*cdf0e10cSrcweir /*************************************************************************
464*cdf0e10cSrcweir |*
465*cdf0e10cSrcweir |*	  RscTop::SetNumber()
466*cdf0e10cSrcweir |*
467*cdf0e10cSrcweir |*	  Beschreibung
468*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
469*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
470*cdf0e10cSrcweir |*
471*cdf0e10cSrcweir *************************************************************************/
472*cdf0e10cSrcweir ERRTYPE RscTop::SetNumber( const RSCINST & rInst, sal_Int32 lValue ){
473*cdf0e10cSrcweir 	if( pSuperClass )
474*cdf0e10cSrcweir 		return pSuperClass->
475*cdf0e10cSrcweir 					SetNumber( rInst, lValue );
476*cdf0e10cSrcweir 	else
477*cdf0e10cSrcweir 		return ERR_UNKNOWN_METHOD;
478*cdf0e10cSrcweir }
479*cdf0e10cSrcweir 
480*cdf0e10cSrcweir /*************************************************************************
481*cdf0e10cSrcweir |*
482*cdf0e10cSrcweir |*	  RscTop::SetBool()
483*cdf0e10cSrcweir |*
484*cdf0e10cSrcweir |*	  Beschreibung
485*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
486*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
487*cdf0e10cSrcweir |*
488*cdf0e10cSrcweir *************************************************************************/
489*cdf0e10cSrcweir ERRTYPE RscTop::SetBool( const RSCINST & rInst, sal_Bool bValue ){
490*cdf0e10cSrcweir 	if( pSuperClass )
491*cdf0e10cSrcweir 		return pSuperClass->
492*cdf0e10cSrcweir 					SetBool( rInst, bValue );
493*cdf0e10cSrcweir 	else
494*cdf0e10cSrcweir 		return ERR_UNKNOWN_METHOD;
495*cdf0e10cSrcweir }
496*cdf0e10cSrcweir 
497*cdf0e10cSrcweir /*************************************************************************
498*cdf0e10cSrcweir |*
499*cdf0e10cSrcweir |*	  RscTop::SetConst()
500*cdf0e10cSrcweir |*
501*cdf0e10cSrcweir |*	  Beschreibung
502*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
503*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
504*cdf0e10cSrcweir |*
505*cdf0e10cSrcweir *************************************************************************/
506*cdf0e10cSrcweir ERRTYPE RscTop::SetConst( const RSCINST & rInst, Atom nId, sal_Int32 nVal )
507*cdf0e10cSrcweir {
508*cdf0e10cSrcweir 	if( pSuperClass )
509*cdf0e10cSrcweir 		return pSuperClass->SetConst( rInst, nId, nVal );
510*cdf0e10cSrcweir 	else
511*cdf0e10cSrcweir 		return ERR_UNKNOWN_METHOD;
512*cdf0e10cSrcweir }
513*cdf0e10cSrcweir 
514*cdf0e10cSrcweir /*************************************************************************
515*cdf0e10cSrcweir |*
516*cdf0e10cSrcweir |*	  RscTop::SetNotConst()
517*cdf0e10cSrcweir |*
518*cdf0e10cSrcweir |*	  Beschreibung
519*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
520*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
521*cdf0e10cSrcweir |*
522*cdf0e10cSrcweir *************************************************************************/
523*cdf0e10cSrcweir ERRTYPE RscTop::SetNotConst( const RSCINST & rInst, Atom nId ){
524*cdf0e10cSrcweir 	if( pSuperClass )
525*cdf0e10cSrcweir 		return pSuperClass->
526*cdf0e10cSrcweir 					SetNotConst( rInst, nId );
527*cdf0e10cSrcweir 	else
528*cdf0e10cSrcweir 		return ERR_UNKNOWN_METHOD;
529*cdf0e10cSrcweir }
530*cdf0e10cSrcweir 
531*cdf0e10cSrcweir /*************************************************************************
532*cdf0e10cSrcweir |*
533*cdf0e10cSrcweir |*	  RscTop::SetString()
534*cdf0e10cSrcweir |*
535*cdf0e10cSrcweir |*	  Beschreibung
536*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
537*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
538*cdf0e10cSrcweir |*
539*cdf0e10cSrcweir *************************************************************************/
540*cdf0e10cSrcweir ERRTYPE RscTop::SetString( const RSCINST & rInst, const char * pStr ){
541*cdf0e10cSrcweir 	if( pSuperClass )
542*cdf0e10cSrcweir 		return pSuperClass->
543*cdf0e10cSrcweir 					SetString( rInst, pStr );
544*cdf0e10cSrcweir 	else
545*cdf0e10cSrcweir 		return ERR_UNKNOWN_METHOD;
546*cdf0e10cSrcweir }
547*cdf0e10cSrcweir 
548*cdf0e10cSrcweir /*************************************************************************
549*cdf0e10cSrcweir |*
550*cdf0e10cSrcweir |*	  RscTop::GetNumber()
551*cdf0e10cSrcweir |*
552*cdf0e10cSrcweir |*	  Beschreibung
553*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
554*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
555*cdf0e10cSrcweir |*
556*cdf0e10cSrcweir *************************************************************************/
557*cdf0e10cSrcweir ERRTYPE RscTop::GetNumber( const RSCINST & rInst, sal_Int32 * pN ){
558*cdf0e10cSrcweir 	if( pSuperClass )
559*cdf0e10cSrcweir 		return pSuperClass->
560*cdf0e10cSrcweir 					GetNumber( rInst, pN );
561*cdf0e10cSrcweir 	else
562*cdf0e10cSrcweir 		return ERR_UNKNOWN_METHOD;
563*cdf0e10cSrcweir }
564*cdf0e10cSrcweir 
565*cdf0e10cSrcweir /*************************************************************************
566*cdf0e10cSrcweir |*
567*cdf0e10cSrcweir |*	  RscTop::GetBool()
568*cdf0e10cSrcweir |*
569*cdf0e10cSrcweir |*	  Beschreibung
570*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
571*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
572*cdf0e10cSrcweir |*
573*cdf0e10cSrcweir *************************************************************************/
574*cdf0e10cSrcweir ERRTYPE RscTop::GetBool( const RSCINST & rInst, sal_Bool * pB ){
575*cdf0e10cSrcweir  if( pSuperClass )
576*cdf0e10cSrcweir 		return pSuperClass->
577*cdf0e10cSrcweir 					GetBool( rInst, pB );
578*cdf0e10cSrcweir 	else
579*cdf0e10cSrcweir 		return ERR_UNKNOWN_METHOD;
580*cdf0e10cSrcweir }
581*cdf0e10cSrcweir 
582*cdf0e10cSrcweir /*************************************************************************
583*cdf0e10cSrcweir |*
584*cdf0e10cSrcweir |*	  RscTop::GetCont()
585*cdf0e10cSrcweir |*
586*cdf0e10cSrcweir |*	  Beschreibung
587*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
588*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
589*cdf0e10cSrcweir |*
590*cdf0e10cSrcweir *************************************************************************/
591*cdf0e10cSrcweir ERRTYPE RscTop::GetConst( const RSCINST & rInst, Atom * pH ){
592*cdf0e10cSrcweir 	if( pSuperClass )
593*cdf0e10cSrcweir 		return pSuperClass->
594*cdf0e10cSrcweir 					GetConst( rInst, pH );
595*cdf0e10cSrcweir 	else
596*cdf0e10cSrcweir 		return ERR_UNKNOWN_METHOD;
597*cdf0e10cSrcweir }
598*cdf0e10cSrcweir 
599*cdf0e10cSrcweir /*************************************************************************
600*cdf0e10cSrcweir |*
601*cdf0e10cSrcweir |*	  RscTop::GetString()
602*cdf0e10cSrcweir |*
603*cdf0e10cSrcweir |*	  Beschreibung
604*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
605*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
606*cdf0e10cSrcweir |*
607*cdf0e10cSrcweir *************************************************************************/
608*cdf0e10cSrcweir ERRTYPE RscTop::GetString( const RSCINST & rInst, char ** ppStr ){
609*cdf0e10cSrcweir 	if( pSuperClass )
610*cdf0e10cSrcweir 		return pSuperClass->
611*cdf0e10cSrcweir 					GetString( rInst, ppStr );
612*cdf0e10cSrcweir 	else
613*cdf0e10cSrcweir 		return ERR_UNKNOWN_METHOD;
614*cdf0e10cSrcweir }
615*cdf0e10cSrcweir 
616*cdf0e10cSrcweir /*************************************************************************
617*cdf0e10cSrcweir |*
618*cdf0e10cSrcweir |*	  RscTop::Create()
619*cdf0e10cSrcweir |*
620*cdf0e10cSrcweir |*	  Beschreibung
621*cdf0e10cSrcweir |*	  Ersterstellung	MM 17.05.91
622*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 17.07.91
623*cdf0e10cSrcweir |*
624*cdf0e10cSrcweir *************************************************************************/
625*cdf0e10cSrcweir RSCINST RscTop::Create( RSCINST * pInst, const RSCINST & rDefInst, sal_Bool bOwnRange )
626*cdf0e10cSrcweir {
627*cdf0e10cSrcweir 	if( pSuperClass )
628*cdf0e10cSrcweir 		return pSuperClass->
629*cdf0e10cSrcweir 					Create( pInst, rDefInst, bOwnRange );
630*cdf0e10cSrcweir 	else{
631*cdf0e10cSrcweir 		if( pInst )
632*cdf0e10cSrcweir 			return *pInst;
633*cdf0e10cSrcweir 		return RSCINST();
634*cdf0e10cSrcweir 	}
635*cdf0e10cSrcweir }
636*cdf0e10cSrcweir 
637*cdf0e10cSrcweir /*************************************************************************
638*cdf0e10cSrcweir |*
639*cdf0e10cSrcweir |*	  RscTop::Destroy()
640*cdf0e10cSrcweir |*
641*cdf0e10cSrcweir |*	  Beschreibung
642*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
643*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
644*cdf0e10cSrcweir |*
645*cdf0e10cSrcweir *************************************************************************/
646*cdf0e10cSrcweir void	RscTop::Destroy( const RSCINST & rInst ){
647*cdf0e10cSrcweir 	if( pSuperClass )
648*cdf0e10cSrcweir 		pSuperClass->Destroy( rInst );
649*cdf0e10cSrcweir }
650*cdf0e10cSrcweir 
651*cdf0e10cSrcweir /*************************************************************************
652*cdf0e10cSrcweir |*
653*cdf0e10cSrcweir |*	  RscTop::IsConsistent()
654*cdf0e10cSrcweir |*
655*cdf0e10cSrcweir |*	  Beschreibung
656*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
657*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
658*cdf0e10cSrcweir |*
659*cdf0e10cSrcweir *************************************************************************/
660*cdf0e10cSrcweir sal_Bool	RscTop::IsConsistent( const RSCINST & rInst,
661*cdf0e10cSrcweir 							  RscInconsList * pList )
662*cdf0e10cSrcweir {
663*cdf0e10cSrcweir 	if( pSuperClass )
664*cdf0e10cSrcweir 		return pSuperClass->IsConsistent( rInst, pList );
665*cdf0e10cSrcweir 	else
666*cdf0e10cSrcweir 		return sal_True;
667*cdf0e10cSrcweir }
668*cdf0e10cSrcweir 
669*cdf0e10cSrcweir /*************************************************************************
670*cdf0e10cSrcweir |*
671*cdf0e10cSrcweir |*	  RscTop::SetToDefault()
672*cdf0e10cSrcweir |*
673*cdf0e10cSrcweir |*	  Beschreibung
674*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
675*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
676*cdf0e10cSrcweir |*
677*cdf0e10cSrcweir *************************************************************************/
678*cdf0e10cSrcweir void	RscTop::SetToDefault( const RSCINST & rInst )
679*cdf0e10cSrcweir {
680*cdf0e10cSrcweir 	if( pSuperClass )
681*cdf0e10cSrcweir 		pSuperClass->SetToDefault( rInst );
682*cdf0e10cSrcweir }
683*cdf0e10cSrcweir 
684*cdf0e10cSrcweir /*************************************************************************
685*cdf0e10cSrcweir |*
686*cdf0e10cSrcweir |*	  RscTop::IsDefault()
687*cdf0e10cSrcweir |*
688*cdf0e10cSrcweir |*	  Beschreibung
689*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
690*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
691*cdf0e10cSrcweir |*
692*cdf0e10cSrcweir *************************************************************************/
693*cdf0e10cSrcweir sal_Bool	RscTop::IsDefault( const RSCINST & rInst ){
694*cdf0e10cSrcweir 	if( pSuperClass )
695*cdf0e10cSrcweir 		return pSuperClass->IsDefault( rInst );
696*cdf0e10cSrcweir 	else
697*cdf0e10cSrcweir 		return sal_True;
698*cdf0e10cSrcweir }
699*cdf0e10cSrcweir 
700*cdf0e10cSrcweir /*************************************************************************
701*cdf0e10cSrcweir |*
702*cdf0e10cSrcweir |*	  RscTop::IsValueDefault()
703*cdf0e10cSrcweir |*
704*cdf0e10cSrcweir |*	  Beschreibung
705*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
706*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
707*cdf0e10cSrcweir |*
708*cdf0e10cSrcweir *************************************************************************/
709*cdf0e10cSrcweir sal_Bool	RscTop::IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ){
710*cdf0e10cSrcweir 	if( pSuperClass )
711*cdf0e10cSrcweir 		return pSuperClass->IsValueDefault( rInst, pDef );
712*cdf0e10cSrcweir 	else
713*cdf0e10cSrcweir 		return sal_True;
714*cdf0e10cSrcweir }
715*cdf0e10cSrcweir 
716*cdf0e10cSrcweir /*************************************************************************
717*cdf0e10cSrcweir |*
718*cdf0e10cSrcweir |*	  RscTop::SetDefault()
719*cdf0e10cSrcweir |*
720*cdf0e10cSrcweir |*	  Beschreibung
721*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
722*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
723*cdf0e10cSrcweir |*
724*cdf0e10cSrcweir *************************************************************************/
725*cdf0e10cSrcweir void	RscTop::SetDefault( const RSCINST & rInst, Atom nVarId ){
726*cdf0e10cSrcweir 	if( pSuperClass )
727*cdf0e10cSrcweir 		pSuperClass->SetDefault( rInst, nVarId );
728*cdf0e10cSrcweir }
729*cdf0e10cSrcweir 
730*cdf0e10cSrcweir /*************************************************************************
731*cdf0e10cSrcweir |*
732*cdf0e10cSrcweir |*	  RscTop::GetDefault()
733*cdf0e10cSrcweir |*
734*cdf0e10cSrcweir |*	  Beschreibung
735*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
736*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
737*cdf0e10cSrcweir |*
738*cdf0e10cSrcweir *************************************************************************/
739*cdf0e10cSrcweir RSCINST RscTop::GetDefault( Atom nVarId ){
740*cdf0e10cSrcweir 	if( pSuperClass )
741*cdf0e10cSrcweir 		return pSuperClass->
742*cdf0e10cSrcweir 					GetDefault( nVarId );
743*cdf0e10cSrcweir 	else
744*cdf0e10cSrcweir 		return RSCINST();
745*cdf0e10cSrcweir }
746*cdf0e10cSrcweir 
747*cdf0e10cSrcweir /*************************************************************************
748*cdf0e10cSrcweir |*
749*cdf0e10cSrcweir |*	  RscTop::Delete()
750*cdf0e10cSrcweir |*
751*cdf0e10cSrcweir |*	  Beschreibung
752*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
753*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
754*cdf0e10cSrcweir |*
755*cdf0e10cSrcweir *************************************************************************/
756*cdf0e10cSrcweir void	RscTop::Delete( const RSCINST & rInst, RscTop * pClass,
757*cdf0e10cSrcweir 				const RscId & rId )
758*cdf0e10cSrcweir {
759*cdf0e10cSrcweir 	if( pSuperClass )
760*cdf0e10cSrcweir 		pSuperClass->Delete( rInst, pClass, rId );
761*cdf0e10cSrcweir }
762*cdf0e10cSrcweir 
763*cdf0e10cSrcweir /*************************************************************************
764*cdf0e10cSrcweir |*
765*cdf0e10cSrcweir |*	  RscTop::DeletePos()
766*cdf0e10cSrcweir |*
767*cdf0e10cSrcweir |*	  Beschreibung
768*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.10.91
769*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.10.91
770*cdf0e10cSrcweir |*
771*cdf0e10cSrcweir *************************************************************************/
772*cdf0e10cSrcweir void	RscTop::DeletePos( const RSCINST & rInst, sal_uInt32 nPos )
773*cdf0e10cSrcweir {
774*cdf0e10cSrcweir 	if( pSuperClass )
775*cdf0e10cSrcweir 		pSuperClass->DeletePos( rInst, nPos );
776*cdf0e10cSrcweir }
777*cdf0e10cSrcweir 
778*cdf0e10cSrcweir /*************************************************************************
779*cdf0e10cSrcweir |*
780*cdf0e10cSrcweir |*	  RscTop::SetRef()
781*cdf0e10cSrcweir |*
782*cdf0e10cSrcweir |*	  Beschreibung
783*cdf0e10cSrcweir |*	  Ersterstellung	MM 18.09.91
784*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 18.09.91
785*cdf0e10cSrcweir |*
786*cdf0e10cSrcweir *************************************************************************/
787*cdf0e10cSrcweir ERRTYPE RscTop::SetRef( const RSCINST & rInst, const RscId & rRefId ){
788*cdf0e10cSrcweir 	if( pSuperClass )
789*cdf0e10cSrcweir 		return pSuperClass->SetRef( rInst, rRefId );
790*cdf0e10cSrcweir 	else
791*cdf0e10cSrcweir 		return ERR_UNKNOWN_METHOD;
792*cdf0e10cSrcweir }
793*cdf0e10cSrcweir 
794*cdf0e10cSrcweir /*************************************************************************
795*cdf0e10cSrcweir |*
796*cdf0e10cSrcweir |*	  RscTop::WriteHxxHeader()
797*cdf0e10cSrcweir |*
798*cdf0e10cSrcweir |*	  Beschreibung
799*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.05.91
800*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.05.91
801*cdf0e10cSrcweir |*
802*cdf0e10cSrcweir *************************************************************************/
803*cdf0e10cSrcweir ERRTYPE RscTop::WriteHxxHeader( const RSCINST & rInst, FILE * fOutput,
804*cdf0e10cSrcweir 								RscTypCont * pTC, const RscId & rId )
805*cdf0e10cSrcweir {
806*cdf0e10cSrcweir 	if( pSuperClass )
807*cdf0e10cSrcweir 		return pSuperClass->WriteHxxHeader( rInst, fOutput, pTC, rId );
808*cdf0e10cSrcweir 	else
809*cdf0e10cSrcweir 		return rInst.pClass->WriteHxx( rInst, fOutput, pTC, rId );
810*cdf0e10cSrcweir }
811*cdf0e10cSrcweir 
812*cdf0e10cSrcweir /*************************************************************************
813*cdf0e10cSrcweir |*
814*cdf0e10cSrcweir |*	  RscTop::WriteHxx()
815*cdf0e10cSrcweir |*
816*cdf0e10cSrcweir |*	  Beschreibung
817*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.05.91
818*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.05.91
819*cdf0e10cSrcweir |*
820*cdf0e10cSrcweir *************************************************************************/
821*cdf0e10cSrcweir ERRTYPE RscTop::WriteHxx( const RSCINST & rInst, FILE * fOutput,
822*cdf0e10cSrcweir 						  RscTypCont * pTC, const RscId & rId ){
823*cdf0e10cSrcweir 	if( pSuperClass )
824*cdf0e10cSrcweir 		return pSuperClass->WriteHxx( rInst, fOutput, pTC, rId );
825*cdf0e10cSrcweir 	else
826*cdf0e10cSrcweir 		return( ERR_OK );
827*cdf0e10cSrcweir }
828*cdf0e10cSrcweir 
829*cdf0e10cSrcweir /*************************************************************************
830*cdf0e10cSrcweir |*
831*cdf0e10cSrcweir |*	  RscTop::WriteCxxHeader()
832*cdf0e10cSrcweir |*
833*cdf0e10cSrcweir |*	  Beschreibung
834*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.05.91
835*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.05.91
836*cdf0e10cSrcweir |*
837*cdf0e10cSrcweir *************************************************************************/
838*cdf0e10cSrcweir ERRTYPE RscTop::WriteCxxHeader( const RSCINST & rInst, FILE * fOutput,
839*cdf0e10cSrcweir 								RscTypCont * pTC, const RscId & rId )
840*cdf0e10cSrcweir {
841*cdf0e10cSrcweir 	if( pSuperClass )
842*cdf0e10cSrcweir 		return pSuperClass->WriteCxxHeader( rInst, fOutput, pTC, rId );
843*cdf0e10cSrcweir 	else
844*cdf0e10cSrcweir 		return rInst.pClass->WriteCxx( rInst, fOutput, pTC, rId );
845*cdf0e10cSrcweir }
846*cdf0e10cSrcweir 
847*cdf0e10cSrcweir /*************************************************************************
848*cdf0e10cSrcweir |*
849*cdf0e10cSrcweir |*	  RscTop::WriteCxx()
850*cdf0e10cSrcweir |*
851*cdf0e10cSrcweir |*	  Beschreibung
852*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.05.91
853*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.05.91
854*cdf0e10cSrcweir |*
855*cdf0e10cSrcweir *************************************************************************/
856*cdf0e10cSrcweir ERRTYPE RscTop::WriteCxx( const RSCINST & rInst, FILE * fOutput,
857*cdf0e10cSrcweir 						  RscTypCont * pTC, const RscId & rId ){
858*cdf0e10cSrcweir 	if( pSuperClass )
859*cdf0e10cSrcweir 		return pSuperClass->WriteCxx( rInst, fOutput, pTC, rId );
860*cdf0e10cSrcweir 	else
861*cdf0e10cSrcweir 		return ERR_OK;
862*cdf0e10cSrcweir }
863*cdf0e10cSrcweir 
864*cdf0e10cSrcweir /*************************************************************************
865*cdf0e10cSrcweir |*
866*cdf0e10cSrcweir |*	  RscTop::WriteSrcHeader()
867*cdf0e10cSrcweir |*
868*cdf0e10cSrcweir |*	  Beschreibung
869*cdf0e10cSrcweir |*	  Ersterstellung	MM 08.04.91
870*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 08.04.91
871*cdf0e10cSrcweir |*
872*cdf0e10cSrcweir *************************************************************************/
873*cdf0e10cSrcweir void RscTop::WriteSrcHeader( const RSCINST & rInst, FILE * fOutput,
874*cdf0e10cSrcweir 							 RscTypCont * pTC, sal_uInt32 nTab,
875*cdf0e10cSrcweir 							 const RscId & rId, const char * pVarName )
876*cdf0e10cSrcweir {
877*cdf0e10cSrcweir 	if( pSuperClass )
878*cdf0e10cSrcweir 		pSuperClass->WriteSrcHeader( rInst, fOutput, pTC, nTab, rId, pVarName );
879*cdf0e10cSrcweir 	else
880*cdf0e10cSrcweir 		rInst.pClass->WriteSrc( rInst, fOutput, pTC, nTab, pVarName );
881*cdf0e10cSrcweir }
882*cdf0e10cSrcweir 
883*cdf0e10cSrcweir /*************************************************************************
884*cdf0e10cSrcweir |*
885*cdf0e10cSrcweir |*	  RscTop::WriteSrc()
886*cdf0e10cSrcweir |*
887*cdf0e10cSrcweir |*	  Beschreibung
888*cdf0e10cSrcweir |*	  Ersterstellung	MM 08.04.91
889*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 08.04.91
890*cdf0e10cSrcweir |*
891*cdf0e10cSrcweir *************************************************************************/
892*cdf0e10cSrcweir void RscTop::WriteSrc( const RSCINST & rInst, FILE * fOutput,
893*cdf0e10cSrcweir 					   RscTypCont * pTC, sal_uInt32 nTab, const char * pVarName )
894*cdf0e10cSrcweir {
895*cdf0e10cSrcweir 	if( pSuperClass )
896*cdf0e10cSrcweir 		pSuperClass->WriteSrc( rInst, fOutput, pTC, nTab, pVarName );
897*cdf0e10cSrcweir }
898*cdf0e10cSrcweir 
899*cdf0e10cSrcweir /*************************************************************************
900*cdf0e10cSrcweir |*
901*cdf0e10cSrcweir |*	  RscTop::WriteRcHeader()
902*cdf0e10cSrcweir |*
903*cdf0e10cSrcweir |*	  Beschreibung
904*cdf0e10cSrcweir |*	  Ersterstellung	MM 12.04.91
905*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 12.04.91
906*cdf0e10cSrcweir |*
907*cdf0e10cSrcweir *************************************************************************/
908*cdf0e10cSrcweir ERRTYPE RscTop::WriteRcHeader( const RSCINST & rInst, RscWriteRc & rMem,
909*cdf0e10cSrcweir 							   RscTypCont * pTC, const RscId & rId,
910*cdf0e10cSrcweir 							   sal_uInt32 nDeep, sal_Bool bExtra )
911*cdf0e10cSrcweir {
912*cdf0e10cSrcweir 	if( pSuperClass )
913*cdf0e10cSrcweir 		return( pSuperClass->
914*cdf0e10cSrcweir 			WriteRcHeader( rInst, rMem, pTC, rId, nDeep, bExtra ) );
915*cdf0e10cSrcweir 	else
916*cdf0e10cSrcweir 		return( rInst.pClass->WriteRc( rInst, rMem, pTC, nDeep, bExtra ) );
917*cdf0e10cSrcweir }
918*cdf0e10cSrcweir 
919*cdf0e10cSrcweir /*************************************************************************
920*cdf0e10cSrcweir |*
921*cdf0e10cSrcweir |*	  RscTop::WriteRc()
922*cdf0e10cSrcweir |*
923*cdf0e10cSrcweir |*	  Beschreibung
924*cdf0e10cSrcweir |*	  Ersterstellung	MM 08.04.91
925*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 08.04.91
926*cdf0e10cSrcweir |*
927*cdf0e10cSrcweir *************************************************************************/
928*cdf0e10cSrcweir ERRTYPE RscTop::WriteRc( const RSCINST & rInst, RscWriteRc & rMem,
929*cdf0e10cSrcweir 						 RscTypCont * pTC, sal_uInt32 nDeep, sal_Bool bExtra )
930*cdf0e10cSrcweir {
931*cdf0e10cSrcweir 	if( pSuperClass )
932*cdf0e10cSrcweir 		return( pSuperClass->
933*cdf0e10cSrcweir 			WriteRc( rInst, rMem, pTC, nDeep, bExtra ) );
934*cdf0e10cSrcweir 	else
935*cdf0e10cSrcweir 		return( ERR_OK );
936*cdf0e10cSrcweir }
937*cdf0e10cSrcweir 
938*cdf0e10cSrcweir /*************************************************************************
939*cdf0e10cSrcweir |*
940*cdf0e10cSrcweir |*	  RscTop::WriteSyntaxHeader()
941*cdf0e10cSrcweir |*
942*cdf0e10cSrcweir |*	  Beschreibung
943*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.05.91
944*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.05.91
945*cdf0e10cSrcweir |*
946*cdf0e10cSrcweir *************************************************************************/
947*cdf0e10cSrcweir void RscTop::WriteSyntaxHeader( FILE * fOutput, RscTypCont * pTC )
948*cdf0e10cSrcweir {
949*cdf0e10cSrcweir 	if( GetId() != InvalidAtom )
950*cdf0e10cSrcweir 	{
951*cdf0e10cSrcweir 		fprintf( fOutput, "class %s \n{\n", pHS->getString( GetId() ).getStr() );
952*cdf0e10cSrcweir 		WriteSyntax( fOutput, pTC );
953*cdf0e10cSrcweir 		fprintf( fOutput, "};\n\n" );
954*cdf0e10cSrcweir 	}
955*cdf0e10cSrcweir }
956*cdf0e10cSrcweir 
957*cdf0e10cSrcweir /*************************************************************************
958*cdf0e10cSrcweir |*
959*cdf0e10cSrcweir |*	  RscTop::WriteSyntax()
960*cdf0e10cSrcweir |*
961*cdf0e10cSrcweir |*	  Beschreibung
962*cdf0e10cSrcweir |*	  Ersterstellung	MM 29.05.91
963*cdf0e10cSrcweir |*	  Letzte Aenderung	MM 29.05.91
964*cdf0e10cSrcweir |*
965*cdf0e10cSrcweir *************************************************************************/
966*cdf0e10cSrcweir void RscTop::WriteSyntax( FILE * fOutput, RscTypCont * pTC )
967*cdf0e10cSrcweir {
968*cdf0e10cSrcweir 	if( pSuperClass )
969*cdf0e10cSrcweir 		pSuperClass->WriteSyntax( fOutput, pTC );
970*cdf0e10cSrcweir }
971*cdf0e10cSrcweir 
972*cdf0e10cSrcweir //========================================================================
973*cdf0e10cSrcweir void RscTop::WriteRcAccess
974*cdf0e10cSrcweir (
975*cdf0e10cSrcweir 	FILE * fOutput,
976*cdf0e10cSrcweir 	RscTypCont * /*pTC*/,
977*cdf0e10cSrcweir 	const char * pName
978*cdf0e10cSrcweir )
979*cdf0e10cSrcweir {
980*cdf0e10cSrcweir 	if( GetId() != InvalidAtom )
981*cdf0e10cSrcweir 	{
982*cdf0e10cSrcweir 		fprintf( fOutput, "\t\t//%s %s\n",
983*cdf0e10cSrcweir 				pHS->getString( GetId() ).getStr(), pName );
984*cdf0e10cSrcweir 	}
985*cdf0e10cSrcweir }
986*cdf0e10cSrcweir 
987*cdf0e10cSrcweir //========================================================================
988*cdf0e10cSrcweir void RscTop::WriteRcCtor( FILE * fOutput, RscTypCont * pTC )
989*cdf0e10cSrcweir {
990*cdf0e10cSrcweir 	if( pSuperClass )
991*cdf0e10cSrcweir 		pSuperClass->WriteRcCtor( fOutput, pTC );
992*cdf0e10cSrcweir }
993*cdf0e10cSrcweir 
994*cdf0e10cSrcweir 
995