Home
last modified time | relevance | path

Searched refs:dVal (Results 1 – 25 of 27) sorted by relevance

12

/trunk/main/basic/source/sbx/
H A Dsbxcurr.cxx205 p->nDouble = dVal; break; in ImpPutCurrency()
238 if( dVal > SbxMAXCHAR ) in ImpPutCurrency()
248 if( dVal > SbxMAXBYTE ) in ImpPutCurrency()
252 else if( dVal < 0 ) in ImpPutCurrency()
259 if( dVal > SbxMAXINT ) in ImpPutCurrency()
263 else if( dVal < SbxMININT ) in ImpPutCurrency()
270 if( dVal > SbxMAXUINT ) in ImpPutCurrency()
274 else if( dVal < 0 ) in ImpPutCurrency()
280 if( dVal > SbxMAXLNG ) in ImpPutCurrency()
290 if( dVal > SbxMAXULNG ) in ImpPutCurrency()
[all …]
H A Dsbxint.cxx122 double dVal; in ImpGetInteger() local
131 dVal = 0.0; in ImpGetInteger()
133 p->pDecimal->getDouble( dVal ); in ImpGetInteger()
136 dVal = p->nDouble; in ImpGetInteger()
138 if( dVal > SbxMAXINT ) in ImpGetInteger()
142 else if( dVal < SbxMININT ) in ImpGetInteger()
147 nRes = (sal_Int16) ImpRound( dVal ); in ImpGetInteger()
428 double dVal; in ImpGetInt64() local
436 dVal = p->nDouble; in ImpGetInt64()
716 double dVal; in ImpGetUInt64() local
[all …]
H A Dsbxulng.cxx91 double dVal; in ImpGetULong() local
93 dVal = ImpCurrencyToDouble( p->nLong64 ); in ImpGetULong()
95 dVal = ImpINT64ToDouble( p->nLong64 ); in ImpGetULong()
97 dVal = ImpUINT64ToDouble( p->nULong64 ); in ImpGetULong()
99 dVal = static_cast< double >(p->nInt64); in ImpGetULong()
104 dVal = 0.0; in ImpGetULong()
106 p->pDecimal->getDouble( dVal ); in ImpGetULong()
109 dVal = p->nDouble; in ImpGetULong()
111 if( dVal > SbxMAXULNG ) in ImpGetULong()
115 else if( dVal < 0 ) in ImpGetULong()
[all …]
H A Dsbxlng.cxx83 double dVal; in ImpGetLong() local
85 dVal = ImpCurrencyToDouble( p->nLong64 ); in ImpGetLong()
87 dVal = ImpINT64ToDouble( p->nLong64 ); in ImpGetLong()
89 dVal = ImpUINT64ToDouble( p->nULong64 ); in ImpGetLong()
91 dVal = static_cast< double >(p->nInt64); in ImpGetLong()
96 dVal = 0.0; in ImpGetLong()
98 p->pDecimal->getDouble( dVal ); in ImpGetLong()
101 dVal = p->nDouble; in ImpGetLong()
103 if( dVal > SbxMAXLNG ) in ImpGetLong()
107 else if( dVal < SbxMINLNG ) in ImpGetLong()
[all …]
H A Dsbxsng.cxx74 double dVal; in ImpGetSingle() local
76 dVal = ImpCurrencyToDouble( p->nLong64 ); in ImpGetSingle()
78 dVal = ImpINT64ToDouble( p->nLong64 ); in ImpGetSingle()
80 dVal = ImpUINT64ToDouble( p->nULong64 ); in ImpGetSingle()
82 dVal = p->nDouble; in ImpGetSingle()
84 if( dVal > SbxMAXSNG ) in ImpGetSingle()
89 else if( dVal < SbxMINSNG ) in ImpGetSingle()
94 else if( dVal > 0 && dVal < SbxMAXSNG2 ) in ImpGetSingle()
99 else if( dVal < 0 && dVal > SbxMINSNG2 ) in ImpGetSingle()
105 nRes = (float) dVal; in ImpGetSingle()
H A Dsbxbyte.cxx133 double dVal; in ImpGetByte() local
135 dVal = ImpCurrencyToDouble( p->nLong64 ); in ImpGetByte()
137 dVal = ImpINT64ToDouble( p->nLong64 ); in ImpGetByte()
139 dVal = ImpUINT64ToDouble( p->nULong64 ); in ImpGetByte()
142 dVal = 0.0; in ImpGetByte()
144 p->pDecimal->getDouble( dVal ); in ImpGetByte()
147 dVal = p->nDouble; in ImpGetByte()
149 if( dVal > SbxMAXBYTE ) in ImpGetByte()
153 else if( dVal < 0 ) in ImpGetByte()
158 nRes = (sal_uInt8) ImpRound( dVal ); in ImpGetByte()
H A Dsbxchar.cxx124 double dVal; in ImpGetChar() local
126 dVal = ImpCurrencyToDouble( p->nLong64 ); in ImpGetChar()
128 dVal = ImpINT64ToDouble( p->nLong64 ); in ImpGetChar()
130 dVal = ImpUINT64ToDouble( p->nULong64 ); in ImpGetChar()
133 dVal = 0.0; in ImpGetChar()
135 p->pDecimal->getDouble( dVal ); in ImpGetChar()
138 dVal = p->nDouble; in ImpGetChar()
140 if( dVal > SbxMAXCHAR ) in ImpGetChar()
144 else if( dVal < SbxMINCHAR ) in ImpGetChar()
149 nRes = (sal_uInt8) ImpRound( dVal ); in ImpGetChar()
H A Dsbxuint.cxx119 double dVal; in ImpGetUShort() local
121 dVal = ImpCurrencyToDouble( p->nLong64 ); in ImpGetUShort()
123 dVal = ImpINT64ToDouble( p->nLong64 ); in ImpGetUShort()
125 dVal = ImpUINT64ToDouble( p->nULong64 ); in ImpGetUShort()
128 dVal = 0.0; in ImpGetUShort()
130 p->pDecimal->getDouble( dVal ); in ImpGetUShort()
133 dVal = p->nDouble; in ImpGetUShort()
135 if( dVal > SbxMAXUINT ) in ImpGetUShort()
139 else if( dVal < 0 ) in ImpGetUShort()
144 nRes = (sal_uInt16) ( dVal + 0.5 ); in ImpGetUShort()
H A Dsbxdec.cxx510 double dVal; in ImpGetDecimal() local
512 dVal = ImpCurrencyToDouble( p->nLong64 ); in ImpGetDecimal()
514 dVal = ImpINT64ToDouble( p->nLong64 ); in ImpGetDecimal()
516 dVal = ImpUINT64ToDouble( p->nULong64 ); in ImpGetDecimal()
518 dVal = p->nDouble; in ImpGetDecimal()
520 if( !pnDecRes->setDouble( dVal ) ) in ImpGetDecimal()
H A Dsbxbool.cxx67 double dVal = 0.0; in ImpGetBool() local
69 p->pDecimal->getDouble( dVal ); in ImpGetBool()
70 nRes = dVal ? SbxTRUE : SbxFALSE; in ImpGetBool()
/trunk/main/connectivity/java/dbtools/src/org/apache/openoffice/comp/sdbc/dbtools/util/
H A DDBTypeConversion.java266 public static Date toDate(double dVal) { in toDate() argument
267 return toDate(dVal, getStandardDate()); in toDate()
273 if (dVal >= 0) in toDate()
274 addDays((int)dVal,aRet); in toDate()
276 subDays((int)(-dVal),aRet); in toDate()
301 public static DateTime toDateTime(double dVal) { in toDateTime() argument
302 return toDateTime(dVal, getStandardDate()); in toDateTime()
306 Date aDate = toDate(dVal, _rNullDate); in toDateTime()
307 Time aTime = toTime(dVal); in toDateTime()
353 public static Time toTime(double dVal) { in toTime() argument
[all …]
/trunk/main/connectivity/source/commontools/
H A Ddbconversion.cxx341 Date DBTypeConversion::toDate(double dVal, const Date& _rNullDate) in toDate() argument
345 if (dVal >= 0) in toDate()
346 addDays((sal_Int32)dVal,aRet); in toDate()
348 subDays((sal_uInt32)(-dVal),aRet); in toDate()
354 Time DBTypeConversion::toTime(double dVal) in toTime() argument
356 sal_Int32 nDays = (sal_Int32)dVal; in toTime()
357 sal_Int32 nMS = sal_Int32((dVal - (double)nDays) * fMilliSecondsPerDay + 0.5); in toTime()
393 DateTime DBTypeConversion::toDateTime(double dVal, const Date& _rNullDate) in toDateTime() argument
395 Date aDate = toDate(dVal, _rNullDate); in toDateTime()
396 Time aTime = toTime(dVal); in toDateTime()
/trunk/main/svtools/source/control/
H A Dfmtfield.cxx968 void FormattedField::ImplSetValue(double dVal, sal_Bool bForce) in ImplSetValue() argument
972 if (m_bHasMin && (dVal<m_dMinValue)) in ImplSetValue()
973 dVal = m_dMinValue; in ImplSetValue()
974 if (m_bHasMax && (dVal>m_dMaxValue)) in ImplSetValue()
975 dVal = m_dMaxValue; in ImplSetValue()
976 if (!bForce && (dVal == GetValue())) in ImplSetValue()
982 m_dCurrentValue = dVal; in ImplSetValue()
989 ImplGetFormatter()->GetOutputString(dVal, 0, sTemp, &m_pLastOutputColor); in ImplSetValue()
996 ImplGetFormatter()->GetInputLineString(dVal, m_nFormatKey, sNewText); in ImplSetValue()
1059 void FormattedField::SetValue(double dVal) in SetValue() argument
[all …]
/trunk/main/tools/source/generic/
H A Dfract.cxx221 Fraction::Fraction( double dVal ) in Fraction() argument
226 if ( dVal > LONG_MAX || dVal < LONG_MIN ) in Fraction()
233 while ( Abs( (long)dVal ) < nMAX && nDen < nMAX ) in Fraction()
235 dVal *= 10; in Fraction()
238 nNumerator = (long)dVal; in Fraction()
/trunk/main/sc/source/filter/xml/
H A Dxmlfilti.cxx708 double& dVal) const in getOperatorXML()
730 dVal = SC_EMPTYFIELDS; in getOperatorXML()
740 dVal = SC_NONEMPTYFIELDS; in getOperatorXML()
756 double dVal(0.0); in EndElement() local
757 getOperatorXML(sOperator, aFilterField.eOp, bUseRegularExpressions, dVal); in EndElement()
765 if (dVal != 0.0) in EndElement()
767 aFilterField.nVal = dVal; in EndElement()
H A DXMLExportDataPilot.cxx77 const sal_Bool bIsString, const double dVal, const String& sVal) const in getDPOperatorXML() argument
91 if (dVal == SC_EMPTYFIELDS) in getDPOperatorXML()
93 else if (dVal == SC_NONEMPTYFIELDS) in getDPOperatorXML()
H A DXMLExportDataPilot.hxx48 const sal_Bool bIsString, const double dVal, const String& sVal) const;
H A Dxmlfilti.hxx302 double& dVal) const;
/trunk/main/basic/source/runtime/
H A Dmethods1.cxx396 double dVal = 0.0; in RTLFUNC() local
398 SbError Error = SbxValue::ScanNumIntnl( aScanStr, dVal, /*bSingle=*/sal_True ); in RTLFUNC()
401 nVal = (float)dVal; in RTLFUNC()
2576 double dVal = pSbxVariable->GetDouble(); in RTLFUNC() local
2578 if( dVal != 0.0 ) in RTLFUNC()
2581 if( dVal < 0.0 ) in RTLFUNC()
2584 dVal = -dVal; in RTLFUNC()
2600 dRes = floor( dVal + 0.5 ); in RTLFUNC()
2605 dVal *= dFactor; in RTLFUNC()
2606 dRes = floor( dVal + 0.5 ); in RTLFUNC()
/trunk/main/connectivity/inc/connectivity/
H A Ddbconversion.hxx114 …static ::com::sun::star::util::Date toDate(double dVal, const ::com::sun::star::util::Date& _rNul…
116 static ::com::sun::star::util::Time toTime(double dVal);
118 …static ::com::sun::star::util::DateTime toDateTime(double dVal, const ::com::sun::star::util::Date…
/trunk/main/toolkit/source/controls/
H A Dformattedcontrol.cxx342 double dVal = 0; in convertFastPropertyValue() local
345 sal_Bool bStreamed = (rValue >>= dVal); in convertFastPropertyValue()
348 rConvertedValue <<= dVal; in convertFastPropertyValue()
/trunk/main/tools/inc/tools/
H A Dfract.hxx45 Fraction( double dVal );
/trunk/main/svtools/inc/svtools/
H A Dfmtfield.hxx127 virtual void SetValue(double dVal);
/trunk/main/sw/source/filter/xml/
H A Dxmltbli.cxx203 double dVal = 0.0,
238 double dVal, in Set() argument
247 dValue = dVal; in Set()
/trunk/main/svtools/source/uno/
H A Dunoiface.cxx1078 double dVal; in convertEffectiveValue() local
1080 if (!pFormatter->IsNumberFormat(sValue, nTestFormat, dVal)) in convertEffectiveValue()
1082 aReturn <<=dVal; in convertEffectiveValue()

Completed in 137 milliseconds

12