Lines Matching refs:n
189 void ImpPutDate( SbxValues* p, double n ) in ImpPutDate() argument
198 p->nDouble = n; break; in ImpPutDate()
230 if( !pDec->setDouble( n ) ) in ImpPutDate()
260 if( n <= -1.0 || n >= 1.0 ) in ImpPutDate()
263 if( floor( n ) == n ) in ImpPutDate()
294 pFormatter->GetOutputString( n, nIndex, aTmpString, &pColor ); in ImpPutDate()
303 pVal->PutDate( n ); in ImpPutDate()
309 if( n > SbxMAXCHAR ) in ImpPutDate()
311 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXCHAR; in ImpPutDate()
313 else if( n < SbxMINCHAR ) in ImpPutDate()
315 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMINCHAR; in ImpPutDate()
317 *p->pChar = (xub_Unicode) n; break; in ImpPutDate()
319 if( n > SbxMAXBYTE ) in ImpPutDate()
321 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXBYTE; in ImpPutDate()
323 else if( n < 0 ) in ImpPutDate()
325 SbxBase::SetError( SbxERR_OVERFLOW ); n = 0; in ImpPutDate()
327 *p->pByte = (sal_uInt8) n; break; in ImpPutDate()
330 if( n > SbxMAXINT ) in ImpPutDate()
332 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXINT; in ImpPutDate()
334 else if( n < SbxMININT ) in ImpPutDate()
336 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMININT; in ImpPutDate()
338 *p->pInteger = (sal_Int16) n; break; in ImpPutDate()
341 if( n > SbxMAXUINT ) in ImpPutDate()
343 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXUINT; in ImpPutDate()
345 else if( n < 0 ) in ImpPutDate()
347 SbxBase::SetError( SbxERR_OVERFLOW ); n = 0; in ImpPutDate()
349 *p->pUShort = (sal_uInt16) n; break; in ImpPutDate()
351 if( n > SbxMAXLNG ) in ImpPutDate()
353 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXLNG; in ImpPutDate()
355 else if( n < SbxMINLNG ) in ImpPutDate()
357 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMINLNG; in ImpPutDate()
359 *p->pLong = (sal_Int32) n; break; in ImpPutDate()
361 if( n > SbxMAXULNG ) in ImpPutDate()
363 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXULNG; in ImpPutDate()
365 else if( n < 0 ) in ImpPutDate()
367 SbxBase::SetError( SbxERR_OVERFLOW ); n = 0; in ImpPutDate()
369 *p->pULong = (sal_uInt32) n; break; in ImpPutDate()
371 if( n > SbxMAXSNG ) in ImpPutDate()
373 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXSNG; in ImpPutDate()
375 else if( n < SbxMINSNG ) in ImpPutDate()
377 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMINSNG; in ImpPutDate()
379 *p->pSingle = (float) n; break; in ImpPutDate()
381 *p->pnInt64 = ImpDoubleToSalInt64( n ); break; in ImpPutDate()
383 *p->puInt64 = ImpDoubleToSalUInt64( n ); break; in ImpPutDate()
386 *p->pDouble = (double) n; break; in ImpPutDate()
388 if( n > SbxMAXCURR ) in ImpPutDate()
390 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXCURR; in ImpPutDate()
392 else if( n < SbxMINCURR ) in ImpPutDate()
394 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMINCURR; in ImpPutDate()
396 *p->pLong64 = ImpDoubleToCurrency( n ); break; in ImpPutDate()