Lines Matching refs:p

432 SbxDecimal* ImpCreateDecimal( SbxValues* p )  in ImpCreateDecimal()  argument
435 if( !p ) in ImpCreateDecimal()
438 SbxDecimal*& rpDecimal = p->pDecimal; in ImpCreateDecimal()
446 (void)p; in ImpCreateDecimal()
451 SbxDecimal* ImpGetDecimal( const SbxValues* p ) in ImpGetDecimal() argument
457 SbxDataType eType = p->eType; in ImpGetDecimal()
458 if( eType == SbxDECIMAL && p->pDecimal ) in ImpGetDecimal()
460 pnDecRes = new SbxDecimal( *p->pDecimal ); in ImpGetDecimal()
475 pnDecRes->setChar( p->nChar ); break; in ImpGetDecimal()
477 pnDecRes->setByte( p->nByte ); break; in ImpGetDecimal()
480 pnDecRes->setInt( p->nInteger ); break; in ImpGetDecimal()
483 pnDecRes->setUShort( p->nUShort ); break; in ImpGetDecimal()
485 pnDecRes->setLong( p->nLong ); break; in ImpGetDecimal()
487 pnDecRes->setULong( p->nULong ); break; in ImpGetDecimal()
489 if( !pnDecRes->setSingle( p->nSingle ) ) in ImpGetDecimal()
494 double d = (double)p->nInt64; in ImpGetDecimal()
500 double d = ImpSalUInt64ToDouble( p->uInt64 ); in ImpGetDecimal()
511 if( p->eType == SbxCURRENCY ) in ImpGetDecimal()
512 dVal = ImpCurrencyToDouble( p->nLong64 ); in ImpGetDecimal()
513 else if( p->eType == SbxLONG64 ) in ImpGetDecimal()
514 dVal = ImpINT64ToDouble( p->nLong64 ); in ImpGetDecimal()
515 else if( p->eType == SbxULONG64 ) in ImpGetDecimal()
516 dVal = ImpUINT64ToDouble( p->nULong64 ); in ImpGetDecimal()
518 dVal = p->nDouble; in ImpGetDecimal()
527 pnDecRes->setString( p->pOUString ); break; in ImpGetDecimal()
530 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpGetDecimal()
542 pnDecRes->setChar( *p->pChar ); break; in ImpGetDecimal()
544 pnDecRes->setByte( *p->pByte ); break; in ImpGetDecimal()
547 pnDecRes->setInt( *p->pInteger ); break; in ImpGetDecimal()
549 pnDecRes->setLong( *p->pLong ); break; in ImpGetDecimal()
551 pnDecRes->setULong( *p->pULong ); break; in ImpGetDecimal()
554 pnDecRes->setUShort( *p->pUShort ); break; in ImpGetDecimal()
558 aTmp.nSingle = *p->pSingle; goto ref; in ImpGetDecimal()
561 aTmp.nDouble = *p->pDouble; goto ref; in ImpGetDecimal()
563 aTmp.nULong64 = *p->pULong64; goto ref; in ImpGetDecimal()
566 aTmp.nLong64 = *p->pLong64; goto ref; in ImpGetDecimal()
568 aTmp.nInt64 = *p->pnInt64; goto ref; in ImpGetDecimal()
570 aTmp.uInt64 = *p->puInt64; goto ref; in ImpGetDecimal()
572 aTmp.eType = SbxDataType( p->eType & 0x0FFF ); in ImpGetDecimal()
573 p = &aTmp; goto start; in ImpGetDecimal()
580 (void)p; in ImpGetDecimal()
586 void ImpPutDecimal( SbxValues* p, SbxDecimal* pDec ) in ImpPutDecimal() argument
594 switch( +p->eType ) in ImpPutDecimal()
598 aTmp.pChar = &p->nChar; goto direct; in ImpPutDecimal()
600 aTmp.pByte = &p->nByte; goto direct; in ImpPutDecimal()
602 aTmp.pULong = &p->nULong; goto direct; in ImpPutDecimal()
605 aTmp.pUShort = &p->nUShort; goto direct; in ImpPutDecimal()
607 aTmp.puInt64 = &p->uInt64; goto direct; in ImpPutDecimal()
610 aTmp.pInteger = &p->nInteger; goto direct; in ImpPutDecimal()
612 aTmp.pLong = &p->nLong; goto direct; in ImpPutDecimal()
614 aTmp.pnInt64 = &p->nInt64; goto direct; in ImpPutDecimal()
616 aTmp.pLong64 = &p->nLong64; goto direct; in ImpPutDecimal()
618 aTmp.eType = SbxDataType( p->eType | SbxBYREF ); in ImpPutDecimal()
619 p = &aTmp; goto start; in ImpPutDecimal()
625 if( pDec != p->pDecimal ) in ImpPutDecimal()
627 releaseDecimalPtr( p->pDecimal ); in ImpPutDecimal()
630 p->pDecimal = pDec; in ImpPutDecimal()
640 p->nSingle = f; in ImpPutDecimal()
648 p->nDouble = d; in ImpPutDecimal()
655 p->nULong64 = ImpDoubleToUINT64( d ); in ImpPutDecimal()
662 p->nLong64 = ImpDoubleToINT64( d ); in ImpPutDecimal()
669 if( !p->pOUString ) in ImpPutDecimal()
670 p->pOUString = new ::rtl::OUString; in ImpPutDecimal()
672 pDec->getString( *p->pOUString ); in ImpPutDecimal()
676 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpPutDecimal()
685 if( !pDec->getChar( *p->pChar ) ) in ImpPutDecimal()
688 *p->pChar = 0; in ImpPutDecimal()
692 if( !pDec->getChar( *p->pChar ) ) in ImpPutDecimal()
695 *p->pByte = 0; in ImpPutDecimal()
700 if( !pDec->getShort( *p->pInteger ) ) in ImpPutDecimal()
703 *p->pInteger = 0; in ImpPutDecimal()
709 if( !pDec->getUShort( *p->pUShort ) ) in ImpPutDecimal()
712 *p->pUShort = 0; in ImpPutDecimal()
716 if( !pDec->getLong( *p->pLong ) ) in ImpPutDecimal()
719 *p->pLong = 0; in ImpPutDecimal()
723 if( !pDec->getULong( *p->pULong ) ) in ImpPutDecimal()
726 *p->pULong = 0; in ImpPutDecimal()
735 *p->pnInt64 = ImpDoubleToSalInt64( d ); in ImpPutDecimal()
744 *p->puInt64 = ImpDoubleToSalUInt64( d ); in ImpPutDecimal()
748 if( !pDec->getSingle( *p->pSingle ) ) in ImpPutDecimal()
751 *p->pSingle = 0; in ImpPutDecimal()
757 if( !pDec->getDouble( *p->pDouble ) ) in ImpPutDecimal()
760 *p->pDouble = 0; in ImpPutDecimal()
767 *p->pULong64 = ImpDoubleToUINT64( d ); in ImpPutDecimal()
774 *p->pLong64 = ImpDoubleToINT64( d ); in ImpPutDecimal()
781 *p->pLong64 = ImpDoubleToCurrency( d ); in ImpPutDecimal()
789 (void)p; in ImpPutDecimal()