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
7e5980cc
Kaydet (Commit)
7e5980cc
authored
Nis 17, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
svx: nPntAnz -> nPointCount
Change-Id: I2a4c7ef9d33db1c34a4ab338f70f800b30083f4f
üst
a7b7c64a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
31 deletions
+31
-31
svddrgv.hxx
include/svx/svddrgv.hxx
+1
-1
svdoashp.cxx
svx/source/svdraw/svdoashp.cxx
+4
-4
svdocirc.cxx
svx/source/svdraw/svdocirc.cxx
+3
-3
svdoedge.cxx
svx/source/svdraw/svdoedge.cxx
+0
-0
svdopath.cxx
svx/source/svdraw/svdopath.cxx
+17
-17
svdotxtr.cxx
svx/source/svdraw/svdotxtr.cxx
+2
-2
unoshap2.cxx
svx/source/unodraw/unoshap2.cxx
+4
-4
No files found.
include/svx/svddrgv.hxx
Dosyayı görüntüle @
7e5980cc
...
...
@@ -180,7 +180,7 @@ public:
// all polygons. Default=500.
// NoDragPolys is (temporarily) activated, if one of the limits
// is exceeded.
void
SetDragXorPointLimit
(
sal_uIntPtr
nP
ntAnz
)
{
nDragXorPointLimit
=
nPntAnz
;
}
void
SetDragXorPointLimit
(
sal_uIntPtr
nP
ointCount
)
{
nDragXorPointLimit
=
nPointCount
;
}
sal_uIntPtr
GetDragXorPointLimit
()
const
{
return
nDragXorPointLimit
;
}
void
SetSolidDragging
(
bool
bOn
);
...
...
svx/source/svdraw/svdoashp.cxx
Dosyayı görüntüle @
7e5980cc
...
...
@@ -3108,8 +3108,8 @@ bool SdrObjCustomShape::TRGetBaseGeometry(basegfx::B2DHomMatrix& rMatrix, basegf
Point
aRef1
(
(
aBoundRect
.
Left
()
+
aBoundRect
.
Right
()
)
>>
1
,
aBoundRect
.
Top
()
);
Point
aRef2
(
aRef1
.
X
(),
aRef1
.
Y
()
+
1000
);
sal_uInt16
i
;
sal_uInt16
nP
ntAnz
=
aPol
.
GetSize
();
for
(
i
=
0
;
i
<
nP
ntAnz
;
i
++
)
sal_uInt16
nP
ointCount
=
aPol
.
GetSize
();
for
(
i
=
0
;
i
<
nP
ointCount
;
i
++
)
{
MirrorPoint
(
aPol
[
i
],
aRef1
,
aRef2
);
}
...
...
@@ -3130,8 +3130,8 @@ bool SdrObjCustomShape::TRGetBaseGeometry(basegfx::B2DHomMatrix& rMatrix, basegf
Point
aRef1
(
aBoundRect
.
Left
(),
(
aBoundRect
.
Top
()
+
aBoundRect
.
Bottom
()
)
>>
1
);
Point
aRef2
(
aRef1
.
X
()
+
1000
,
aRef1
.
Y
()
);
sal_uInt16
i
;
sal_uInt16
nP
ntAnz
=
aPol
.
GetSize
();
for
(
i
=
0
;
i
<
nP
ntAnz
;
i
++
)
sal_uInt16
nP
ointCount
=
aPol
.
GetSize
();
for
(
i
=
0
;
i
<
nP
ointCount
;
i
++
)
{
MirrorPoint
(
aPol
[
i
],
aRef1
,
aRef2
);
}
...
...
svx/source/svdraw/svdocirc.cxx
Dosyayı görüntüle @
7e5980cc
...
...
@@ -569,16 +569,16 @@ OUString SdrCircObj::getSpecialDragComment(const SdrDragStat& rDrag) const
OUString
aStr
;
ImpTakeDescriptionStr
(
STR_ViewCreateObj
,
aStr
);
OUStringBuffer
aBuf
(
aStr
);
const
sal_uInt32
nP
ntAnz
(
rDrag
.
GetPointAnz
());
const
sal_uInt32
nP
ointCount
(
rDrag
.
GetPointAnz
());
if
(
OBJ_CIRC
!=
meCircleKind
&&
nP
ntAnz
>
2
)
if
(
OBJ_CIRC
!=
meCircleKind
&&
nP
ointCount
>
2
)
{
const
ImpCircUser
*
pU
=
static_cast
<
const
ImpCircUser
*>
(
rDrag
.
GetUser
());
sal_Int32
nAngle
;
aBuf
.
appendAscii
(
" ("
);
if
(
3
==
nP
ntAnz
)
if
(
3
==
nP
ointCount
)
{
nAngle
=
pU
->
nStart
;
}
...
...
svx/source/svdraw/svdoedge.cxx
Dosyayı görüntüle @
7e5980cc
This diff is collapsed.
Click to expand it.
svx/source/svdraw/svdopath.cxx
Dosyayı görüntüle @
7e5980cc
...
...
@@ -80,7 +80,7 @@ struct ImpSdrPathDragData : public SdrDragStatUserData
bool
bClosed
;
// closed object?
sal_uInt16
nPoly
;
// number of the polygon in the PolyPolygon
sal_uInt16
nPnt
;
// number of point in the above polygon
sal_uInt16
nP
ntAnz
;
// number of points of the polygon
sal_uInt16
nP
ointCount
;
// number of points of the polygon
sal_uInt16
nPntMax
;
// maximum index
bool
bBegPnt
;
// dragged point is first point of a Polyline
bool
bEndPnt
;
// dragged point is finishing point of a Polyline
...
...
@@ -119,7 +119,7 @@ ImpSdrPathDragData::ImpSdrPathDragData(const SdrPathObj& rPO, const SdrHdl& rHdl
,
bClosed
(
false
)
,
nPoly
(
0
)
,
nPnt
(
0
)
,
nP
ntAnz
(
0
)
,
nP
ointCount
(
0
)
,
nPntMax
(
0
)
,
bBegPnt
(
false
)
,
bEndPnt
(
false
)
...
...
@@ -171,14 +171,14 @@ ImpSdrPathDragData::ImpSdrPathDragData(const SdrPathObj& rPO, const SdrHdl& rHdl
nPoly
=
(
sal_uInt16
)
rHdl
.
GetPolyNum
();
// number of the polygon in the PolyPolygon
nPnt
=
(
sal_uInt16
)
rHdl
.
GetPointNum
();
// number of points in the above polygon
const
XPolygon
aTmpXP
(
rPO
.
GetPathPoly
().
getB2DPolygon
(
nPoly
));
nP
ntAnz
=
aTmpXP
.
GetPointCount
();
// number of point of the polygon
if
(
nP
ntAnz
==
0
||
(
bClosed
&&
nPntAnz
==
1
))
return
;
// minimum of 1 points for Lines, minimum of 2 points for Polygon
nPntMax
=
nP
ntAnz
-
1
;
// maximum index
nP
ointCount
=
aTmpXP
.
GetPointCount
();
// number of point of the polygon
if
(
nP
ointCount
==
0
||
(
bClosed
&&
nPointCount
==
1
))
return
;
// minimum of 1 points for Lines, minimum of 2 points for Polygon
nPntMax
=
nP
ointCount
-
1
;
// maximum index
bBegPnt
=!
bClosed
&&
nPnt
==
0
;
// dragged point is first point of a Polyline
bEndPnt
=!
bClosed
&&
nPnt
==
nPntMax
;
// dragged point is finishing point of a Polyline
if
(
bClosed
&&
nP
ntAnz
<=
3
)
{
// if polygon is only a line
bBegPnt
=
(
nP
ntAnz
<
3
)
||
nPnt
==
0
;
bEndPnt
=
(
nP
ntAnz
<
3
)
||
nPnt
==
nPntMax
-
1
;
if
(
bClosed
&&
nP
ointCount
<=
3
)
{
// if polygon is only a line
bBegPnt
=
(
nP
ointCount
<
3
)
||
nPnt
==
0
;
bEndPnt
=
(
nP
ointCount
<
3
)
||
nPnt
==
nPntMax
-
1
;
}
nPrevPnt
=
nPnt
;
// index of previous point
nNextPnt
=
nPnt
;
// index of next point
...
...
@@ -685,11 +685,11 @@ bool ImpPathForDragAndCreate::movePathDrag( SdrDragStat& rDrag ) const
sal_uInt16
nPnt1
=
0xFFFF
,
nPnt2
=
0xFFFF
;
// its neighboring points
Point
aNeuPos1
,
aNeuPos2
;
// new alternative for aPos
bool
bPnt1
=
false
,
bPnt2
=
false
;
// are these valid alternatives?
if
(
!
bClosed
&&
mpSdrPathDragData
->
nP
ntAnz
>=
2
)
{
// minimum of 2 points for lines
if
(
!
bClosed
&&
mpSdrPathDragData
->
nP
ointCount
>=
2
)
{
// minimum of 2 points for lines
if
(
!
bBegPnt
)
nPnt1
=
nPrevPnt
;
if
(
!
bEndPnt
)
nPnt2
=
nNextPnt
;
}
if
(
bClosed
&&
mpSdrPathDragData
->
nP
ntAnz
>=
3
)
{
// minimum of 3 points for polygon
if
(
bClosed
&&
mpSdrPathDragData
->
nP
ointCount
>=
3
)
{
// minimum of 3 points for polygon
nPnt1
=
nPrevPnt
;
nPnt2
=
nNextPnt
;
}
...
...
@@ -1049,11 +1049,11 @@ OUString ImpPathForDragAndCreate::getSpecialDragComment(const SdrDragStat& rDrag
{
sal_uInt16
nPntNum
((
sal_uInt16
)
pHdl
->
GetPointNum
());
const
XPolygon
&
rXPoly
=
aPathPolygon
[(
sal_uInt16
)
rDrag
.
GetHdl
()
->
GetPolyNum
()];
sal_uInt16
nP
ntAnz
((
sal_uInt16
)
rXPoly
.
GetPointCount
());
sal_uInt16
nP
ointCount
((
sal_uInt16
)
rXPoly
.
GetPointCount
());
bool
bClose
(
IsClosed
(
meObjectKind
));
if
(
bClose
)
nP
ntAnz
--
;
nP
ointCount
--
;
if
(
pHdl
->
IsPlusHdl
())
{
...
...
@@ -1077,14 +1077,14 @@ OUString ImpPathForDragAndCreate::getSpecialDragComment(const SdrDragStat& rDrag
mrSdrPathObject
.
GetModel
()
->
TakeAngleStr
(
nAngle
,
aMetr
);
aStr
+=
aMetr
;
}
else
if
(
nP
ntAnz
>
1
)
else
if
(
nP
ointCount
>
1
)
{
sal_uInt16
nPntMax
(
nP
ntAnz
-
1
);
sal_uInt16
nPntMax
(
nP
ointCount
-
1
);
bool
bIsClosed
(
IsClosed
(
meObjectKind
));
bool
bPt1
(
nPntNum
>
0
);
bool
bPt2
(
nPntNum
<
nPntMax
);
if
(
bIsClosed
&&
nP
ntAnz
>
2
)
if
(
bIsClosed
&&
nP
ointCount
>
2
)
{
bPt1
=
true
;
bPt2
=
true
;
...
...
@@ -1176,7 +1176,7 @@ basegfx::B2DPolyPolygon ImpPathForDragAndCreate::getSpecialDragPoly(const SdrDra
}
// copy certain data locally to use less code and have faster access times
bool
bClosed
=
mpSdrPathDragData
->
bClosed
;
// closed object?
sal_uInt16
nPntAnz
=
mpSdrPathDragData
->
nPntAnz
;
// number of points
sal_uInt16
nPointCount
=
mpSdrPathDragData
->
nPointCount
;
// number of points
sal_uInt16
nPnt
=
mpSdrPathDragData
->
nPnt
;
// number of points in the polygon
bool
bBegPnt
=
mpSdrPathDragData
->
bBegPnt
;
// dragged point is the first point of a Polyline
bool
bEndPnt
=
mpSdrPathDragData
->
bEndPnt
;
// dragged point is the last point of a Polyline
...
...
@@ -1249,7 +1249,7 @@ basegfx::B2DPolyPolygon ImpPathForDragAndCreate::getSpecialDragPoly(const SdrDra
if
(
bEndPnt
)
aXPoly
.
Remove
(
aXPoly
.
GetPointCount
()
-
1
,
1
);
}
if
(
bClosed
)
{
// "pear problem": 2 lines, 1 curve, everything smoothed, a point between both lines is dragged
if
(
aXPoly
.
GetPointCount
()
>
nP
ntAnz
&&
aXPoly
.
IsControl
(
1
))
{
if
(
aXPoly
.
GetPointCount
()
>
nP
ointCount
&&
aXPoly
.
IsControl
(
1
))
{
sal_uInt16
a
=
aXPoly
.
GetPointCount
();
aXPoly
[
a
-
2
]
=
aXPoly
[
2
];
aXPoly
.
SetFlags
(
a
-
2
,
aXPoly
.
GetFlags
(
2
));
aXPoly
[
a
-
1
]
=
aXPoly
[
3
];
aXPoly
.
SetFlags
(
a
-
1
,
aXPoly
.
GetFlags
(
3
));
...
...
svx/source/svdraw/svdotxtr.cxx
Dosyayı görüntüle @
7e5980cc
...
...
@@ -258,8 +258,8 @@ void SdrTextObj::NbcMirror(const Point& rRef1, const Point& rRef2)
}
Polygon
aPol
(
Rect2Poly
(
maRect
,
aGeo
));
sal_uInt16
i
;
sal_uInt16
nP
ntAnz
=
aPol
.
GetSize
();
for
(
i
=
0
;
i
<
nP
ntAnz
;
i
++
)
{
sal_uInt16
nP
ointCount
=
aPol
.
GetSize
();
for
(
i
=
0
;
i
<
nP
ointCount
;
i
++
)
{
MirrorPoint
(
aPol
[
i
],
rRef1
,
rRef2
);
}
// turn polygon and move it a little
...
...
svx/source/unodraw/unoshap2.cxx
Dosyayı görüntüle @
7e5980cc
...
...
@@ -1761,8 +1761,8 @@ awt::Point SAL_CALL SvxCustomShape::getPosition() throw(uno::RuntimeException, s
Point
aRef1
(
(
aBoundRect
.
Left
()
+
aBoundRect
.
Right
()
)
>>
1
,
aBoundRect
.
Top
()
);
Point
aRef2
(
aRef1
.
X
(),
aRef1
.
Y
()
+
1000
);
sal_uInt16
i
;
sal_uInt16
nP
ntAnz
=
aPol
.
GetSize
();
for
(
i
=
0
;
i
<
nP
ntAnz
;
i
++
)
sal_uInt16
nP
ointCount
=
aPol
.
GetSize
();
for
(
i
=
0
;
i
<
nP
ointCount
;
i
++
)
{
MirrorPoint
(
aPol
[
i
],
aRef1
,
aRef2
);
}
...
...
@@ -1783,8 +1783,8 @@ awt::Point SAL_CALL SvxCustomShape::getPosition() throw(uno::RuntimeException, s
Point
aRef1
(
aBoundRect
.
Left
(),
(
aBoundRect
.
Top
()
+
aBoundRect
.
Bottom
()
)
>>
1
);
Point
aRef2
(
aRef1
.
X
()
+
1000
,
aRef1
.
Y
()
);
sal_uInt16
i
;
sal_uInt16
nP
ntAnz
=
aPol
.
GetSize
();
for
(
i
=
0
;
i
<
nP
ntAnz
;
i
++
)
sal_uInt16
nP
ointCount
=
aPol
.
GetSize
();
for
(
i
=
0
;
i
<
nP
ointCount
;
i
++
)
{
MirrorPoint
(
aPol
[
i
],
aRef1
,
aRef2
);
}
...
...
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