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
0c953360
Kaydet (Commit)
0c953360
authored
May 27, 2013
tarafından
Noel Power
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove some methods that are no longer used after rework
Change-Id: I2772dff6297e223caed499e0e7c801970e707700
üst
10ceb0c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
80 deletions
+0
-80
extlstcontext.hxx
sc/source/filter/inc/extlstcontext.hxx
+0
-6
extlstcontext.cxx
sc/source/filter/oox/extlstcontext.cxx
+0
-74
No files found.
sc/source/filter/inc/extlstcontext.hxx
Dosyayı görüntüle @
0c953360
...
@@ -21,13 +21,7 @@ public:
...
@@ -21,13 +21,7 @@ public:
virtual
::
oox
::
core
::
ContextHandlerRef
onCreateContext
(
sal_Int32
nElement
,
const
AttributeList
&
rAttribs
);
virtual
::
oox
::
core
::
ContextHandlerRef
onCreateContext
(
sal_Int32
nElement
,
const
AttributeList
&
rAttribs
);
virtual
void
onStartElement
(
const
AttributeList
&
rAttribs
);
virtual
void
onStartElement
(
const
AttributeList
&
rAttribs
);
void
finalizeImport
();
private
:
private
:
void
importDataBar
(
const
AttributeList
&
rAttribs
);
void
importNegativeFillColor
(
const
AttributeList
&
rAttribs
);
void
importAxisColor
(
const
AttributeList
&
rAttribs
);
void
importCfvo
(
const
AttributeList
&
rAttribs
);
void
*
mpTarget
;
void
*
mpTarget
;
bool
mbFirstEntry
;
bool
mbFirstEntry
;
...
...
sc/source/filter/oox/extlstcontext.cxx
Dosyayı görüntüle @
0c953360
...
@@ -65,80 +65,6 @@ void ExtCfRuleContext::onStartElement( const AttributeList& rAttribs )
...
@@ -65,80 +65,6 @@ void ExtCfRuleContext::onStartElement( const AttributeList& rAttribs )
}
}
}
}
void
ExtCfRuleContext
::
importDataBar
(
const
AttributeList
&
rAttribs
)
{
ScDataBarFormatData
*
pDataBar
=
static_cast
<
ScDataBarFormatData
*>
(
mpTarget
);
pDataBar
->
mbGradient
=
rAttribs
.
getBool
(
XML_gradient
,
true
);
OUString
aAxisPosition
=
rAttribs
.
getString
(
XML_axisPosition
,
"automatic"
);
if
(
aAxisPosition
==
"none"
)
pDataBar
->
meAxisPosition
=
databar
::
NONE
;
else
if
(
aAxisPosition
==
"middle"
)
pDataBar
->
meAxisPosition
=
databar
::
MIDDLE
;
else
pDataBar
->
meAxisPosition
=
databar
::
AUTOMATIC
;
pDataBar
->
mbNeg
=
!
rAttribs
.
getBool
(
XML_negativeBarColorSameAsPositive
,
false
);
}
namespace
{
::
Color
RgbToRgbComponents
(
sal_Int32
nRgb
)
{
sal_Int32
ornR
=
(
nRgb
>>
16
)
&
0xFF
;
sal_Int32
ornG
=
(
nRgb
>>
8
)
&
0xFF
;
sal_Int32
ornB
=
nRgb
&
0xFF
;
return
::
Color
(
ornR
,
ornG
,
ornB
);
}
}
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
)
{
sal_Int32
nColor
=
rAttribs
.
getIntegerHex
(
XML_rgb
,
API_RGB_TRANSPARENT
);
::
Color
aColor
=
RgbToRgbComponents
(
nColor
);
::
Color
*
pColor
=
new
Color
(
aColor
.
GetRed
(),
aColor
.
GetGreen
(),
aColor
.
GetBlue
());
static_cast
<
ScDataBarFormatData
*>
(
mpTarget
)
->
mpNegativeColor
.
reset
(
pColor
);
}
void
ExtCfRuleContext
::
importCfvo
(
const
AttributeList
&
rAttribs
)
{
ScDataBarFormatData
*
pDataBar
=
static_cast
<
ScDataBarFormatData
*>
(
mpTarget
);
ScColorScaleEntry
*
pEntry
=
NULL
;
if
(
mbFirstEntry
)
pEntry
=
pDataBar
->
mpLowerLimit
.
get
();
else
pEntry
=
pDataBar
->
mpUpperLimit
.
get
();
OUString
aColorScaleType
=
rAttribs
.
getString
(
XML_type
,
OUString
()
);
if
(
aColorScaleType
==
"min"
)
pEntry
->
SetType
(
COLORSCALE_MIN
);
else
if
(
aColorScaleType
==
"max"
)
pEntry
->
SetType
(
COLORSCALE_MAX
);
else
if
(
aColorScaleType
==
"autoMin"
)
pEntry
->
SetType
(
COLORSCALE_AUTO
);
else
if
(
aColorScaleType
==
"autoMax"
)
pEntry
->
SetType
(
COLORSCALE_AUTO
);
else
if
(
aColorScaleType
==
"percentile"
)
pEntry
->
SetType
(
COLORSCALE_PERCENTILE
);
else
if
(
aColorScaleType
==
"percent"
)
pEntry
->
SetType
(
COLORSCALE_PERCENT
);
else
if
(
aColorScaleType
==
"formula"
)
pEntry
->
SetType
(
COLORSCALE_FORMULA
);
mbFirstEntry
=
false
;
}
ExtLstLocalContext
::
ExtLstLocalContext
(
WorksheetContextBase
&
rFragment
,
void
*
pTarget
)
:
ExtLstLocalContext
::
ExtLstLocalContext
(
WorksheetContextBase
&
rFragment
,
void
*
pTarget
)
:
WorksheetContextBase
(
rFragment
),
WorksheetContextBase
(
rFragment
),
mpTarget
(
pTarget
)
mpTarget
(
pTarget
)
...
...
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