Kaydet (Commit) 8e230d5d authored tarafından Eike Rathke's avatar Eike Rathke

TableRef: introduce InvalidateTableColumnNames()

Change-Id: I3dcefc3ba55c33f9cfef6ff4bf9aa2242a866c14
üst be1585dd
......@@ -221,6 +221,7 @@ private:
void AdjustTableColumnNames( UpdateRefMode eUpdateRefMode, SCCOL nDx, SCCOL nCol1,
SCCOL nOldCol1, SCCOL nOldCol2, SCCOL nNewCol1, SCCOL nNewCol2 );
void InvalidateTableColumnNames();
};
class SC_DLLPUBLIC ScDBCollection
......
......@@ -719,6 +719,23 @@ void ScDBData::AdjustTableColumnNames( UpdateRefMode eUpdateRefMode, SCCOL nDx,
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 {
class TableColumnNameSearch : public unary_function<ScDBData, bool>
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment