Lines Matching refs:pClassData
116 void RscBaseCont::DestroyElements( RscBaseContInst * pClassData ) in DestroyElements() argument
120 if( pClassData->nEntries ){ in DestroyElements()
121 for( i = 0; i < pClassData->nEntries; i++ ){ in DestroyElements()
122 pClassData->pEntries[ i ].Destroy(); in DestroyElements()
124 rtl_freeMemory( pClassData->pEntries ); in DestroyElements()
125 pClassData->pEntries = NULL; in DestroyElements()
126 pClassData->nEntries = 0; in DestroyElements()
144 RscBaseContInst * pClassData; in Create() local
157 pClassData = (RscBaseContInst *)(aInst.pData + nOffInstData); in Create()
158 pClassData->nEntries = 0; in Create()
159 pClassData->pEntries = NULL; in Create()
160 pClassData->bDflt = sal_True; in Create()
169 *pClassData = *pDfltClassData; in Create()
170 pClassData->pEntries = in Create()
172 * pClassData->nEntries ); in Create()
173 for( i = 0; i < pClassData->nEntries; i++ ){ in Create()
174 pClassData->pEntries[ i ].Create(); in Create()
175 pClassData->pEntries[ i ].aName = in Create()
178 pClassData->pEntries[ i ].aInst = in Create()
197 RscBaseContInst * pClassData; in Destroy() local
201 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in Destroy()
202 DestroyElements( pClassData ); in Destroy()
218 RscBaseContInst * pClassData; in SearchElePos() local
220 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in SearchElePos()
225 for( i = nPos; i < pClassData->nEntries; i++ ){ in SearchElePos()
226 if( pClassData->pEntries[ i ].aName == rEleName in SearchElePos()
227 && pClassData->pEntries[ i ].aInst.pClass == pClass ) in SearchElePos()
229 return( pClassData->pEntries[ i ].aInst ); in SearchElePos()
264 RscBaseContInst * pClassData; in GetElement() local
270 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in GetElement()
289 pClassData->bDflt = sal_False; in GetElement()
301 if( pClassData->pEntries ){ in GetElement()
302 pClassData->pEntries = in GetElement()
303 (ENTRY_STRUCT *)rtl_reallocateMemory( pClassData->pEntries, in GetElement()
304 sizeof( ENTRY_STRUCT ) * (pClassData->nEntries +1) ); in GetElement()
307 pClassData->pEntries = in GetElement()
309 * (pClassData->nEntries +1) ); in GetElement()
312 pClassData->pEntries[ pClassData->nEntries ].Create(); in GetElement()
313 pClassData->pEntries[ pClassData->nEntries ].aName = rEleName; in GetElement()
317 pClassData->pEntries[ pClassData->nEntries ].aInst = in GetElement()
321 pClassData->pEntries[ pClassData->nEntries ].aInst = in GetElement()
325 pClassData->nEntries++; in GetElement()
326 aTmpI = pClassData->pEntries[ pClassData->nEntries -1 ].aInst; in GetElement()
343 RscBaseContInst * pClassData; in GetCount() local
345 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in GetCount()
346 return( pClassData->nEntries ); in GetCount()
359 RscBaseContInst * pClassData; in GetPosEle() local
361 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in GetPosEle()
363 if( nPos < pClassData->nEntries ) in GetPosEle()
364 return( pClassData->pEntries[ nPos ].aInst ); in GetPosEle()
381 RscBaseContInst * pClassData; in MovePosEle() local
383 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in MovePosEle()
385 if( (nDestPos < pClassData->nEntries) && (nSourcePos < pClassData->nEntries) ){ in MovePosEle()
391 aEntry = pClassData->pEntries[ nSourcePos ]; in MovePosEle()
397 pClassData->pEntries[ i ] = pClassData->pEntries[ i + nInc ]; in MovePosEle()
400 pClassData->pEntries[ nDestPos ] = aEntry; in MovePosEle()
418 RscBaseContInst * pClassData; in SetPosRscId() local
422 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in SetPosRscId()
424 if( nPos < pClassData->nEntries ){ in SetPosRscId()
425 if( ! (rId == pClassData->pEntries[ nPos ].aName) ) in SetPosRscId()
427 pClassData->pEntries[ nPos ].aInst.pClass ); in SetPosRscId()
429 pClassData->pEntries[ nPos ].aName = rId; in SetPosRscId()
448 RscBaseContInst * pClassData; in GetInfoEle() local
451 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in GetInfoEle()
453 if( nPos < pClassData->nEntries ){ in GetInfoEle()
454 aInfo.aId = pClassData->pEntries[ nPos ].aName; in GetInfoEle()
456 aInfo.pClass = pClassData->pEntries[ nPos ].aInst.pClass; in GetInfoEle()
472 RscBaseContInst * pClassData; in SetString() local
477 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in SetString()
488 DeletePos( rInst, pClassData->nEntries -1 ); in SetString()
495 DeletePos( rInst, pClassData->nEntries -1 ); in SetString()
513 RscBaseContInst * pClassData; in SetNumber() local
518 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in SetNumber()
529 DeletePos( rInst, pClassData->nEntries -1 ); in SetNumber()
536 DeletePos( rInst, pClassData->nEntries -1 ); in SetNumber()
551 RscBaseContInst * pClassData; in SetBool() local
556 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in SetBool()
568 DeletePos( rInst, pClassData->nEntries -1 ); in SetBool()
575 DeletePos( rInst, pClassData->nEntries -1 ); in SetBool()
591 RscBaseContInst * pClassData; in SetConst() local
596 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in SetConst()
607 DeletePos( rInst, pClassData->nEntries -1 ); in SetConst()
614 DeletePos( rInst, pClassData->nEntries -1 ); in SetConst()
632 RscBaseContInst * pClassData; in SetRef() local
637 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in SetRef()
648 DeletePos( rInst, pClassData->nEntries -1 ); in SetRef()
655 DeletePos( rInst, pClassData->nEntries -1 ); in SetRef()
674 RscBaseContInst * pClassData; in IsConsistent() local
679 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in IsConsistent()
683 for( i = 0; i < pClassData->nEntries; i++ ){ in IsConsistent()
685 if( (sal_Int32)pClassData->pEntries[ i ].aName > 0x7FFF in IsConsistent()
686 || (sal_Int32)pClassData->pEntries[ i ].aName < 1 ){ in IsConsistent()
690 pClassData->pEntries[ i ].aName, in IsConsistent()
691 pClassData->pEntries[ i ].aName ) ); in IsConsistent()
693 else if( SearchElePos( rInst, pClassData->pEntries[ i ].aName, in IsConsistent()
694 pClassData->pEntries[ i ].aInst.pClass, i +1 ).IsInst() ) in IsConsistent()
699 pClassData->pEntries[ i ].aName, in IsConsistent()
700 pClassData->pEntries[ i +1 ].aName ) ); in IsConsistent()
703 if( ! pClassData->pEntries[ i ].aInst.pClass-> in IsConsistent()
704 IsConsistent( pClassData->pEntries[ i ].aInst, pList ) ) in IsConsistent()
723 RscBaseContInst * pClassData; in SetToDefault() local
725 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in SetToDefault()
727 for( i = 0; i < pClassData->nEntries; i++ ) in SetToDefault()
729 pClassData->pEntries[ i ].aInst.pClass-> in SetToDefault()
730 SetToDefault( pClassData->pEntries[ i ].aInst ); in SetToDefault()
747 RscBaseContInst * pClassData; in IsDefault() local
749 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in IsDefault()
751 if( !pClassData->bDflt ) in IsDefault()
754 for( i = 0; i < pClassData->nEntries; i++ ){ in IsDefault()
755 if( ! pClassData->pEntries[ i ].aInst.pClass-> in IsDefault()
756 IsDefault( pClassData->pEntries[ i ].aInst ) ) in IsDefault()
776 RscBaseContInst * pClassData; in IsValueDefault() local
781 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in IsValueDefault()
783 if( pClassData->nEntries ) in IsValueDefault()
802 RscBaseContInst * pClassData; in Delete() local
804 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in Delete()
808 for( i = 0; i < pClassData->nEntries; i++ ){ in Delete()
809 if( pClassData->pEntries[ i ].aName == rId ) in Delete()
810 if( pClassData->pEntries[ i ].aInst.pClass == pClass || !pClass ){ in Delete()
828 RscBaseContInst * pClassData; in DeletePos() local
831 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in DeletePos()
833 if( nPos < pClassData->nEntries ){ in DeletePos()
834 if( 1 == pClassData->nEntries ) in DeletePos()
835 DestroyElements( pClassData ); in DeletePos()
837 pClassData->pEntries[ nPos ].Destroy(); in DeletePos()
838 pClassData->nEntries--; in DeletePos()
839 for( i = nPos; i < pClassData->nEntries; i++ ) in DeletePos()
840 pClassData->pEntries[ i ] = pClassData->pEntries[ i + 1 ]; in DeletePos()
859 RscBaseContInst * pClassData; in ContWriteSrc() local
861 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in ContWriteSrc()
863 for( i = 0; i < pClassData->nEntries; i++ ) in ContWriteSrc()
867 pClassData->pEntries[ i ].aInst.pClass-> in ContWriteSrc()
868 WriteSrcHeader( pClassData->pEntries[ i ].aInst, in ContWriteSrc()
870 pClassData->pEntries[ i ].aName, pVarName ); in ContWriteSrc()
888 RscBaseContInst * pClassData; in ContWriteRc() local
893 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in ContWriteRc()
895 for( i = 0; i < pClassData->nEntries && aError.IsOk(); i++ ){ in ContWriteRc()
896 aError = pClassData->pEntries[ i ].aInst.pClass-> in ContWriteRc()
897 WriteRcHeader( pClassData->pEntries[ i ].aInst, in ContWriteRc()
899 pClassData->pEntries[ i ].aName, in ContWriteRc()
988 RscBaseContInst * pClassData; in WriteHxx() local
993 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in WriteHxx()
995 for( i = 0; i < pClassData->nEntries && aError.IsOk(); i++ ) in WriteHxx()
997 if( pClassData->pEntries[ i ].aName.IsId() in WriteHxx()
998 && pClassData->pEntries[ i ].aInst.pClass->IsCodeWriteable() ) in WriteHxx()
1000 aError = pClassData->pEntries[ i ].aInst.pClass-> in WriteHxx()
1001 WriteHxx( pClassData->pEntries[ i ].aInst, in WriteHxx()
1003 pClassData->pEntries[ i ].aName ); in WriteHxx()
1023 RscBaseContInst * pClassData; in WriteCxx() local
1028 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in WriteCxx()
1030 for( i = 0; i < pClassData->nEntries && aError.IsOk(); i++ ) in WriteCxx()
1032 if( pClassData->pEntries[ i ].aName.IsId() in WriteCxx()
1033 && pClassData->pEntries[ i ].aInst.pClass->IsCodeWriteable() ) in WriteCxx()
1035 aError = pClassData->pEntries[ i ].aInst.pClass-> in WriteCxx()
1036 WriteCxx( pClassData->pEntries[ i ].aInst, in WriteCxx()
1038 pClassData->pEntries[ i ].aName ); in WriteCxx()
1115 RscBaseContInst * pClassData; in WriteRc() local
1120 pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData); in WriteRc()
1122 rMem.Put( pClassData->nEntries ); in WriteRc()