diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-07-30 11:45:37 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-07-30 23:50:02 -0400 |
commit | 441e70aee90e83a9f8782a3f84482db86b857b87 (patch) | |
tree | 29182ad4d4f1ed6bff9439953341dc2061cf920e /sc/inc/rangenam.hxx | |
parent | Update range names on sheet deletion. (diff) | |
download | core-441e70aee90e83a9f8782a3f84482db86b857b87.tar.gz core-441e70aee90e83a9f8782a3f84482db86b857b87.zip |
Adjust named range references on sheet move.
Change-Id: I3b20f79d9c2f373c93a34ccdb308c6d5c09f69e7
Diffstat (limited to 'sc/inc/rangenam.hxx')
-rw-r--r-- | sc/inc/rangenam.hxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sc/inc/rangenam.hxx b/sc/inc/rangenam.hxx index d18c0a71927b..4a56ea18046c 100644 --- a/sc/inc/rangenam.hxx +++ b/sc/inc/rangenam.hxx @@ -37,6 +37,7 @@ namespace sc { struct RefUpdateContext; struct RefUpdateInsertTabContext; struct RefUpdateDeleteTabContext; + struct RefUpdateMoveTabContext; } typedef sal_uInt16 RangeType; @@ -75,8 +76,6 @@ private: void InitCode(); public: - enum TabRefUpdateMode { Insert = 1, Delete = 2, Move = 3 }; - typedef ::std::map<sal_uInt16, sal_uInt16> IndexMap; SC_DLLPUBLIC ScRangeData( ScDocument* pDoc, @@ -142,9 +141,9 @@ public: SC_DLLPUBLIC bool IsValidReference( ScRange& rRef ) const; bool IsRangeAtBlock( const ScRange& ) const; - void UpdateTabRef(SCTAB nOldTable, TabRefUpdateMode eMode, SCTAB nNewTable, SCTAB nNewSheets); void UpdateInsertTab( sc::RefUpdateInsertTabContext& rCxt, SCTAB nLocalTab = -1 ); void UpdateDeleteTab( sc::RefUpdateDeleteTabContext& rCxt, SCTAB nLocalTab = -1 ); + void UpdateMoveTab( sc::RefUpdateMoveTabContext& rCxt, SCTAB nLocalTab = -1 ); void ValidateTabRefs(); @@ -195,7 +194,7 @@ public: void UpdateReference( sc::RefUpdateContext& rCxt, SCTAB nLocalTab = -1 ); void UpdateInsertTab( sc::RefUpdateInsertTabContext& rCxt, SCTAB nLocalTab = -1 ); void UpdateDeleteTab( sc::RefUpdateDeleteTabContext& rCxt, SCTAB nLocalTab = -1 ); - void UpdateTabRef(SCTAB nTable, ScRangeData::TabRefUpdateMode eMode, SCTAB nNewTable = 0, SCTAB nNewSheets = 1); + void UpdateMoveTab( sc::RefUpdateMoveTabContext& rCxt, SCTAB nLocalTab = -1 ); void UpdateTranspose(const ScRange& rSource, const ScAddress& rDest); void UpdateGrow(const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY); |