Lines Matching refs:p
30 sal_Int32 ImpGetLong( const SbxValues* p ) in ImpGetLong() argument
35 switch( +p->eType ) in ImpGetLong()
42 nRes = p->nChar; break; in ImpGetLong()
44 nRes = p->nByte; break; in ImpGetLong()
47 nRes = p->nInteger; break; in ImpGetLong()
50 nRes = p->nUShort; break; in ImpGetLong()
52 nRes = p->nLong; break; in ImpGetLong()
54 if( p->nULong > SbxMAXLNG ) in ImpGetLong()
59 nRes = (sal_Int32) p->nULong; in ImpGetLong()
62 if( p->nSingle > SbxMAXLNG ) in ImpGetLong()
66 else if( p->nSingle < SbxMINLNG ) in ImpGetLong()
71 nRes = (sal_Int32) ImpRound( p->nSingle ); in ImpGetLong()
84 if( p->eType == SbxCURRENCY ) in ImpGetLong()
85 dVal = ImpCurrencyToDouble( p->nLong64 ); in ImpGetLong()
86 else if( p->eType == SbxLONG64 ) in ImpGetLong()
87 dVal = ImpINT64ToDouble( p->nLong64 ); in ImpGetLong()
88 else if( p->eType == SbxULONG64 ) in ImpGetLong()
89 dVal = ImpUINT64ToDouble( p->nULong64 ); in ImpGetLong()
90 else if( p->eType == SbxSALINT64 ) in ImpGetLong()
91 dVal = static_cast< double >(p->nInt64); in ImpGetLong()
92 else if( p->eType == SbxSALUINT64 ) in ImpGetLong()
93 dVal = ImpSalUInt64ToDouble( p->uInt64 ); in ImpGetLong()
94 else if( p->eType == SbxDECIMAL ) in ImpGetLong()
97 if( p->pDecimal ) in ImpGetLong()
98 p->pDecimal->getDouble( dVal ); in ImpGetLong()
101 dVal = p->nDouble; in ImpGetLong()
118 if( !p->pOUString ) in ImpGetLong()
124 if( ImpScan( *p->pOUString, d, t, NULL ) != SbxERR_OK ) in ImpGetLong()
140 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpGetLong()
151 nRes = *p->pChar; break; in ImpGetLong()
153 nRes = *p->pByte; break; in ImpGetLong()
156 nRes = *p->pInteger; break; in ImpGetLong()
158 nRes = *p->pLong; break; in ImpGetLong()
162 aTmp.nULong = *p->pULong; goto ref; in ImpGetLong()
165 aTmp.nUShort = *p->pUShort; goto ref; in ImpGetLong()
167 aTmp.nSingle = *p->pSingle; goto ref; in ImpGetLong()
170 aTmp.nDouble = *p->pDouble; goto ref; in ImpGetLong()
172 aTmp.nInt64 = *p->pnInt64; goto ref; in ImpGetLong()
174 aTmp.uInt64 = *p->puInt64; goto ref; in ImpGetLong()
176 aTmp.nULong64 = *p->pULong64; goto ref; in ImpGetLong()
179 aTmp.nLong64 = *p->pLong64; goto ref; in ImpGetLong()
181 aTmp.eType = SbxDataType( p->eType & 0x0FFF ); in ImpGetLong()
182 p = &aTmp; goto start; in ImpGetLong()
190 void ImpPutLong( SbxValues* p, sal_Int32 n ) in ImpPutLong() argument
195 switch( +p->eType ) in ImpPutLong()
199 aTmp.pChar = &p->nChar; goto direct; in ImpPutLong()
201 aTmp.pByte = &p->nByte; goto direct; in ImpPutLong()
204 aTmp.pInteger = &p->nInteger; goto direct; in ImpPutLong()
206 aTmp.pULong64 = &p->nULong64; goto direct; in ImpPutLong()
209 aTmp.pLong64 = &p->nLong64; goto direct; in ImpPutLong()
211 aTmp.pULong = &p->nULong; goto direct; in ImpPutLong()
213 aTmp.puInt64 = &p->uInt64; goto direct; in ImpPutLong()
216 aTmp.pUShort = &p->nUShort; in ImpPutLong()
218 aTmp.eType = SbxDataType( p->eType | SbxBYREF ); in ImpPutLong()
219 p = &aTmp; goto start; in ImpPutLong()
223 p->nLong = n; break; in ImpPutLong()
225 p->nSingle = (float) n; break; in ImpPutLong()
228 p->nDouble = n; break; in ImpPutLong()
230 p->nInt64 = n; break; in ImpPutLong()
233 ImpCreateDecimal( p )->setLong( n ); in ImpPutLong()
239 if( !p->pOUString ) in ImpPutLong()
240 p->pOUString = new ::rtl::OUString; in ImpPutLong()
241 ImpCvtNum( (double) n, 0, *p->pOUString ); in ImpPutLong()
245 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpPutLong()
261 *p->pChar = (xub_Unicode) n; break; in ImpPutLong()
271 *p->pByte = (sal_uInt8) n; break; in ImpPutLong()
282 *p->pInteger = (sal_Int16) n; break; in ImpPutLong()
293 *p->pUShort = (sal_uInt16) n; break; in ImpPutLong()
295 *p->pLong = n; break; in ImpPutLong()
301 *p->pULong = (sal_uInt32) n; break; in ImpPutLong()
303 *p->pnInt64 = n; break; in ImpPutLong()
307 SbxBase::SetError( SbxERR_OVERFLOW ); *p->puInt64 = 0; in ImpPutLong()
310 *p->puInt64 = n; in ImpPutLong()
313 *p->pSingle = (float) n; break; in ImpPutLong()
316 *p->pDouble = (double) n; break; in ImpPutLong()
331 *p->pLong64 = ImpDoubleToCurrency( d ); break; in ImpPutLong()