Lines Matching refs:p

31 double ImpGetDouble( const SbxValues* p )  in ImpGetDouble()  argument
34 switch( +p->eType ) in ImpGetDouble()
41 nRes = p->nChar; break; in ImpGetDouble()
43 nRes = p->nByte; break; in ImpGetDouble()
46 nRes = p->nInteger; break; in ImpGetDouble()
49 nRes = p->nUShort; break; in ImpGetDouble()
51 nRes = p->nLong; break; in ImpGetDouble()
53 nRes = p->nULong; break; in ImpGetDouble()
55 nRes = p->nSingle; break; in ImpGetDouble()
58 nRes = p->nDouble; break; in ImpGetDouble()
60 nRes = ImpCurrencyToDouble( p->nLong64 ); break; in ImpGetDouble()
62 nRes = static_cast< double >(p->nInt64); break; in ImpGetDouble()
64 nRes = ImpSalUInt64ToDouble( p->uInt64 ); break; in ImpGetDouble()
67 if( p->pDecimal ) in ImpGetDouble()
68 p->pDecimal->getDouble( nRes ); in ImpGetDouble()
75 if( !p->pOUString ) in ImpGetDouble()
85 if( ImpScan( *p->pOUString, d, t, NULL ) != SbxERR_OK ) in ImpGetDouble()
97 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpGetDouble()
108 nRes = *p->pChar; break; in ImpGetDouble()
110 nRes = *p->pByte; break; in ImpGetDouble()
113 nRes = *p->pInteger; break; in ImpGetDouble()
115 nRes = *p->pLong; break; in ImpGetDouble()
117 nRes = *p->pULong; break; in ImpGetDouble()
120 nRes = *p->pUShort; break; in ImpGetDouble()
122 nRes = *p->pSingle; break; in ImpGetDouble()
125 nRes = *p->pDouble; break; in ImpGetDouble()
127 nRes = ImpCurrencyToDouble( *p->pLong64 ); break; in ImpGetDouble()
129 nRes = static_cast< double >(*p->pnInt64); break; in ImpGetDouble()
131 nRes = ImpSalUInt64ToDouble( *p->puInt64 ); break; in ImpGetDouble()
139 void ImpPutDouble( SbxValues* p, double n, sal_Bool bCoreString ) in ImpPutDouble() argument
143 switch( +p->eType ) in ImpPutDouble()
147 aTmp.pChar = &p->nChar; goto direct; in ImpPutDouble()
149 aTmp.pByte = &p->nByte; goto direct; in ImpPutDouble()
152 aTmp.pInteger = &p->nInteger; goto direct; in ImpPutDouble()
155 aTmp.pLong = &p->nLong; goto direct; in ImpPutDouble()
157 aTmp.pULong = &p->nULong; goto direct; in ImpPutDouble()
160 aTmp.pUShort = &p->nUShort; goto direct; in ImpPutDouble()
162 aTmp.pSingle = &p->nSingle; goto direct; in ImpPutDouble()
166 SbxDecimal* pDec = ImpCreateDecimal( p ); in ImpPutDouble()
172 aTmp.eType = SbxDataType( p->eType | SbxBYREF ); in ImpPutDouble()
173 p = &aTmp; goto start; in ImpPutDouble()
177 p->nInt64 = ImpDoubleToSalInt64( n ); break; in ImpPutDouble()
179 p->uInt64 = ImpDoubleToSalUInt64( n ); break; in ImpPutDouble()
182 p->nDouble = n; break; in ImpPutDouble()
187 if( !p->pOUString ) in ImpPutDouble()
188 p->pOUString = new ::rtl::OUString; in ImpPutDouble()
189 ImpCvtNum( (double) n, 14, *p->pOUString, bCoreString ); in ImpPutDouble()
193 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpPutDouble()
209 *p->pChar = (xub_Unicode) n; break; in ImpPutDouble()
219 *p->pByte = (sal_uInt8) n; break; in ImpPutDouble()
230 *p->pInteger = (sal_Int16) n; break; in ImpPutDouble()
241 *p->pUShort = (sal_uInt16) n; break; in ImpPutDouble()
251 *p->pLong = (sal_Int32) n; break; in ImpPutDouble()
261 *p->pULong = (sal_uInt32) n; break; in ImpPutDouble()
279 *p->pSingle = (float) n; break; in ImpPutDouble()
281 *p->pnInt64 = ImpDoubleToSalInt64( n ); break; in ImpPutDouble()
283 *p->puInt64 = ImpDoubleToSalUInt64( n ); break; in ImpPutDouble()
286 *p->pDouble = (double) n; break; in ImpPutDouble()
296 *p->pLong64 = ImpDoubleToCurrency( n ); break; in ImpPutDouble()