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
4faa4687
Kaydet (Commit)
4faa4687
authored
Ara 10, 2012
tarafından
Armin Le Grand
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#121437# Added patch from Regina which implements QuadraticBezier segemnts to CustomShapes
Patch by: Regina Review by: ALG
üst
941627cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
EnhancedCustomShape2d.cxx
svx/source/customshapes/EnhancedCustomShape2d.cxx
+30
-0
No files found.
svx/source/customshapes/EnhancedCustomShape2d.cxx
Dosyayı görüntüle @
4faa4687
...
...
@@ -1495,6 +1495,36 @@ void EnhancedCustomShape2d::CreateSubPath( sal_uInt16& rSrcPt, sal_uInt16& rSegm
}
break
;
case
QUADRATICCURVETO
:
{
for
(
sal_uInt16
i
=
0
;
(
i
<
nPntCount
)
&&
(
(
rSrcPt
+
1
)
<
nCoordSize
);
i
++
)
{
if
(
rSrcPt
)
{
const
Point
aPreviousEndPoint
(
GetPoint
(
seqCoordinates
[
rSrcPt
-
1
],
sal_True
,
sal_True
));
const
Point
aControlQ
(
GetPoint
(
seqCoordinates
[
rSrcPt
++
],
sal_True
,
sal_True
));
const
Point
aEnd
(
GetPoint
(
seqCoordinates
[
rSrcPt
++
],
sal_True
,
sal_True
));
const
Point
aControlA
((
aPreviousEndPoint
+
(
aControlQ
*
2
))
/
3
);
const
Point
aControlB
(((
aControlQ
*
2
)
+
aEnd
)
/
3
);
DBG_ASSERT
(
aNewB2DPolygon
.
count
(),
"EnhancedCustomShape2d::CreateSubPath: Error in adding Q control point (!)"
);
aNewB2DPolygon
.
appendBezierSegment
(
basegfx
::
B2DPoint
(
aControlA
.
X
(),
aControlA
.
Y
()),
basegfx
::
B2DPoint
(
aControlB
.
X
(),
aControlB
.
Y
()),
basegfx
::
B2DPoint
(
aEnd
.
X
(),
aEnd
.
Y
()));
}
else
// no previous point , do a moveto
{
rSrcPt
++
;
// skip control point
const
Point
aEnd
(
GetPoint
(
seqCoordinates
[
rSrcPt
++
],
sal_True
,
sal_True
));
DBG_ASSERT
(
aNewB2DPolygon
.
count
(),
"EnhancedCustomShape2d::CreateSubPath: Error in adding Q control point (!)"
);
aNewB2DPolygon
.
append
(
basegfx
::
B2DPoint
(
aEnd
.
X
(),
aEnd
.
Y
()));
}
}
}
break
;
case
ANGLEELLIPSE
:
{
if
(
nPntCount
)
...
...
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