diff options
author | Eike Rathke <erack@redhat.com> | 2016-03-19 00:22:40 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-03-19 01:47:05 +0100 |
commit | b86b97e54590872fc0ea85fbea22c2d00d241181 (patch) | |
tree | a4f150c1fd604f66ea88f4ed871a540c00bcc871 /sc/inc/tokenarray.hxx | |
parent | a4d300f559c4c5704133c01efa6fbcd9193a16c8 (diff) |
adjust sheet references when copying sheet-local named expressions
... so references to the local sheet point to the new scope's local
sheet and not to the originating sheet.
Change-Id: I7f33f4e9b379ec01d6c2587e92ffe851892fc32d
Diffstat (limited to 'sc/inc/tokenarray.hxx')
-rw-r--r-- | sc/inc/tokenarray.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/inc/tokenarray.hxx b/sc/inc/tokenarray.hxx index e4953466d81e..ac3c332e5278 100644 --- a/sc/inc/tokenarray.hxx +++ b/sc/inc/tokenarray.hxx @@ -136,6 +136,11 @@ public: */ void AdjustAbsoluteRefs( const ScDocument* pOldDoc, const ScAddress& rOldPos, const ScAddress& rNewPos, bool bRangeName = false, bool bCheckCopyArea = false ); + /** When copying a sheet-local named expression, move sheet references that + point to the originating sheet to point to the new sheet instead. + */ + void AdjustSheetLocalNameReferences( SCTAB nOldTab, SCTAB nNewTab ); + /** * Adjust all references in response to shifting of cells during cell * insertion and deletion. |