Lines Matching refs:i
72 sal_uInt32 i; in Pre_dtor() local
76 for( i = 0; i < nEntries; i++ ) in Pre_dtor()
78 if( pVarTypeList[ i ].pDefault ) in Pre_dtor()
80 pVarTypeList[ i ].pClass->Destroy( in Pre_dtor()
81 RSCINST( pVarTypeList[ i ].pClass, in Pre_dtor()
82 pVarTypeList[ i ].pDefault ) ); in Pre_dtor()
83 rtl_freeMemory( pVarTypeList[ i ].pDefault ); in Pre_dtor()
84 pVarTypeList[ i ].pDefault = NULL; in Pre_dtor()
254 sal_uInt32 i; in Create() local
277 for( i = 0; i < nEntries; i++ ) in Create()
279 aDfltI = GetInstData( bOwnClass ? rDflt.pData : NULL, i, sal_True ); in Create()
281 if( (VAR_POINTER & pVarTypeList[ i ].nVarType) in Create()
282 && !(VAR_NODATAINST & pVarTypeList[ i ].nVarType) ) in Create()
284 if( VAR_EXTENDABLE & pVarTypeList[ i ].nVarType ) in Create()
287 (aInst.pData + pVarTypeList[ i ].nOffset ); in Create()
288 pInstance->pClass = pVarTypeList[ i ].pClass; in Create()
293 (aInst.pData + pVarTypeList[ i ].nOffset ); in Create()
297 aMemInst = pVarTypeList[ i ].pClass->Create( NULL, aDfltI ); in Create()
303 aMemInst = GetInstData( aInst.pData, i, sal_True ); in Create()
320 sal_uInt32 i; in Destroy() local
324 for( i = 0; i < nEntries; i++ ) in Destroy()
326 if( !(pVarTypeList[ i ].nVarType & VAR_NODATAINST) ) in Destroy()
330 aTmpI = GetInstData( rInst.pData, i, sal_True ); in Destroy()
335 if( pVarTypeList[ i ].nVarType & VAR_POINTER ) in Destroy()
416 sal_uInt32 i; in EnumVariables() local
419 for( i = 0; i < nEntries; i ++ ) in EnumVariables()
421 if( !(pVarTypeList[ i ].nVarType & VAR_NOENUM) ) in EnumVariables()
422 (*pProc)( pData, pVarTypeList[ i ].pClass->GetClassType(), in EnumVariables()
423 pVarTypeList[ i ].nVarName ); in EnumVariables()
443 sal_uInt32 i = 0; in GetVariable() local
446 while( i < nEntries && pVarTypeList[ i ].nVarName != nVarName ) in GetVariable()
447 i++; in GetVariable()
448 if( i < nEntries ) in GetVariable()
450 if( VAR_NODATAINST & pVarTypeList[ i ].nVarType ) in GetVariable()
453 pVarTypeList[ i ].nDataBaseName, in GetVariable()
455 aTmpI.pClass = pVarTypeList[ i ].pClass; in GetVariable()
464 aDefInst.pData = pVarTypeList[ i ].pDefault; in GetVariable()
465 aDefInst.pClass = pVarTypeList[ i ].pClass; in GetVariable()
468 aTmpI = GetInstData( rInst.pData, i ); in GetVariable()
479 if( VAR_EXTENDABLE & pVarTypeList[ i ].nVarType ) in GetVariable()
482 (rInst.pData + pVarTypeList[ i ].nOffset ); in GetVariable()
492 = (CLASS_DATA *)(rInst.pData + pVarTypeList[ i ].nOffset); in GetVariable()
499 SetVarDflt( rInst.pData, i, sal_False ); in GetVariable()
520 sal_uInt32 i = 0; in GetCopyVar() local
523 while( i < nEntries && pVarTypeList[ i ].nVarName != nVarName ) in GetCopyVar()
524 i++; in GetCopyVar()
526 if( i < nEntries ) in GetCopyVar()
528 if( VAR_NODATAINST & pVarTypeList[ i ].nVarType ) in GetCopyVar()
530 aVarI = GetCopyVar( rInst, pVarTypeList[ i ].nDataBaseName ); in GetCopyVar()
531 aVarI.pClass = pVarTypeList[ i ].pClass; in GetCopyVar()
535 if( IsDflt( rInst.pData, i ) ) in GetCopyVar()
539 SetVarDflt( rInst.pData, i, sal_True ); in GetCopyVar()
542 aVarI = GetInstData( rInst.pData, i, sal_True ); in GetCopyVar()
560 sal_uInt32 i = 0; in IsConsistent() local
566 for( i = 0; i < nEntries; i++ ) in IsConsistent()
568 if( !(VAR_NODATAINST & pVarTypeList[ i ].nVarType) ) in IsConsistent()
570 aTmpI = GetInstData( rInst.pData, i, sal_True ); in IsConsistent()
590 sal_uInt32 i; in SetToDefault() local
596 for( i = 0; i < nEntries; i++ ) in SetToDefault()
600 if( !(VAR_NODATAINST & pVarTypeList[ i ].nVarType) ) in SetToDefault()
602 aTmpI = GetInstData( rInst.pData, i, sal_True ); in SetToDefault()
621 sal_uInt32 i; in IsDefault() local
624 for( i = 0; i < nEntries; i++ ) in IsDefault()
628 if( !(VAR_NODATAINST & pVarTypeList[ i ].nVarType) ) in IsDefault()
629 if( !IsDflt( rInst.pData, i ) ) in IsDefault()
645 sal_uInt32 i; in GetDefault() local
647 i = 0; in GetDefault()
648 while( i < nEntries && pVarTypeList[ i ].nVarName != nVarId ) in GetDefault()
649 i++; in GetDefault()
650 if( i < nEntries ) in GetDefault()
654 aTmpI.pClass = pVarTypeList[ i ].pClass; in GetDefault()
655 aTmpI.pData = GetDfltData( i ); in GetDefault()
698 sal_uInt32 i = 0; in IsValueDefault() local
707 for( i = 0; i < nEntries; i++ ) in IsValueDefault()
709 aTmpI = GetInstData( rInst.pData, i, sal_True ); in IsValueDefault()
712 if( aTmpI.pClass != pVarTypeList[ i ].pClass ) in IsValueDefault()
716 aDfltI = GetInstData( pDef, i, sal_True ); in IsValueDefault()
718 aDfltI.pData = GetDfltData( i ); in IsValueDefault()
740 sal_uInt32 i = 0; in SetDefault() local
743 while( i < nEntries && pVarTypeList[ i ].nVarName != nVarName ) in SetDefault()
744 i++; in SetDefault()
746 if( i < nEntries ) in SetDefault()
748 aTmpI = GetInstData( rInst.pData, i, sal_True ); in SetDefault()
753 SetVarDflt( rInst.pData, i, sal_True ); in SetDefault()
778 sal_uInt32 i = 0, n = 0; in WriteSrc() local
783 for( i = 0; i < nEntries; i++ ) in WriteSrc()
785 if( !(VAR_HIDDEN & pVarTypeList[ i ].nVarType) ) in WriteSrc()
788 if( nRsc_XYMAPMODEId == pVarTypeList[ i ].nVarName in WriteSrc()
789 || nRsc_WHMAPMODEId == pVarTypeList[ i ].nVarName ) in WriteSrc()
791 if( !IsDflt( rInst.pData, i ) //MapUnit in WriteSrc()
792 || !IsDflt( rInst.pData, i+1 ) //X, Width in WriteSrc()
793 || !IsDflt( rInst.pData, i+2 ) )//Y, Height in WriteSrc()
797 if( nRsc_XYMAPMODEId == pVarTypeList[ i ].nVarName ) in WriteSrc()
802 if( !IsDflt( rInst.pData, i ) ) in WriteSrc()
804 aTmpI = GetInstData( rInst.pData, i, sal_True ); in WriteSrc()
810 aTmpI = GetInstData( rInst.pData, i+1, sal_True ); in WriteSrc()
812 aTmpI.pData = GetDfltData( i+1 ); in WriteSrc()
817 aTmpI = GetInstData( rInst.pData, i+2, sal_True ); in WriteSrc()
819 aTmpI.pData = GetDfltData( i+2 ); in WriteSrc()
824 i += 2; //_X, _Y oder _Widht, Height ueberlesen in WriteSrc()
826 else if( !IsDflt( rInst.pData, i ) in WriteSrc()
827 && !IsValueDflt( rInst.pData, i ) ) in WriteSrc()
829 aTmpI = GetInstData( rInst.pData, i, sal_True ); in WriteSrc()
833 const char * pName = pHS->getString( pVarTypeList[ i ].nVarName ).getStr(); in WriteSrc()
893 sal_uInt32 i = 0; in WriteInstRc() local
899 for( i = 0; i < nEntries; i++ ) in WriteInstRc()
901 if( pVarTypeList[ i ].nMask ) in WriteInstRc()
909 for( i = 0; i < nEntries && aError.IsOk(); i++ ) in WriteInstRc()
911 if( !((VAR_NODATAINST | VAR_NORC) & pVarTypeList[ i ].nVarType )) in WriteInstRc()
913 if( pVarTypeList[ i ].nMask ) in WriteInstRc()
915 if( !IsDflt( rInst.pData, i ) ) in WriteInstRc()
917 if( nRsc_X == pVarTypeList[ i ].nVarName ) in WriteInstRc()
919 sal_Int32 nVal = GetCorrectValues( rInst, i, 0, pTC ); in WriteInstRc()
922 else if( nRsc_Y == pVarTypeList[ i ].nVarName ) in WriteInstRc()
924 sal_Int32 nVal = GetCorrectValues( rInst, i, 1, pTC ); in WriteInstRc()
927 else if( nRsc_WIDTH == pVarTypeList[ i ].nVarName ) in WriteInstRc()
929 sal_Int32 nVal = GetCorrectValues( rInst, i, 2, pTC ); in WriteInstRc()
932 else if( nRsc_HEIGHT == pVarTypeList[ i ].nVarName ) in WriteInstRc()
934 sal_Int32 nVal = GetCorrectValues( rInst, i, 3, pTC ); in WriteInstRc()
939 aTmpI = GetInstData( rInst.pData, i, sal_True ); in WriteInstRc()
946 == pVarTypeList[ i ].nVarName) in WriteInstRc()
950 nMask |= pVarTypeList[ i ].nMask; in WriteInstRc()
955 if( IsDflt( rInst.pData, i ) ) in WriteInstRc()
957 aTmpI.pClass = pVarTypeList[ i ].pClass; in WriteInstRc()
958 aTmpI.pData = GetDfltData( i ); in WriteInstRc()
961 aTmpI = GetInstData( rInst.pData, i, sal_True ); in WriteInstRc()
968 == pVarTypeList[ i ].nVarName) in WriteInstRc()
1013 sal_uInt32 i; in WriteSyntax() local
1016 for( i = 0; i < nEntries; i++ ) in WriteSyntax()
1018 fprintf( fOutput, "\t%s", pHS->getString( pVarTypeList[ i ].nVarName ).getStr() ); in WriteSyntax()
1019 sal_uInt32 n = strlen( pHS->getString( pVarTypeList[ i ].nVarName ).getStr() ); in WriteSyntax()
1026 pHS->getString( pVarTypeList[ i ].pClass->GetId() ).getStr() ); in WriteSyntax()
1070 for( sal_uInt32 i = 0; i < nEntries; i++ ) in WriteRcCtor() local
1072 if( !((VAR_NODATAINST | VAR_NORC) & pVarTypeList[ i ].nVarType )) in WriteRcCtor()
1076 pVarTypeList[ i ].nMask) ); in WriteRcCtor()
1078 pVarTypeList[ i ].pClass->WriteRcAccess( fOutput, pTC, in WriteRcCtor()
1079 pHS->getString( pVarTypeList[ i ].nVarName ).getStr() ); in WriteRcCtor()
1228 sal_uInt32 i = 0; in WriteSrc() local
1234 for( i = 0; i < nEntries; i++ ) in WriteSrc()
1236 if( !(VAR_HIDDEN & pVarTypeList[ i ].nVarType) ) in WriteSrc()
1238 if( !IsDflt( rInst.pData, i ) in WriteSrc()
1239 && !IsValueDflt( rInst.pData, i ) ) in WriteSrc()
1241 aTmpI = GetInstData( rInst.pData, i, sal_True ); in WriteSrc()