1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef INCLUDED_SC_INC_SIMPLEFORMULACALC_HXX
11 #define INCLUDED_SC_INC_SIMPLEFORMULACALC_HXX
13 #include <boost/scoped_ptr.hpp>
14 #include <formula/grammar.hxx>
16 #include "address.hxx"
17 #include "formularesult.hxx"
22 class ScSimpleFormulaCalculator
26 sal_uLong mnFormatIndex
;
29 boost::scoped_ptr
<ScTokenArray
> mpCode
;
32 ScFormulaResult maResult
;
35 ScSimpleFormulaCalculator(ScDocument
* pDoc
, const ScAddress
& rAddr
,
36 const OUString
& rFormula
, formula::FormulaGrammar::Grammar eGram
= formula::FormulaGrammar::GRAM_DEFAULT
);
37 ~ScSimpleFormulaCalculator();
41 sal_uInt16
GetErrCode();
43 svl::SharedString
GetString();
44 short GetFormatType() const { return mnFormatType
; }
45 sal_uLong
GetFormatIndex() const { return mnFormatIndex
; }
49 ScTokenArray
* GetCode();
54 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */