diff options
author | Eike Rathke <erack@redhat.com> | 2017-07-10 18:33:22 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-07-10 21:15:28 +0200 |
commit | 741f61d0ca70069e875f6f57bf08d9aa282c0676 (patch) | |
tree | d28b7f48ede251aa9f422fc6acaf52403f947850 /sc/source/ui/formdlg | |
parent | f6574be0e375e215e6f21830b9e09d77d01b5097 (diff) |
Introduce IFormulaEditorHelper::getCompiler()
Implemented at rptui::FormulaDialog as nullptr and at ScFormulaDlg as ScCompiler*
Change-Id: I0edaca56f5d9e3505ed766d43bc9ee4af80f03ff
Diffstat (limited to 'sc/source/ui/formdlg')
-rw-r--r-- | sc/source/ui/formdlg/formula.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/source/ui/formdlg/formula.cxx b/sc/source/ui/formdlg/formula.cxx index ac8b3369fe4a..547ee391919c 100644 --- a/sc/source/ui/formdlg/formula.cxx +++ b/sc/source/ui/formdlg/formula.cxx @@ -373,6 +373,13 @@ bool ScFormulaDlg::calculateValue( const OUString& rStrExp, OUString& rStrResult return true; } +std::shared_ptr<formula::FormulaCompiler> ScFormulaDlg::getCompiler() const +{ + if (!m_xCompiler) + m_xCompiler.reset( new ScCompiler( m_pDoc, m_CursorPos, m_pDoc->GetGrammar())); + return m_xCompiler; +} + // virtual methods of ScAnyRefDlg: void ScFormulaDlg::RefInputStart( formula::RefEdit* pEdit, formula::RefButton* pButton ) { |