Lines Matching refs:p
30 sal_uInt8 ImpGetByte( const SbxValues* p ) in ImpGetByte() argument
35 switch( +p->eType ) in ImpGetByte()
42 if( p->nChar > SbxMAXBYTE ) in ImpGetByte()
47 nRes = (sal_uInt8) p->nChar; in ImpGetByte()
50 nRes = (sal_uInt8) p->nByte; break; in ImpGetByte()
53 if( p->nInteger > SbxMAXBYTE ) in ImpGetByte()
57 else if( p->nInteger < 0 ) in ImpGetByte()
62 nRes = (sal_uInt8) p->nInteger; in ImpGetByte()
66 if( p->nUShort > (sal_uInt16) SbxMAXBYTE ) in ImpGetByte()
71 nRes = (sal_uInt8) p->nUShort; in ImpGetByte()
74 if( p->nLong > SbxMAXBYTE ) in ImpGetByte()
78 else if( p->nLong < 0 ) in ImpGetByte()
83 nRes = (sal_uInt8) p->nLong; in ImpGetByte()
86 if( p->nULong > SbxMAXBYTE ) in ImpGetByte()
91 nRes = (sal_uInt8) p->nULong; in ImpGetByte()
94 if( p->nInt64 > SbxMAXBYTE ) in ImpGetByte()
98 else if( p->nInt64 < 0 ) in ImpGetByte()
103 nRes = (sal_uInt8) p->nInt64; in ImpGetByte()
106 if( p->uInt64 > SbxMAXBYTE ) in ImpGetByte()
111 nRes = (sal_uInt8) p->uInt64; in ImpGetByte()
114 if( p->nSingle > SbxMAXBYTE ) in ImpGetByte()
118 else if( p->nSingle < 0 ) in ImpGetByte()
123 nRes = (sal_uInt8) ImpRound( p->nSingle ); in ImpGetByte()
134 if( p->eType == SbxCURRENCY ) in ImpGetByte()
135 dVal = ImpCurrencyToDouble( p->nLong64 ); in ImpGetByte()
136 else if( p->eType == SbxLONG64 ) in ImpGetByte()
137 dVal = ImpINT64ToDouble( p->nLong64 ); in ImpGetByte()
138 else if( p->eType == SbxULONG64 ) in ImpGetByte()
139 dVal = ImpUINT64ToDouble( p->nULong64 ); in ImpGetByte()
140 else if( p->eType == SbxDECIMAL ) in ImpGetByte()
143 if( p->pDecimal ) in ImpGetByte()
144 p->pDecimal->getDouble( dVal ); in ImpGetByte()
147 dVal = p->nDouble; in ImpGetByte()
164 if( !p->pOUString ) in ImpGetByte()
170 if( ImpScan( *p->pOUString, d, t, NULL ) != SbxERR_OK ) in ImpGetByte()
186 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpGetByte()
197 nRes = p->nByte; break; in ImpGetByte()
201 aTmp.nChar = *p->pChar; goto ref; in ImpGetByte()
204 aTmp.nInteger = *p->pInteger; goto ref; in ImpGetByte()
206 aTmp.nLong = *p->pLong; goto ref; in ImpGetByte()
208 aTmp.nULong = *p->pULong; goto ref; in ImpGetByte()
211 aTmp.nUShort = *p->pUShort; goto ref; in ImpGetByte()
213 aTmp.nSingle = *p->pSingle; goto ref; in ImpGetByte()
216 aTmp.nDouble = *p->pDouble; goto ref; in ImpGetByte()
218 aTmp.nULong64 = *p->pULong64; goto ref; in ImpGetByte()
221 aTmp.nLong64 = *p->pLong64; goto ref; in ImpGetByte()
223 aTmp.nInt64 = *p->pnInt64; goto ref; in ImpGetByte()
225 aTmp.uInt64 = *p->puInt64; goto ref; in ImpGetByte()
227 aTmp.eType = SbxDataType( p->eType & 0x0FFF ); in ImpGetByte()
228 p = &aTmp; goto start; in ImpGetByte()
236 void ImpPutByte( SbxValues* p, sal_uInt8 n ) in ImpPutByte() argument
238 switch( +p->eType ) in ImpPutByte()
241 p->nByte = n; break; in ImpPutByte()
244 p->nInteger = n; break; in ImpPutByte()
247 p->nUShort = n; break; in ImpPutByte()
249 p->nLong = n; break; in ImpPutByte()
251 p->nULong = n; break; in ImpPutByte()
253 p->nSingle = n; break; in ImpPutByte()
256 p->nDouble = n; break; in ImpPutByte()
258 p->nInt64 = n; break; in ImpPutByte()
260 p->uInt64 = n; break; in ImpPutByte()
262 p->nULong64 = ImpDoubleToUINT64( (double)n ); break; in ImpPutByte()
264 p->nLong64 = ImpDoubleToINT64( (double)n ); break; in ImpPutByte()
266 p->nLong64 = ImpDoubleToCurrency( (double)n ); break; in ImpPutByte()
269 ImpCreateDecimal( p )->setByte( n ); in ImpPutByte()
273 p->nChar = (xub_Unicode) n; break; in ImpPutByte()
278 if( !p->pOUString ) in ImpPutByte()
279 p->pOUString = new ::rtl::OUString; in ImpPutByte()
280 ImpCvtNum( (double) n, 0, *p->pOUString ); in ImpPutByte()
284 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpPutByte()
292 *p->pChar = (xub_Unicode) n; break; in ImpPutByte()
294 *p->pByte = n; break; in ImpPutByte()
297 *p->pInteger = n; break; in ImpPutByte()
300 *p->pUShort = n; break; in ImpPutByte()
302 *p->pLong = n; break; in ImpPutByte()
304 *p->pULong = n; break; in ImpPutByte()
306 *p->pSingle = n; break; in ImpPutByte()
309 *p->pDouble = n; break; in ImpPutByte()
311 *p->pULong64 = ImpDoubleToUINT64( (double)n ); break; in ImpPutByte()
313 *p->pLong64 = ImpDoubleToINT64( (double)n ); break; in ImpPutByte()
315 *p->pnInt64 = n; break; in ImpPutByte()
317 *p->puInt64 = n; break; in ImpPutByte()
319 *p->pLong64 = ImpDoubleToCurrency( (double)n ); break; in ImpPutByte()