Lines Matching refs:p

39 SbxINT64 ImpGetCurrency( const SbxValues* p )  in ImpGetCurrency()  argument
44 switch( +p->eType ) in ImpGetCurrency()
51 nRes = ImpDoubleToCurrency( (double)p->nChar ); break; in ImpGetCurrency()
53 nRes = ImpDoubleToCurrency( (double)p->nByte ); break; in ImpGetCurrency()
56 nRes = ImpDoubleToCurrency( (double)p->nInteger ); break; in ImpGetCurrency()
59 nRes = ImpDoubleToCurrency( (double)p->nUShort ); break; in ImpGetCurrency()
61 nRes = p->nLong64; break; in ImpGetCurrency()
63 nRes = ImpDoubleToCurrency( (double)p->nLong ); in ImpGetCurrency()
66 nRes = ImpDoubleToCurrency( (double)p->nULong ); in ImpGetCurrency()
69 nRes = ImpDoubleToCurrency( (double)p->nInt64 ); in ImpGetCurrency()
72 nRes = ImpDoubleToCurrency( ImpSalUInt64ToDouble( p->uInt64 ) ); in ImpGetCurrency()
75 if( p->nSingle > SbxMAXCURR ) in ImpGetCurrency()
79 else if( p->nSingle < SbxMINCURR ) in ImpGetCurrency()
84 nRes = ImpDoubleToCurrency( (double)p->nSingle ); in ImpGetCurrency()
88 if( p->nDouble > SbxMAXCURR ) in ImpGetCurrency()
92 else if( p->nDouble < SbxMINCURR ) in ImpGetCurrency()
97 nRes = ImpDoubleToCurrency( p->nDouble ); in ImpGetCurrency()
103 if( p->pDecimal ) in ImpGetCurrency()
104 p->pDecimal->getDouble( d ); in ImpGetCurrency()
120 if( !p->pOUString ) in ImpGetCurrency()
123 nRes = ImpStringToCurrency( *p->pOUString ); in ImpGetCurrency()
127 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpGetCurrency()
138 nRes = ImpDoubleToCurrency( (double)*p->pChar ); break; in ImpGetCurrency()
140 nRes = ImpDoubleToCurrency( (double)*p->pByte ); break; in ImpGetCurrency()
143 nRes = ImpDoubleToCurrency( (double)*p->pInteger ); break; in ImpGetCurrency()
146 nRes = ImpDoubleToCurrency( (double)*p->pUShort ); break; in ImpGetCurrency()
148 nRes = *p->pLong64; break; in ImpGetCurrency()
152 aTmp.nLong = *p->pLong; goto ref; in ImpGetCurrency()
154 aTmp.nULong = *p->pULong; goto ref; in ImpGetCurrency()
156 aTmp.nSingle = *p->pSingle; goto ref; in ImpGetCurrency()
159 aTmp.nDouble = *p->pDouble; goto ref; in ImpGetCurrency()
161 aTmp.nInt64 = *p->pnInt64; goto ref; in ImpGetCurrency()
163 aTmp.uInt64 = *p->puInt64; goto ref; in ImpGetCurrency()
165 aTmp.eType = SbxDataType( p->eType & 0x0FFF ); in ImpGetCurrency()
166 p = &aTmp; goto start; in ImpGetCurrency()
174 void ImpPutCurrency( SbxValues* p, const SbxINT64 &r ) in ImpPutCurrency() argument
179 switch( +p->eType ) in ImpPutCurrency()
183 aTmp.pChar = &p->nChar; goto direct; in ImpPutCurrency()
185 aTmp.pByte = &p->nByte; goto direct; in ImpPutCurrency()
188 aTmp.pInteger = &p->nInteger; goto direct; in ImpPutCurrency()
190 aTmp.pLong = &p->nLong; goto direct; in ImpPutCurrency()
192 aTmp.pULong = &p->nULong; goto direct; in ImpPutCurrency()
195 aTmp.pUShort = &p->nUShort; goto direct; in ImpPutCurrency()
197 aTmp.eType = SbxDataType( p->eType | SbxBYREF ); in ImpPutCurrency()
198 p = &aTmp; goto start; in ImpPutCurrency()
202 p->nSingle = (float)dVal; break; in ImpPutCurrency()
205 p->nDouble = dVal; break; in ImpPutCurrency()
207 p->nInt64 = ImpDoubleToSalInt64( dVal ); break; in ImpPutCurrency()
209 p->uInt64 = ImpDoubleToSalUInt64( dVal ); break; in ImpPutCurrency()
211 p->nLong64 = r; break; in ImpPutCurrency()
215 SbxDecimal* pDec = ImpCreateDecimal( p ); in ImpPutCurrency()
223 if( !p->pOUString ) in ImpPutCurrency()
224 p->pOUString = new ::rtl::OUString; in ImpPutCurrency()
226 *p->pOUString = ImpCurrencyToString( r ); in ImpPutCurrency()
230 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpPutCurrency()
246 *p->pChar = (xub_Unicode) dVal; break; in ImpPutCurrency()
256 *p->pByte = (sal_uInt8) dVal; break; in ImpPutCurrency()
267 *p->pInteger = (sal_Int16) dVal; break; in ImpPutCurrency()
278 *p->pUShort = (sal_uInt16) dVal; break; in ImpPutCurrency()
288 *p->pLong = (sal_Int32) dVal; break; in ImpPutCurrency()
298 *p->pULong = (sal_uInt32) dVal; break; in ImpPutCurrency()
300 *p->pnInt64 = ImpDoubleToSalInt64( dVal ); break; in ImpPutCurrency()
302 *p->puInt64 = ImpDoubleToSalUInt64( dVal ); break; in ImpPutCurrency()
304 *p->pSingle = (float) dVal; break; in ImpPutCurrency()
307 *p->pDouble = (double) dVal; break; in ImpPutCurrency()
309 *p->pLong64 = r; break; in ImpPutCurrency()
343 const sal_Unicode* p = r.getStr(); in ImpStringToCurrency() local
345 if( *p == '-' ) in ImpStringToCurrency()
346 aStr += *p++; in ImpStringToCurrency()
348 while( *p >= '0' && *p <= '9' ) { in ImpStringToCurrency()
349 aStr += *p++; in ImpStringToCurrency()
350 if( *p == ',' ) in ImpStringToCurrency()
351 p++; in ImpStringToCurrency()
354 if( *p == '.' ) { in ImpStringToCurrency()
355 p++; in ImpStringToCurrency()
356 while( nDec && *p >= '0' && *p <= '9' ) { in ImpStringToCurrency()
357 aStr += *p++; in ImpStringToCurrency()