diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-07-29 17:51:14 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-07-30 23:50:01 -0400 |
commit | 1fdc310b57af7dfdb97fe336ce9a2e4d579af3f2 (patch) | |
tree | ec5ad1c108c3f83b0cc9da937e2e561dfefc6532 /sc/inc/rangenam.hxx | |
parent | First cut on re-working reference update in named expressions. (diff) | |
download | core-1fdc310b57af7dfdb97fe336ce9a2e4d579af3f2.tar.gz core-1fdc310b57af7dfdb97fe336ce9a2e4d579af3f2.zip |
More on getting named range update to work.
Change-Id: Id3f2ffe6d91ae43d799182b3744a839be5e1baf6
Diffstat (limited to 'sc/inc/rangenam.hxx')
-rw-r--r-- | sc/inc/rangenam.hxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sc/inc/rangenam.hxx b/sc/inc/rangenam.hxx index e3b507e924c8..a040a6b96880 100644 --- a/sc/inc/rangenam.hxx +++ b/sc/inc/rangenam.hxx @@ -122,7 +122,12 @@ public: SC_DLLPUBLIC void GetSymbol( OUString& rSymbol, const ScAddress& rPos, const formula::FormulaGrammar::Grammar eGrammar = formula::FormulaGrammar::GRAM_DEFAULT ) const; void UpdateSymbol( OUStringBuffer& rBuffer, const ScAddress&, const formula::FormulaGrammar::Grammar eGrammar = formula::FormulaGrammar::GRAM_DEFAULT ); - void UpdateReference( const sc::RefUpdateContext& rCxt, bool bLocal = false ); + + /** + * @param nLocalTab sheet index where this name belongs, or -1 for global + * name. + */ + void UpdateReference( sc::RefUpdateContext& rCxt, SCTAB nLocalTab = -1 ); bool IsModified() const { return bModified; } SC_DLLPUBLIC void GuessPosition(); @@ -183,7 +188,7 @@ public: SC_DLLPUBLIC ScRangeData* findByUpperName(const OUString& rName); SC_DLLPUBLIC const ScRangeData* findByUpperName(const OUString& rName) const; SC_DLLPUBLIC ScRangeData* findByIndex(sal_uInt16 i) const; - void UpdateReference(const sc::RefUpdateContext& rCxt, bool bLocal = false); + void UpdateReference( sc::RefUpdateContext& rCxt, SCTAB nLocalTab = -1 ); void UpdateTabRef(SCTAB nTable, ScRangeData::TabRefUpdateMode eMode, SCTAB nNewTable = 0, SCTAB nNewSheets = 1); void UpdateTranspose(const ScRange& rSource, const ScAddress& rDest); void UpdateGrow(const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY); |