summaryrefslogtreecommitdiff
path: root/sc/inc/token.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-10-22 14:22:45 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-10-23 09:30:08 +0200
commit1ba2028ab93a649ddab9b7253ea7ef7e7cf6d40f (patch)
treec3fed5c65b75d59e0c56148193453cc455bacc42 /sc/inc/token.hxx
parenta6b01d01f77f84517d267bdfe31de91b9050a70c (diff)
Move FormulaToken::TextEqual overrides down into specific subclasses
Change-Id: I5f27054ef2f9fdc4d0be0afe91ad31d053976bcf
Diffstat (limited to 'sc/inc/token.hxx')
-rw-r--r--sc/inc/token.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/inc/token.hxx b/sc/inc/token.hxx
index 27c879ad90e2..7ce60e231620 100644
--- a/sc/inc/token.hxx
+++ b/sc/inc/token.hxx
@@ -57,6 +57,8 @@ protected:
ScToken( formula::StackVar eTypeP,OpCode e = ocPush ) : formula::FormulaToken(eTypeP,e) {}
ScToken( const ScToken& r ): formula::FormulaToken(r) {}
+ bool checkTextEqual( const formula::FormulaToken& rToken ) const;
+
public:
virtual ~ScToken();
@@ -88,8 +90,6 @@ public:
virtual const ScRefList* GetRefList() const;
virtual ScRefList* GetRefList();
- virtual bool TextEqual( const formula::FormulaToken& rToken ) const SAL_OVERRIDE;
-
#if DEBUG_FORMULA_COMPILER
virtual void Dump() const;
#endif
@@ -130,6 +130,7 @@ public:
ScToken( r ), aSingleRef( r.aSingleRef ) {}
virtual const ScSingleRefData& GetSingleRef() const SAL_OVERRIDE;
virtual ScSingleRefData& GetSingleRef() SAL_OVERRIDE;
+ virtual bool TextEqual( const formula::FormulaToken& rToken ) const SAL_OVERRIDE;
virtual bool operator==( const formula::FormulaToken& rToken ) const SAL_OVERRIDE;
virtual FormulaToken* Clone() const SAL_OVERRIDE { return new ScSingleRefToken(*this); }
@@ -160,6 +161,7 @@ public:
virtual ScComplexRefData& GetDoubleRef() SAL_OVERRIDE;
virtual const ScSingleRefData& GetSingleRef2() const SAL_OVERRIDE;
virtual ScSingleRefData& GetSingleRef2() SAL_OVERRIDE;
+ virtual bool TextEqual( const formula::FormulaToken& rToken ) const SAL_OVERRIDE;
virtual bool operator==( const formula::FormulaToken& rToken ) const SAL_OVERRIDE;
virtual FormulaToken* Clone() const SAL_OVERRIDE { return new ScDoubleRefToken(*this); }