bump product version to 4.1.6.2
[LibreOffice.git] / sc / inc / formulagroup.hxx
blob55f6e0997ff832bbb8321e20f51bae1010905a52
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #ifndef SC_FORMULAGROUP_HXX
11 #define SC_FORMULAGROUP_HXX
13 #include "address.hxx"
14 #include "types.hxx"
16 #include <boost/noncopyable.hpp>
17 #include <boost/ptr_container/ptr_vector.hpp>
19 class ScDocument;
20 class ScTokenArray;
22 namespace sc {
24 struct FormulaGroupContext : boost::noncopyable
26 typedef std::vector<double> DoubleArrayType;
27 typedef boost::ptr_vector<DoubleArrayType> ArrayStoreType;
29 ArrayStoreType maArrays;
32 /**
33 * All the vectorized formula calculation code should be collectd here.
35 class FormulaGroupInterpreter
37 ScDocument& mrDoc;
38 ScAddress maTopPos;
39 ScFormulaCellGroupRef mxGroup;
40 ScTokenArray& mrCode;
41 public:
42 FormulaGroupInterpreter(
43 ScDocument& rDoc, const ScAddress& rTopPos, const ScFormulaCellGroupRef& xGroup, ScTokenArray& rCode);
45 bool interpret();
50 #endif
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */