/aoo4110/main/xmloff/source/core/ |
H A D | xmlehelp.cxx | 54 sal_Int32 nDiv = 1; in AddLength() local 69 nDiv = 1440; // 72 * 20; in AddLength() 77 nDiv = 1440; // 72 * 20; in AddLength() 85 nDiv = 20; in AddLength() 96 nDiv = 1440; // 72 * 20; in AddLength() 108 nDiv = 1; in AddLength() 125 nDiv = 1; in AddLength() 141 nDiv = 2540; in AddLength() 152 nDiv = 2540; in AddLength() 172 nBigVal /= nDiv; in AddLength() [all …]
|
/aoo4110/main/svx/source/svdraw/ |
H A D | svddrag.cxx | 121 long nDiv=GetPrev().X()-aRef1.X(); in GetXFact() local 122 if (nDiv==0) nDiv=1; in GetXFact() 123 if (bHorFixed) { nMul=1; nDiv=1; } in GetXFact() 124 return Fraction(nMul,nDiv); in GetXFact() 130 long nDiv=GetPrev().Y()-aRef1.Y(); in GetYFact() local 131 if (nDiv==0) nDiv=1; in GetYFact() 132 if (bVerFixed) { nMul=1; nDiv=1; } in GetYFact() 133 return Fraction(nMul,nDiv); in GetYFact()
|
H A D | svdmodel.cxx | 985 sal_Int64 nDiv(1); in ImpSetUIUnit() local 1051 nDiv *= 254; in ImpSetUIUnit() 1056 if(1 != nMul || 1 != nDiv) in ImpSetUIUnit() 1079 while(0 == (nDiv % 10)) in ImpSetUIUnit() 1082 nDiv /= 10; in ImpSetUIUnit() 1087 bUIOnlyKomma = (nMul == nDiv); in ImpSetUIUnit() 1389 if(nDiv < 0) in TakePercentStr() 1395 if(nDiv < 0) in TakePercentStr() 1396 nDiv = -nDiv; in TakePercentStr() 1399 nMul += nDiv/2; in TakePercentStr() [all …]
|
H A D | svdtrans.cxx | 700 if (aVal.IsNeg()!=(nDiv<0)) { in BigMulDiv() 701 aVal-=nDiv/2; // fuer korrektes Runden in BigMulDiv() 703 aVal+=nDiv/2; // fuer korrektes Runden in BigMulDiv() 705 if(nDiv) in BigMulDiv() 707 aVal/=nDiv; in BigMulDiv() 716 sal_Int32 nDiv=rF.GetDenominator(); in Kuerzen() local 719 if (nDiv<0) { nDiv=-nDiv; bNeg=!bNeg; } in Kuerzen() 720 if (nMul==0 || nDiv==0) return; in Kuerzen() 736 nDiv>>=nWeg; in Kuerzen() 737 if (nMul==0 || nDiv==0) { in Kuerzen() [all …]
|
H A D | svdattr.cxx | 633 sal_Int32 nMul,nDiv; in SdrFractionItem() local 635 rIn>>nDiv; in SdrFractionItem() 636 nValue=Fraction(nMul,nDiv); in SdrFractionItem() 651 sal_Int32 nDiv = nValue.GetDenominator(); in GetPresentation() local 654 if(nDiv != 1) in GetPresentation() 657 rText += UniString::CreateFromInt32(nDiv); in GetPresentation() 719 rText += UniString::CreateFromInt32(nDiv); in GetPresentation() 999 aVal+=nDiv/2; // fuer korrektes Runden in ScaleMetrics() 1000 aVal/=nDiv; in ScaleMetrics() 1396 aVal+=nDiv/2; // fuer korrektes Runden in ScaleMetrics() [all …]
|
H A D | svdotext.cxx | 1118 long nDiv=aSiz.Width(); in ImpSetCharStretching() local 1120 if (nMul>nDiv) nDiv+=(nMul-nDiv)/2; // und zwar nur um die haelfte des berechneten in ImpSetCharStretching() 1121 else nMul+=(nDiv-nMul)/2; // weil die EE ja eh wieder falsch rechnet in ImpSetCharStretching() 1123 nX=nX*nMul/nDiv; in ImpSetCharStretching()
|
/aoo4110/main/vcl/source/control/ |
H A D | field.cxx | 1306 nDiv = 100; in ConvertDoubleValue() 1308 nDiv *= 10; in ConvertDoubleValue() 1334 if ( nDiv != 1 && nDiv > 0 ) in ConvertDoubleValue() 1336 nValue += ( nValue < 0 ) ? (-nDiv/2) : (nDiv/2); in ConvertDoubleValue() 1337 nValue /= nDiv; in ConvertDoubleValue() 1392 if ( nDiv != 1 && nDiv > 0 ) in ConvertDoubleValue() 1394 nValue += (nValue < 0) ? (-nDiv/2) : (nDiv/2); in ConvertDoubleValue() 1395 nValue /= nDiv; in ConvertDoubleValue() 1449 if( nDiv != 1 && nDiv > 0 ) in ConvertDoubleValue() 1451 nValue += (nValue < 0) ? (-nDiv/2) : (nDiv/2); in ConvertDoubleValue() [all …]
|
/aoo4110/main/editeng/source/items/ |
H A D | frmitems.cxx | 368 aSize.Width() = Scale( aSize.Width(), nMult, nDiv ); in ScaleMetrics() 787 nTxtLeft = Scale( nTxtLeft, nMult, nDiv ); in ScaleMetrics() 788 nLeftMargin = Scale( nLeftMargin, nMult, nDiv ); in ScaleMetrics() 789 nRightMargin = Scale( nRightMargin, nMult, nDiv ); in ScaleMetrics() 1033 nUpper = (sal_uInt16)Scale( nUpper, nMult, nDiv ); in ScaleMetrics() 1034 nLower = (sal_uInt16)Scale( nLower, nMult, nDiv ); in ScaleMetrics() 2329 if ( pTop ) pTop->ScaleMetrics( nMult, nDiv ); in ScaleMetrics() 2331 if ( pLeft ) pLeft->ScaleMetrics( nMult, nDiv ); in ScaleMetrics() 2736 if ( pHori ) pHori->ScaleMetrics( nMult, nDiv ); in ScaleMetrics() 2737 if ( pVert ) pVert->ScaleMetrics( nMult, nDiv ); in ScaleMetrics() [all …]
|
H A D | textitem.cxx | 1142 int SvxFontHeightItem::ScaleMetrics( long nMult, long nDiv ) in ScaleMetrics() argument 1144 nHeight = (sal_uInt32)Scale( nHeight, nMult, nDiv ); in ScaleMetrics() 1223 int SvxFontWidthItem::ScaleMetrics( long nMult, long nDiv ) in ScaleMetrics() argument 1225 nWidth = (sal_uInt16)Scale( nWidth, nMult, nDiv ); in ScaleMetrics() 2223 int SvxKerningItem::ScaleMetrics( long nMult, long nDiv ) in ScaleMetrics() argument 2225 SetValue( (sal_Int16)Scale( GetValue(), nMult, nDiv ) ); in ScaleMetrics()
|
/aoo4110/main/tools/source/generic/ |
H A D | fract.cxx | 590 unsigned long nDiv = (unsigned long)( nDenominator ); in ReduceInaccurate() local 596 const int nDivBitsToLose = Max( ( impl_NumberOfBits( nDiv ) - int( nSignificantBits ) ), 0 ); in ReduceInaccurate() 602 nDiv >>= nToLose; in ReduceInaccurate() 604 if ( !nMul || !nDiv ) in ReduceInaccurate() 612 long n1 = GetGGT( nMul, nDiv ); in ReduceInaccurate() 616 nDiv /= n1; in ReduceInaccurate() 620 nDenominator = nDiv; in ReduceInaccurate()
|
H A D | bigint.cxx | 146 void BigInt::Div( sal_uInt16 nDiv, sal_uInt16& rRem ) in Div() argument 152 nNum[i] = (sal_uInt16)(nTmp / nDiv); in Div() 153 nK = nTmp % nDiv; in Div()
|
/aoo4110/main/sax/source/tools/ |
H A D | converter.cxx | 88 double nDiv = 1.; in convertMeasure() local 98 nDiv *= 10; in convertMeasure() 293 long nDiv = 1; in convertMeasure() 307 nDiv = 1440; // 72 * 20; in convertMeasure() 323 nDiv = 20; in convertMeasure() 346 nDiv = 1; in convertMeasure() 363 nDiv = 1; in convertMeasure() 379 nDiv = 2540; in convertMeasure() 390 nDiv = 2540; in convertMeasure() 407 nBigVal /= nDiv; in convertMeasure() [all …]
|
/aoo4110/main/sw/source/ui/app/ |
H A D | appopt.cxx | 414 short nDiv = (short)pGridItem->GetFldDivisionX() ; in ApplyItemSet() local 415 if( aViewOpt.GetDivisionX() != nDiv ) in ApplyItemSet() 416 aViewOpt.SetDivisionX( nDiv ); in ApplyItemSet() 417 nDiv = (short)pGridItem->GetFldDivisionY(); in ApplyItemSet() 418 if( aViewOpt.GetDivisionY() != nDiv ) in ApplyItemSet() 419 aViewOpt.SetDivisionY( nDiv ); in ApplyItemSet()
|
/aoo4110/main/editeng/inc/editeng/ |
H A D | itemtype.hxx | 60 inline long Scale( long nVal, long nMult, long nDiv ) in Scale() argument 64 aVal += nDiv/2; in Scale() 65 aVal /= nDiv; in Scale()
|
H A D | boxitem.hxx | 82 virtual int ScaleMetrics( long nMult, long nDiv ); 190 virtual int ScaleMetrics( long nMult, long nDiv );
|
/aoo4110/main/svx/source/sdr/properties/ |
H A D | itemsettools.cxx | 109 sal_Int32 nDiv(rScale.GetDenominator()); in ScaleItemSet() local 111 if(!rScale.IsValid() || !nDiv) in ScaleItemSet() 127 pNewItem->ScaleMetrics(nMul, nDiv); in ScaleItemSet()
|
/aoo4110/main/svl/source/items/ |
H A D | intitem.cxx | 238 int SfxMetricItem::ScaleMetrics(long nMult, long nDiv) in ScaleMetrics() argument 242 aTheValue += nDiv / 2; in ScaleMetrics() 243 aTheValue /= nDiv; in ScaleMetrics()
|
/aoo4110/main/svl/source/numbers/ |
H A D | zformat.cxx | 2357 nDiv = y0; in GetOutputString() 2362 nDiv = y1; in GetOutputString() 2369 nFrac = nDiv - nFrac; in GetOutputString() 2380 nDiv = 10000000; in GetOutputString() 2382 nGgt = ImpGGT(nDiv, nFrac); in GetOutputString() 2385 nDiv /= nGgt; in GetOutputString() 2388 if (nDiv > nBasis) in GetOutputString() 2393 nDiv /= nGgt; in GetOutputString() 2397 if (nDiv > nBasis) in GetOutputString() 2399 nDiv = nBasis; in GetOutputString() [all …]
|
/aoo4110/main/svx/inc/svx/ |
H A D | svdtrans.hxx | 241 SVX_DLLPUBLIC long BigMulDiv(long nVal, long nMul, long nDiv); 256 FrPair(long nMul, long nDiv) : aX(nMul,nDiv),aY(nMul,nDiv) {} in FrPair() argument
|
/aoo4110/main/sw/source/filter/html/ |
H A D | css1atr.cxx | 330 long nDiv = 1; in AddUnitPropertyValue() local 340 nDiv = 1440; // 72 * 20; in AddUnitPropertyValue() 352 nDiv = 1440; // 72 * 20; in AddUnitPropertyValue() 357 nDiv = 1440; // 72 * 20; in AddUnitPropertyValue() 369 nDiv = 20; in AddUnitPropertyValue() 374 nDiv = 20; in AddUnitPropertyValue() 384 nDiv = 12 * 20; in AddUnitPropertyValue() 389 nDiv = 240; // 12 * 20; in AddUnitPropertyValue() 426 nBigVal /= nDiv; in AddUnitPropertyValue() 455 nBigVal /= nDiv; in AddUnitPropertyValue() [all …]
|
/aoo4110/main/svx/source/xoutdev/ |
H A D | xattr.cxx | 88 long ScaleMetricValue( long nVal, long nMul, long nDiv ) in ScaleMetricValue() argument 94 if ( aVal.IsNeg() != ( nDiv < 0 ) ) in ScaleMetricValue() 95 aVal-=nDiv/2; // fuer korrektes Runden in ScaleMetricValue() 97 aVal+=nDiv/2; // fuer korrektes Runden in ScaleMetricValue() 99 aVal/=nDiv; in ScaleMetricValue() 1112 FASTBOOL XLineDashItem::ScaleMetrics(long nMul, long nDiv) in ScaleMetrics() argument 1114 aDash.SetDotLen( ScaleMetricValue( aDash.GetDotLen(), nMul, nDiv ) ); in ScaleMetrics() 1115 aDash.SetDashLen( ScaleMetricValue( aDash.GetDashLen(), nMul, nDiv ) ); in ScaleMetrics() 1116 aDash.SetDistance( ScaleMetricValue( aDash.GetDistance(), nMul, nDiv ) ); in ScaleMetrics() 4491 FASTBOOL XFillHatchItem::ScaleMetrics(long nMul, long nDiv) in ScaleMetrics() argument [all …]
|
/aoo4110/main/embeddedobj/source/msole/ |
H A D | olecomponent.cxx | 1167 sal_Int64 nDiv = 1; in GetExtent() local 1172 nDiv = 100; in GetExtent() 1177 nDiv = 10; in GetExtent() 1186 nDiv = 144; in GetExtent() 1196 sal_Int64 nX = ( (sal_Int64)abs( pMF->xExt ) ) * nMult / nDiv; in GetExtent() 1197 sal_Int64 nY = ( (sal_Int64)abs( pMF->yExt ) ) * nMult / nDiv; in GetExtent()
|
/aoo4110/main/sw/inc/ |
H A D | tblsel.hxx | 116 sal_Bool CheckSplitCells( const SwCrsrShell& rShell, sal_uInt16 nDiv, 118 sal_Bool CheckSplitCells( const SwCursor& rCrsr, sal_uInt16 nDiv,
|
/aoo4110/main/sc/source/ui/Accessibility/ |
H A D | AccessibleCsvControl.cxx | 321 sal_Int32 nDiv = 10; in lcl_GetRulerPos() local 328 ++nDiv; in lcl_GetRulerPos() 335 return nRulerPos + nRelPos / nDiv * 10 + ::std::max( nRelPos % nDiv - nDiv + 10L, 0L ); in lcl_GetRulerPos()
|
/aoo4110/main/sw/source/ui/docvw/ |
H A D | edtwin.cxx | 983 short nDiv = rSh.GetViewOptions()->GetDivisionX(); in ChangeFly() local 984 if ( nDiv > 0 ) in ChangeFly() 985 aSnap.Width() = Max( (sal_uLong)1, (sal_uLong)aSnap.Width() / nDiv ); in ChangeFly() 986 nDiv = rSh.GetViewOptions()->GetDivisionY(); in ChangeFly() 987 if ( nDiv > 0 ) in ChangeFly() 1188 short nDiv = rSh.GetViewOptions()->GetDivisionX(); in ChangeDrawing() local 1189 if ( nDiv > 0 ) in ChangeDrawing() 1190 aSnap.Width() = Max( (sal_uLong)1, (sal_uLong)aSnap.Width() / nDiv ); in ChangeDrawing() 1191 nDiv = rSh.GetViewOptions()->GetDivisionY(); in ChangeDrawing() 1192 if ( nDiv > 0 ) in ChangeDrawing() [all …]
|