25#include <com/sun/star/lang/XMultiServiceFactory.hpp>
26#include <com/sun/star/beans/PropertyValue.hpp>
46 ,
const uno::Reference<lang::XMultiServiceFactory>& _xServiceFactory
47 ,
const std::shared_ptr< IFunctionManager >& _pFunctionMgr
48 ,
const OUString& _sFormula
49 , css::uno::Reference < css::beans::XPropertySet > _xRowSet
52 ,m_aFunctionManager(_pFunctionMgr)
54 ,m_xRowSet(
std::move(_xRowSet))
59 ,mrStringPool(rStrPool)
61 if ( !_sFormula.isEmpty() )
63 if ( _sFormula[0] !=
'=' )
68 m_xParser.set(_xServiceFactory->createInstance(
"org.libreoffice.report.pentaho.SOFormulaParser"),uno::UNO_QUERY);
107 rStrResult = rStrExp;
118 return std::unique_ptr<formula::FormulaCompiler>(
new FormulaCompiler(rArray));
154 const sal_Int32 nNewLen = _sReplacement.getLength();
163 if ( _nStart <= _nEnd )
207 aPair.first->GetWidget()->hide();
230 const uno::Sequence< beans::PropertyValue > aArgs = _rAddFieldDlg.getSelectedFieldDescriptors();
232 if ( m_pEdit && aArgs.getLength() == 1)
234 uno::Sequence< beans::PropertyValue > aValue;
235 aArgs[0].Value >>= aValue;
239 if ( !
sName.isEmpty() )
242 m_pEdit->SetText(
sName);
246 if (_rAddFieldDlg.getDialog()->get_visible())
263 return table::CellAddress();
Reference< XExecutableDialog > m_xDialog
void SetWindowState(const OUString &sState)
OUString GetWindowState() const
static bool runAsync(const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
#define HID_RPT_FIELD_SEL_WIN
#define LINK(Instance, Class, Member)
IMPL_LINK(OAddFieldWindow, DragBeginHdl, bool &, rUnsetDragIcon, bool)
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)