diff options
author | Eike Rathke <erack@redhat.com> | 2015-03-13 17:58:59 +0000 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-03-13 18:32:33 +0000 |
commit | 7dcaa806b8583224cb24d4a37ddf855b9c02150d (patch) | |
tree | 30102c4a5579f890b06e95c1f61f8302897494e3 /sc | |
parent | d1c9e5ee53f8609092ea026639c8f28afec1d36a (diff) |
add ScTableRefToken::AddItem()
Change-Id: Iab74e027d9929bc100ad92c2126c17fca1e2e46a
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/token.hxx | 1 | ||||
-rw-r--r-- | sc/source/core/tool/token.cxx | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sc/inc/token.hxx b/sc/inc/token.hxx index 6f6cd4bb9091..899d1630c64a 100644 --- a/sc/inc/token.hxx +++ b/sc/inc/token.hxx @@ -237,6 +237,7 @@ public: virtual FormulaToken* Clone() const SAL_OVERRIDE { return new ScTableRefToken(*this); } Item GetItem() const; + void AddItem( Item ); private: diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx index eab3f8f43560..89631590667e 100644 --- a/sc/source/core/tool/token.cxx +++ b/sc/source/core/tool/token.cxx @@ -861,6 +861,11 @@ ScTableRefToken::Item ScTableRefToken::GetItem() const return meItem; } +void ScTableRefToken::AddItem( ScTableRefToken::Item eItem ) +{ + meItem = static_cast<ScTableRefToken::Item>(meItem | eItem); +} + bool ScTableRefToken::operator==( const FormulaToken& r ) const { if ( !FormulaToken::operator==(r) ) |