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
c2e28f50
Kaydet (Commit)
c2e28f50
authored
May 18, 2013
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Prefer early bail-out.
Change-Id: I112a4be56910c07007b28715336fcd82d56bb313
üst
0e25fe33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
35 deletions
+38
-35
column3.cxx
sc/source/core/data/column3.cxx
+38
-35
No files found.
sc/source/core/data/column3.cxx
Dosyayı görüntüle @
c2e28f50
...
...
@@ -1103,38 +1103,40 @@ ScAttrIterator* ScColumn::CreateAttrIterator( SCROW nStartRow, SCROW nEndRow ) c
void
ScColumn
::
StartAllListeners
()
{
if
(
!
maItems
.
empty
()
)
for
(
SCSIZE
i
=
0
;
i
<
maItems
.
size
();
i
++
)
if
(
maItems
.
empty
())
return
;
for
(
SCSIZE
i
=
0
;
i
<
maItems
.
size
();
i
++
)
{
ScBaseCell
*
pCell
=
maItems
[
i
].
pCell
;
if
(
pCell
->
GetCellType
()
==
CELLTYPE_FORMULA
)
{
ScBaseCell
*
pCell
=
maItems
[
i
].
pCell
;
if
(
pCell
->
GetCellType
()
==
CELLTYPE_FORMULA
)
{
SCROW
nRow
=
maItems
[
i
].
nRow
;
((
ScFormulaCell
*
)
pCell
)
->
StartListeningTo
(
pDocument
);
if
(
nRow
!=
maItems
[
i
].
nRow
)
Search
(
nRow
,
i
);
// Insert Listener?
}
SCROW
nRow
=
maItems
[
i
].
nRow
;
((
ScFormulaCell
*
)
pCell
)
->
StartListeningTo
(
pDocument
);
if
(
nRow
!=
maItems
[
i
].
nRow
)
Search
(
nRow
,
i
);
// Insert Listener?
}
}
}
void
ScColumn
::
StartNeededListeners
()
{
if
(
!
maItems
.
empty
()
)
if
(
maItems
.
empty
())
return
;
for
(
SCSIZE
i
=
0
;
i
<
maItems
.
size
();
i
++
)
{
for
(
SCSIZE
i
=
0
;
i
<
maItems
.
size
();
i
++
)
ScBaseCell
*
pCell
=
maItems
[
i
].
pCell
;
if
(
pCell
->
GetCellType
()
==
CELLTYPE_FORMULA
)
{
Sc
BaseCell
*
pCell
=
maItems
[
i
].
pCell
;
if
(
pCell
->
GetCellType
()
==
CELLTYPE_FORMULA
)
Sc
FormulaCell
*
pFCell
=
static_cast
<
ScFormulaCell
*>
(
pCell
)
;
if
(
pFCell
->
NeedsListening
()
)
{
ScFormulaCell
*
pFCell
=
static_cast
<
ScFormulaCell
*>
(
pCell
);
if
(
pFCell
->
NeedsListening
())
{
SCROW
nRow
=
maItems
[
i
].
nRow
;
pFCell
->
StartListeningTo
(
pDocument
);
if
(
nRow
!=
maItems
[
i
].
nRow
)
Search
(
nRow
,
i
);
// Insert Listener?
}
SCROW
nRow
=
maItems
[
i
].
nRow
;
pFCell
->
StartListeningTo
(
pDocument
);
if
(
nRow
!=
maItems
[
i
].
nRow
)
Search
(
nRow
,
i
);
// Insert Listener?
}
}
}
...
...
@@ -1166,20 +1168,21 @@ void ScColumn::BroadcastInArea( SCROW nRow1, SCROW nRow2 )
void
ScColumn
::
StartListeningInArea
(
SCROW
nRow1
,
SCROW
nRow2
)
{
if
(
!
maItems
.
empty
()
)
if
(
maItems
.
empty
())
return
;
SCROW
nRow
;
SCSIZE
nIndex
;
Search
(
nRow1
,
nIndex
);
while
(
nIndex
<
maItems
.
size
()
&&
(
nRow
=
maItems
[
nIndex
].
nRow
)
<=
nRow2
)
{
SCROW
nRow
;
SCSIZE
nIndex
;
Search
(
nRow1
,
nIndex
);
while
(
nIndex
<
maItems
.
size
()
&&
(
nRow
=
maItems
[
nIndex
].
nRow
)
<=
nRow2
)
{
ScBaseCell
*
pCell
=
maItems
[
nIndex
].
pCell
;
if
(
pCell
->
GetCellType
()
==
CELLTYPE_FORMULA
)
((
ScFormulaCell
*
)
pCell
)
->
StartListeningTo
(
pDocument
);
if
(
nRow
!=
maItems
[
nIndex
].
nRow
)
Search
(
nRow
,
nIndex
);
// Inserted via Listening
nIndex
++
;
}
ScBaseCell
*
pCell
=
maItems
[
nIndex
].
pCell
;
if
(
pCell
->
GetCellType
()
==
CELLTYPE_FORMULA
)
((
ScFormulaCell
*
)
pCell
)
->
StartListeningTo
(
pDocument
);
if
(
nRow
!=
maItems
[
nIndex
].
nRow
)
Search
(
nRow
,
nIndex
);
// Inserted via Listening
++
nIndex
;
}
}
...
...
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