Kaydet (Commit) 4d9ccf41 authored tarafından Eike Rathke's avatar Eike Rathke

update enhanced protection ranges

Change-Id: I15eb63da7123f8c2bf9ae1b77fdd32289dba3636
üst 0dcb50f5
......@@ -1577,6 +1577,10 @@ void ScTable::UpdateReference(
if(mpCondFormatList)
mpCondFormatList->UpdateReference(rCxt);
ScTableProtection* pProtection = GetProtection();
if (pProtection)
pProtection->updateReference( eUpdateRefMode, pDocument, rCxt.maRange, nDx, nDy, nDz);
}
void ScTable::UpdateTranspose( const ScRange& rSource, const ScAddress& rDest,
......@@ -1607,7 +1611,14 @@ void ScTable::UpdateInsertTab( sc::RefUpdateInsertTabContext& rCxt )
if (mpCondFormatList)
mpCondFormatList->UpdateInsertTab(rCxt);
for (SCCOL i=0; i <= MAXCOL; i++) aCol[i].UpdateInsertTab(rCxt);
ScTableProtection* pProtection = GetProtection();
if (pProtection)
pProtection->updateReference( URM_INSDEL, pDocument,
ScRange( 0, 0, rCxt.mnInsertPos, MAXCOL, MAXROW, MAXTAB),
0, 0, rCxt.mnSheets);
for (SCCOL i=0; i <= MAXCOL; i++)
aCol[i].UpdateInsertTab(rCxt);
if (IsStreamValid())
SetStreamValid(false);
......@@ -1628,6 +1639,12 @@ void ScTable::UpdateDeleteTab( sc::RefUpdateDeleteTabContext& rCxt )
if (mpCondFormatList)
mpCondFormatList->UpdateDeleteTab(rCxt);
ScTableProtection* pProtection = GetProtection();
if (pProtection)
pProtection->updateReference( URM_INSDEL, pDocument,
ScRange( 0, 0, rCxt.mnDeletePos, MAXCOL, MAXROW, MAXTAB),
0, 0, -rCxt.mnSheets);
for (SCCOL i = 0; i <= MAXCOL; ++i)
aCol[i].UpdateDeleteTab(rCxt);
......@@ -1648,6 +1665,12 @@ void ScTable::UpdateMoveTab(
if(mpCondFormatList)
mpCondFormatList->UpdateMoveTab(rCxt);
ScTableProtection* pProtection = GetProtection();
if (pProtection)
pProtection->updateReference( URM_REORDER, pDocument,
ScRange( 0, 0, rCxt.mnOldPos, MAXCOL, MAXROW, MAXTAB),
0, 0, rCxt.mnNewPos - rCxt.mnOldPos);
for ( SCCOL i=0; i <= MAXCOL; i++ )
{
aCol[i].UpdateMoveTab(rCxt, nTabNo);
......
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