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
abbfb33c
Kaydet (Commit)
abbfb33c
authored
Ara 25, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#982280 Resource leak in object
Change-Id: I005ed6f44925df7f380eadc4f9971bc1c030a0ca
üst
71c60f8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
12 deletions
+17
-12
xmlcondformat.cxx
sc/source/filter/xml/xmlcondformat.cxx
+15
-10
xmlcondformat.hxx
sc/source/filter/xml/xmlcondformat.hxx
+2
-2
No files found.
sc/source/filter/xml/xmlcondformat.cxx
Dosyayı görüntüle @
abbfb33c
...
...
@@ -86,8 +86,8 @@ ScXMLConditionalFormatContext::ScXMLConditionalFormatContext( ScXMLImport& rImpo
ScRangeStringConverter
::
GetRangeListFromString
(
maRange
,
sRange
,
GetScImport
().
GetDocument
(),
formula
::
FormulaGrammar
::
CONV_ODF
);
m
pFormat
=
new
ScConditionalFormat
(
0
,
GetScImport
().
GetDocument
(
));
m
p
Format
->
AddRange
(
maRange
);
m
xFormat
.
reset
(
new
ScConditionalFormat
(
0
,
GetScImport
().
GetDocument
()
));
m
x
Format
->
AddRange
(
maRange
);
}
SvXMLImportContext
*
ScXMLConditionalFormatContext
::
CreateChildContext
(
sal_uInt16
nPrefix
,
...
...
@@ -101,19 +101,19 @@ SvXMLImportContext* ScXMLConditionalFormatContext::CreateChildContext( sal_uInt1
switch
(
nToken
)
{
case
XML_TOK_CONDFORMAT_CONDITION
:
pContext
=
new
ScXMLCondContext
(
GetScImport
(),
nPrefix
,
rLocalName
,
xAttrList
,
m
pFormat
);
pContext
=
new
ScXMLCondContext
(
GetScImport
(),
nPrefix
,
rLocalName
,
xAttrList
,
m
xFormat
.
get
()
);
break
;
case
XML_TOK_CONDFORMAT_COLORSCALE
:
pContext
=
new
ScXMLColorScaleFormatContext
(
GetScImport
(),
nPrefix
,
rLocalName
,
m
pFormat
);
pContext
=
new
ScXMLColorScaleFormatContext
(
GetScImport
(),
nPrefix
,
rLocalName
,
m
xFormat
.
get
()
);
break
;
case
XML_TOK_CONDFORMAT_DATABAR
:
pContext
=
new
ScXMLDataBarFormatContext
(
GetScImport
(),
nPrefix
,
rLocalName
,
xAttrList
,
m
pFormat
);
pContext
=
new
ScXMLDataBarFormatContext
(
GetScImport
(),
nPrefix
,
rLocalName
,
xAttrList
,
m
xFormat
.
get
()
);
break
;
case
XML_TOK_CONDFORMAT_ICONSET
:
pContext
=
new
ScXMLIconSetFormatContext
(
GetScImport
(),
nPrefix
,
rLocalName
,
xAttrList
,
m
pFormat
);
pContext
=
new
ScXMLIconSetFormatContext
(
GetScImport
(),
nPrefix
,
rLocalName
,
xAttrList
,
m
xFormat
.
get
()
);
break
;
case
XML_TOK_CONDFORMAT_DATE
:
pContext
=
new
ScXMLDateContext
(
GetScImport
(),
nPrefix
,
rLocalName
,
xAttrList
,
m
pFormat
);
pContext
=
new
ScXMLDateContext
(
GetScImport
(),
nPrefix
,
rLocalName
,
xAttrList
,
m
xFormat
.
get
()
);
break
;
default
:
break
;
...
...
@@ -127,10 +127,15 @@ void ScXMLConditionalFormatContext::EndElement()
ScDocument
*
pDoc
=
GetScImport
().
GetDocument
();
SCTAB
nTab
=
GetScImport
().
GetTables
().
GetCurrentSheet
();
sal_uLong
nIndex
=
pDoc
->
AddCondFormat
(
mpFormat
,
nTab
);
mpFormat
->
SetKey
(
nIndex
);
ScConditionalFormat
*
pFormat
=
mxFormat
.
release
();
sal_uLong
nIndex
=
pDoc
->
AddCondFormat
(
pFormat
,
nTab
);
pFormat
->
SetKey
(
nIndex
);
pDoc
->
AddCondFormatData
(
mpFormat
->
GetRange
(),
nTab
,
nIndex
);
pDoc
->
AddCondFormatData
(
pFormat
->
GetRange
(),
nTab
,
nIndex
);
}
ScXMLConditionalFormatContext
::~
ScXMLConditionalFormatContext
()
{
}
ScXMLColorScaleFormatContext
::
ScXMLColorScaleFormatContext
(
ScXMLImport
&
rImport
,
sal_uInt16
nPrfx
,
...
...
sc/source/filter/xml/xmlcondformat.hxx
Dosyayı görüntüle @
abbfb33c
...
...
@@ -49,7 +49,7 @@ public:
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
sax
::
XAttributeList
>&
xAttrList
);
virtual
~
ScXMLConditionalFormatContext
()
{}
virtual
~
ScXMLConditionalFormatContext
()
;
virtual
SvXMLImportContext
*
CreateChildContext
(
sal_uInt16
nPrefix
,
const
OUString
&
rLocalName
,
...
...
@@ -59,7 +59,7 @@ public:
virtual
void
EndElement
()
SAL_OVERRIDE
;
private
:
ScConditionalFormat
*
mp
Format
;
std
::
unique_ptr
<
ScConditionalFormat
>
mx
Format
;
ScRangeList
maRange
;
};
...
...
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