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