Home
last modified time | relevance | path

Searched refs:Fraction (Results 1 – 25 of 454) sorted by relevance

12345678910>>...19

/trunk/main/tools/inc/tools/
H A Dfract.hxx64 friend Fraction operator+( const Fraction& rVal1, const Fraction& rVal2 );
65 friend Fraction operator-( const Fraction& rVal1, const Fraction& rVal2 );
66 friend Fraction operator*( const Fraction& rVal1, const Fraction& rVal2 );
67 friend Fraction operator/( const Fraction& rVal1, const Fraction& rVal2 );
76 friend inline Fraction operator+( const Fraction& rVal1, const Fraction& rVal2 );
92 inline Fraction::Fraction( const Fraction& rFrac ) in Fraction() function in Fraction
98 inline Fraction& Fraction::operator=( const Fraction& rFrac ) in operator =()
118 inline Fraction operator+( const Fraction& rVal1, const Fraction& rVal2 ) in operator +()
125 inline Fraction operator-( const Fraction& rVal1, const Fraction& rVal2 ) in operator -()
132 inline Fraction operator*( const Fraction& rVal1, const Fraction& rVal2 ) in operator *()
[all …]
/trunk/main/writerfilter/source/resourcemodel/
H A DFraction.cxx73 Fraction::Fraction(sal_Int32 nNumerator, sal_Int32 nDenominator) in Fraction() function in writerfilter::resourcemodel::Fraction
78 Fraction::Fraction(const Fraction & a, const Fraction & b) in Fraction() function in writerfilter::resourcemodel::Fraction
83 Fraction::~Fraction() in ~Fraction()
95 void Fraction::assign(const Fraction & rFraction) in assign()
100 Fraction Fraction::inverse() const in inverse()
105 Fraction Fraction::operator + (const Fraction & rFraction) const in operator +()
112 Fraction Fraction::operator - (const Fraction & rFraction) const in operator -()
119 Fraction Fraction::operator * (const Fraction & rFraction) const in operator *()
124 Fraction Fraction::operator / (const Fraction & rFraction) const in operator /()
129 Fraction Fraction::operator = (const Fraction & rFraction) in operator =()
[all …]
/trunk/main/tools/source/generic/
H A Dfract.cxx134 Fraction::Fraction( long nN1, long nN2, long nD1, long nD2 ) in Fraction() function in Fraction
189 Fraction::Fraction( long nNum, long nDen ) in Fraction() function in Fraction
221 Fraction::Fraction( double dVal ) in Fraction() function in Fraction
257 Fraction::operator double() const
285 Fraction& Fraction::operator += ( const Fraction& rVal ) in operator +=()
341 Fraction& Fraction::operator -= ( const Fraction& rVal ) in operator -=()
398 Fraction& Fraction::operator *= ( const Fraction& rVal ) in operator *=()
453 Fraction& Fraction::operator /= ( const Fraction& rVal ) in operator /=()
633 sal_Bool operator == ( const Fraction& rVal1, const Fraction& rVal2 ) in operator ==()
659 sal_Bool operator < ( const Fraction& rVal1, const Fraction& rVal2 ) in operator <()
[all …]
/trunk/main/writerfilter/inc/resourcemodel/
H A DFraction.hxx31 class Fraction class
34 explicit Fraction(sal_Int32 nNumerator, sal_Int32 nDenominator = 1);
35 explicit Fraction(const Fraction & a, const Fraction & b);
36 virtual ~Fraction();
39 void assign(const Fraction & rFraction);
41 Fraction inverse() const;
43 Fraction operator=(const Fraction & rFraction);
44 Fraction operator+(const Fraction & rFraction) const;
45 Fraction operator-(const Fraction & rFraction) const;
46 Fraction operator*(const Fraction & rFraction) const;
[all …]
/trunk/main/svx/inc/svx/
H A Dsvdtrans.hxx68 inline void ResizePoint(Point& rPnt, const Point& rRef, Fraction xFact, Fraction yFact);
69 void ResizePoly(Polygon& rPoly, const Point& rRef, const Fraction& xFact, const Fraction& yFact);
70 void ResizeXPoly(XPolygon& rPoly, const Point& rRef, const Fraction& xFact, const Fraction& yFact);
71 void ResizePoly(PolyPolygon& rPoly, const Point& rRef, const Fraction& xFact, const Fraction& yFact…
72 void ResizeXPoly(XPolyPolygon& rPoly, const Point& rRef, const Fraction& xFact, const Fraction& yFa…
124 inline void ResizePoint(Point& rPnt, const Point& rRef, Fraction xFact, Fraction yFact) in ResizePoint()
250 Fraction aX;
251 Fraction aY;
255 FrPair(const Fraction& rX, const Fraction& rY) : aX(rX),aY(rY) {} in FrPair()
258 const Fraction& X() const { return aX; } in X()
[all …]
H A Dsvdmodel.hxx177Fraction aObjUnit; // Beschreibung der Koordinateneinheiten fuer ClipBoard, Drag&Drop, ...
180 Fraction aUIScale; // see above
182 Fraction aUIUnitFact; // see above
416 const Fraction& GetScaleFraction() const { return aObjUnit; } in GetScaleFraction()
417 void SetScaleFraction(const Fraction& rFrac);
419 void SetScaleUnit(MapUnit eMap, const Fraction& rFrac);
430 void SetUIScale(const Fraction& rScale);
431 const Fraction& GetUIScale() const { return aUIScale; } in GetUIScale()
433 void SetUIUnit(FieldUnit eUnit, const Fraction& rScale);
435 const Fraction& GetUIUnitFact() const { return aUIUnitFact; } in GetUIUnitFact()
[all …]
/trunk/main/svx/source/svdraw/
H A Dsvdtrans.cxx52 Fraction xFact(rxFact); in ResizeRect()
53 Fraction yFact(ryFact); in ResizeRect()
742 rF=Fraction(nMul,nDiv); in Kuerzen()
778 return Fraction(1,1); in GetInchOrMM()
797 return Fraction(1,1); in GetInchOrMM()
811 if (bSInch && !bDInch) { aRet.X()*=Fraction(127,5); aRet.Y()*=Fraction(127,5); } in GetMapFactor()
812 if (!bSInch && bDInch) { aRet.X()*=Fraction(5,127); aRet.Y()*=Fraction(5,127); } in GetMapFactor()
823 if (bSInch && !bDInch) { aRet.X()*=Fraction(127,5); aRet.Y()*=Fraction(127,5); } in GetMapFactor()
824 if (!bSInch && bDInch) { aRet.X()*=Fraction(5,127); aRet.Y()*=Fraction(5,127); } in GetMapFactor()
835 if (bSInch && !bDInch) { aRet.X()*=Fraction(127,5); aRet.Y()*=Fraction(127,5); } in GetMapFactor()
[all …]
H A Dsvdoole2.cxx127 Fraction m_aScaleWidth;
128 Fraction m_aScaleHeight;
135 void SetSizeScale( const Fraction& aScaleWidth, const Fraction& aScaleHeight ) in SetSizeScale()
1822 Fraction aScaleWidth; in ImpSetVisAreaSize()
1823 Fraction aScaleHeight; in ImpSetVisAreaSize()
1886 Fraction aScaleWidth; in ImpSetVisAreaSize()
1887 Fraction aScaleHeight; in ImpSetVisAreaSize()
1925 void SdrOle2Obj::NbcResize(const Point& rRef, const Fraction& xFact, const Fraction& yFact) in NbcResize()
2264 sal_Bool SdrOle2Obj::CalculateNewScaling( Fraction& aScaleWidth, Fraction& aScaleHeight, Size& aObj… in CalculateNewScaling()
2296 Fraction aScaleWidth; in AddOwnLightClient()
[all …]
H A Dsvdotxtr.cxx69 SdrTextObj::NbcResize(maSnapRect.TopLeft(),Fraction(nWdt1,nWdt0),Fraction(nHgt1,nHgt0)); in NbcSetSnapRect()
88 NbcResizeTextAttributes(Fraction(nTWdt1,nTWdt0),Fraction(nTHgt1,nTHgt0)); in NbcSetSnapRect()
122 NbcResizeTextAttributes(Fraction(nTWdt1,nTWdt0),Fraction(nTHgt1,nTHgt0)); in NbcSetLogicRect()
149 void SdrTextObj::NbcResize(const Point& rRef, const Fraction& xFact, const Fraction& yFact) in NbcResize()
245 NbcResizeTextAttributes(Fraction(nTWdt1,nTWdt0),Fraction(nTHgt1,nTHgt0)); in NbcResize()
H A Dsvddrgmt.cxx1809 Fraction aFact1(1,1); in TakeSdrDragComment()
1917 Fraction aMaxFact(0x7FFFFFFF,1); in MoveSdrDrag()
2007 if ((Fraction(nXMul,nXDiv)>Fraction(nYMul,nYDiv)) !=getSdrDragView().IsBigOrtho()) in MoveSdrDrag()
2055 Fraction aNeuXFact(nXMul,nXDiv); in MoveSdrDrag()
2375 Fraction aNeuFact(1,1); in MoveSdrDrag()
3050 Fraction aFact1(1,1); in _MovAllPoints()
3142 Fraction aFact1(1,1); in _MovCrookPoint()
3221 Fraction aNeuFact(1,1); in MoveSdrDrag()
3358 aNeuFact=Fraction(nMul,nDiv); in MoveSdrDrag()
3388 Fraction aFact1(1,1); in applyCurrentTransformationToSdrObject()
[all …]
/trunk/main/sc/source/ui/view/
H A Ddrawutil.cxx43 inline Fraction MakeFraction( long nA, long nB ) in MakeFraction()
45 return ( nA && nB ) ? Fraction(nA,nB) : Fraction(1,1); in MakeFraction()
51 const Fraction& rZoomX, const Fraction& rZoomY, in CalcScale()
53 Fraction& rScaleX, Fraction& rScaleY ) in CalcScale()
99 rScaleX = Fraction( ((double)aPixelLog.X()) * in CalcScale()
105 rScaleX = Fraction( 1, 1 ); in CalcScale()
108 rScaleY = Fraction( ((double)aPixelLog.Y()) * in CalcScale()
114 rScaleY = Fraction( 1, 1 ); in CalcScale()
/trunk/main/writerfilter/source/dmapper/
H A DWrapPolygonHandler.cxx94 WrapPolygon::Pointer_t WrapPolygon::scale(const Fraction & rFractionX, const Fraction & rFractionY) in scale()
103 awt::Point aPoint(Fraction(aIt->X) * rFractionX, Fraction(aIt->Y) * rFractionY); in scale()
117 Fraction aMove(nWrap100Percent, rSrcSize.Width); in correctWordWrapPolygon()
118 aMove = aMove * Fraction(15, 1); in correctWordWrapPolygon()
122 Fraction aScaleX(nWrap100Percent, Fraction(nWrap100Percent) + aMove); in correctWordWrapPolygon()
123 Fraction aScaleY(nWrap100Percent, Fraction(nWrap100Percent) - aMove); in correctWordWrapPolygon()
126 Fraction aScaleDestX(rDstSize.Width, nWrap100Percent); in correctWordWrapPolygon()
127 Fraction aScaleDestY(rDstSize.Height, nWrap100Percent); in correctWordWrapPolygon()
/trunk/main/sd/source/ui/dlg/
H A Dcopydlg.cxx172 SetMetricValue( maMtrFldMoveX, Fraction(nMoveX) / maUIScale, SFX_MAPUNIT_100TH_MM); in IMPL_LINK()
177 SetMetricValue( maMtrFldMoveY, Fraction(nMoveY) / maUIScale, SFX_MAPUNIT_100TH_MM); in IMPL_LINK()
187 SetMetricValue( maMtrFldWidth, Fraction(nWidth) / maUIScale, SFX_MAPUNIT_100TH_MM); in IMPL_LINK()
192 SetMetricValue( maMtrFldHeight, Fraction(nHeight) / maUIScale, SFX_MAPUNIT_100TH_MM); in IMPL_LINK()
245 long nMoveX = Fraction( GetCoreValue( maMtrFldMoveX, SFX_MAPUNIT_100TH_MM) ) * maUIScale; in GetAttr()
297 SetMetricValue( maMtrFldMoveX, Fraction( aRect.GetWidth() ) / in IMPL_LINK()
299 SetMetricValue( maMtrFldMoveY, Fraction( aRect.GetHeight() ) / in IMPL_LINK()
322 SetMetricValue( maMtrFldMoveX, Fraction(nValue) / maUIScale, SFX_MAPUNIT_100TH_MM); in IMPL_LINK()
323 SetMetricValue( maMtrFldMoveY, Fraction(nValue) / maUIScale, SFX_MAPUNIT_100TH_MM); in IMPL_LINK()
327 SetMetricValue( maMtrFldWidth, Fraction(nValue) / maUIScale, SFX_MAPUNIT_100TH_MM); in IMPL_LINK()
[all …]
H A Ddlgsnap.cxx107 nValue = Fraction( nValue ) / aUIScale; in SdSnapLineDlg()
113 nValue = Fraction( nValue ) / aUIScale; in SdSnapLineDlg()
119 nValue = Fraction( nValue ) / aUIScale; in SdSnapLineDlg()
125 nValue = Fraction( nValue ) / aUIScale; in SdSnapLineDlg()
132 nXValue = Fraction(nXValue) / aUIScale; in SdSnapLineDlg()
133 nYValue = Fraction(nYValue) / aUIScale; in SdSnapLineDlg()
170 nXValue = Fraction( GetCoreValue( aMtrFldX, SFX_MAPUNIT_100TH_MM) ) * aUIScale; in GetAttr()
171 nYValue = Fraction( GetCoreValue( aMtrFldY, SFX_MAPUNIT_100TH_MM) ) * aUIScale; in GetAttr()
/trunk/main/sc/source/ui/inc/
H A Dviewdata.hxx110 Fraction aZoomX; // selected zoom X
111 Fraction aZoomY; // selected zoom Y (displayed)
112 Fraction aPageZoomX; // zoom in page break preview mode
113 Fraction aPageZoomY;
179 Fraction aDefZoomX;
180 Fraction aDefZoomY;
181 Fraction aDefPageZoomX; // zoom in page break preview mode
182 Fraction aDefPageZoomY;
309 …void SetZoom( const Fraction& rNewX, const Fraction& rNewY, std::vector< SCTAB >& tabs …
310 void SetZoom( const Fraction& rNewX, const Fraction& rNewY, sal_Bool bAll );
[all …]
H A Ddrawview.hxx44 Fraction aScaleX; // Faktor fuer Drawing-MapMode
45 Fraction aScaleY;
106 void GetScale( Fraction& rFractX, Fraction& rFractY ) const;
111 void CalcNormScale( Fraction& rFractX, Fraction& rFractY ) const;
H A Ddrawutil.hxx30 class Fraction;
39 OutputDevice* pDev, const Fraction& rZoomX, const Fraction& rZoomY,
41 Fraction& rScaleX, Fraction& rScaleY );
/trunk/main/svx/source/dialog/
H A Dmeasctrl.cxx59 aMapMode.SetScaleX( Fraction( 1, 2 ) ); in SvxXMeasurePreview()
60 aMapMode.SetScaleY( Fraction( 1, 2 ) ); in SvxXMeasurePreview()
139 Fraction aXFrac = aMapMode.GetScaleX(); in MouseButtonDown()
140 Fraction aYFrac = aMapMode.GetScaleY(); in MouseButtonDown()
141 Fraction* pMultFrac; in MouseButtonDown()
146 pMultFrac = new Fraction( 3, 2 ); in MouseButtonDown()
148 pMultFrac = new Fraction( 11, 10 ); in MouseButtonDown()
153 pMultFrac = new Fraction( 2, 3 ); in MouseButtonDown()
155 pMultFrac = new Fraction( 10, 11 ); in MouseButtonDown()
H A Dconnctrl.cxx174 Fraction aFrac1( aWinSize.Width(), aRect.GetWidth() ); in Construct()
175 Fraction aFrac2( aWinSize.Height(), aRect.GetHeight() ); in Construct()
176 Fraction aMinFrac( aFrac1 <= aFrac2 ? aFrac1 : aFrac2 ); in Construct()
322 Fraction aXFrac = aMapMode.GetScaleX(); in MouseButtonDown()
323 Fraction aYFrac = aMapMode.GetScaleY(); in MouseButtonDown()
324 Fraction* pMultFrac; in MouseButtonDown()
329 pMultFrac = new Fraction( 3, 2 ); in MouseButtonDown()
331 pMultFrac = new Fraction( 11, 10 ); in MouseButtonDown()
336 pMultFrac = new Fraction( 2, 3 ); in MouseButtonDown()
338 pMultFrac = new Fraction( 10, 11 ); in MouseButtonDown()
/trunk/main/sfx2/source/view/
H A Dipclient.cxx110 Fraction m_aScaleHeight;
466 aRealObjArea.SetSize( Size( Fraction( aRealObjArea.GetWidth() ) * m_aScaleWidth, in getPlacement()
467 Fraction( aRealObjArea.GetHeight() ) * m_aScaleHeight ) ); in getPlacement()
484 Fraction( aRealObjArea.GetHeight() ) * m_aScaleHeight ) ); in getClipRectangle()
546 Size aNewObjSize( Fraction( aNewLogicRect.GetWidth() ) / m_aScaleWidth, in changedPlacement()
547 Fraction( aNewLogicRect.GetHeight() ) / m_aScaleHeight ); in changedPlacement()
654 m_pImp->m_aScaleWidth = m_pImp->m_aScaleHeight = Fraction(1,1); in SfxInPlaceClient()
799 void SfxInPlaceClient::SetSizeScale( const Fraction & rScaleWidth, const Fraction & rScaleHeight ) in SetSizeScale()
815 …Client::SetObjAreaAndScale( const Rectangle& rArea, const Fraction& rScaleWidth, const Fraction& r… in SetObjAreaAndScale()
833 const Fraction& SfxInPlaceClient::GetScaleWidth() const in GetScaleWidth()
[all …]
/trunk/main/vcl/inc/vcl/
H A Dmapmod.hxx51 Fraction maScaleX;
52 Fraction maScaleY;
82 const Fraction& rScaleX, const Fraction& rScaleY );
93 void SetScaleX( const Fraction& rScaleX );
94 const Fraction& GetScaleX() const in GetScaleX()
96 void SetScaleY( const Fraction& rScaleY );
97 const Fraction& GetScaleY() const in GetScaleY()
/trunk/main/sfx2/inc/sfx2/
H A Dipclient.hxx42 class Fraction;
83 void SetSizeScale( const Fraction & rScaleWidth, const Fraction & rScaleHeight );
84 sal_Bool SetObjAreaAndScale( const Rectangle&, const Fraction&, const Fraction& );
85 const Fraction& GetScaleWidth() const;
86 const Fraction& GetScaleHeight() const;
/trunk/main/reportdesign/source/ui/report/
H A DReportWindow.cxx152 Fraction aStartWidth(long(REPORT_STARTMARKER_WIDTH)); in getMaxMarkerWidth()
155 aStartWidth += Fraction(long(REPORT_ENDMARKER_WIDTH)); in getMaxMarkerWidth()
164 Fraction aStartWidth(long(REPORT_ENDMARKER_WIDTH + REPORT_STARTMARKER_WIDTH )); in GetTotalWidth()
165 const Fraction aZoom(m_pView->getController().getZoomValue(),100); in GetTotalWidth()
168 Fraction aPaperWidth(nPaperWidth,1); in GetTotalWidth()
182Fraction aStartWidth(long(REPORT_STARTMARKER_WIDTH)*m_pView->getController().getZoomValue(),100); in Resize()
384 void OReportWindow::zoom(const Fraction& _aZoom) in zoom()
427 nZoom = (sal_uInt16)(long)Fraction(aSize.Width()*100,impl_getRealPixelWidth()); in getZoomFactor()
430 … nZoom = ::std::min(nZoom,(sal_uInt16)(long)Fraction(aSize.Height()*100,aHeight.Height())); in getZoomFactor()
434 nZoom = (sal_uInt16)(long)Fraction(aSize.Width()*100,impl_getRealPixelWidth()); in getZoomFactor()
/trunk/main/starmath/inc/
H A Dutility.hxx58 inline long SmPtsTo100th_mm(const Fraction &rNumPts) in SmPtsTo100th_mm()
61 Fraction aTmp (254000L, 7227L); in SmPtsTo100th_mm()
66 inline Fraction Sm100th_mmToPts(long nNum100th_mm) in Sm100th_mmToPts()
71 Fraction aTmp (7227L, 254000L); in Sm100th_mmToPts()
72 return aTmp *= Fraction(nNum100th_mm); in Sm100th_mmToPts()
76 inline long SmRoundFraction(const Fraction &rFrac) in SmRoundFraction()
78 DBG_ASSERT(rFrac > Fraction(), "Sm : Ooops..."); in SmRoundFraction()
126 SmFace & operator *= (SmFace &rFace, const Fraction &rFrac);
/trunk/main/sd/source/ui/view/
H A Ddrviewsa.cxx715 Fraction aUIScale(GetDoc()->GetUIScale()); in GetStatusBarState()
716 aPos.X() = Fraction(aPos.X()) / aUIScale; in GetStatusBarState()
717 aPos.Y() = Fraction(aPos.Y()) / aUIScale; in GetStatusBarState()
731 aPos.X() = Fraction(aPos.X()) / aUIScale; in GetStatusBarState()
732 aPos.Y() = Fraction(aPos.Y()) / aUIScale; in GetStatusBarState()
735 aSize.Height() = Fraction(aSize.Height()) / aUIScale; in GetStatusBarState()
736 aSize.Width() = Fraction(aSize.Width()) / aUIScale; in GetStatusBarState()
749 aShapePosition.X() = Fraction(aShapePosition.X()) / aUIScale; in GetStatusBarState()
750 aShapePosition.Y() = Fraction(aShapePosition.Y()) / aUIScale; in GetStatusBarState()
754 aSize.Height() = Fraction(aSize.Height()) / aUIScale; in GetStatusBarState()
[all …]

Completed in 110 milliseconds

12345678910>>...19