formula/source/core/api/vectortoken.cxx | 10 ++++++++++ include/formula/vectortoken.hxx | 4 ++++ 2 files changed, 14 insertions(+)
New commits: commit 8d08f87faa0afb281301712a8b9555d5b94eccbc Author: Kohei Yoshida <kohei.yosh...@gmail.com> Date: Mon Apr 29 15:28:30 2013 -0400 Let's not forget to check this in... Curse the sc / formula split... Change-Id: Ib8d17ba63d05eb4df7e6918e0034d91dd82869e3 diff --git a/formula/source/core/api/vectortoken.cxx b/formula/source/core/api/vectortoken.cxx index 0c2e455..94a071c 100644 --- a/formula/source/core/api/vectortoken.cxx +++ b/formula/source/core/api/vectortoken.cxx @@ -17,6 +17,11 @@ VectorArray::VectorArray( const double* pArray, size_t nLength ) : SingleVectorRefToken::SingleVectorRefToken( const double* pArray, size_t nLength ) : FormulaToken(svSingleVectorRef, ocPush), maArray(pArray, nLength) {} +FormulaToken* SingleVectorRefToken::Clone() const +{ + return new SingleVectorRefToken(maArray.mpArray, maArray.mnLength); +} + const VectorArray& SingleVectorRefToken::GetArray() const { return maArray; @@ -27,6 +32,11 @@ DoubleVectorRefToken::DoubleVectorRefToken( FormulaToken(svDoubleVectorRef, ocPush), maArrays(rArrays), mnRowSize(nRowSize), mbAbsStart(bAbsStart), mbAbsEnd(bAbsEnd) {} +FormulaToken* DoubleVectorRefToken::Clone() const +{ + return new DoubleVectorRefToken(maArrays, mnRowSize, mbAbsStart, mbAbsEnd); +} + const std::vector<VectorArray>& DoubleVectorRefToken::GetArrays() const { return maArrays; diff --git a/include/formula/vectortoken.hxx b/include/formula/vectortoken.hxx index 90e28d8..82051d4 100644 --- a/include/formula/vectortoken.hxx +++ b/include/formula/vectortoken.hxx @@ -28,6 +28,8 @@ class FORMULA_DLLPUBLIC SingleVectorRefToken : public FormulaToken public: SingleVectorRefToken( const double* pArray, size_t nLength ); + virtual FormulaToken* Clone() const; + const VectorArray& GetArray() const; }; @@ -48,6 +50,8 @@ public: DoubleVectorRefToken( const std::vector<VectorArray>& rArrays, size_t nRowSize, bool bAbsStart, bool bAbsEnd ); + virtual FormulaToken* Clone() const; + const std::vector<VectorArray>& GetArrays() const; }; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits