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
8e94ac21
Kaydet (Commit)
8e94ac21
authored
Eyl 28, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use a as prefix for local variables
Change-Id: Id4652eb986c02044e27cd4e91863d5ed97465860
üst
c5d4e2cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
xmlstyli.cxx
sc/source/filter/xml/xmlstyli.cxx
+7
-7
No files found.
sc/source/filter/xml/xmlstyli.cxx
Dosyayı görüntüle @
8e94ac21
...
...
@@ -428,13 +428,13 @@ void XMLTableStyleContext::ApplyCondFormat( uno::Sequence<table::CellRangeAddres
if
(
!
mpCondFormat
||
GetScImport
().
HasNewCondFormatData
())
return
;
ScRangeList
rRange
;
ScRangeList
aRangeList
;
sal_Int32
nRanges
=
xCellRanges
.
getLength
();
for
(
sal_Int32
i
=
0
;
i
<
nRanges
;
++
i
)
{
table
::
CellRangeAddress
aAddress
=
xCellRanges
[
i
];
ScRange
aRange
(
aAddress
.
StartColumn
,
aAddress
.
StartRow
,
aAddress
.
Sheet
,
aAddress
.
EndColumn
,
aAddress
.
EndRow
,
aAddress
.
Sheet
);
rRange
.
Join
(
aRange
,
false
);
aRangeList
.
Join
(
aRange
,
false
);
}
ScDocument
*
pDoc
=
GetScImport
().
GetDocument
();
...
...
@@ -447,17 +447,17 @@ void XMLTableStyleContext::ApplyCondFormat( uno::Sequence<table::CellRangeAddres
{
ScRangeList
&
rRangeList
=
itr
->
GetRangeList
();
sal_uInt32
nCondId
=
itr
->
GetKey
();
size_t
n
=
rRange
.
size
();
size_t
n
=
aRangeList
.
size
();
for
(
size_t
i
=
0
;
i
<
n
;
++
i
)
{
const
ScRange
*
pRange
=
rRange
[
i
];
const
ScRange
*
pRange
=
aRangeList
[
i
];
rRangeList
.
Join
(
*
pRange
);
}
ScPatternAttr
aPattern
(
pDoc
->
GetPool
()
);
aPattern
.
GetItemSet
().
Put
(
SfxUInt32Item
(
ATTR_CONDITIONAL
,
nCondId
)
);
ScMarkData
aMarkData
;
aMarkData
.
MarkFromRangeList
(
rRange
,
true
);
aMarkData
.
MarkFromRangeList
(
aRangeList
,
true
);
pDoc
->
ApplySelectionPattern
(
aPattern
,
aMarkData
);
break
;
...
...
@@ -469,12 +469,12 @@ void XMLTableStyleContext::ApplyCondFormat( uno::Sequence<table::CellRangeAddres
mbDeleteCondFormat
=
false
;
sal_uLong
nIndex
=
pDoc
->
AddCondFormat
(
mpCondFormat
,
nTab
);
mpCondFormat
->
SetKey
(
nIndex
);
mpCondFormat
->
AddRange
(
rRange
);
mpCondFormat
->
AddRange
(
aRangeList
);
ScPatternAttr
aPattern
(
pDoc
->
GetPool
()
);
aPattern
.
GetItemSet
().
Put
(
SfxUInt32Item
(
ATTR_CONDITIONAL
,
nIndex
)
);
ScMarkData
aMarkData
;
aMarkData
.
MarkFromRangeList
(
rRange
,
true
);
aMarkData
.
MarkFromRangeList
(
aRangeList
,
true
);
pDoc
->
ApplySelectionPattern
(
aPattern
,
aMarkData
);
}
...
...
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