20#ifndef INCLUDED_REPORTDESIGN_SOURCE_UI_INC_FORMULA_HXX
21#define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_FORMULA_HXX
25#include <com/sun/star/beans/XPropertySet.hpp>
26#include <com/sun/star/report/meta/XFormulaParser.hpp>
30 class XMultiServiceFactory;
35class SharedStringPool;
51 css::uno::Reference < css::beans::XPropertySet >
m_xRowSet;
52 css::uno::Reference< css::report::meta::XFormulaParser>
m_xParser;
64 ,
const css::uno::Reference< css::lang::XMultiServiceFactory>& _xServiceFactory
65 ,
const std::shared_ptr< formula::IFunctionManager >& _pFunctionMgr
66 ,
const OUString& _sFormula
67 , css::uno::Reference < css::beans::XPropertySet > _xRowSet
74 virtual void fill()
override;
75 virtual bool calculateValue(
const OUString& _sExpression, OUString& _rResult,
bool bMatrixFormula)
override;
76 virtual std::shared_ptr<formula::FormulaCompiler>
getCompiler()
const override;
78 virtual void doClose(
bool _bOk)
override;
80 virtual void showReference(
const OUString& _sFormula)
override;
81 virtual void dispatch(
bool _bOK,
bool _bMatrixChecked)
override;
84 virtual void clear()
override;
88 virtual void setSelection(sal_Int32 _nStart, sal_Int32 _nEnd)
override;
89 virtual void getSelection(sal_Int32& _nStart, sal_Int32& _nEnd)
const override;
93 virtual css::uno::Reference< css::sheet::XFormulaParser>
getFormulaParser()
const override;
97 virtual ::std::unique_ptr<formula::FormulaTokenArray>
convertToTokenArray(
const css::uno::Sequence< css::sheet::FormulaToken >& _aTokenList)
override;
101 virtual void HideReference(
bool bDoneRefMode =
true )
override;