Lines Matching refs:p
35 sal_Int16 ImpGetInteger( const SbxValues* p ) in ImpGetInteger() argument
40 switch( +p->eType ) in ImpGetInteger()
47 nRes = p->nChar; break; in ImpGetInteger()
49 nRes = p->nByte; break; in ImpGetInteger()
52 nRes = p->nInteger; break; in ImpGetInteger()
55 if( p->nUShort > (sal_uInt16) SbxMAXINT ) in ImpGetInteger()
60 nRes = (sal_Int16) p->nUShort; in ImpGetInteger()
63 if( p->nLong > SbxMAXINT ) in ImpGetInteger()
67 else if( p->nLong < SbxMININT ) in ImpGetInteger()
72 nRes = (sal_Int16) p->nLong; in ImpGetInteger()
75 if( p->nULong > SbxMAXINT ) in ImpGetInteger()
80 nRes = (sal_Int16) p->nULong; in ImpGetInteger()
83 if( p->nSingle > SbxMAXINT ) in ImpGetInteger()
87 else if( p->nSingle < SbxMININT ) in ImpGetInteger()
92 nRes = (sal_Int16) ImpRound( p->nSingle ); in ImpGetInteger()
95 if( p->nInt64 > SbxMAXINT ) in ImpGetInteger()
99 else if( p->nInt64 < SbxMININT ) in ImpGetInteger()
104 nRes = (sal_Int16) p->nInt64; in ImpGetInteger()
107 if( p->uInt64 > SbxMAXINT ) in ImpGetInteger()
112 nRes = (sal_Int16) p->uInt64; in ImpGetInteger()
123 if( p->eType == SbxCURRENCY ) in ImpGetInteger()
124 dVal = ImpCurrencyToDouble( p->nLong64 ); in ImpGetInteger()
125 else if( p->eType == SbxLONG64 ) in ImpGetInteger()
126 dVal = ImpINT64ToDouble( p->nLong64 ); in ImpGetInteger()
127 else if( p->eType == SbxULONG64 ) in ImpGetInteger()
128 dVal = ImpUINT64ToDouble( p->nULong64 ); in ImpGetInteger()
129 else if( p->eType == SbxDECIMAL ) in ImpGetInteger()
132 if( p->pDecimal ) in ImpGetInteger()
133 p->pDecimal->getDouble( dVal ); in ImpGetInteger()
136 dVal = p->nDouble; in ImpGetInteger()
153 if( !p->pOUString ) in ImpGetInteger()
159 if( ImpScan( *p->pOUString, d, t, NULL ) != SbxERR_OK ) in ImpGetInteger()
175 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpGetInteger()
186 nRes = *p->pChar; break; in ImpGetInteger()
188 nRes = *p->pByte; break; in ImpGetInteger()
191 nRes = *p->pInteger; break; in ImpGetInteger()
195 aTmp.nLong = *p->pLong; goto ref; in ImpGetInteger()
197 aTmp.nULong = *p->pULong; goto ref; in ImpGetInteger()
200 aTmp.nUShort = *p->pUShort; goto ref; in ImpGetInteger()
202 aTmp.nSingle = *p->pSingle; goto ref; in ImpGetInteger()
205 aTmp.nDouble = *p->pDouble; goto ref; in ImpGetInteger()
207 aTmp.nULong64 = *p->pULong64; goto ref; in ImpGetInteger()
210 aTmp.nLong64 = *p->pLong64; goto ref; in ImpGetInteger()
212 aTmp.nInt64 = *p->pnInt64; goto ref; in ImpGetInteger()
214 aTmp.uInt64 = *p->puInt64; goto ref; in ImpGetInteger()
216 aTmp.eType = SbxDataType( p->eType & 0x0FFF ); in ImpGetInteger()
217 p = &aTmp; goto start; in ImpGetInteger()
225 void ImpPutInteger( SbxValues* p, sal_Int16 n ) in ImpPutInteger() argument
229 switch( +p->eType ) in ImpPutInteger()
233 aTmp.pChar = &p->nChar; goto direct; in ImpPutInteger()
235 aTmp.pByte = &p->nByte; goto direct; in ImpPutInteger()
237 aTmp.pULong = &p->nULong; goto direct; in ImpPutInteger()
240 aTmp.pUShort = &p->nUShort; goto direct; in ImpPutInteger()
242 aTmp.puInt64 = &p->uInt64; goto direct; in ImpPutInteger()
244 aTmp.eType = SbxDataType( p->eType | SbxBYREF ); in ImpPutInteger()
245 p = &aTmp; goto start; in ImpPutInteger()
250 p->nInteger = n; break; in ImpPutInteger()
252 p->nLong = n; break; in ImpPutInteger()
254 p->nSingle = n; break; in ImpPutInteger()
257 p->nDouble = n; break; in ImpPutInteger()
259 p->nInt64 = n; break; in ImpPutInteger()
261 p->nULong64 = ImpDoubleToUINT64( (double)n ); break; in ImpPutInteger()
263 p->nLong64 = ImpDoubleToINT64( (double)n ); break; in ImpPutInteger()
265 p->nLong64 = ImpDoubleToCurrency( (double)n ); break; in ImpPutInteger()
268 ImpCreateDecimal( p )->setInt( n ); in ImpPutInteger()
274 if( !p->pOUString ) in ImpPutInteger()
275 p->pOUString = new ::rtl::OUString; in ImpPutInteger()
276 ImpCvtNum( (double) n, 0, *p->pOUString ); in ImpPutInteger()
280 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpPutInteger()
292 *p->pChar = (char) n; break; in ImpPutInteger()
302 *p->pByte = (sal_uInt8) n; break; in ImpPutInteger()
305 *p->pInteger = n; break; in ImpPutInteger()
312 *p->pUShort = (sal_uInt16) n; break; in ImpPutInteger()
314 *p->pLong = (sal_Int32) n; break; in ImpPutInteger()
320 *p->pULong = (sal_uInt32) n; break; in ImpPutInteger()
322 *p->pnInt64 = n; break; in ImpPutInteger()
326 SbxBase::SetError( SbxERR_OVERFLOW ); *p->puInt64 = 0; in ImpPutInteger()
329 *p->puInt64 = n; in ImpPutInteger()
332 *p->pSingle = (float) n; break; in ImpPutInteger()
335 *p->pDouble = (double) n; break; in ImpPutInteger()
337 *p->pULong64 = ImpDoubleToUINT64( (double)n ); break; in ImpPutInteger()
339 *p->pLong64 = ImpDoubleToINT64( (double)n ); break; in ImpPutInteger()
341 *p->pLong64 = ImpDoubleToCurrency( (double)n ); break; in ImpPutInteger()
394 sal_Int64 ImpGetInt64( const SbxValues* p ) in ImpGetInt64() argument
399 switch( +p->eType ) in ImpGetInt64()
406 nRes = p->nChar; break; in ImpGetInt64()
408 nRes = p->nByte; break; in ImpGetInt64()
411 nRes = p->nInteger; break; in ImpGetInt64()
414 nRes = p->nUShort; break; in ImpGetInt64()
416 nRes = p->nLong; break; in ImpGetInt64()
418 nRes = (sal_Int64) p->nULong; break; in ImpGetInt64()
420 nRes = ImpDoubleToSalInt64( (double)p->nSingle ); in ImpGetInt64()
429 if( p->eType == SbxCURRENCY ) in ImpGetInt64()
430 dVal = ImpCurrencyToDouble( p->nLong64 ); in ImpGetInt64()
431 else if( p->eType == SbxLONG64 ) in ImpGetInt64()
432 dVal = ImpINT64ToDouble( p->nLong64 ); in ImpGetInt64()
433 else if( p->eType == SbxULONG64 ) in ImpGetInt64()
434 dVal = ImpUINT64ToDouble( p->nULong64 ); in ImpGetInt64()
436 dVal = p->nDouble; in ImpGetInt64()
442 nRes = p->nInt64; break; in ImpGetInt64()
444 if( p->uInt64 > SbxMAXSALINT64 ) in ImpGetInt64()
449 nRes = (sal_Int64) p->uInt64; in ImpGetInt64()
455 if( !p->pOUString ) in ImpGetInt64()
460 ( *p->pOUString, RTL_TEXTENCODING_ASCII_US ); in ImpGetInt64()
467 if( ImpScan( *p->pOUString, d, t, NULL ) != SbxERR_OK ) in ImpGetInt64()
476 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpGetInt64()
487 nRes = *p->pChar; break; in ImpGetInt64()
489 nRes = *p->pByte; break; in ImpGetInt64()
492 nRes = *p->pInteger; break; in ImpGetInt64()
494 nRes = *p->pLong; break; in ImpGetInt64()
496 nRes = *p->pULong; break; in ImpGetInt64()
498 nRes = *p->pnInt64; break; in ImpGetInt64()
503 aTmp.nUShort = *p->pUShort; goto ref; in ImpGetInt64()
505 aTmp.nSingle = *p->pSingle; goto ref; in ImpGetInt64()
508 aTmp.nDouble = *p->pDouble; goto ref; in ImpGetInt64()
510 aTmp.nULong64 = *p->pULong64; goto ref; in ImpGetInt64()
513 aTmp.nLong64 = *p->pLong64; goto ref; in ImpGetInt64()
515 aTmp.uInt64 = *p->puInt64; goto ref; in ImpGetInt64()
517 aTmp.eType = SbxDataType( p->eType & 0x0FFF ); in ImpGetInt64()
518 p = &aTmp; goto start; in ImpGetInt64()
526 void ImpPutInt64( SbxValues* p, sal_Int64 n ) in ImpPutInt64() argument
531 switch( +p->eType ) in ImpPutInt64()
535 aTmp.pChar = &p->nChar; goto direct; in ImpPutInt64()
537 aTmp.pByte = &p->nByte; goto direct; in ImpPutInt64()
540 aTmp.pInteger = &p->nInteger; goto direct; in ImpPutInt64()
542 aTmp.pULong64 = &p->nULong64; goto direct; in ImpPutInt64()
545 aTmp.pLong64 = &p->nLong64; goto direct; in ImpPutInt64()
547 aTmp.pULong = &p->nULong; goto direct; in ImpPutInt64()
550 aTmp.pUShort = &p->nUShort; goto direct; in ImpPutInt64()
552 aTmp.pnInt64 = &p->nInt64; goto direct; in ImpPutInt64()
554 aTmp.puInt64 = &p->uInt64; goto direct; in ImpPutInt64()
557 aTmp.eType = SbxDataType( p->eType | SbxBYREF ); in ImpPutInt64()
558 p = &aTmp; goto start; in ImpPutInt64()
562 p->nInt64 = n; break; in ImpPutInt64()
564 p->nSingle = (float) n; break; in ImpPutInt64()
567 p->nDouble = (double) n; break; in ImpPutInt64()
573 if( !p->pOUString ) in ImpPutInt64()
574 p->pOUString = new ::rtl::OUString; in ImpPutInt64()
577 (*p->pOUString) = ::rtl::OStringToOUString in ImpPutInt64()
583 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpPutInt64()
599 *p->pChar = (xub_Unicode) n; break; in ImpPutInt64()
609 *p->pByte = (sal_uInt8) n; break; in ImpPutInt64()
620 *p->pInteger = (sal_Int16) n; break; in ImpPutInt64()
631 *p->pUShort = (sal_uInt16) n; break; in ImpPutInt64()
641 *p->pLong = (sal_Int32) n; break; in ImpPutInt64()
651 *p->pULong = (sal_uInt32) n; break; in ImpPutInt64()
653 *p->pSingle = (float) n; break; in ImpPutInt64()
656 *p->pDouble = (double) n; break; in ImpPutInt64()
666 *p->pLong64 = ImpDoubleToCurrency( (double)n ); break; in ImpPutInt64()
669 *p->pnInt64 = n; break; in ImpPutInt64()
675 *p->puInt64 = (sal_Int64) n; break; in ImpPutInt64()
682 sal_uInt64 ImpGetUInt64( const SbxValues* p ) in ImpGetUInt64() argument
687 switch( +p->eType ) in ImpGetUInt64()
694 nRes = p->nChar; break; in ImpGetUInt64()
696 nRes = p->nByte; break; in ImpGetUInt64()
699 nRes = p->nInteger; break; in ImpGetUInt64()
702 nRes = p->nUShort; break; in ImpGetUInt64()
704 nRes = p->nLong; break; in ImpGetUInt64()
706 nRes = (sal_uInt64) p->nULong; break; in ImpGetUInt64()
708 nRes = ImpDoubleToSalUInt64( (double)p->nSingle ); in ImpGetUInt64()
717 if( p->eType == SbxCURRENCY ) in ImpGetUInt64()
718 dVal = ImpCurrencyToDouble( p->nLong64 ); in ImpGetUInt64()
719 else if( p->eType == SbxLONG64 ) in ImpGetUInt64()
720 dVal = ImpINT64ToDouble( p->nLong64 ); in ImpGetUInt64()
721 else if( p->eType == SbxULONG64 ) in ImpGetUInt64()
722 dVal = ImpUINT64ToDouble( p->nULong64 ); in ImpGetUInt64()
724 dVal = p->nDouble; in ImpGetUInt64()
730 if( p->nInt64 < 0 ) in ImpGetUInt64()
735 nRes = (sal_uInt64) p->nInt64; in ImpGetUInt64()
737 nRes = p->uInt64; break; in ImpGetUInt64()
742 if( !p->pOUString ) in ImpGetUInt64()
747 ( *p->pOUString, RTL_TEXTENCODING_ASCII_US ); in ImpGetUInt64()
754 if( ImpScan( *p->pOUString, d, t, NULL ) != SbxERR_OK ) in ImpGetUInt64()
779 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpGetUInt64()
790 nRes = *p->pChar; break; in ImpGetUInt64()
792 nRes = *p->pByte; break; in ImpGetUInt64()
795 nRes = *p->pInteger; break; in ImpGetUInt64()
797 nRes = *p->pLong; break; in ImpGetUInt64()
799 nRes = *p->pULong; break; in ImpGetUInt64()
801 nRes = *p->puInt64; break; in ImpGetUInt64()
806 aTmp.nUShort = *p->pUShort; goto ref; in ImpGetUInt64()
808 aTmp.nSingle = *p->pSingle; goto ref; in ImpGetUInt64()
811 aTmp.nDouble = *p->pDouble; goto ref; in ImpGetUInt64()
813 aTmp.nULong64 = *p->pULong64; goto ref; in ImpGetUInt64()
816 aTmp.nLong64 = *p->pLong64; goto ref; in ImpGetUInt64()
818 aTmp.nInt64 = *p->pnInt64; goto ref; in ImpGetUInt64()
820 aTmp.eType = SbxDataType( p->eType & 0x0FFF ); in ImpGetUInt64()
821 p = &aTmp; goto start; in ImpGetUInt64()
829 void ImpPutUInt64( SbxValues* p, sal_uInt64 n ) in ImpPutUInt64() argument
834 switch( +p->eType ) in ImpPutUInt64()
838 aTmp.pChar = &p->nChar; goto direct; in ImpPutUInt64()
840 aTmp.pByte = &p->nByte; goto direct; in ImpPutUInt64()
843 aTmp.pInteger = &p->nInteger; goto direct; in ImpPutUInt64()
845 aTmp.pULong64 = &p->nULong64; goto direct; in ImpPutUInt64()
848 aTmp.pLong64 = &p->nLong64; goto direct; in ImpPutUInt64()
850 aTmp.pULong = &p->nULong; goto direct; in ImpPutUInt64()
853 aTmp.pUShort = &p->nUShort; goto direct; in ImpPutUInt64()
855 aTmp.pnInt64 = &p->nInt64; goto direct; in ImpPutUInt64()
857 aTmp.pnInt64 = &p->nInt64; goto direct; in ImpPutUInt64()
859 aTmp.pSingle = &p->nSingle; goto direct; in ImpPutUInt64()
862 aTmp.pDouble = &p->nDouble; goto direct; in ImpPutUInt64()
865 aTmp.eType = SbxDataType( p->eType | SbxBYREF ); in ImpPutUInt64()
866 p = &aTmp; goto start; in ImpPutUInt64()
870 p->uInt64 = n; break; in ImpPutUInt64()
875 if( !p->pOUString ) in ImpPutUInt64()
876 p->pOUString = new ::rtl::OUString; in ImpPutUInt64()
882 (*p->pOUString) = ::rtl::OStringToOUString in ImpPutUInt64()
888 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpPutUInt64()
900 *p->pChar = (xub_Unicode) n; break; in ImpPutUInt64()
906 *p->pByte = (sal_uInt8) n; break; in ImpPutUInt64()
913 *p->pInteger = (sal_Int16) n; break; in ImpPutUInt64()
920 *p->pUShort = (sal_uInt16) n; break; in ImpPutUInt64()
926 *p->pLong = (sal_Int32) n; break; in ImpPutUInt64()
932 *p->pULong = (sal_uInt32) n; break; in ImpPutUInt64()
934 *p->pDouble = (float)ImpSalUInt64ToDouble( n ); break; in ImpPutUInt64()
937 *p->pDouble = ImpSalUInt64ToDouble( n ); break; in ImpPutUInt64()
943 *p->pLong64 = ImpDoubleToCurrency( (double)(sal_Int64) n ); break; in ImpPutUInt64()
946 *p->puInt64 = n; break; in ImpPutUInt64()
952 *p->pnInt64 = (sal_Int64) n; break; in ImpPutUInt64()