Lines Matching refs:p
30 sal_uInt32 ImpGetULong( const SbxValues* p ) in ImpGetULong() argument
35 switch( +p->eType ) in ImpGetULong()
42 nRes = p->nChar; in ImpGetULong()
45 nRes = p->nByte; break; in ImpGetULong()
48 if( p->nInteger < 0 ) in ImpGetULong()
53 nRes = p->nInteger; in ImpGetULong()
57 nRes = p->nUShort; in ImpGetULong()
60 if( p->nLong < 0 ) in ImpGetULong()
65 nRes = p->nLong; in ImpGetULong()
68 nRes = p->nULong; break; in ImpGetULong()
70 if( p->nSingle > SbxMAXULNG ) in ImpGetULong()
74 else if( p->nSingle < 0 ) in ImpGetULong()
79 nRes = (sal_uInt32) ( p->nSingle + 0.5 ); in ImpGetULong()
92 if( p->eType == SbxCURRENCY ) in ImpGetULong()
93 dVal = ImpCurrencyToDouble( p->nLong64 ); in ImpGetULong()
94 else if( p->eType == SbxLONG64 ) in ImpGetULong()
95 dVal = ImpINT64ToDouble( p->nLong64 ); in ImpGetULong()
96 else if( p->eType == SbxULONG64 ) in ImpGetULong()
97 dVal = ImpUINT64ToDouble( p->nULong64 ); in ImpGetULong()
98 else if( p->eType == SbxSALINT64 ) in ImpGetULong()
99 dVal = static_cast< double >(p->nInt64); in ImpGetULong()
100 else if( p->eType == SbxSALUINT64 ) in ImpGetULong()
101 dVal = ImpSalUInt64ToDouble( p->uInt64 ); in ImpGetULong()
102 else if( p->eType == SbxDECIMAL ) in ImpGetULong()
105 if( p->pDecimal ) in ImpGetULong()
106 p->pDecimal->getDouble( dVal ); in ImpGetULong()
109 dVal = p->nDouble; in ImpGetULong()
126 if( !p->pOUString ) in ImpGetULong()
132 if( ImpScan( *p->pOUString, d, t, NULL ) != SbxERR_OK ) in ImpGetULong()
148 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpGetULong()
159 nRes = *p->pByte; break; in ImpGetULong()
162 nRes = *p->pUShort; break; in ImpGetULong()
164 nRes = *p->pULong; break; in ImpGetULong()
168 aTmp.nChar = *p->pChar; goto ref; in ImpGetULong()
171 aTmp.nInteger = *p->pInteger; goto ref; in ImpGetULong()
173 aTmp.nLong = *p->pLong; goto ref; in ImpGetULong()
175 aTmp.nSingle = *p->pSingle; goto ref; in ImpGetULong()
178 aTmp.nDouble = *p->pDouble; goto ref; in ImpGetULong()
180 aTmp.nInt64 = *p->pnInt64; goto ref; in ImpGetULong()
182 aTmp.uInt64 = *p->puInt64; goto ref; in ImpGetULong()
184 aTmp.nULong64 = *p->pULong64; goto ref; in ImpGetULong()
187 aTmp.nLong64 = *p->pLong64; goto ref; in ImpGetULong()
189 aTmp.eType = SbxDataType( p->eType & 0x0FFF ); in ImpGetULong()
190 p = &aTmp; goto start; in ImpGetULong()
198 void ImpPutULong( SbxValues* p, sal_uInt32 n ) in ImpPutULong() argument
202 switch( +p->eType ) in ImpPutULong()
205 p->nULong = n; break; in ImpPutULong()
207 p->nSingle = (float) n; break; in ImpPutULong()
210 p->nDouble = n; break; in ImpPutULong()
212 p->nInt64 = n; break; in ImpPutULong()
214 p->uInt64 = n; break; in ImpPutULong()
217 ImpCreateDecimal( p )->setULong( n ); in ImpPutULong()
222 aTmp.pChar = &p->nChar; goto direct; in ImpPutULong()
224 aTmp.pByte = &p->nByte; goto direct; in ImpPutULong()
227 aTmp.pInteger = &p->nInteger; goto direct; in ImpPutULong()
229 aTmp.pLong = &p->nLong; goto direct; in ImpPutULong()
232 aTmp.pUShort = &p->nUShort; goto direct; in ImpPutULong()
234 aTmp.pULong64 = &p->nULong64; goto direct; in ImpPutULong()
237 aTmp.pLong64 = &p->nLong64; goto direct; in ImpPutULong()
239 aTmp.eType = SbxDataType( p->eType | SbxBYREF ); in ImpPutULong()
240 p = &aTmp; goto start; in ImpPutULong()
245 if( !p->pOUString ) in ImpPutULong()
246 p->pOUString = new ::rtl::OUString; in ImpPutULong()
247 ImpCvtNum( (double) n, 0, *p->pOUString ); in ImpPutULong()
251 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpPutULong()
263 *p->pChar = (xub_Unicode) n; break; in ImpPutULong()
269 *p->pByte = (sal_uInt8) n; break; in ImpPutULong()
276 *p->pInteger = (sal_Int16) n; break; in ImpPutULong()
283 *p->pUShort = (sal_uInt16) n; break; in ImpPutULong()
289 *p->pLong = (sal_Int32) n; break; in ImpPutULong()
291 *p->pULong = n; break; in ImpPutULong()
293 *p->pSingle = (float) n; break; in ImpPutULong()
296 *p->pDouble = n; break; in ImpPutULong()
298 *p->pnInt64 = n; break; in ImpPutULong()
300 *p->puInt64 = n; break; in ImpPutULong()
311 *p->pLong64 = ImpDoubleToCurrency( n ); break; in ImpPutULong()