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
180c2fe7
Kaydet (Commit)
180c2fe7
authored
May 13, 2013
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Move this code into ScDocument, for later refactoring.
Change-Id: I4c34cd4b352dfafe7f423ab8e85f0d93c0368349
üst
7476ad63
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
document.hxx
sc/inc/document.hxx
+3
-0
column3.cxx
sc/source/core/data/column3.cxx
+3
-15
documen7.cxx
sc/source/core/data/documen7.cxx
+9
-0
No files found.
sc/inc/document.hxx
Dosyayı görüntüle @
180c2fe7
...
@@ -1753,6 +1753,9 @@ public:
...
@@ -1753,6 +1753,9 @@ public:
SvtListener
*
pListener
);
SvtListener
*
pListener
);
void
EndListeningCell
(
const
ScAddress
&
rAddress
,
void
EndListeningCell
(
const
ScAddress
&
rAddress
,
SvtListener
*
pListener
);
SvtListener
*
pListener
);
void
EndListeningFormulaCells
(
std
::
vector
<
ScFormulaCell
*>&
rCells
);
void
PutInFormulaTree
(
ScFormulaCell
*
pCell
);
void
PutInFormulaTree
(
ScFormulaCell
*
pCell
);
void
RemoveFromFormulaTree
(
ScFormulaCell
*
pCell
);
void
RemoveFromFormulaTree
(
ScFormulaCell
*
pCell
);
...
...
sc/source/core/data/column3.cxx
Dosyayı görüntüle @
180c2fe7
...
@@ -331,8 +331,7 @@ void ScColumn::DeleteRange(
...
@@ -331,8 +331,7 @@ void ScColumn::DeleteRange(
drawing undo. */
drawing undo. */
// cache all formula cells, they will be deleted at end of this function
// cache all formula cells, they will be deleted at end of this function
typedef
::
std
::
vector
<
ScFormulaCell
*
>
FormulaCellVector
;
std
::
vector
<
ScFormulaCell
*>
aDelCells
;
FormulaCellVector
aDelCells
;
aDelCells
.
reserve
(
nEndIndex
-
nStartIndex
+
1
);
aDelCells
.
reserve
(
nEndIndex
-
nStartIndex
+
1
);
typedef
mdds
::
flat_segment_tree
<
SCSIZE
,
bool
>
RemovedSegments_t
;
typedef
mdds
::
flat_segment_tree
<
SCSIZE
,
bool
>
RemovedSegments_t
;
...
@@ -437,19 +436,8 @@ void ScColumn::DeleteRange(
...
@@ -437,19 +436,8 @@ void ScColumn::DeleteRange(
}
}
}
}
// *** delete all formula cells ***
pDocument
->
EndListeningFormulaCells
(
aDelCells
);
if
(
!
aDelCells
.
empty
())
std
::
for_each
(
aDelCells
.
begin
(),
aDelCells
.
end
(),
ScDeleteObjectByPtr
<
ScFormulaCell
>
());
{
// First, all cells stop listening, may save unneeded broadcasts and
// recalcualtions.
// NOTE: this actually may remove ScNoteCell entries from maItems if
// the last listener is removed from a broadcaster.
for
(
FormulaCellVector
::
iterator
aIt
=
aDelCells
.
begin
(),
aEnd
=
aDelCells
.
end
();
aIt
!=
aEnd
;
++
aIt
)
{
(
*
aIt
)
->
EndListeningTo
(
pDocument
);
(
*
aIt
)
->
Delete
();
}
}
}
}
void
ScColumn
::
DeleteArea
(
SCROW
nStartRow
,
SCROW
nEndRow
,
sal_uInt16
nDelFlag
)
void
ScColumn
::
DeleteArea
(
SCROW
nStartRow
,
SCROW
nEndRow
,
sal_uInt16
nDelFlag
)
...
...
sc/source/core/data/documen7.cxx
Dosyayı görüntüle @
180c2fe7
...
@@ -200,6 +200,15 @@ void ScDocument::EndListeningCell( const ScAddress& rAddress,
...
@@ -200,6 +200,15 @@ void ScDocument::EndListeningCell( const ScAddress& rAddress,
maTabs
[
nTab
]
->
EndListening
(
rAddress
,
pListener
);
maTabs
[
nTab
]
->
EndListening
(
rAddress
,
pListener
);
}
}
void
ScDocument
::
EndListeningFormulaCells
(
std
::
vector
<
ScFormulaCell
*>&
rCells
)
{
if
(
rCells
.
empty
())
return
;
std
::
vector
<
ScFormulaCell
*>::
iterator
it
=
rCells
.
begin
(),
itEnd
=
rCells
.
end
();
for
(;
it
!=
itEnd
;
++
it
)
(
*
it
)
->
EndListeningTo
(
this
);
}
void
ScDocument
::
PutInFormulaTree
(
ScFormulaCell
*
pCell
)
void
ScDocument
::
PutInFormulaTree
(
ScFormulaCell
*
pCell
)
{
{
...
...
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