summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-08-16 06:50:15 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-08-16 06:58:08 +0200
commit04d2e6469529b6187900659517d6f6dd5ea2cca5 (patch)
tree040472b44cfc3782c222d2acc22727132a25a881 /sc/inc
parentade0d4b40af9d1f3f4f16b3bbb55d21ecb6a68e8 (diff)
update range names/database ranges in formulas cells
we need to update range names/database ranges when we copy/paste formula cells otherwise the ScNameToken may point to a different entry
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/rangenam.hxx2
-rw-r--r--sc/inc/token.hxx5
2 files changed, 4 insertions, 3 deletions
diff --git a/sc/inc/rangenam.hxx b/sc/inc/rangenam.hxx
index 4411b4895297..5d65bf5876b7 100644
--- a/sc/inc/rangenam.hxx
+++ b/sc/inc/rangenam.hxx
@@ -104,7 +104,7 @@ public:
const String& rName,
const ScAddress& rTarget );
// rTarget is ABSPOS jump label
- ScRangeData(const ScRangeData& rScRangeData);
+ ScRangeData(const ScRangeData& rScRangeData, ScDocument* pDocument = NULL);
SC_DLLPUBLIC ~ScRangeData();
diff --git a/sc/inc/token.hxx b/sc/inc/token.hxx
index d7cefab1982a..cec672fddb95 100644
--- a/sc/inc/token.hxx
+++ b/sc/inc/token.hxx
@@ -247,8 +247,9 @@ public:
ScNameToken(sal_uInt16 nIndex, bool bGlobal, OpCode eOpCode = ocName);
ScNameToken(const ScNameToken& r);
virtual ~ScNameToken();
- virtual sal_uInt8 GetByte() const;
- virtual sal_uInt16 GetIndex() const;
+ virtual sal_uInt8 GetByte() const;
+ virtual void SetByte(sal_uInt8 aGlobal);
+ virtual sal_uInt16 GetIndex() const;
virtual bool operator==( const formula::FormulaToken& rToken ) const;
virtual FormulaToken* Clone() const { return new ScNameToken(*this); }
};