1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 #include <mtvcellfunc.hxx>
12 CellStoreType::iterator
ProcessFormula(
13 const CellStoreType::iterator
& it
, CellStoreType
& rStore
, SCROW nRow1
, SCROW nRow2
,
14 std::function
<void(size_t,ScFormulaCell
*)> aFuncElem
)
16 using FuncType
= std::function
<void(size_t,ScFormulaCell
*)>;
17 using ElseFuncType
= std::function
<void(mdds::mtv::element_t
, size_t, size_t)>;
19 // empty function for handling the 'else' part.
20 static ElseFuncType aFuncElse
=
21 [](mdds::mtv::element_t
,size_t,size_t) {};
23 return ProcessElements1
<
24 CellStoreType
, formula_block
,
25 FuncType
, ElseFuncType
>(
26 it
, rStore
, nRow1
, nRow2
, aFuncElem
, aFuncElse
);
31 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */