diff options
-rw-r--r-- | formula/inc/formula/tokenarray.hxx | 2 | ||||
-rw-r--r-- | formula/source/core/api/token.cxx | 5 | ||||
-rw-r--r-- | sc/inc/cell.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/cell.cxx | 5 |
4 files changed, 14 insertions, 0 deletions
diff --git a/formula/inc/formula/tokenarray.hxx b/formula/inc/formula/tokenarray.hxx index 6cebafb0053e..aa382cd9653e 100644 --- a/formula/inc/formula/tokenarray.hxx +++ b/formula/inc/formula/tokenarray.hxx @@ -93,6 +93,8 @@ public: FormulaTokenArray( const FormulaTokenArray& ); virtual ~FormulaTokenArray(); FormulaTokenArray* Clone() const; /// True copy! + + size_t GetHash() const; void Clear(); void DelRPN(); FormulaToken* First() { nIndex = 0; return Next(); } diff --git a/formula/source/core/api/token.cxx b/formula/source/core/api/token.cxx index 150be29a7a61..f331c1e4bff5 100644 --- a/formula/source/core/api/token.cxx +++ b/formula/source/core/api/token.cxx @@ -685,6 +685,11 @@ FormulaTokenArray* FormulaTokenArray::Clone() const return p; } +size_t FormulaTokenArray::GetHash() const +{ + return 0; +} + void FormulaTokenArray::Clear() { if( nRPN ) DelRPN(); diff --git a/sc/inc/cell.hxx b/sc/inc/cell.hxx index d9fb42a8016a..944c8dce5f69 100644 --- a/sc/inc/cell.hxx +++ b/sc/inc/cell.hxx @@ -427,6 +427,8 @@ public: ScFormulaCell( const ScFormulaCell& rCell, ScDocument& rDoc, const ScAddress& rPos, int nCloneFlags = SC_CLONECELL_DEFAULT ); + size_t GetHash() const; + void GetFormula( rtl::OUString& rFormula, const formula::FormulaGrammar::Grammar = formula::FormulaGrammar::GRAM_DEFAULT ) const; void GetFormula( rtl::OUStringBuffer& rBuffer, diff --git a/sc/source/core/data/cell.cxx b/sc/source/core/data/cell.cxx index e37fbd21a502..a7133c29d13e 100644 --- a/sc/source/core/data/cell.cxx +++ b/sc/source/core/data/cell.cxx @@ -884,6 +884,11 @@ ScFormulaCell::~ScFormulaCell() #endif } +size_t ScFormulaCell::GetHash() const +{ + return pCode->GetHash(); +} + void ScFormulaCell::GetFormula( rtl::OUStringBuffer& rBuffer, const FormulaGrammar::Grammar eGrammar ) const { |