Lines Matching refs:pNode

156 static RscInstNode * Create( RscInstNode * pNode )  in Create()  argument
161 if( pNode ) in Create()
163 pRetNode = new RscInstNode( pNode->GetId() ); in Create()
164 pRetNode->aInst = pNode->aInst.pClass->Create( NULL, pNode->aInst ); in Create()
165 if( (pTmpNode = Create( pNode->Left() )) != NULL ) in Create()
167 if( (pTmpNode = Create( pNode->Right() )) != NULL ) in Create()
193 pClassData->pNode = NULL; in Create()
200 pClassData->pNode = ::Create( pDfltClassData->pNode ); in Create()
212 static void Destroy( RscInstNode * pNode ) in Destroy() argument
214 if( pNode ) in Destroy()
216 Destroy( pNode->Left() ); in Destroy()
217 Destroy( pNode->Right() ); in Destroy()
218 delete pNode; in Destroy()
231 ::Destroy( pClassData->pNode ); in Destroy()
250 RscInstNode * pNode; in GetValueEle() local
262 if( pClassData->pNode ) in GetValueEle()
263 pNode = pClassData->pNode->Search( sal_uInt32(lValue) ); in GetValueEle()
265 pNode = NULL; in GetValueEle()
279 if( !pNode ) in GetValueEle()
281 pNode = new RscInstNode( sal_uInt32(lValue) ); in GetValueEle()
283 pNode->aInst = pCreateClass->Create( NULL, rInst ); in GetValueEle()
285 pNode->aInst = GetSuperClass()->Create( NULL, rInst ); in GetValueEle()
286 pNode->aInst.pClass->SetToDefault( pNode->aInst ); in GetValueEle()
287 if( pClassData->pNode ) in GetValueEle()
288 pClassData->pNode->Insert( pNode ); in GetValueEle()
290 pClassData->pNode = pNode; in GetValueEle()
293 *pGetInst = pNode->aInst; in GetValueEle()
330 static sal_Bool IsConsistent( RscInstNode * pNode, RscInconsList * pList ) in IsConsistent() argument
334 if( pNode ) in IsConsistent()
336 bRet = pNode->aInst.pClass->IsConsistent( pNode->aInst, pList ); in IsConsistent()
337 if( !IsConsistent( pNode->Left(), pList ) ) in IsConsistent()
339 if( !IsConsistent( pNode->Right(), pList ) ) in IsConsistent()
353 if( !::IsConsistent( pClassData->pNode, pList ) ) in IsConsistent()
368 static void SetToDefault( RscInstNode * pNode ) in SetToDefault() argument
370 if( pNode ) in SetToDefault()
372 pNode->aInst.pClass->SetToDefault( pNode->aInst ); in SetToDefault()
373 SetToDefault( pNode->Left() ); in SetToDefault()
374 SetToDefault( pNode->Right() ); in SetToDefault()
384 ::SetToDefault( pClassData->pNode ); in SetToDefault()
398 static sal_Bool IsDefault( RscInstNode * pNode ) in IsDefault() argument
402 if( pNode ) in IsDefault()
404 bRet = pNode->aInst.pClass->IsDefault( pNode->aInst ); in IsDefault()
406 bRet = IsDefault( pNode->Left() ); in IsDefault()
408 bRet = IsDefault( pNode->Right() ); in IsDefault()
419 sal_Bool bRet = ::IsDefault( pClassData->pNode ); in IsDefault()
435 static sal_Bool IsValueDefault( RscInstNode * pNode, CLASS_DATA pDef ) in IsValueDefault() argument
439 if( pNode ) in IsValueDefault()
441 bRet = pNode->aInst.pClass->IsValueDefault( pNode->aInst, pDef ); in IsValueDefault()
443 bRet = IsValueDefault( pNode->Left(), pDef ); in IsValueDefault()
445 bRet = IsValueDefault( pNode->Right(), pDef ); in IsValueDefault()
461 bRet = ::IsValueDefault( pClassData->pNode, pDef ); in IsValueDefault()
481 RscInstNode * pNode = NULL; in WriteSrcHeader() local
482 if( pClassData->pNode ) in WriteSrcHeader()
485 for( it = pTC->GetFallbacks().begin(); !pNode && it != pTC->GetFallbacks().end(); ++it ) in WriteSrcHeader()
486 pNode = pClassData->pNode->Search( *it ); in WriteSrcHeader()
489 if( pNode ) in WriteSrcHeader()
491 if( pNode->aInst.pClass->IsDefault( pNode->aInst ) ) in WriteSrcHeader()
494 pNode->aInst.pClass->WriteSrcHeader( in WriteSrcHeader()
495 pNode->aInst, fOutput, in WriteSrcHeader()
518 static void WriteSrc( RscInstNode * pNode, FILE * fOutput, RscTypCont * pTC, in WriteSrc() argument
522 if( pNode ) in WriteSrc()
524 WriteSrc( pNode->Left(), fOutput, pTC, nTab, pVarName, in WriteSrc()
526 if( !pNode->aInst.pClass->IsValueDefault( pNode->aInst, pDfltData ) ) in WriteSrc()
533 pTypeClass->GetValueConst( pNode->GetId(), &nIdxId ); in WriteSrc()
535 pNode->aInst.pClass->WriteSrcHeader( pNode->aInst, fOutput, pTC, in WriteSrc()
538 WriteSrc( pNode->Right(), fOutput, pTC, nTab, pVarName, in WriteSrc()
551 ::WriteSrc( pClassData->pNode, fOutput, pTC, nTab, pVarName, in WriteSrcArray()
572 RscInstNode * pNode = NULL; in WriteRc() local
576 if( pClassData->pNode ) in WriteRc()
582 for( it = pTC->GetFallbacks().begin(); !pNode && it != pTC->GetFallbacks().end(); ++it ) in WriteRc()
584 pNode = pClassData->pNode->Search( *it ); in WriteRc()
594 if( pNode ) in WriteRc()
595 aError = pNode->aInst.pClass->WriteRc( pNode->aInst, rMem, pTC, in WriteRc()