summaryrefslogtreecommitdiff
path: root/sc/inc/token.hxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-05-19 20:21:03 +0200
committerEike Rathke <erack@redhat.com>2017-05-22 11:00:56 +0200
commit3a3064fcb4778b050398d98598d6ed61e8298134 (patch)
treea8895762d246bad288e643977c917e6b196574c4 /sc/inc/token.hxx
parent6a569fd47e3665b0aaec397ace0346938bb3b4bf (diff)
Introduce ScRefListToken::mbArrayResult for reference results, tdf#58874
Change-Id: Icd077a82ab0c951667a6566d5c5d47084c46d20d
Diffstat (limited to 'sc/inc/token.hxx')
-rw-r--r--sc/inc/token.hxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sc/inc/token.hxx b/sc/inc/token.hxx
index 7c082010ea93..8d561af85760 100644
--- a/sc/inc/token.hxx
+++ b/sc/inc/token.hxx
@@ -265,11 +265,15 @@ class ScRefListToken : public formula::FormulaToken
{
private:
ScRefList aRefList;
+ bool mbArrayResult; // whether RefList is an array result
public:
ScRefListToken() :
- FormulaToken( formula::svRefList ) {}
+ FormulaToken( formula::svRefList ), mbArrayResult(false) {}
+ explicit ScRefListToken( bool bArrayResult ) :
+ FormulaToken( formula::svRefList ), mbArrayResult( bArrayResult ) {}
ScRefListToken( const ScRefListToken & r ) :
- FormulaToken( r ), aRefList( r.aRefList ) {}
+ FormulaToken( r ), aRefList( r.aRefList ), mbArrayResult( r.mbArrayResult ) {}
+ bool IsArrayResult() const;
virtual const ScRefList* GetRefList() const override;
virtual ScRefList* GetRefList() override;
virtual bool operator==( const formula::FormulaToken& rToken ) const override;