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
8e230d5d
Kaydet (Commit)
8e230d5d
authored
Eyl 07, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
TableRef: introduce InvalidateTableColumnNames()
Change-Id: I3dcefc3ba55c33f9cfef6ff4bf9aa2242a866c14
üst
be1585dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
dbdata.hxx
sc/inc/dbdata.hxx
+1
-0
dbdata.cxx
sc/source/core/tool/dbdata.cxx
+17
-0
No files found.
sc/inc/dbdata.hxx
Dosyayı görüntüle @
8e230d5d
...
@@ -221,6 +221,7 @@ private:
...
@@ -221,6 +221,7 @@ private:
void
AdjustTableColumnNames
(
UpdateRefMode
eUpdateRefMode
,
SCCOL
nDx
,
SCCOL
nCol1
,
void
AdjustTableColumnNames
(
UpdateRefMode
eUpdateRefMode
,
SCCOL
nDx
,
SCCOL
nCol1
,
SCCOL
nOldCol1
,
SCCOL
nOldCol2
,
SCCOL
nNewCol1
,
SCCOL
nNewCol2
);
SCCOL
nOldCol1
,
SCCOL
nOldCol2
,
SCCOL
nNewCol1
,
SCCOL
nNewCol2
);
void
InvalidateTableColumnNames
();
};
};
class
SC_DLLPUBLIC
ScDBCollection
class
SC_DLLPUBLIC
ScDBCollection
...
...
sc/source/core/tool/dbdata.cxx
Dosyayı görüntüle @
8e230d5d
...
@@ -719,6 +719,23 @@ void ScDBData::AdjustTableColumnNames( UpdateRefMode eUpdateRefMode, SCCOL nDx,
...
@@ -719,6 +719,23 @@ void ScDBData::AdjustTableColumnNames( UpdateRefMode eUpdateRefMode, SCCOL nDx,
mbTableColumnNamesDirty
=
true
;
mbTableColumnNamesDirty
=
true
;
}
}
void
ScDBData
::
InvalidateTableColumnNames
()
{
mbTableColumnNamesDirty
=
true
;
if
(
mpContainer
)
{
// Add header range to dirty list.
if
(
HasHeader
())
mpContainer
->
GetDirtyTableColumnNames
().
Join
(
GetHeaderArea
());
else
{
// We need *some* range in the dirty list even without header area,
// otherwise the container would not attempt to call a refresh.
mpContainer
->
GetDirtyTableColumnNames
().
Join
(
ScRange
(
nStartCol
,
nStartRow
,
nTable
));
}
}
}
namespace
{
namespace
{
class
TableColumnNameSearch
:
public
unary_function
<
ScDBData
,
bool
>
class
TableColumnNameSearch
:
public
unary_function
<
ScDBData
,
bool
>
{
{
...
...
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