Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
41df2005
Kaydet (Commit)
41df2005
authored
Tem 10, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
various unused methods
üst
f1fdd98e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
96 deletions
+0
-96
svdtrans.hxx
svx/inc/svx/svdtrans.hxx
+0
-11
svdtrans.cxx
svx/source/svdraw/svdtrans.cxx
+0
-85
No files found.
svx/inc/svx/svdtrans.hxx
Dosyayı görüntüle @
41df2005
...
...
@@ -65,29 +65,20 @@ inline void MovePoint(Point& rPnt, const Size& S) { rPnt.X()+=S.Width();
inline
void
MovePoly
(
Polygon
&
rPoly
,
const
Size
&
S
)
{
rPoly
.
Move
(
S
.
Width
(),
S
.
Height
());
}
inline
void
MovePoly
(
PolyPolygon
&
rPoly
,
const
Size
&
S
)
{
rPoly
.
Move
(
S
.
Width
(),
S
.
Height
());
}
void
MoveXPoly
(
XPolygon
&
rPoly
,
const
Size
&
S
);
void
MoveXPoly
(
XPolyPolygon
&
rPoly
,
const
Size
&
S
);
SVX_DLLPUBLIC
void
ResizeRect
(
Rectangle
&
rRect
,
const
Point
&
rRef
,
const
Fraction
&
xFact
,
const
Fraction
&
yFact
,
bool
bNoJustify
=
false
);
inline
void
ResizePoint
(
Point
&
rPnt
,
const
Point
&
rRef
,
Fraction
xFact
,
Fraction
yFact
);
void
ResizePoly
(
Polygon
&
rPoly
,
const
Point
&
rRef
,
const
Fraction
&
xFact
,
const
Fraction
&
yFact
);
void
ResizeXPoly
(
XPolygon
&
rPoly
,
const
Point
&
rRef
,
const
Fraction
&
xFact
,
const
Fraction
&
yFact
);
void
ResizePoly
(
PolyPolygon
&
rPoly
,
const
Point
&
rRef
,
const
Fraction
&
xFact
,
const
Fraction
&
yFact
);
void
ResizeXPoly
(
XPolyPolygon
&
rPoly
,
const
Point
&
rRef
,
const
Fraction
&
xFact
,
const
Fraction
&
yFact
);
inline
void
RotatePoint
(
Point
&
rPnt
,
const
Point
&
rRef
,
double
sn
,
double
cs
);
SVX_DLLPUBLIC
void
RotatePoly
(
Polygon
&
rPoly
,
const
Point
&
rRef
,
double
sn
,
double
cs
);
void
RotateXPoly
(
XPolygon
&
rPoly
,
const
Point
&
rRef
,
double
sn
,
double
cs
);
void
RotatePoly
(
PolyPolygon
&
rPoly
,
const
Point
&
rRef
,
double
sn
,
double
cs
);
void
RotateXPoly
(
XPolyPolygon
&
rPoly
,
const
Point
&
rRef
,
double
sn
,
double
cs
);
// MirrorRect macht nur Sinn bei Spiegelachsen
// mit einem durch 45 Degree teilbaren Winkel!
void
MirrorRect
(
Rectangle
&
rRect
,
const
Point
&
rRef1
,
const
Point
&
rRef2
,
bool
bNoJustify
);
// ni.
void
MirrorPoint
(
Point
&
rPnt
,
const
Point
&
rRef1
,
const
Point
&
rRef2
);
void
MirrorPoly
(
Polygon
&
rPoly
,
const
Point
&
rRef1
,
const
Point
&
rRef2
);
void
MirrorXPoly
(
XPolygon
&
rPoly
,
const
Point
&
rRef1
,
const
Point
&
rRef2
);
void
MirrorPoly
(
PolyPolygon
&
rPoly
,
const
Point
&
rRef1
,
const
Point
&
rRef2
);
void
MirrorXPoly
(
XPolyPolygon
&
rPoly
,
const
Point
&
rRef1
,
const
Point
&
rRef2
);
inline
void
ShearPoint
(
Point
&
rPnt
,
const
Point
&
rRef
,
double
tn
,
bool
bVShear
=
false
);
SVX_DLLPUBLIC
void
ShearPoly
(
Polygon
&
rPoly
,
const
Point
&
rRef
,
double
tn
,
bool
bVShear
=
false
);
...
...
@@ -264,8 +255,6 @@ public:
// Fuer die Umrechnung von Masseinheiten
SVX_DLLPUBLIC
FrPair
GetMapFactor
(
MapUnit
eS
,
MapUnit
eD
);
FrPair
GetMapFactor
(
MapUnit
eS
,
FieldUnit
eD
);
FrPair
GetMapFactor
(
FieldUnit
eS
,
MapUnit
eD
);
FrPair
GetMapFactor
(
FieldUnit
eS
,
FieldUnit
eD
);
inline
bool
IsMetric
(
MapUnit
eU
)
{
...
...
svx/source/svdraw/svdtrans.cxx
Dosyayı görüntüle @
41df2005
...
...
@@ -38,20 +38,11 @@
#include <tools/debug.hxx>
#include <unotools/syslocale.hxx>
////////////////////////////////////////////////////////////////////////////////////////////////////
void
MoveXPoly
(
XPolygon
&
rPoly
,
const
Size
&
S
)
{
rPoly
.
Move
(
S
.
Width
(),
S
.
Height
());
}
void
MoveXPoly
(
XPolyPolygon
&
rPoly
,
const
Size
&
S
)
{
rPoly
.
Move
(
S
.
Width
(),
S
.
Height
());
}
////////////////////////////////////////////////////////////////////////////////////////////////////
void
ResizeRect
(
Rectangle
&
rRect
,
const
Point
&
rRef
,
const
Fraction
&
rxFact
,
const
Fraction
&
ryFact
,
bool
bNoJustify
)
{
Fraction
xFact
(
rxFact
);
...
...
@@ -107,24 +98,6 @@ void ResizeXPoly(XPolygon& rPoly, const Point& rRef, const Fraction& xFact, cons
}
}
void
ResizePoly
(
PolyPolygon
&
rPoly
,
const
Point
&
rRef
,
const
Fraction
&
xFact
,
const
Fraction
&
yFact
)
{
sal_uInt16
nAnz
=
rPoly
.
Count
();
for
(
sal_uInt16
i
=
0
;
i
<
nAnz
;
i
++
)
{
ResizePoly
(
rPoly
[
i
],
rRef
,
xFact
,
yFact
);
}
}
void
ResizeXPoly
(
XPolyPolygon
&
rPoly
,
const
Point
&
rRef
,
const
Fraction
&
xFact
,
const
Fraction
&
yFact
)
{
sal_uInt16
nAnz
=
rPoly
.
Count
();
for
(
sal_uInt16
i
=
0
;
i
<
nAnz
;
i
++
)
{
ResizeXPoly
(
rPoly
[
i
],
rRef
,
xFact
,
yFact
);
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////
void
RotatePoly
(
Polygon
&
rPoly
,
const
Point
&
rRef
,
double
sn
,
double
cs
)
{
sal_uInt16
nAnz
=
rPoly
.
GetSize
();
...
...
@@ -141,14 +114,6 @@ void RotateXPoly(XPolygon& rPoly, const Point& rRef, double sn, double cs)
}
}
void
RotatePoly
(
PolyPolygon
&
rPoly
,
const
Point
&
rRef
,
double
sn
,
double
cs
)
{
sal_uInt16
nAnz
=
rPoly
.
Count
();
for
(
sal_uInt16
i
=
0
;
i
<
nAnz
;
i
++
)
{
RotatePoly
(
rPoly
[
i
],
rRef
,
sn
,
cs
);
}
}
void
RotateXPoly
(
XPolyPolygon
&
rPoly
,
const
Point
&
rRef
,
double
sn
,
double
cs
)
{
sal_uInt16
nAnz
=
rPoly
.
Count
();
...
...
@@ -157,14 +122,6 @@ void RotateXPoly(XPolyPolygon& rPoly, const Point& rRef, double sn, double cs)
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////
void
MirrorRect
(
Rectangle
&
rRect
,
const
Point
&
/*rRef1*/
,
const
Point
&
/*rRef2*/
,
bool
bNoJustify
)
{
// !!! fehlende Implementation !!!
if
(
!
bNoJustify
)
rRect
.
Justify
();
}
void
MirrorPoint
(
Point
&
rPnt
,
const
Point
&
rRef1
,
const
Point
&
rRef2
)
{
long
mx
=
rRef2
.
X
()
-
rRef1
.
X
();
...
...
@@ -216,24 +173,6 @@ void MirrorXPoly(XPolygon& rPoly, const Point& rRef1, const Point& rRef2)
}
}
void
MirrorPoly
(
PolyPolygon
&
rPoly
,
const
Point
&
rRef1
,
const
Point
&
rRef2
)
{
sal_uInt16
nAnz
=
rPoly
.
Count
();
for
(
sal_uInt16
i
=
0
;
i
<
nAnz
;
i
++
)
{
MirrorPoly
(
rPoly
[
i
],
rRef1
,
rRef2
);
}
}
void
MirrorXPoly
(
XPolyPolygon
&
rPoly
,
const
Point
&
rRef1
,
const
Point
&
rRef2
)
{
sal_uInt16
nAnz
=
rPoly
.
Count
();
for
(
sal_uInt16
i
=
0
;
i
<
nAnz
;
i
++
)
{
MirrorXPoly
(
rPoly
[
i
],
rRef1
,
rRef2
);
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////
void
ShearPoly
(
Polygon
&
rPoly
,
const
Point
&
rRef
,
double
tn
,
bool
bVShear
)
{
sal_uInt16
nAnz
=
rPoly
.
GetSize
();
...
...
@@ -772,30 +711,6 @@ FrPair GetMapFactor(MapUnit eS, MapUnit eD)
return
aRet
;
};
FrPair
GetMapFactor
(
MapUnit
eS
,
FieldUnit
eD
)
{
FrPair
aS
(
GetInchOrMM
(
eS
));
FrPair
aD
(
GetInchOrMM
(
eD
));
bool
bSInch
=
IsInch
(
eS
);
bool
bDInch
=
IsInch
(
eD
);
FrPair
aRet
(
aD
.
X
()
/
aS
.
X
(),
aD
.
Y
()
/
aS
.
Y
());
if
(
bSInch
&&
!
bDInch
)
{
aRet
.
X
()
*=
Fraction
(
127
,
5
);
aRet
.
Y
()
*=
Fraction
(
127
,
5
);
}
if
(
!
bSInch
&&
bDInch
)
{
aRet
.
X
()
*=
Fraction
(
5
,
127
);
aRet
.
Y
()
*=
Fraction
(
5
,
127
);
}
return
aRet
;
};
FrPair
GetMapFactor
(
FieldUnit
eS
,
MapUnit
eD
)
{
FrPair
aS
(
GetInchOrMM
(
eS
));
FrPair
aD
(
GetInchOrMM
(
eD
));
bool
bSInch
=
IsInch
(
eS
);
bool
bDInch
=
IsInch
(
eD
);
FrPair
aRet
(
aD
.
X
()
/
aS
.
X
(),
aD
.
Y
()
/
aS
.
Y
());
if
(
bSInch
&&
!
bDInch
)
{
aRet
.
X
()
*=
Fraction
(
127
,
5
);
aRet
.
Y
()
*=
Fraction
(
127
,
5
);
}
if
(
!
bSInch
&&
bDInch
)
{
aRet
.
X
()
*=
Fraction
(
5
,
127
);
aRet
.
Y
()
*=
Fraction
(
5
,
127
);
}
return
aRet
;
};
FrPair
GetMapFactor
(
FieldUnit
eS
,
FieldUnit
eD
)
{
if
(
eS
==
eD
)
return
FrPair
(
1
,
1
,
1
,
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment