LibreOffice Module sc (master) 1
|
#include <formula.hxx>
Public Member Functions | |
ScFormulaDlg (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, const ScViewData &rViewData, const formula::IFunctionManager *_pFunctionMgr) | |
virtual | ~ScFormulaDlg () COVERITY_NOEXCEPT_FALSE 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 ::std::unique_ptr< formula::FormulaTokenArray > | convertToTokenArray (const css::uno::Sequence< css::sheet::FormulaToken > &_aTokenList) 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 void | Close () override |
virtual void | ShowReference (const OUString &_sRef) override |
virtual void | HideReference (bool bDoneRefMode=true) override |
virtual void | SetReference (const ScRange &rRef, ScDocument &rD) override |
virtual void | ReleaseFocus (formula::RefEdit *pEdit) override |
virtual void | ToggleCollapsed (formula::RefEdit *pEdit, formula::RefButton *pButton) override |
virtual void | RefInputDone (bool bForced=false) override |
virtual bool | IsTableLocked () const override |
virtual bool | IsRefInputMode () const override |
virtual bool | IsDocAllowed (SfxObjectShell *pDocSh) const override |
virtual void | AddRefEntry () override |
virtual void | SetActive () override |
virtual void | ViewShellChanged () override |
Public Member Functions inherited from formula::FormulaDlg | |
FormulaDlg (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, IFunctionManager const *_pFunctionMgr, IControlReferenceHandler *_pDlg) | |
virtual | ~FormulaDlg () override |
Public Member Functions inherited from formula::IFormulaEditorHelper | |
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 |
Private Member Functions | |
virtual void | RefInputStart (formula::RefEdit *pEdit, formula::RefButton *pButton=nullptr) override |
Static Private Member Functions | |
static void | SaveLRUEntry (const ScFuncDesc *pFuncDesc) |
static bool | IsInputHdl (const ScInputHandler *pHdl) |
static ScInputHandler * | GetNextInputHandler (const ScDocShell *pDocShell, ScTabViewShell **ppViewSh) |
Private Attributes | |
ScFormulaReferenceHelper | m_aHelper |
css::uno::Reference< css::sheet::XFormulaParser > | m_xParser |
css::uno::Reference< css::sheet::XFormulaOpCodeMapper > | m_xOpCodeMapper |
ScDocument * | m_pDoc |
ScAddress | m_CursorPos |
ScTabViewShell * | m_pViewShell |
std::shared_ptr< ScCompiler > | m_xCompiler |
Additional Inherited Members | |
Protected Member Functions inherited from formula::FormulaDlg | |
void | disableOk () |
::std::pair< RefButton *, RefEdit * > | RefInputStartBefore (RefEdit *pEdit, RefButton *pButton) |
void | RefInputStartAfter () |
void | RefInputDoneAfter (bool bForced) |
void | SetMeText (const OUString &_sText) |
FormulaDlgMode | SetMeText (const OUString &_sText, sal_Int32 PrivStart, sal_Int32 PrivEnd, bool bMatrix, bool _bSelect, bool _bUpdate) |
void | Update () |
bool | CheckMatrix (OUString &aFormula) |
OUString | GetMeText () const |
void | Update (const OUString &_sExp) |
void | DoEnter () |
const IFunctionDescription * | getCurrentFunctionDescription () const |
bool | UpdateParaWin (Selection &_rSelection) |
void | UpdateParaWin (const Selection &_rSelection, const OUString &_sRefStr) |
RefEdit * | GetActiveEdit () |
void | SetEdSelection () |
void | StoreFormEditData (FormEditData *pData) |
const FormulaHelper & | GetFormulaHelper () const |
Protected Member Functions inherited from formula::IFormulaEditorHelper | |
~IFormulaEditorHelper () | |
Definition at line 35 of file formula.hxx.
ScFormulaDlg::ScFormulaDlg | ( | SfxBindings * | pB, |
SfxChildWindow * | pCW, | ||
weld::Window * | pParent, | ||
const ScViewData & | rViewData, | ||
const formula::IFunctionManager * | _pFunctionMgr | ||
) |
Definition at line 59 of file formula.cxx.
References formula::FormulaDlg::CheckMatrix(), eMode, ScFormulaReferenceHelper::enableInput(), ScFormulaReferenceHelper::EnableSpreadsheets(), fill(), ScServiceProvider::FORMULAPARS, ScViewData::GetCurX(), ScViewData::GetCurY(), SfxBindings::GetDispatcher(), ScViewData::GetDocShell(), ScViewData::GetDocument(), ScDocument::GetDocumentShell(), ScTabViewShell::GetFormEditData(), ScInputHandler::GetFormString(), ScDocument::GetFormula(), formula::FormulaDlg::GetFormulaHelper(), SfxDispatcher::GetFrame(), formula::FormulaDlg::GetMeText(), ScViewData::GetTabNo(), SfxShell::GetViewShell(), ScFormulaReferenceHelper::Init(), ScTabViewShell::InitFormEditData(), ScModule::InputEnterHandler(), ScInputHandler::InputGetSelection(), ScInputHandler::InputReplaceSelection(), ScInputHandler::InputSetSelection(), m_aHelper, m_CursorPos, m_pDoc, m_pViewShell, m_xDialog, m_xOpCodeMapper, m_xParser, ScServiceProvider::MakeInstance(), notifyChange(), ScInputHandler::NotifyChange(), ScServiceProvider::OPCODEMAPPER, pData, SC_MOD, SC_UNO_COMPILEFAP, ScFormulaReferenceHelper::SetDialog(), ScFormulaReferenceHelper::SetDispatcherLock(), formula::FormulaDlg::SetMeText(), ScModule::SetRefInputHdl(), formula::FormulaDlg::Update(), and ScTabViewShell::UpdateInputHandler().
|
overridevirtual |
Definition at line 233 of file formula.cxx.
References ScTabViewShell::ClearFormEditData(), ScFormulaReferenceHelper::dispose(), ScTabViewShell::GetFormEditData(), m_aHelper, m_pViewShell, pData, SC_MOD, and formula::FormulaDlg::StoreFormEditData().
|
overridevirtual |
Definition at line 532 of file formula.cxx.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 297 of file formula.cxx.
References ScGlobal::eLnge, ScGlobal::GetErrorString(), ScDocument::GetFormatTable(), SvNumberFormatter::GetOutputString(), SvNumberFormatter::GetStandardFormat(), m_CursorPos, m_pDoc, n, ScRange::Parse(), and VALID.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 580 of file formula.cxx.
References SfxViewShell::Current(), m_pDoc, SC_MOD, ScModule::SetRefInputHdl(), and ScTabViewShell::UpdateInputHandler().
Referenced by dispatch().
|
overridevirtual |
Definition at line 287 of file formula.cxx.
References formula::FormulaDlg::DoEnter().
|
override |
Definition at line 684 of file formula.cxx.
References ScDocument::GetExternalRefManager(), ScDocument::GetSharedStringPool(), and m_pDoc.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 368 of file formula.cxx.
References ScDocument::GetGrammar(), m_CursorPos, and m_pDoc.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 575 of file formula.cxx.
References ScTabViewShell::ClearFormEditData(), and m_pViewShell.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 552 of file formula.cxx.
References clear(), SfxDispatcher::ExecuteList(), GetBindings(), getCurrentFormula(), SfxBindings::GetDispatcher(), CntUnencodedStringItem::GetValue(), m_aHelper, SCITEM_STRING, ScFormulaReferenceHelper::SetDispatcherLock(), and SfxBoolItem::SetValue().
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 507 of file formula.cxx.
References ScFormulaReferenceHelper::DoClose(), and m_aHelper.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 186 of file formula.cxx.
References formula::FormulaDlg::disableOk(), getFormEditData(), ScModule::GetInputHdl(), GetNextInputHandler(), IsInputHdl(), notifyChange(), pData, SC_MOD, formula::FormulaDlg::SetMeText(), ScModule::SetRefInputHdl(), ScInputHandler::SetRefViewShell(), and formula::FormulaDlg::Update().
Referenced by ScFormulaDlg().
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 361 of file formula.cxx.
References ScDocument::GetGrammar(), m_CursorPos, m_pDoc, and m_xCompiler.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 659 of file formula.cxx.
References ScTabViewShell::GetFormEditData(), m_pViewShell, and pData.
Referenced by dispatch().
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 620 of file formula.cxx.
References ScTabViewShell::GetFormEditData(), and m_pViewShell.
Referenced by fill().
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 674 of file formula.cxx.
References m_xOpCodeMapper.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 670 of file formula.cxx.
References m_xParser.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 666 of file formula.cxx.
References ScGlobal::GetStarCalcFunctionMgr().
|
staticprivate |
Definition at line 267 of file formula.cxx.
References SfxViewFrame::GetFirst(), ScTabViewShell::GetInputHandler(), SfxViewFrame::GetNext(), SfxShell::GetViewShell(), and p.
Referenced by fill().
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 679 of file formula.cxx.
References ScAddress::Col(), m_CursorPos, ScAddress::Row(), and ScAddress::Tab().
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 654 of file formula.cxx.
References ScModule::InputGetSelection(), and SC_MOD.
|
overridevirtual |
Definition at line 524 of file formula.cxx.
References ScFormulaReferenceHelper::HideReference(), and m_aHelper.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 511 of file formula.cxx.
References SaveLRUEntry().
|
overridevirtual |
Definition at line 481 of file formula.cxx.
References SfxObjectShell::HasName(), and m_pDoc.
|
staticprivate |
Definition at line 249 of file formula.cxx.
References SfxViewShell::GetFirst(), and SfxViewShell::GetNext().
Referenced by fill().
|
overridevirtual |
Definition at line 474 of file formula.cxx.
References formula::FormulaDlg::getCurrentFunctionDescription(), formula::IFunctionDescription::getSuppressedArgumentCount(), and m_pDoc.
|
overridevirtual |
Definition at line 536 of file formula.cxx.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 179 of file formula.cxx.
References ScTabViewShell::GetInputHandler(), m_pViewShell, and ScInputHandler::NotifyChange().
Referenced by fill(), and ScFormulaDlg().
|
overridevirtual |
Definition at line 387 of file formula.cxx.
References m_aHelper, ScFormulaReferenceHelper::RefInputDone(), and formula::FormulaDlg::RefInputDoneAfter().
Referenced by SetActive().
|
overrideprivatevirtual |
Definition at line 379 of file formula.cxx.
References m_aHelper, ScFormulaReferenceHelper::RefInputStart(), formula::FormulaDlg::RefInputStartAfter(), formula::FormulaDlg::RefInputStartBefore(), and formula::RefEdit::SelectAll().
Referenced by SetReference().
|
overridevirtual |
Definition at line 547 of file formula.cxx.
References m_aHelper, and ScFormulaReferenceHelper::ReleaseFocus().
|
staticprivate |
Definition at line 498 of file formula.cxx.
References ScModule::InsertEntryToLRUList(), ScFuncDesc::nFIndex, and SC_MOD.
Referenced by insertEntryToLRUList().
|
overridevirtual |
Definition at line 488 of file formula.cxx.
References formula::FormulaDlg::getCurrentFunctionDescription(), formula::IFunctionDescription::getSuppressedArgumentCount(), RefInputDone(), and formula::FormulaDlg::SetEdSelection().
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 627 of file formula.cxx.
References ScModule::InputReplaceSelection(), ScModule::InputTurnOffWinEngine(), and SC_MOD.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 571 of file formula.cxx.
References m_aHelper, and ScFormulaReferenceHelper::SetDispatcherLock().
|
overridevirtual |
Definition at line 393 of file formula.cxx.
References aBuf, ScTokenArray::AddDoubleReference(), ScTokenArray::AddSingleReference(), ScRange::aEnd, ScRange::aStart, ScAddress::Col(), COL2_ABS, COL_ABS, formula::FormulaCompiler::CreateStringFromTokenArray(), ScRange::Format(), formula::FormulaDlg::GetActiveEdit(), formula::FormulaDlg::getCurrentFunctionDescription(), ScDocument::GetDocumentShell(), ScDocument::GetGrammar(), INetURLObject::GetMainURL(), SfxObjectShell::GetMedium(), formula::IFunctionDescription::getSuppressedArgumentCount(), SfxMedium::GetURLObject(), SfxObjectShell::HasName(), ScComplexRefData::InitRangeRel(), m_CursorPos, m_pDoc, ScComplexRefData::Ref1, ScComplexRefData::Ref2, RefInputStart(), ScAddress::Row(), ROW2_ABS, ROW_ABS, ScSingleRefData::SetAbsCol(), ScSingleRefData::SetAbsRow(), ScSingleRefData::SetAbsTab(), ScSingleRefData::SetFlag3D(), ScAddress::Tab(), TAB_ABS_3D, INetURLObject::Unambiguous, formula::FormulaDlg::UpdateParaWin(), VALID, and ZERO.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 649 of file formula.cxx.
References ScModule::InputSetSelection(), and SC_MOD.
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 516 of file formula.cxx.
References ShowReference().
|
overridevirtual |
Definition at line 520 of file formula.cxx.
References m_aHelper, and ScFormulaReferenceHelper::ShowReference().
Referenced by showReference().
|
overridevirtual |
Implements formula::IFormulaEditorHelper.
Definition at line 593 of file formula.cxx.
References ScAddress::Col(), SfxViewShell::Current(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScTabViewShell::GetInputHandler(), ScViewData::GetTabNo(), ScTabView::GetViewData(), m_CursorPos, m_pViewShell, ScAddress::Row(), ScTabView::SetCursor(), ScTabView::SetTabNo(), ScInputHandler::ShowRefFrame(), ScAddress::Tab(), and ScInputHandler::ViewShellGone().
|
overridevirtual |
Definition at line 542 of file formula.cxx.
References m_aHelper, and ScFormulaReferenceHelper::ToggleCollapsed().
|
overridevirtual |
Definition at line 528 of file formula.cxx.
References ScFormulaReferenceHelper::ViewShellChanged().
|
private |
Definition at line 38 of file formula.hxx.
Referenced by dispatch(), doClose(), HideReference(), RefInputDone(), RefInputStart(), ReleaseFocus(), ScFormulaDlg(), setDispatcherLock(), ShowReference(), ToggleCollapsed(), and ~ScFormulaDlg().
|
private |
Definition at line 43 of file formula.hxx.
Referenced by calculateValue(), createCompiler(), getCompiler(), getReferencePosition(), ScFormulaDlg(), SetReference(), and switchBack().
|
private |
Definition at line 42 of file formula.hxx.
Referenced by calculateValue(), clear(), convertToTokenArray(), createCompiler(), getCompiler(), IsDocAllowed(), IsRefInputMode(), ScFormulaDlg(), and SetReference().
|
private |
Definition at line 44 of file formula.hxx.
Referenced by deleteFormData(), getCurrentFormula(), getFormEditData(), notifyChange(), ScFormulaDlg(), switchBack(), and ~ScFormulaDlg().
|
mutableprivate |
Definition at line 45 of file formula.hxx.
Referenced by getCompiler().
|
private |
Definition at line 40 of file formula.hxx.
Referenced by getFormulaOpCodeMapper(), and ScFormulaDlg().
|
private |
Definition at line 39 of file formula.hxx.
Referenced by getFormulaParser(), and ScFormulaDlg().