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
3f135598
Kaydet (Commit)
3f135598
authored
Haz 27, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add import of axis color for data bars from xlsx
Change-Id: I2a15f8787afceaea1cb8e1c2902c05367d3e5b15
üst
064bfb1a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
tokens.txt
oox/source/token/tokens.txt
+1
-0
extlstcontext.hxx
sc/source/filter/inc/extlstcontext.hxx
+1
-0
extlstcontext.cxx
sc/source/filter/oox/extlstcontext.cxx
+13
-0
No files found.
oox/source/token/tokens.txt
Dosyayı görüntüle @
3f135598
...
@@ -713,6 +713,7 @@ axId
...
@@ -713,6 +713,7 @@ axId
axPos
axPos
axis
axis
axisCol
axisCol
axisColor
axisPage
axisPage
axisPosition
axisPosition
axisRow
axisRow
...
...
sc/source/filter/inc/extlstcontext.hxx
Dosyayı görüntüle @
3f135598
...
@@ -43,6 +43,7 @@ public:
...
@@ -43,6 +43,7 @@ public:
private
:
private
:
void
importDataBar
(
const
AttributeList
&
rAttribs
);
void
importDataBar
(
const
AttributeList
&
rAttribs
);
void
importNegativeFillColor
(
const
AttributeList
&
rAttribs
);
void
importNegativeFillColor
(
const
AttributeList
&
rAttribs
);
void
importAxisColor
(
const
AttributeList
&
rAttribs
);
void
*
mpTarget
;
void
*
mpTarget
;
};
};
...
...
sc/source/filter/oox/extlstcontext.cxx
Dosyayı görüntüle @
3f135598
...
@@ -58,6 +58,10 @@ void ExtCfRuleContext::onStartElement( const AttributeList& rAttribs )
...
@@ -58,6 +58,10 @@ void ExtCfRuleContext::onStartElement( const AttributeList& rAttribs )
break
;
break
;
case
XLS_EXT_TOKEN
(
negativeFillColor
):
case
XLS_EXT_TOKEN
(
negativeFillColor
):
importNegativeFillColor
(
rAttribs
);
importNegativeFillColor
(
rAttribs
);
break
;
case
XLS_EXT_TOKEN
(
axisColor
):
importAxisColor
(
rAttribs
);
break
;
default
:
default
:
break
;
break
;
...
@@ -93,6 +97,15 @@ namespace {
...
@@ -93,6 +97,15 @@ namespace {
}
}
void
ExtCfRuleContext
::
importAxisColor
(
const
AttributeList
&
rAttribs
)
{
ScDataBarFormatData
*
pDataBar
=
static_cast
<
ScDataBarFormatData
*>
(
mpTarget
);
sal_Int32
nColor
=
rAttribs
.
getIntegerHex
(
XML_rgb
,
API_RGB_TRANSPARENT
);
::
Color
aColor
=
RgbToRgbComponents
(
nColor
);
pDataBar
->
maAxisColor
=
aColor
;
}
void
ExtCfRuleContext
::
importNegativeFillColor
(
const
AttributeList
&
rAttribs
)
void
ExtCfRuleContext
::
importNegativeFillColor
(
const
AttributeList
&
rAttribs
)
{
{
sal_Int32
nColor
=
rAttribs
.
getIntegerHex
(
XML_rgb
,
API_RGB_TRANSPARENT
);
sal_Int32
nColor
=
rAttribs
.
getIntegerHex
(
XML_rgb
,
API_RGB_TRANSPARENT
);
...
...
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