Home
last modified time | relevance | path

Searched refs:nPrecision (Results 1 – 25 of 54) sorted by relevance

123

/aoo42x/main/vcl/unx/generic/printergfx/
H A Dpsputil.cxx60 sal_Int32 nPrecision; in getAlignedHexValueOf() local
62 nPrecision = 2; in getAlignedHexValueOf()
65 nPrecision = 4; in getAlignedHexValueOf()
68 nPrecision = 6; in getAlignedHexValueOf()
70 nPrecision = 8; in getAlignedHexValueOf()
73 sal_Int32 nRet = nPrecision; in getAlignedHexValueOf()
74 while (nPrecision) in getAlignedHexValueOf()
76 nPrecision -= getHexValueOf (nValue % 256, pBuffer + nPrecision - 2 ); in getAlignedHexValueOf()
/aoo42x/main/sc/source/ui/docshell/
H A Ddocsh8.cxx435 sal_Int32 nPrecision = 0; in lcl_GetColumnTypes() local
489 nPrecision = aTmp.ToInt32(); in lcl_GetColumnTypes()
593 if ( nPrecision > 15 ) in lcl_GetColumnTypes()
594 nPrecision = 15; in lcl_GetColumnTypes()
597 if ( bPrecDefined && nPrecision != nPrec ) in lcl_GetColumnTypes()
599 if ( nPrecision ) in lcl_GetColumnTypes()
607 nPrecision = nPrec; in lcl_GetColumnTypes()
612 if ( nPrecision && nFieldLen < nPrecision + 2 ) in lcl_GetColumnTypes()
618 if ( nFieldLen == 1 && nPrecision == 0 ) in lcl_GetColumnTypes()
638 pColScales[nField] = nPrecision; in lcl_GetColumnTypes()
[all …]
/aoo42x/main/svtools/source/control/
H A Dfmtfield.cxx722 sal_uInt16 nPrecision, nAnzLeading; in GetThousandsSep() local
723 ImplGetFormatter()->GetFormatSpecialInfo(m_nFormatKey, bThousand, IsRed, nPrecision, nAnzLeading); in GetThousandsSep()
736 sal_uInt16 nPrecision, nAnzLeading; in SetThousandsSep() local
737 ImplGetFormatter()->GetFormatSpecialInfo(m_nFormatKey, bThousand, IsRed, nPrecision, nAnzLeading); in SetThousandsSep()
747 …nerateFormat(sFmtDescription, m_nFormatKey, eLang, _bUseSeparator, IsRed, nPrecision, nAnzLeading); in SetThousandsSep()
766 sal_uInt16 nPrecision, nAnzLeading; in GetDecimalDigits() local
767 ImplGetFormatter()->GetFormatSpecialInfo(m_nFormatKey, bThousand, IsRed, nPrecision, nAnzLeading); in GetDecimalDigits()
769 return nPrecision; in GetDecimalDigits()
780 sal_uInt16 nPrecision, nAnzLeading; in SetDecimalDigits() local
781 ImplGetFormatter()->GetFormatSpecialInfo(m_nFormatKey, bThousand, IsRed, nPrecision, nAnzLeading); in SetDecimalDigits()
[all …]
/aoo42x/main/sc/source/core/data/
H A Ddocumen4.cxx437 xub_StrLen ScDocument::GetMaxNumberStringLen( sal_uInt16& nPrecision, SCTAB nTab, in GetMaxNumberStringLen() argument
442 return pTab[nTab]->GetMaxNumberStringLen( nPrecision, nCol, in GetMaxNumberStringLen()
511 short nPrecision; in RoundValueAsShown() local
514 nPrecision = (short)GetFormatTable()->GetFormatPrecision( nFormat ); in RoundValueAsShown()
518 nPrecision += 2; in RoundValueAsShown()
523nPrecision = sal::static_int_cast<short>( nPrecision - (short)floor( log10( fVal ) ) ); in RoundValueAsShown()
525nPrecision = sal::static_int_cast<short>( nPrecision - (short)floor( log10( -fVal ) ) ); in RoundValueAsShown()
532 nPrecision = (short)GetDocOptions().GetStdPrecision(); in RoundValueAsShown()
534 if (nPrecision == static_cast<short>(SvNumberFormatter::UNLIMITED_PRECISION)) in RoundValueAsShown()
537 double fRound = ::rtl::math::round( fVal, nPrecision ); in RoundValueAsShown()
H A Dcolumn3.cxx2009 sal_uInt16& nPrecision, SCROW nRowStart, SCROW nRowEnd ) const in GetMaxNumberStringLen() argument
2012 nPrecision = pDocument->GetDocOptions().GetStdPrecision(); in GetMaxNumberStringLen()
2013 if ( nPrecision == SvNumberFormatter::UNLIMITED_PRECISION ) in GetMaxNumberStringLen()
2015 nPrecision = 2; in GetMaxNumberStringLen()
2040 if ( nPrec != SvNumberFormatter::UNLIMITED_PRECISION && nPrec > nPrecision ) in GetMaxNumberStringLen()
2041 nPrecision = nPrec; in GetMaxNumberStringLen()
2043 if ( nPrecision ) in GetMaxNumberStringLen()
2049 nLen += nPrecision + aSep.Len(); in GetMaxNumberStringLen()
2053 if ( nTmp != nPrecision ) in GetMaxNumberStringLen()
2054 nLen += nPrecision - nTmp; in GetMaxNumberStringLen()
/aoo42x/main/filter/source/graphicfilter/icgm/
H A Dcgm.cxx193 sal_uInt8 CGM::ImplGetByte( sal_uInt32 nSource, sal_uInt32 nPrecision ) in ImplGetByte() argument
195 return (sal_uInt8)( nSource >> ( ( nPrecision - 1 ) << 3 ) ); in ImplGetByte()
200 long CGM::ImplGetI( sal_uInt32 nPrecision ) in ImplGetI() argument
203 mnParaSize += nPrecision; in ImplGetI()
204 switch( nPrecision ) in ImplGetI()
232 sal_uInt32 CGM::ImplGetUI( sal_uInt32 nPrecision ) in ImplGetUI() argument
235 mnParaSize += nPrecision; in ImplGetUI()
236 switch( nPrecision ) in ImplGetUI()
H A Dbitmap.cxx249 sal_uInt32 nPrecision = mpCGM->pElement->nIntegerPrecision; in ImplGetDimensions() local
250 rDesc.mnX = mpCGM->ImplGetUI( nPrecision ); in ImplGetDimensions()
251 rDesc.mnY = mpCGM->ImplGetUI( nPrecision ); in ImplGetDimensions()
252 rDesc.mnLocalColorPrecision = mpCGM->ImplGetI( nPrecision ); in ImplGetDimensions()
299 sal_uInt32 nHeaderSize = 2 + 3 * nPrecision + 3 * mpCGM->ImplGetPointSize(); in ImplGetDimensions()
H A Dcgm.hxx116 sal_uInt8 ImplGetByte( sal_uInt32 nSource, sal_uInt32 nPrecision );
117 long ImplGetI( sal_uInt32 nPrecision );
118 sal_uInt32 ImplGetUI( sal_uInt32 nPrecision );
/aoo42x/main/sc/source/ui/sidebar/
H A DNumberFormatPropertyPanel.cxx209 sal_uInt16 nPrecision = (mpEdDecimals->IsEnabled()) in IMPL_LINK() local
218 String sPrecision = String::CreateFromInt32(nPrecision); in IMPL_LINK()
331 sal_uInt16 nPrecision = 0; in NotifyItemUpdate() local
374 nPrecision = (sal_uInt16)sFormat[2].ToInt32(); in NotifyItemUpdate()
382 nPrecision = 0; in NotifyItemUpdate()
387 mpEdDecimals->SetValue(nPrecision); in NotifyItemUpdate()
/aoo42x/main/dbaccess/source/ui/tabledesign/
H A DFieldDescriptions.cxx228 SetPrecision(::std::min<sal_Int32>(nPrec,_pType->nPrecision)); in FillFromTypeInfo()
246 nPrec = _pType->nPrecision; in FillFromTypeInfo()
254 if ( _pType->nPrecision ) in FillFromTypeInfo()
255 … SetPrecision(::std::min<sal_Int32>(nPrec ? nPrec : DEFAULT_NUMERIC_PRECSION,_pType->nPrecision)); in FillFromTypeInfo()
262 SetPrecision(_pType->nPrecision); in FillFromTypeInfo()
577 nPrec = pTypeInfo->nPrecision; in GetPrecision()
626 pSpecialType->nPrecision = GetPrecision(); in getSpecialTypeInfo()
H A DTableController.cxx859 sal_Int32 nPrecision = 0; in loadData() local
876 xColumn->getPropertyValue(PROPERTY_PRECISION) >>= nPrecision; in loadData()
894 …nfo = ::dbaui::getTypeInfoFromType(m_aTypeInfo,nType,sTypeName,sCreate,nPrecision,nScale,bIsAutoIn… in loadData()
916 pActFieldDescr->SetPrecision(nPrecision); in loadData()
1082 sal_Int32 nType=0,nPrecision=0,nScale=0,nNullable=0; in alterColumns() local
1087 xColumn->getPropertyValue(PROPERTY_PRECISION) >>= nPrecision; in alterColumns()
1107 (nPrecision != pField->GetPrecision() && nPrecision ) || in alterColumns()
/aoo42x/main/xmloff/source/style/
H A Dxmlnumfe.cxx976 sal_uInt16 nPrecision = 0; in ExportPart_Impl() local
978 rFormat.GetNumForInfo( nPart, nFmtType, bThousand, nPrecision, nLeading); in ExportPart_Impl()
1312 nPrecision > 0 ) in ExportPart_Impl()
1394 sal_Int32 nDecimals = nPrecision; // from GetFormatSpecialInfo in ExportPart_Impl()
1412 if ( bDecDashes && nPrecision > 0 ) in ExportPart_Impl()
1413 sDashStr.Fill( nPrecision, '-' ); in ExportPart_Impl()
1424 … WriteScientificElement_Impl( nPrecision, nIntegerSymbols, bThousand, nExpDigits ); in ExportPart_Impl()
1437 … WriteFractionElement_Impl( nInteger, bThousand, nPrecision, nPrecision ); in ExportPart_Impl()
1447 if ( pElemStr && nPrecision == 0 ) in ExportPart_Impl()
1578 WriteSecondsElement_Impl( ( nElemType == NF_KEY_SS ), nPrecision ); in ExportPart_Impl()
/aoo42x/main/connectivity/source/drivers/dbase/
H A DDTable.cxx356 sal_Int32 nPrecision = aDBFColumn.db_flng; in fillColumns() local
381 nPrecision = SvDbaseConverter::ConvertPrecisionToOdbc(nPrecision,aDBFColumn.db_dez); in fillColumns()
416 nPrecision = 2147483647; in fillColumns()
421 nPrecision = 2147483647; in fillColumns()
434 nPrecision = 2147483647; in fillColumns()
442 m_aPrecisions.push_back(nPrecision); in fillColumns()
450 nPrecision, in fillColumns()
1281 sal_Int32 nPrecision = 0; in CreateFile() local
1342 if (nPrecision > 254) in CreateFile()
1352 OSL_ENSURE(nPrecision >= nScale, in CreateFile()
[all …]
/aoo42x/main/sal/qa/rtl/oustring/
H A Drtl_OUString2.cxx291 sal_Int16 nPrecision; in testPrecision() local
292 nPrecision = checkPrecisionSize<float>(); in testPrecision()
293 printf("precision of float: %d sizeof()=%lu \n", nPrecision, sizeof(float)); in testPrecision()
295 nPrecision = checkPrecisionSize<double>(); in testPrecision()
296 printf("precision of double: %d sizeof()=%lu \n", nPrecision, sizeof(double)); in testPrecision()
298 nPrecision = checkPrecisionSize<long double>(); in testPrecision()
299 … printf("precision of long double: %d sizeof()=%lu \n", nPrecision, sizeof(long double)); in testPrecision()
/aoo42x/main/dbaccess/source/ui/uno/
H A DColumnPeer.cxx92 sal_Int32 nPrecision = 0; in setColumn() local
102 _xColumn->getPropertyValue(PROPERTY_PRECISION) >>= nPrecision; in setColumn()
113 …nfoFromType(*pFieldControl->getTypeInfo(),nType,sTypeName,sCreateParam,nPrecision,nScale,bAutoIncr… in setColumn()
/aoo42x/main/extensions/source/propctrlr/
H A Dusercontrol.hxx120 …DecimalDigits(sal_uInt16 nPrecision) { getTypedControlWindow()->SetDecimalDigits(nPrecision); m_nL… in SetDecimalDigits() argument
/aoo42x/main/connectivity/source/commontools/
H A Ddbtools2.cxx78 sal_Int32 nPrecision = 0; in createStandardColumnPart() local
86 nDataType = nPrecision = nScale = 0; in createStandardColumnPart()
90 xColProp->getPropertyValue(rPropMap.getNameByIndex(PROPERTY_ID_PRECISION)) >>= nPrecision; in createStandardColumnPart()
133 if ( (nPrecision > 0 || nScale > 0) && bUseLiteral ) in createStandardColumnPart()
146 if ( nPrecision > 0 && nDataType != DataType::TIMESTAMP ) in createStandardColumnPart()
148 aSql.append(nPrecision); in createStandardColumnPart()
/aoo42x/main/tools/source/stream/
H A Dstream.cxx457 nPrecision = 0; // all significant digits in ImpInit()
2153 if( nPrecision ) in CreateFormatString()
2281 nLen = sprintf( buffer, aFStr.GetBuffer(), nPrecision,nLong); in WriteNumber()
2284 nLen=sprintf(buffer, aFStr.GetBuffer(),nWidth,nPrecision,nLong); in WriteNumber()
2310 nLen = sprintf( buffer, aFStr.GetBuffer(), nPrecision, nUInt32 ); in WriteNumber()
2313 nLen=sprintf(buffer,aFStr.GetBuffer(),nWidth,nPrecision,nUInt32 ); in WriteNumber()
2335 nLen = sprintf( buffer, aFStr.GetBuffer(), nPrecision, rDouble); in WriteNumber()
2338 nLen=sprintf(buffer, aFStr.GetBuffer(),nWidth,nPrecision,rDouble); in WriteNumber()
/aoo42x/main/wizards/com/sun/star/wizards/db/
H A DTypeInspector.java213 int nPrecision = -1; in getDataTypeIndex() local
219 nPrecision = AnyConverter.toInt(_xColPropertySet.getPropertyValue("Precision")); in getDataTypeIndex()
233 …if (nPrecision <= nPrecisionInfos[i] && (nScale >= nMinScaleInfos[i]) && (nScale <= nMinScaleInfos… in getDataTypeIndex()
/aoo42x/main/connectivity/source/drivers/ado/
H A DAConnection.cxx452 aInfo->aSimpleType.nPrecision = ADOS::getField(pRecordset,nPos++).get_Value(); in buildTypeInfo()
552 … sal_Int32 nDBTypePrecision = pInfo->aSimpleType.nPrecision; (void)nDBTypePrecision; in getTypeInfoFromType()
559 && (pInfo->aSimpleType.nPrecision >= _nPrecision) in getTypeInfoFromType()
572 && (aIter->second->aSimpleType.nPrecision >= _nPrecision) in getTypeInfoFromType()
/aoo42x/main/dbaccess/source/ui/misc/
H A DDExport.cxx240 m_pTypeInfo->nPrecision = aValue; in ODatabaseExport()
279 if( m_pTypeInfo->nPrecision < 0) in ODatabaseExport()
280 m_pTypeInfo->nPrecision = 0; in ODatabaseExport()
631 (*aIter)->second->SetPrecision(::std::min<sal_Int32>(aFind->second->nPrecision,nLength)); in SetColumnTypes()
682 pField->SetPrecision(::std::min<sal_Int32>((sal_Int32)255,m_pTypeInfo->nPrecision)); in CreateDefaultColumn()
/aoo42x/main/vcl/inc/vcl/
H A Dstrhelper.hxx69 inline int VCL_DLLPUBLIC getValueOfDouble( char* pBuffer, double f, int nPrecision = 0) in getValueOfDouble() argument
71 …rtl::OString aStr( rtl::math::doubleToString( f, rtl_math_StringFormat_G, nPrecision, '.', true ) … in getValueOfDouble()
/aoo42x/main/connectivity/source/inc/
H A DOTypeInfo.hxx41 sal_Int32 nPrecision; // Laenge des Types member
59 :nPrecision(0) in OTypeInfo()
/aoo42x/main/odk/examples/DevelopersGuide/Database/DriverSkeleton/
H A DOTypeInfo.hxx40 sal_Int32 nPrecision; // Laenge des Types member
66 ,nPrecision(0) in OTypeInfo()
/aoo42x/main/dbaccess/source/ui/inc/
H A DTypeInfo.hxx91 sal_Int32 nPrecision; // Laenge des Types member in dbaui::OTypeInfo
107 :nPrecision(0) in OTypeInfo()

Completed in 161 milliseconds

123