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 &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::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
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 FormEditDatagetFormEditData () const=0
 
virtual bool calculateValue (const OUString &_sExpression, OUString &_rResult, bool bMatrixFormula)=0
 
virtual std::shared_ptr< FormulaCompilergetCompiler () const=0
 
virtual std::unique_ptr< FormulaCompilercreateCompiler (FormulaTokenArray &rArray) const=0
 
virtual void switchBack ()=0
 
virtual void clear ()=0
 
virtual void deleteFormData ()=0
 
virtual IFunctionManagergetFunctionManager ()=0
 
virtual ::std::unique_ptr< FormulaTokenArrayconvertToTokenArray (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 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 ()
 

Detailed Description

Definition at line 35 of file formula.hxx.

Constructor & Destructor Documentation

◆ ScFormulaDlg()

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

◆ ~ScFormulaDlg()

ScFormulaDlg::~ScFormulaDlg ( )
overridevirtual

Member Function Documentation

◆ AddRefEntry()

void ScFormulaDlg::AddRefEntry ( )
overridevirtual

Definition at line 532 of file formula.cxx.

◆ calculateValue()

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

◆ clear()

void ScFormulaDlg::clear ( )
overridevirtual

◆ Close()

void ScFormulaDlg::Close ( )
overridevirtual

Definition at line 287 of file formula.cxx.

References formula::FormulaDlg::DoEnter().

◆ convertToTokenArray()

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

◆ createCompiler()

std::unique_ptr< formula::FormulaCompiler > ScFormulaDlg::createCompiler ( formula::FormulaTokenArray rArray) const
overridevirtual

Implements formula::IFormulaEditorHelper.

Definition at line 368 of file formula.cxx.

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

◆ deleteFormData()

void ScFormulaDlg::deleteFormData ( )
overridevirtual

Implements formula::IFormulaEditorHelper.

Definition at line 575 of file formula.cxx.

References ScTabViewShell::ClearFormEditData(), and m_pViewShell.

◆ dispatch()

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

◆ doClose()

void ScFormulaDlg::doClose ( bool  _bOk)
overridevirtual

Implements formula::IFormulaEditorHelper.

Definition at line 507 of file formula.cxx.

References ScFormulaReferenceHelper::DoClose(), and m_aHelper.

◆ fill()

void ScFormulaDlg::fill ( )
overridevirtual

◆ getCompiler()

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

Implements formula::IFormulaEditorHelper.

Definition at line 361 of file formula.cxx.

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

◆ getCurrentFormula()

OUString ScFormulaDlg::getCurrentFormula ( ) const
overridevirtual

Implements formula::IFormulaEditorHelper.

Definition at line 659 of file formula.cxx.

References ScTabViewShell::GetFormEditData(), m_pViewShell, and pData.

Referenced by dispatch().

◆ getFormEditData()

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

Implements formula::IFormulaEditorHelper.

Definition at line 620 of file formula.cxx.

References ScTabViewShell::GetFormEditData(), and m_pViewShell.

Referenced by fill().

◆ getFormulaOpCodeMapper()

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

Implements formula::IFormulaEditorHelper.

Definition at line 674 of file formula.cxx.

References m_xOpCodeMapper.

◆ getFormulaParser()

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

Implements formula::IFormulaEditorHelper.

Definition at line 670 of file formula.cxx.

References m_xParser.

◆ getFunctionManager()

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

Implements formula::IFormulaEditorHelper.

Definition at line 666 of file formula.cxx.

References ScGlobal::GetStarCalcFunctionMgr().

◆ GetNextInputHandler()

ScInputHandler * ScFormulaDlg::GetNextInputHandler ( const ScDocShell pDocShell,
ScTabViewShell **  ppViewSh 
)
staticprivate

◆ getReferencePosition()

table::CellAddress ScFormulaDlg::getReferencePosition ( ) const
overridevirtual

◆ getSelection()

void ScFormulaDlg::getSelection ( sal_Int32 &  _nStart,
sal_Int32 &  _nEnd 
) const
overridevirtual

Implements formula::IFormulaEditorHelper.

Definition at line 654 of file formula.cxx.

References ScModule::InputGetSelection(), and SC_MOD.

◆ HideReference()

void ScFormulaDlg::HideReference ( bool  bDoneRefMode = true)
overridevirtual

Definition at line 524 of file formula.cxx.

References ScFormulaReferenceHelper::HideReference(), and m_aHelper.

◆ insertEntryToLRUList()

void ScFormulaDlg::insertEntryToLRUList ( const formula::IFunctionDescription pDesc)
overridevirtual

Implements formula::IFormulaEditorHelper.

Definition at line 511 of file formula.cxx.

References SaveLRUEntry().

◆ IsDocAllowed()

bool ScFormulaDlg::IsDocAllowed ( SfxObjectShell pDocSh) const
overridevirtual

Definition at line 481 of file formula.cxx.

References SfxObjectShell::HasName(), and m_pDoc.

◆ IsInputHdl()

bool ScFormulaDlg::IsInputHdl ( const ScInputHandler pHdl)
staticprivate

Definition at line 249 of file formula.cxx.

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

Referenced by fill().

◆ IsRefInputMode()

bool ScFormulaDlg::IsRefInputMode ( ) const
overridevirtual

◆ IsTableLocked()

bool ScFormulaDlg::IsTableLocked ( ) const
overridevirtual

Definition at line 536 of file formula.cxx.

◆ notifyChange()

void ScFormulaDlg::notifyChange ( )
overridevirtual

◆ RefInputDone()

void ScFormulaDlg::RefInputDone ( bool  bForced = false)
overridevirtual

◆ RefInputStart()

void ScFormulaDlg::RefInputStart ( formula::RefEdit pEdit,
formula::RefButton pButton = nullptr 
)
overrideprivatevirtual

◆ ReleaseFocus()

void ScFormulaDlg::ReleaseFocus ( formula::RefEdit pEdit)
overridevirtual

Definition at line 547 of file formula.cxx.

References m_aHelper, and ScFormulaReferenceHelper::ReleaseFocus().

◆ SaveLRUEntry()

void ScFormulaDlg::SaveLRUEntry ( const ScFuncDesc pFuncDesc)
staticprivate

Definition at line 498 of file formula.cxx.

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

Referenced by insertEntryToLRUList().

◆ SetActive()

void ScFormulaDlg::SetActive ( )
overridevirtual

◆ setCurrentFormula()

void ScFormulaDlg::setCurrentFormula ( const OUString &  _sReplacement)
overridevirtual

◆ setDispatcherLock()

void ScFormulaDlg::setDispatcherLock ( bool  bLock)
overridevirtual

◆ SetReference()

void ScFormulaDlg::SetReference ( const ScRange rRef,
ScDocument rD 
)
overridevirtual

◆ setSelection()

void ScFormulaDlg::setSelection ( sal_Int32  _nStart,
sal_Int32  _nEnd 
)
overridevirtual

Implements formula::IFormulaEditorHelper.

Definition at line 649 of file formula.cxx.

References ScModule::InputSetSelection(), and SC_MOD.

◆ showReference()

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

Implements formula::IFormulaEditorHelper.

Definition at line 516 of file formula.cxx.

References ShowReference().

◆ ShowReference()

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

Definition at line 520 of file formula.cxx.

References m_aHelper, and ScFormulaReferenceHelper::ShowReference().

Referenced by showReference().

◆ switchBack()

void ScFormulaDlg::switchBack ( )
overridevirtual

◆ ToggleCollapsed()

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

Definition at line 542 of file formula.cxx.

References m_aHelper, and ScFormulaReferenceHelper::ToggleCollapsed().

◆ ViewShellChanged()

void ScFormulaDlg::ViewShellChanged ( )
overridevirtual

Definition at line 528 of file formula.cxx.

References ScFormulaReferenceHelper::ViewShellChanged().

Member Data Documentation

◆ m_aHelper

ScFormulaReferenceHelper ScFormulaDlg::m_aHelper
private

◆ m_CursorPos

ScAddress ScFormulaDlg::m_CursorPos
private

◆ m_pDoc

ScDocument* ScFormulaDlg::m_pDoc
private

◆ m_pViewShell

ScTabViewShell* ScFormulaDlg::m_pViewShell
private

◆ m_xCompiler

std::shared_ptr<ScCompiler> ScFormulaDlg::m_xCompiler
mutableprivate

Definition at line 45 of file formula.hxx.

Referenced by getCompiler().

◆ m_xOpCodeMapper

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

Definition at line 40 of file formula.hxx.

Referenced by getFormulaOpCodeMapper(), and ScFormulaDlg().

◆ m_xParser

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: