summaryrefslogtreecommitdiff
path: root/sc/inc/rangenam.hxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-04-29 15:56:24 +0200
committerEike Rathke <erack@redhat.com>2016-04-30 00:30:31 +0200
commit450a10d5fb193ec2a7d85ae604790b9dda1e3602 (patch)
treeca5dd34884d3aa01d7a52de3d7d7322c2deac97c /sc/inc/rangenam.hxx
parent17f4fc71164a1440e6805221fee19fae322129b9 (diff)
introduce ScRangeName::CopyUsedNames()
Change-Id: I2f3e88f70e5d7b9b4728f5bdd0a8237c7bcc7dcb
Diffstat (limited to 'sc/inc/rangenam.hxx')
-rw-r--r--sc/inc/rangenam.hxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/sc/inc/rangenam.hxx b/sc/inc/rangenam.hxx
index c3fff07dde55..a7a5aa81ccd3 100644
--- a/sc/inc/rangenam.hxx
+++ b/sc/inc/rangenam.hxx
@@ -213,6 +213,26 @@ public:
*/
void CompileUnresolvedXML( sc::CompileFormulaContext& rCxt );
+ /** Copy names while copying a sheet if they reference the sheet to be copied.
+
+ Assumes that new sheet was already inserted, global names have been
+ updated/adjusted, but sheet-local names on nOldTab are not, as is the
+ case in ScDocument::CopyTab()
+
+ @param nLocalTab
+ -1 when operating on global names, else sheet/tab of
+ sheet-local name scope. The already adjusted tab on which to
+ find the name.
+
+ @param nOldTab
+ The original unadjusted tab position.
+
+ @param nNewTab
+ The new tab position.
+ */
+ void CopyUsedNames( const SCTAB nLocalTab, const SCTAB nOldTab, const SCTAB nNewTab,
+ const ScDocument& rOldDoc, ScDocument& rNewDoc, const bool bGlobalNamesToLocal ) const;
+
SC_DLLPUBLIC const_iterator begin() const;
SC_DLLPUBLIC const_iterator end() const;
SC_DLLPUBLIC iterator begin();