LibreOffice Module reportdesign (master) 1
|
#include <Formula.hxx>
Public Member Functions | |
FormulaDialog (weld::Window *pParent, const css::uno::Reference< css::lang::XMultiServiceFactory > &_xServiceFactory, const std::shared_ptr< formula::IFunctionManager > &_pFunctionMgr, const OUString &_sFormula, css::uno::Reference< css::beans::XPropertySet > _xRowSet, svl::SharedStringPool &rStrPool) | |
virtual | ~FormulaDialog () override |
virtual void | notifyChange () override |
virtual void | fill () override |
virtual bool | calculateValue (const OUString &_sExpression, OUString &_rResult, bool bMatrixFormula) override |
virtual std::shared_ptr< formula::FormulaCompiler > | getCompiler () const override |
virtual std::unique_ptr< formula::FormulaCompiler > | createCompiler (formula::FormulaTokenArray &rArray) const override |
virtual void | doClose (bool _bOk) override |
virtual void | insertEntryToLRUList (const formula::IFunctionDescription *pDesc) override |
virtual void | showReference (const OUString &_sFormula) override |
virtual void | dispatch (bool _bOK, bool _bMatrixChecked) override |
virtual void | setDispatcherLock (bool bLock) override |
virtual void | deleteFormData () override |
virtual void | clear () override |
virtual void | switchBack () override |
virtual formula::FormEditData * | getFormEditData () const override |
virtual void | setCurrentFormula (const OUString &_sReplacement) override |
virtual void | setSelection (sal_Int32 _nStart, sal_Int32 _nEnd) override |
virtual void | getSelection (sal_Int32 &_nStart, sal_Int32 &_nEnd) const override |
virtual OUString | getCurrentFormula () const override |
virtual formula::IFunctionManager * | getFunctionManager () override |
virtual css::uno::Reference< css::sheet::XFormulaParser > | getFormulaParser () const override |
virtual css::uno::Reference< css::sheet::XFormulaOpCodeMapper > | getFormulaOpCodeMapper () const override |
virtual css::table::CellAddress | getReferencePosition () const override |
virtual ::std::unique_ptr< formula::FormulaTokenArray > | convertToTokenArray (const css::uno::Sequence< css::sheet::FormulaToken > &_aTokenList) override |
virtual void | ShowReference (const OUString &_sRef) override |
virtual void | HideReference (bool bDoneRefMode=true) override |
virtual void | ReleaseFocus (formula::RefEdit *pEdit) override |
virtual void | ToggleCollapsed (formula::RefEdit *pEdit, formula::RefButton *pButton) override |
Public Member Functions inherited from formula::FormulaModalDialog | |
FormulaModalDialog (weld::Window *pParent, IFunctionManager const *_pFunctionMgr, IControlReferenceHandler *_pDlg) | |
virtual | ~FormulaModalDialog () override |
virtual void | notifyChange ()=0 |
virtual void | fill ()=0 |
virtual OUString | getCurrentFormula () const=0 |
virtual void | setCurrentFormula (const OUString &_sReplacement)=0 |
virtual void | getSelection (sal_Int32 &_nStart, sal_Int32 &_nEnd) const=0 |
virtual void | setSelection (sal_Int32 _nStart, sal_Int32 _nEnd)=0 |
virtual FormEditData * | getFormEditData () const=0 |
virtual bool | calculateValue (const OUString &_sExpression, OUString &_rResult, bool bMatrixFormula)=0 |
virtual std::shared_ptr< FormulaCompiler > | getCompiler () const=0 |
virtual std::unique_ptr< FormulaCompiler > | createCompiler (FormulaTokenArray &rArray) const=0 |
virtual void | switchBack ()=0 |
virtual void | clear ()=0 |
virtual void | deleteFormData ()=0 |
virtual IFunctionManager * | getFunctionManager ()=0 |
virtual ::std::unique_ptr< FormulaTokenArray > | convertToTokenArray (const css::uno::Sequence< css::sheet::FormulaToken > &_aTokenList)=0 |
virtual css::uno::Reference< css::sheet::XFormulaParser > | getFormulaParser () const=0 |
virtual css::uno::Reference< css::sheet::XFormulaOpCodeMapper > | getFormulaOpCodeMapper () const=0 |
virtual css::table::CellAddress | getReferencePosition () const=0 |
virtual void | setDispatcherLock (bool bLock)=0 |
virtual void | dispatch (bool _bOK, bool _bMatrixChecked)=0 |
virtual void | doClose (bool _bOk)=0 |
virtual void | insertEntryToLRUList (const IFunctionDescription *pDesc)=0 |
virtual void | showReference (const OUString &_sFormula)=0 |
virtual void | ShowReference (const OUString &_sRef)=0 |
virtual void | HideReference (bool bDoneRefMode=true)=0 |
virtual void | ReleaseFocus (RefEdit *pEdit)=0 |
virtual void | ToggleCollapsed (RefEdit *pEdit, RefButton *pButton)=0 |
Private Member Functions | |
DECL_LINK (OnClickHdl, OAddFieldWindow &, void) | |
Private Attributes | |
std::shared_ptr< formula::IFunctionManager > | m_aFunctionManager |
std::unique_ptr< formula::FormEditData > | m_xFormulaData |
std::shared_ptr< OAddFieldWindow > | m_xAddField |
css::uno::Reference< css::beans::XPropertySet > | m_xRowSet |
css::uno::Reference< css::report::meta::XFormulaParser > | m_xParser |
css::uno::Reference< css::sheet::XFormulaOpCodeMapper > | m_xOpCodeMapper |
formula::RefEdit * | m_pEdit |
OUString | m_sFormula |
sal_Int32 | m_nStart |
sal_Int32 | m_nEnd |
svl::SharedStringPool & | mrStringPool |
Additional Inherited Members | |
Protected Member Functions inherited from formula::FormulaModalDialog | |
::std::pair< RefButton *, RefEdit * > | RefInputStartBefore (RefEdit *pEdit, RefButton *pButton) |
void | RefInputStartAfter () |
void | RefInputDoneAfter () |
void | SetMeText (const OUString &_sText) |
void | Update () |
void | CheckMatrix (OUString &aFormula) |
void | Update (const OUString &_sExp) |
void | StoreFormEditData (FormEditData *pData) |
Protected Member Functions inherited from formula::IFormulaEditorHelper | |
~IFormulaEditorHelper () | |
Protected Member Functions inherited from formula::IControlReferenceHandler | |
~IControlReferenceHandler () | |
Definition at line 45 of file Formula.hxx.
rptui::FormulaDialog::FormulaDialog | ( | weld::Window * | pParent, |
const css::uno::Reference< css::lang::XMultiServiceFactory > & | _xServiceFactory, | ||
const std::shared_ptr< formula::IFunctionManager > & | _pFunctionMgr, | ||
const OUString & | _sFormula, | ||
css::uno::Reference< css::beans::XPropertySet > | _xRowSet, | ||
svl::SharedStringPool & | rStrPool | ||
) |
Definition at line 45 of file Formula.cxx.
References fill(), get(), m_sFormula, m_xOpCodeMapper, and m_xParser.
|
overridevirtual |
Definition at line 86 of file Formula.cxx.
References HID_RPT_FIELD_SEL_WIN, m_pEdit, m_xAddField, m_xFormulaData, vcl::Minimized, vcl::Pos, RET_CANCEL, SvtViewOptions::SetWindowState(), vcl::State, and formula::FormulaModalDialog::StoreFormEditData().
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 105 of file Formula.cxx.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 141 of file Formula.cxx.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 266 of file Formula.cxx.
References mrStringPool.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 116 of file Formula.cxx.
|
private |
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 138 of file Formula.cxx.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 132 of file Formula.cxx.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 121 of file Formula.cxx.
References RET_CANCEL, and RET_OK.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 78 of file Formula.cxx.
References formula::FormulaModalDialog::CheckMatrix(), m_sFormula, formula::FormulaModalDialog::SetMeText(), and formula::FormulaModalDialog::Update().
Referenced by FormulaDialog().
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 111 of file Formula.cxx.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 179 of file Formula.cxx.
References m_sFormula.
Referenced by rptui::openDialogFormula_nothrow().
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 147 of file Formula.cxx.
References m_xFormulaData.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 256 of file Formula.cxx.
References m_xOpCodeMapper.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 251 of file Formula.cxx.
References m_xParser.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 183 of file Formula.cxx.
References m_aFunctionManager.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 261 of file Formula.cxx.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 174 of file Formula.cxx.
|
overridevirtual |
Implements formula::IControlReferenceHandler.
Definition at line 192 of file Formula.cxx.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 126 of file Formula.cxx.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 74 of file Formula.cxx.
|
overridevirtual |
Implements formula::IControlReferenceHandler.
Definition at line 196 of file Formula.cxx.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 151 of file Formula.cxx.
References m_nEnd, m_nStart, m_sFormula, and u.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 135 of file Formula.cxx.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 161 of file Formula.cxx.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 129 of file Formula.cxx.
|
overridevirtual |
Implements formula::IControlReferenceHandler.
Definition at line 188 of file Formula.cxx.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 144 of file Formula.cxx.
|
overridevirtual |
Implements formula::IControlReferenceHandler.
Definition at line 200 of file Formula.cxx.
References SvtViewOptions::Exists(), formula::RefEdit::GetWidget(), SvtViewOptions::GetWindowState(), HID_RPT_FIELD_SEL_WIN, weld::Widget::hide(), LINK, m_pEdit, m_xAddField, m_xDialog, m_xRowSet, formula::FormulaModalDialog::RefInputStartAfter(), formula::FormulaModalDialog::RefInputStartBefore(), and weld::DialogController::runAsync().
|
private |
Definition at line 48 of file Formula.hxx.
Referenced by getFunctionManager().
|
private |
Definition at line 57 of file Formula.hxx.
Referenced by getSelection(), setCurrentFormula(), and setSelection().
|
private |
Definition at line 56 of file Formula.hxx.
Referenced by getSelection(), setCurrentFormula(), and setSelection().
|
private |
Definition at line 54 of file Formula.hxx.
Referenced by ToggleCollapsed(), and ~FormulaDialog().
|
private |
Definition at line 55 of file Formula.hxx.
Referenced by fill(), FormulaDialog(), getCurrentFormula(), and setCurrentFormula().
|
private |
Definition at line 50 of file Formula.hxx.
Referenced by ToggleCollapsed(), and ~FormulaDialog().
|
private |
Definition at line 49 of file Formula.hxx.
Referenced by getFormEditData(), and ~FormulaDialog().
|
private |
Definition at line 53 of file Formula.hxx.
Referenced by FormulaDialog(), and getFormulaOpCodeMapper().
|
private |
Definition at line 52 of file Formula.hxx.
Referenced by FormulaDialog(), and getFormulaParser().
|
private |
Definition at line 51 of file Formula.hxx.
Referenced by ToggleCollapsed().
|
private |
Definition at line 59 of file Formula.hxx.
Referenced by convertToTokenArray().