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
131f3230
Kaydet (Commit)
131f3230
authored
Ara 06, 2013
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
EMF+: Fill line cap object if EmfPlusCustomLineCapDataFillPath is set.
Change-Id: I7b53a8f18e1fb24b1ae0322bdf0980e431a0725f
üst
a53dafbc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
implrenderer.hxx
cppcanvas/source/inc/implrenderer.hxx
+1
-1
emfplus.cxx
cppcanvas/source/mtfrenderer/emfplus.cxx
+20
-3
No files found.
cppcanvas/source/inc/implrenderer.hxx
Dosyayı görüntüle @
131f3230
...
@@ -284,7 +284,7 @@ static float GetSwapFloat( SvStream& rSt )
...
@@ -284,7 +284,7 @@ static float GetSwapFloat( SvStream& rSt )
/// Render LineCap, like the start or end arrow of a polygon.
/// Render LineCap, like the start or end arrow of a polygon.
/// @return how much we should shorten the original polygon.
/// @return how much we should shorten the original polygon.
double
EMFPPlusDrawLineCap
(
const
::
basegfx
::
B2DPolygon
&
rPolygon
,
double
fPolyLength
,
double
EMFPPlusDrawLineCap
(
const
::
basegfx
::
B2DPolygon
&
rPolygon
,
double
fPolyLength
,
const
::
basegfx
::
B2DPolyPolygon
&
rLineCap
,
bool
bStart
,
const
::
basegfx
::
B2DPolyPolygon
&
rLineCap
,
bool
isFilled
,
bool
bStart
,
const
com
::
sun
::
star
::
rendering
::
StrokeAttributes
&
rAttributes
,
const
com
::
sun
::
star
::
rendering
::
StrokeAttributes
&
rAttributes
,
const
ActionFactoryParameters
&
rParms
,
OutDevState
&
rState
);
const
ActionFactoryParameters
&
rParms
,
OutDevState
&
rState
);
...
...
cppcanvas/source/mtfrenderer/emfplus.cxx
Dosyayı görüntüle @
131f3230
...
@@ -624,6 +624,7 @@ namespace cppcanvas
...
@@ -624,6 +624,7 @@ namespace cppcanvas
sal_uInt32
strokeStartCap
,
strokeEndCap
,
strokeJoin
;
sal_uInt32
strokeStartCap
,
strokeEndCap
,
strokeJoin
;
float
miterLimit
;
float
miterLimit
;
basegfx
::
B2DPolyPolygon
polygon
;
basegfx
::
B2DPolyPolygon
polygon
;
bool
mbIsFilled
;
public
:
public
:
EMFPCustomLineCap
()
:
EMFPObject
()
EMFPCustomLineCap
()
:
EMFPObject
()
...
@@ -650,7 +651,7 @@ namespace cppcanvas
...
@@ -650,7 +651,7 @@ namespace cppcanvas
aAttributes
.
MiterLimit
=
miterLimit
;
aAttributes
.
MiterLimit
=
miterLimit
;
}
}
void
ReadPath
(
SvStream
&
s
,
ImplRenderer
&
rR
,
bool
b
Closed
)
void
ReadPath
(
SvStream
&
s
,
ImplRenderer
&
rR
,
bool
b
Fill
)
{
{
sal_Int32
pathLength
;
sal_Int32
pathLength
;
s
>>
pathLength
;
s
>>
pathLength
;
...
@@ -667,7 +668,7 @@ namespace cppcanvas
...
@@ -667,7 +668,7 @@ namespace cppcanvas
path
.
Read
(
s
,
pathFlags
,
rR
);
path
.
Read
(
s
,
pathFlags
,
rR
);
polygon
=
path
.
GetPolygon
(
rR
,
false
);
polygon
=
path
.
GetPolygon
(
rR
,
false
);
polygon
.
setClosed
(
bClosed
)
;
mbIsFilled
=
bFill
;
// transformation to convert the path to what LibreOffice
// transformation to convert the path to what LibreOffice
// expects
// expects
...
@@ -1318,7 +1319,7 @@ namespace cppcanvas
...
@@ -1318,7 +1319,7 @@ namespace cppcanvas
}
}
double
ImplRenderer
::
EMFPPlusDrawLineCap
(
const
::
basegfx
::
B2DPolygon
&
rPolygon
,
double
fPolyLength
,
double
ImplRenderer
::
EMFPPlusDrawLineCap
(
const
::
basegfx
::
B2DPolygon
&
rPolygon
,
double
fPolyLength
,
const
::
basegfx
::
B2DPolyPolygon
&
rLineCap
,
bool
bStart
,
const
rendering
::
StrokeAttributes
&
rAttributes
,
const
::
basegfx
::
B2DPolyPolygon
&
rLineCap
,
bool
b
IsFilled
,
bool
b
Start
,
const
rendering
::
StrokeAttributes
&
rAttributes
,
const
ActionFactoryParameters
&
rParms
,
OutDevState
&
rState
)
const
ActionFactoryParameters
&
rParms
,
OutDevState
&
rState
)
{
{
if
(
!
rLineCap
.
count
())
if
(
!
rLineCap
.
count
())
...
@@ -1347,6 +1348,20 @@ namespace cppcanvas
...
@@ -1347,6 +1348,20 @@ namespace cppcanvas
rParms
.
mrCurrActionIndex
+=
pAction
->
getActionCount
()
-
1
;
rParms
.
mrCurrActionIndex
+=
pAction
->
getActionCount
()
-
1
;
}
}
if
(
bIsFilled
)
{
bool
bWasFillColorSet
=
rState
.
isFillColorSet
;
rState
.
isFillColorSet
=
true
;
rState
.
fillColor
=
rState
.
lineColor
;
ActionSharedPtr
pAction2
(
internal
::
PolyPolyActionFactory
::
createPolyPolyAction
(
aArrow
,
rParms
.
mrCanvas
,
rState
));
if
(
pAction2
)
{
maActions
.
push_back
(
MtfAction
(
pAction2
,
rParms
.
mrCurrActionIndex
));
rParms
.
mrCurrActionIndex
+=
pAction2
->
getActionCount
()
-
1
;
}
rState
.
isFillColorSet
=
bWasFillColorSet
;
}
return
rAttributes
.
StrokeWidth
;
return
rAttributes
.
StrokeWidth
;
}
}
...
@@ -1401,6 +1416,7 @@ namespace cppcanvas
...
@@ -1401,6 +1416,7 @@ namespace cppcanvas
pen
->
customStartCap
->
SetAttributes
(
aAttributes
);
pen
->
customStartCap
->
SetAttributes
(
aAttributes
);
fStart
=
EMFPPlusDrawLineCap
(
aPolygon
,
fPolyLength
,
pen
->
customStartCap
->
polygon
,
fStart
=
EMFPPlusDrawLineCap
(
aPolygon
,
fPolyLength
,
pen
->
customStartCap
->
polygon
,
pen
->
customStartCap
->
mbIsFilled
,
true
,
aAttributes
,
rParms
,
rState
);
true
,
aAttributes
,
rParms
,
rState
);
}
}
...
@@ -1411,6 +1427,7 @@ namespace cppcanvas
...
@@ -1411,6 +1427,7 @@ namespace cppcanvas
pen
->
customEndCap
->
SetAttributes
(
aAttributes
);
pen
->
customEndCap
->
SetAttributes
(
aAttributes
);
fEnd
=
EMFPPlusDrawLineCap
(
aPolygon
,
fPolyLength
,
pen
->
customEndCap
->
polygon
,
fEnd
=
EMFPPlusDrawLineCap
(
aPolygon
,
fPolyLength
,
pen
->
customEndCap
->
polygon
,
pen
->
customEndCap
->
mbIsFilled
,
false
,
aAttributes
,
rParms
,
rState
);
false
,
aAttributes
,
rParms
,
rState
);
}
}
...
...
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