LibreOffice Module sc (master)  1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ScFormulaDlg Class Referencefinal

#include <formula.hxx>

Inheritance diagram for ScFormulaDlg:
[legend]
Collaboration diagram for ScFormulaDlg:
[legend]

Public Member Functions

 ScFormulaDlg (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, const ScViewData *pViewData, 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::FormulaCompilergetCompiler () const override
 
virtual std::unique_ptr< formula::FormulaCompilercreateCompiler (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::FormEditDatagetFormEditData () 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::IFunctionManagergetFunctionManager () override
 
virtual ::std::unique_ptr< formula::FormulaTokenArrayconvertToTokenArray (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
 IFormulaEditorHelper ()
 
virtual ::std::unique_ptr< FormulaTokenArrayconvertToTokenArray (const css::uno::Sequence< css::sheet::FormulaToken > &_aTokenList)=0
 
- Public Member Functions inherited from IAnyRefDialog
virtual ~IAnyRefDialog () COVERITY_NOEXCEPT_FALSE
 

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 ScInputHandlerGetNextInputHandler (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
 
ScDocumentm_pDoc
 
ScAddress m_CursorPos
 
ScTabViewShellm_pViewShell
 
std::shared_ptr< ScCompilerm_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 IFunctionDescriptiongetCurrentFunctionDescription () const
 
bool UpdateParaWin (Selection &_rSelection)
 
void UpdateParaWin (const Selection &_rSelection, const OUString &_sRefStr)
 
RefEditGetActiveEdit ()
 
void SetEdSelection ()
 
void StoreFormEditData (FormEditData *pData)
 
const FormulaHelperGetFormulaHelper () const
 
- Protected Member Functions inherited from formula::IFormulaEditorHelper
 ~IFormulaEditorHelper ()
 
- Protected Member Functions inherited from formula::IControlReferenceHandler
 ~IControlReferenceHandler ()
 

Detailed Description

Definition at line 35 of file formula.hxx.

Constructor & Destructor Documentation

ScFormulaDlg::ScFormulaDlg ( SfxBindings pB,
SfxChildWindow pCW,
weld::Window pParent,
const ScViewData pViewData,
const formula::IFunctionManager _pFunctionMgr 
)
ScFormulaDlg::~ScFormulaDlg ( )
overridevirtual

Member Function Documentation

void ScFormulaDlg::AddRefEntry ( )
overridevirtual

Implements IAnyRefDialog.

Definition at line 514 of file formula.cxx.

bool ScFormulaDlg::calculateValue ( const OUString &  _sExpression,
OUString &  _rResult,
bool  bMatrixFormula 
)
overridevirtual
void ScFormulaDlg::clear ( )
overridevirtual
void ScFormulaDlg::Close ( )
overridevirtual

Definition at line 288 of file formula.cxx.

References formula::FormulaDlg::DoEnter().

std::unique_ptr< formula::FormulaTokenArray > ScFormulaDlg::convertToTokenArray ( const css::uno::Sequence< css::sheet::FormulaToken > &  _aTokenList)
override
std::unique_ptr< formula::FormulaCompiler > ScFormulaDlg::createCompiler ( formula::FormulaTokenArray rArray) const
overridevirtual

Implements formula::IFormulaEditorHelper.

Definition at line 370 of file formula.cxx.

References assert(), ScDocument::GetGrammar(), m_CursorPos, and m_pDoc.

void ScFormulaDlg::deleteFormData ( )
overridevirtual

Implements formula::IFormulaEditorHelper.

Definition at line 557 of file formula.cxx.

References ScTabViewShell::ClearFormEditData(), and m_pViewShell.

void ScFormulaDlg::dispatch ( bool  _bOK,
bool  _bMatrixChecked 
)
overridevirtual
void ScFormulaDlg::doClose ( bool  _bOk)
overridevirtual

Implements formula::IFormulaEditorHelper.

Definition at line 489 of file formula.cxx.

References ScFormulaReferenceHelper::DoClose(), and m_aHelper.

void ScFormulaDlg::fill ( )
overridevirtual
std::shared_ptr< formula::FormulaCompiler > ScFormulaDlg::getCompiler ( ) const
overridevirtual

Implements formula::IFormulaEditorHelper.

Definition at line 363 of file formula.cxx.

References m_CursorPos, m_pDoc, and m_xCompiler.

OUString ScFormulaDlg::getCurrentFormula ( ) const
overridevirtual
formula::FormEditData * ScFormulaDlg::getFormEditData ( ) const
overridevirtual

Implements formula::IFormulaEditorHelper.

Definition at line 602 of file formula.cxx.

References ScTabViewShell::GetFormEditData(), and m_pViewShell.

Referenced by fill().

uno::Reference< sheet::XFormulaOpCodeMapper > ScFormulaDlg::getFormulaOpCodeMapper ( ) const
overridevirtual

Implements formula::IFormulaEditorHelper.

Definition at line 656 of file formula.cxx.

References m_xOpCodeMapper.

uno::Reference< sheet::XFormulaParser > ScFormulaDlg::getFormulaParser ( ) const
overridevirtual

Implements formula::IFormulaEditorHelper.

Definition at line 652 of file formula.cxx.

References m_xParser.

formula::IFunctionManager * ScFormulaDlg::getFunctionManager ( )
overridevirtual

Implements formula::IFormulaEditorHelper.

Definition at line 648 of file formula.cxx.

References ScGlobal::GetStarCalcFunctionMgr().

ScInputHandler * ScFormulaDlg::GetNextInputHandler ( const ScDocShell pDocShell,
ScTabViewShell **  ppViewSh 
)
staticprivate
table::CellAddress ScFormulaDlg::getReferencePosition ( ) const
overridevirtual
void ScFormulaDlg::getSelection ( sal_Int32 &  _nStart,
sal_Int32 &  _nEnd 
) const
overridevirtual

Implements formula::IFormulaEditorHelper.

Definition at line 636 of file formula.cxx.

References ScModule::InputGetSelection(), and SC_MOD.

void ScFormulaDlg::HideReference ( bool  bDoneRefMode = true)
overridevirtual
void ScFormulaDlg::insertEntryToLRUList ( const formula::IFunctionDescription pDesc)
overridevirtual

Implements formula::IFormulaEditorHelper.

Definition at line 493 of file formula.cxx.

References SaveLRUEntry().

bool ScFormulaDlg::IsDocAllowed ( SfxObjectShell pDocSh) const
overridevirtual

Implements IAnyRefDialog.

Definition at line 463 of file formula.cxx.

References SfxObjectShell::HasName(), and m_pDoc.

bool ScFormulaDlg::IsInputHdl ( const ScInputHandler pHdl)
staticprivate

Definition at line 250 of file formula.cxx.

References SfxViewShell::GetFirst(), and SfxViewShell::GetNext().

Referenced by fill().

bool ScFormulaDlg::IsRefInputMode ( ) const
overridevirtual
bool ScFormulaDlg::IsTableLocked ( ) const
overridevirtual

Implements IAnyRefDialog.

Definition at line 518 of file formula.cxx.

void ScFormulaDlg::notifyChange ( )
overridevirtual
void ScFormulaDlg::RefInputDone ( bool  bForced = false)
overridevirtual
void ScFormulaDlg::RefInputStart ( formula::RefEdit pEdit,
formula::RefButton pButton = nullptr 
)
overrideprivatevirtual
void ScFormulaDlg::ReleaseFocus ( formula::RefEdit pEdit)
overridevirtual
void ScFormulaDlg::SaveLRUEntry ( const ScFuncDesc pFuncDesc)
staticprivate

Definition at line 480 of file formula.cxx.

References ScModule::InsertEntryToLRUList(), ScFuncDesc::nFIndex, and SC_MOD.

Referenced by insertEntryToLRUList().

void ScFormulaDlg::SetActive ( )
overridevirtual
void ScFormulaDlg::setCurrentFormula ( const OUString &  _sReplacement)
overridevirtual
void ScFormulaDlg::setDispatcherLock ( bool  bLock)
overridevirtual
void ScFormulaDlg::SetReference ( const ScRange rRef,
ScDocument rD 
)
overridevirtual
void ScFormulaDlg::setSelection ( sal_Int32  _nStart,
sal_Int32  _nEnd 
)
overridevirtual

Implements formula::IFormulaEditorHelper.

Definition at line 631 of file formula.cxx.

References ScModule::InputSetSelection(), and SC_MOD.

void ScFormulaDlg::showReference ( const OUString &  _sFormula)
overridevirtual

Implements formula::IFormulaEditorHelper.

Definition at line 498 of file formula.cxx.

References ShowReference().

void ScFormulaDlg::ShowReference ( const OUString &  _sRef)
overridevirtual

Implements formula::IControlReferenceHandler.

Definition at line 502 of file formula.cxx.

References m_aHelper, and ScFormulaReferenceHelper::ShowReference().

Referenced by showReference().

void ScFormulaDlg::switchBack ( )
overridevirtual
void ScFormulaDlg::ToggleCollapsed ( formula::RefEdit pEdit,
formula::RefButton pButton 
)
overridevirtual
void ScFormulaDlg::ViewShellChanged ( )
overridevirtual

Implements IAnyRefDialog.

Definition at line 510 of file formula.cxx.

References ScFormulaReferenceHelper::ViewShellChanged().

Member Data Documentation

ScFormulaReferenceHelper ScFormulaDlg::m_aHelper
private
ScAddress ScFormulaDlg::m_CursorPos
private
ScDocument* ScFormulaDlg::m_pDoc
private
ScTabViewShell* ScFormulaDlg::m_pViewShell
private
std::shared_ptr<ScCompiler> ScFormulaDlg::m_xCompiler
mutableprivate

Definition at line 45 of file formula.hxx.

Referenced by getCompiler().

css::uno::Reference< css::sheet::XFormulaOpCodeMapper> ScFormulaDlg::m_xOpCodeMapper
private

Definition at line 40 of file formula.hxx.

Referenced by getFormulaOpCodeMapper(), and ScFormulaDlg().

css::uno::Reference< css::sheet::XFormulaParser> ScFormulaDlg::m_xParser
private

Definition at line 39 of file formula.hxx.

Referenced by getFormulaParser(), and ScFormulaDlg().


The documentation for this class was generated from the following files: