diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-18 12:09:54 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-18 12:11:50 -0400 |
commit | 1735044e9f693cde1af0d905d264c849e3fce311 (patch) | |
tree | 7fb0343daf6daded818e37f170ea1984ba01f391 /sc/inc | |
parent | dd15b51ddaf4a143d494076a6dd554a059d91489 (diff) |
Adjust sheet fields in cells when sheet structure changes.
Change-Id: I0aff738968e286df57ef7dd5b67780108cdc6c89
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/cell.hxx | 3 | ||||
-rw-r--r-- | sc/inc/column.hxx | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/sc/inc/cell.hxx b/sc/inc/cell.hxx index 3bf2dfe7d87f..de4d1ad7e72b 100644 --- a/sc/inc/cell.hxx +++ b/sc/inc/cell.hxx @@ -258,6 +258,9 @@ public: /** Removes character attribute based on new pattern attributes. */ void RemoveCharAttribs( const ScPatternAttr& rAttr ); + + /** Update field items if any. */ + void UpdateFields(SCTAB nTab); }; class ScEditDataArray diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index 4988ffcf6616..446f4de5e4e9 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -281,9 +281,9 @@ public: SCCOL nCol2, SCROW nRow2, SCTAB nTab2, SCsCOL nDx, SCsROW nDy, SCsTAB nDz, ScDocument* pUndoDoc = NULL ); - void UpdateInsertTab( SCTAB nTable, SCTAB nNewSheets = 1); - void UpdateInsertTabOnlyCells( SCTAB nTable, SCTAB nNewSheets = 1); - void UpdateDeleteTab( SCTAB nTable, bool bIsMove, ScColumn* pRefUndo = NULL, SCTAB nSheets = 1 ); + void UpdateInsertTab(SCTAB nInsPos, SCTAB nNewSheets = 1); + void UpdateInsertTabOnlyCells(SCTAB nInsPos, SCTAB nNewSheets = 1); + void UpdateDeleteTab(SCTAB nDelPos, bool bIsMove, ScColumn* pRefUndo = NULL, SCTAB nSheets = 1); void UpdateMoveTab(SCTAB nOldPos, SCTAB nNewPos, SCTAB nTabNo); void UpdateCompile( bool bForceIfNameInUse = false ); void UpdateTranspose( const ScRange& rSource, const ScAddress& rDest, @@ -373,7 +373,7 @@ public: void GetFilterEntries(SCROW nStartRow, SCROW nEndRow, std::vector<ScTypedStrData>& rStrings, bool& rHasDates); bool GetDataEntries(SCROW nRow, std::set<ScTypedStrData>& rStrings, bool bLimit); - void UpdateInsertTabAbs(SCTAB nNewPos); + void UpdateInsertTabAbs(SCTAB nNewPos); bool TestTabRefAbs(SCTAB nTable); bool GetNextSpellingCell(SCROW& nRow, bool bInSel, const ScMarkData& rData) const; |