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
f3ec35db
Kaydet (Commit)
f3ec35db
authored
Nis 20, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
improve marker export to OOXML
Change-Id: I846783ab4c4718eb82fa99458cdffd861b5bf03d
üst
4aa4a8e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
19 deletions
+30
-19
chartexport.cxx
oox/source/export/chartexport.cxx
+30
-19
No files found.
oox/source/export/chartexport.cxx
Dosyayı görüntüle @
f3ec35db
...
...
@@ -3111,6 +3111,13 @@ void ChartExport::exportMarker(Reference< chart2::XDataSeries > xSeries)
break
;
}
bool
bSkipFormatting
=
false
;
if
(
aSymbol
.
Style
==
chart2
::
SymbolStyle_NONE
)
{
bSkipFormatting
=
true
;
pSymbolType
=
"none"
;
}
if
(
pSymbolType
)
{
pFS
->
singleElement
(
FSNS
(
XML_c
,
XML_symbol
),
...
...
@@ -3118,30 +3125,34 @@ void ChartExport::exportMarker(Reference< chart2::XDataSeries > xSeries)
FSEND
);
}
awt
::
Size
aSymbolSize
=
aSymbol
.
Size
;
sal_Int32
nSize
=
std
::
max
(
aSymbolSize
.
Width
,
aSymbolSize
.
Height
);
if
(
!
bSkipFormatting
)
{
awt
::
Size
aSymbolSize
=
aSymbol
.
Size
;
sal_Int32
nSize
=
std
::
max
(
aSymbolSize
.
Width
,
aSymbolSize
.
Height
);
nSize
=
nSize
/
250.0
*
7.0
+
1
;
// just guessed based on some test cases,
//the value is always 1 less than the actual value.
nSize
=
std
::
min
<
sal_Int32
>
(
72
,
std
::
max
<
sal_Int32
>
(
2
,
nSize
)
);
pFS
->
singleElement
(
FSNS
(
XML_c
,
XML_size
),
XML_val
,
I32S
(
nSize
),
FSEND
);
nSize
=
nSize
/
250.0
*
7.0
+
1
;
// just guessed based on some test cases,
//the value is always 1 less than the actual value.
nSize
=
std
::
min
<
sal_Int32
>
(
72
,
std
::
max
<
sal_Int32
>
(
2
,
nSize
)
);
pFS
->
singleElement
(
FSNS
(
XML_c
,
XML_size
),
XML_val
,
I32S
(
nSize
),
FSEND
);
pFS
->
startElement
(
FSNS
(
XML_c
,
XML_spPr
),
FSEND
);
pFS
->
startElement
(
FSNS
(
XML_c
,
XML_spPr
),
FSEND
);
util
::
Color
aColor
=
aSymbol
.
FillColor
;
if
(
GetProperty
(
xPropSet
,
"Color"
))
mAny
>>=
aColor
;
util
::
Color
aColor
=
aSymbol
.
FillColor
;
if
(
GetProperty
(
xPropSet
,
"Color"
))
mAny
>>=
aColor
;
if
(
aColor
==
-
1
)
{
pFS
->
singleElement
(
FSNS
(
XML_a
,
XML_noFill
),
FSEND
);
if
(
aColor
==
-
1
)
{
pFS
->
singleElement
(
FSNS
(
XML_a
,
XML_noFill
),
FSEND
);
}
else
WriteSolidFill
(
aColor
);
pFS
->
endElement
(
FSNS
(
XML_c
,
XML_spPr
)
);
}
else
WriteSolidFill
(
aColor
);
pFS
->
endElement
(
FSNS
(
XML_c
,
XML_spPr
)
);
pFS
->
endElement
(
FSNS
(
XML_c
,
XML_marker
)
);
}
...
...
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