Lines Matching refs:p
30 float ImpGetSingle( const SbxValues* p ) in ImpGetSingle() argument
35 switch( +p->eType ) in ImpGetSingle()
42 nRes = p->nChar; break; in ImpGetSingle()
44 nRes = p->nByte; break; in ImpGetSingle()
47 nRes = p->nInteger; break; in ImpGetSingle()
50 nRes = p->nUShort; break; in ImpGetSingle()
52 nRes = (float) p->nLong; break; in ImpGetSingle()
54 nRes = (float) p->nULong; break; in ImpGetSingle()
56 nRes = p->nSingle; break; in ImpGetSingle()
58 nRes = (float) p->nInt64; break; in ImpGetSingle()
60 nRes = (float) ImpSalUInt64ToDouble( p->uInt64 ); break; in ImpGetSingle()
63 if( p->pDecimal ) in ImpGetSingle()
64 p->pDecimal->getSingle( nRes ); in ImpGetSingle()
75 if( p->eType == SbxCURRENCY ) in ImpGetSingle()
76 dVal = ImpCurrencyToDouble( p->nLong64 ); in ImpGetSingle()
77 else if( p->eType == SbxLONG64 ) in ImpGetSingle()
78 dVal = ImpINT64ToDouble( p->nLong64 ); in ImpGetSingle()
79 else if( p->eType == SbxULONG64 ) in ImpGetSingle()
80 dVal = ImpUINT64ToDouble( p->nULong64 ); in ImpGetSingle()
82 dVal = p->nDouble; in ImpGetSingle()
111 if( !p->pOUString ) in ImpGetSingle()
117 if( ImpScan( *p->pOUString, d, t, NULL ) != SbxERR_OK ) in ImpGetSingle()
135 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpGetSingle()
146 nRes = *p->pChar; break; in ImpGetSingle()
148 nRes = *p->pByte; break; in ImpGetSingle()
151 nRes = *p->pInteger; break; in ImpGetSingle()
153 nRes = (float) *p->pLong; break; in ImpGetSingle()
155 nRes = (float) *p->pULong; break; in ImpGetSingle()
158 nRes = *p->pUShort; break; in ImpGetSingle()
160 nRes = *p->pSingle; break; in ImpGetSingle()
164 aTmp.nDouble = *p->pDouble; goto ref; in ImpGetSingle()
166 aTmp.nULong64 = *p->pULong64; goto ref; in ImpGetSingle()
169 nRes = (float) *p->pnInt64; break; in ImpGetSingle()
171 nRes = (float) ImpSalUInt64ToDouble( *p->puInt64 ); break; in ImpGetSingle()
173 aTmp.nLong64 = *p->pLong64; goto ref; in ImpGetSingle()
175 aTmp.eType = SbxDataType( p->eType & 0x0FFF ); in ImpGetSingle()
176 p = &aTmp; goto start; in ImpGetSingle()
184 void ImpPutSingle( SbxValues* p, float n ) in ImpPutSingle() argument
188 switch( +p->eType ) in ImpPutSingle()
191 aTmp.pChar = &p->nChar; goto direct; in ImpPutSingle()
193 aTmp.pByte = &p->nByte; goto direct; in ImpPutSingle()
196 aTmp.pInteger = &p->nInteger; goto direct; in ImpPutSingle()
198 aTmp.pLong = &p->nLong; goto direct; in ImpPutSingle()
200 aTmp.pULong = &p->nULong; goto direct; in ImpPutSingle()
203 aTmp.pUShort = &p->nUShort; goto direct; in ImpPutSingle()
205 aTmp.pULong64 = &p->nULong64; goto direct; in ImpPutSingle()
208 aTmp.pLong64 = &p->nLong64; goto direct; in ImpPutSingle()
210 aTmp.pnInt64 = &p->nInt64; goto direct; in ImpPutSingle()
212 aTmp.puInt64 = &p->uInt64; goto direct; in ImpPutSingle()
216 SbxDecimal* pDec = ImpCreateDecimal( p ); in ImpPutSingle()
222 aTmp.eType = SbxDataType( p->eType | SbxBYREF ); in ImpPutSingle()
223 p = &aTmp; goto start; in ImpPutSingle()
227 p->nSingle = n; break; in ImpPutSingle()
230 p->nDouble = n; break; in ImpPutSingle()
236 if( !p->pOUString ) in ImpPutSingle()
237 p->pOUString = new ::rtl::OUString; in ImpPutSingle()
238 ImpCvtNum( (double) n, 6, *p->pOUString ); in ImpPutSingle()
243 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpPutSingle()
259 *p->pChar = (xub_Unicode) n; break; in ImpPutSingle()
269 *p->pByte = (sal_uInt8) n; break; in ImpPutSingle()
280 *p->pInteger = (sal_Int16) n; break; in ImpPutSingle()
291 *p->pUShort = (sal_uInt16) n; break; in ImpPutSingle()
307 *p->pLong = i; break; in ImpPutSingle()
324 *p->pULong = i; break; in ImpPutSingle()
327 *p->pSingle = n; break; in ImpPutSingle()
330 *p->pDouble = (double) n; break; in ImpPutSingle()
332 *p->pnInt64 = ImpDoubleToSalInt64( (double) n ); break; in ImpPutSingle()
334 *p->puInt64 = ImpDoubleToSalUInt64( (double) n ); break; in ImpPutSingle()
349 *p->pLong64 = ImpDoubleToCurrency( n ); break; in ImpPutSingle()