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