Lines Matching refs:p
37 double ImpGetDate( const SbxValues* p ) in ImpGetDate() argument
40 switch( +p->eType ) in ImpGetDate()
47 nRes = p->nChar; break; in ImpGetDate()
49 nRes = p->nByte; break; in ImpGetDate()
52 nRes = p->nInteger; break; in ImpGetDate()
55 nRes = p->nUShort; break; in ImpGetDate()
57 nRes = (double) p->nLong; break; in ImpGetDate()
59 nRes = (double) p->nULong; break; in ImpGetDate()
61 nRes = p->nSingle; break; in ImpGetDate()
64 nRes = p->nDouble; break; in ImpGetDate()
66 nRes = ImpUINT64ToDouble( p->nULong64 ); break; in ImpGetDate()
68 nRes = ImpINT64ToDouble( p->nLong64 ); break; in ImpGetDate()
70 nRes = ImpCurrencyToDouble( p->nLong64 ); break; in ImpGetDate()
72 nRes = static_cast< double >(p->nInt64); break; in ImpGetDate()
74 nRes = ImpSalUInt64ToDouble( p->uInt64 ); break; in ImpGetDate()
77 if( p->pDecimal ) in ImpGetDate()
78 p->pDecimal->getDouble( nRes ); in ImpGetDate()
85 if( !p->pOUString ) in ImpGetDate()
124 sal_Bool bSuccess = pFormatter->IsNumberFormat( *p->pOUString, nIndex, nRes ); in ImpGetDate()
143 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpGetDate()
154 nRes = *p->pChar; break; in ImpGetDate()
156 nRes = *p->pByte; break; in ImpGetDate()
159 nRes = *p->pInteger; break; in ImpGetDate()
161 nRes = *p->pLong; break; in ImpGetDate()
163 nRes = *p->pULong; break; in ImpGetDate()
166 nRes = *p->pUShort; break; in ImpGetDate()
168 nRes = *p->pSingle; break; in ImpGetDate()
171 nRes = *p->pDouble; break; in ImpGetDate()
173 nRes = ImpUINT64ToDouble( *p->pULong64 ); break; in ImpGetDate()
175 nRes = ImpINT64ToDouble( *p->pLong64 ); break; in ImpGetDate()
177 nRes = ImpCurrencyToDouble( *p->pLong64 ); break; in ImpGetDate()
179 nRes = static_cast< double >(*p->pnInt64); break; in ImpGetDate()
181 nRes = ImpSalUInt64ToDouble( *p->puInt64 ); break; in ImpGetDate()
189 void ImpPutDate( SbxValues* p, double n ) in ImpPutDate() argument
194 switch( +p->eType ) in ImpPutDate()
198 p->nDouble = n; break; in ImpPutDate()
202 aTmp.pChar = &p->nChar; goto direct; in ImpPutDate()
204 aTmp.pByte = &p->nByte; goto direct; in ImpPutDate()
207 aTmp.pInteger = &p->nInteger; goto direct; in ImpPutDate()
209 aTmp.pLong = &p->nLong; goto direct; in ImpPutDate()
211 aTmp.pULong = &p->nULong; goto direct; in ImpPutDate()
214 aTmp.pUShort = &p->nUShort; goto direct; in ImpPutDate()
216 aTmp.pSingle = &p->nSingle; goto direct; in ImpPutDate()
218 aTmp.pULong64 = &p->nULong64; goto direct; in ImpPutDate()
221 aTmp.pLong64 = &p->nLong64; goto direct; in ImpPutDate()
223 aTmp.pnInt64 = &p->nInt64; goto direct; in ImpPutDate()
225 aTmp.puInt64 = &p->uInt64; goto direct; in ImpPutDate()
229 SbxDecimal* pDec = ImpCreateDecimal( p ); in ImpPutDate()
235 aTmp.eType = SbxDataType( p->eType | SbxBYREF ); in ImpPutDate()
236 p = &aTmp; goto start; in ImpPutDate()
242 if( !p->pOUString ) in ImpPutDate()
243 p->pOUString = new ::rtl::OUString; in ImpPutDate()
295 *p->pOUString = aTmpString; in ImpPutDate()
301 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpPutDate()
317 *p->pChar = (xub_Unicode) n; break; in ImpPutDate()
327 *p->pByte = (sal_uInt8) n; break; in ImpPutDate()
338 *p->pInteger = (sal_Int16) n; break; in ImpPutDate()
349 *p->pUShort = (sal_uInt16) n; break; in ImpPutDate()
359 *p->pLong = (sal_Int32) n; break; in ImpPutDate()
369 *p->pULong = (sal_uInt32) n; break; in ImpPutDate()
379 *p->pSingle = (float) n; break; in ImpPutDate()
381 *p->pnInt64 = ImpDoubleToSalInt64( n ); break; in ImpPutDate()
383 *p->puInt64 = ImpDoubleToSalUInt64( n ); break; in ImpPutDate()
386 *p->pDouble = (double) n; break; in ImpPutDate()
396 *p->pLong64 = ImpDoubleToCurrency( n ); break; in ImpPutDate()