Lines Matching refs:nIndex

274 void ScMatrix::PutString(const String& rStr, SCSIZE nIndex)  in PutString()  argument
278 if ( IsNonValueType( mnValType[nIndex]) && pMat[nIndex].pS ) in PutString()
279 *(pMat[nIndex].pS) = rStr; in PutString()
282 pMat[nIndex].pS = new String(rStr); in PutString()
285 mnValType[nIndex] = SC_MATVAL_STRING; in PutString()
288 void ScMatrix::PutStringEntry( const String* pStr, sal_uInt8 bFlag, SCSIZE nIndex ) in PutStringEntry() argument
295 String* pS = pMat[nIndex].pS; in PutStringEntry()
296 pMat[nIndex].fVal = 0.0; in PutStringEntry()
300 if ( IsNonValueType( mnValType[nIndex]) && pS ) in PutStringEntry()
308 pMat[nIndex].pS = pS; in PutStringEntry()
312 pMat[nIndex].pS = (pStr ? new String(*pStr) : NULL); in PutStringEntry()
315 mnValType[nIndex] = bFlag; in PutStringEntry()
328 void ScMatrix::PutEmpty(SCSIZE nIndex) in PutEmpty() argument
332 if ( IsNonValueType( mnValType[nIndex]) && pMat[nIndex].pS ) in PutEmpty()
334 delete pMat[nIndex].pS; in PutEmpty()
340 mnValType[nIndex] = SC_MATVAL_EMPTY; in PutEmpty()
341 pMat[nIndex].pS = NULL; in PutEmpty()
342 pMat[nIndex].fVal = 0.0; in PutEmpty()
355 void ScMatrix::PutEmptyPath(SCSIZE nIndex) in PutEmptyPath() argument
359 if ( IsNonValueType( mnValType[nIndex]) && pMat[nIndex].pS ) in PutEmptyPath()
361 delete pMat[nIndex].pS; in PutEmptyPath()
367 mnValType[nIndex] = SC_MATVAL_EMPTYPATH; in PutEmptyPath()
368 pMat[nIndex].pS = NULL; in PutEmptyPath()
369 pMat[nIndex].fVal = 0.0; in PutEmptyPath()
382 void ScMatrix::PutBoolean( bool bVal, SCSIZE nIndex) in PutBoolean() argument
386 if ( IsNonValueType( mnValType[nIndex]) && pMat[nIndex].pS ) in PutBoolean()
388 delete pMat[nIndex].pS; in PutBoolean()
392 mnValType[nIndex] = SC_MATVAL_BOOLEAN; in PutBoolean()
393 pMat[nIndex].pS = NULL; in PutBoolean()
394 pMat[nIndex].fVal = bVal ? 1. : 0.; in PutBoolean()
423 SCSIZE nIndex = CalcOffset( nC, nR); in GetString() local
424 if ( IsString( nIndex ) ) in GetString()
425 return GetString( nIndex ); in GetString()
428 SetErrorAtInterpreter( GetError( nIndex)); in GetString()
440 String ScMatrix::GetString( SvNumberFormatter& rFormatter, SCSIZE nIndex) const in GetString()
442 if (IsString( nIndex)) in GetString()
444 if (IsEmptyPath( nIndex)) in GetString()
453 return GetString( nIndex ); in GetString()
456 sal_uInt16 nError = GetError( nIndex); in GetString()
463 double fVal= GetDouble( nIndex); in GetString()
476 SCSIZE nIndex = CalcOffset( nC, nR); in GetString() local
477 return GetString( rFormatter, nIndex); in GetString()
491 SCSIZE nIndex = CalcOffset( nC, nR); in Get() local
493 nType = mnValType[nIndex]; in Get()
496 return &pMat[nIndex]; in Get()