|
LibreOffice Module formula (master) 1
|
#include <formulahelper.hxx>
Public Member Functions | |
| FormulaHelper (const IFunctionManager *_pFunctionManager) | |
| const CharClass & | GetCharClass () const |
| sal_Int32 | GetCategoryCount () const |
| bool | GetNextFunc (const OUString &rFormula, bool bBack, sal_Int32 &rFStart, sal_Int32 *pFEnd=nullptr, const IFunctionDescription **ppFDesc=nullptr, ::std::vector< OUString > *pArgs=nullptr) const |
| sal_Int32 | GetFunctionStart (const OUString &rFormula, sal_Int32 nStart, bool bBack, OUString *pFuncName=nullptr) const |
| sal_Int32 | GetFunctionEnd (std::u16string_view rFormula, sal_Int32 nStart) const |
| sal_Int32 | GetArgStart (std::u16string_view rFormula, sal_Int32 nStart, sal_uInt16 nArg) const |
| void | GetArgStrings (::std::vector< OUString > &_rArgs, std::u16string_view rFormula, sal_Int32 nFuncPos, sal_uInt16 nArgs) const |
| void | FillArgStrings (std::u16string_view rFormula, sal_Int32 nFuncPos, sal_uInt16 nArgs, ::std::vector< OUString > &_rArgs) const |
Private Attributes | |
| SvtSysLocale | m_aSysLocale |
| const CharClass & | m_rCharClass |
| const IFunctionManager * | m_pFunctionManager |
| const sal_Unicode | open |
| const sal_Unicode | close |
| const sal_Unicode | sep |
| const sal_Unicode | arrayOpen |
| const sal_Unicode | arrayClose |
Definition at line 38 of file formulahelper.hxx.
| formula::FormulaHelper::FormulaHelper | ( | const IFunctionManager * | _pFunctionManager | ) |
Definition at line 63 of file FormulaHelper.cxx.
| void formula::FormulaHelper::FillArgStrings | ( | std::u16string_view | rFormula, |
| sal_Int32 | nFuncPos, | ||
| sal_uInt16 | nArgs, | ||
| ::std::vector< OUString > & | _rArgs | ||
| ) | const |
Definition at line 133 of file FormulaHelper.cxx.
References GetArgStart(), GetFunctionEnd(), and i.
Referenced by GetArgStrings().
| sal_Int32 formula::FormulaHelper::GetArgStart | ( | std::u16string_view | rFormula, |
| sal_Int32 | nStart, | ||
| sal_uInt16 | nArg | ||
| ) | const |
Definition at line 360 of file FormulaHelper.cxx.
References arrayClose, arrayOpen, close, open, and sep.
Referenced by formula::FormulaDlg_Impl::EditNextFunc(), FillArgStrings(), formula::FormulaDlg_Impl::FillControls(), and formula::FormulaDlg_Impl::UpdateSelection().
| void formula::FormulaHelper::GetArgStrings | ( | ::std::vector< OUString > & | _rArgs, |
| std::u16string_view | rFormula, | ||
| sal_Int32 | nFuncPos, | ||
| sal_uInt16 | nArgs | ||
| ) | const |
Definition at line 175 of file FormulaHelper.cxx.
References FillArgStrings().
| sal_Int32 formula::FormulaHelper::GetCategoryCount | ( | ) | const |
Definition at line 74 of file FormulaHelper.cxx.
References formula::IFunctionManager::getCount(), and m_pFunctionManager.
Referenced by formula::FormulaDlg_Impl::FillListboxes().
|
inline |
Definition at line 51 of file formulahelper.hxx.
Referenced by formula::FormulaDlg_Impl::GetFunctionPos().
| sal_Int32 formula::FormulaHelper::GetFunctionEnd | ( | std::u16string_view | rFormula, |
| sal_Int32 | nStart | ||
| ) | const |
Definition at line 301 of file FormulaHelper.cxx.
References arrayClose, arrayOpen, close, open, and sep.
Referenced by FillArgStrings(), and formula::FormulaDlg_Impl::FormulaCursor().
| sal_Int32 formula::FormulaHelper::GetFunctionStart | ( | const OUString & | rFormula, |
| sal_Int32 | nStart, | ||
| bool | bBack, | ||
| OUString * | pFuncName = nullptr |
||
| ) | const |
Definition at line 200 of file FormulaHelper.cxx.
References FUNC_NOTFOUND, formula::IsFormulaText(), and m_rCharClass.
Referenced by formula::FormulaDlg_Impl::FormulaCursor().
| bool formula::FormulaHelper::GetNextFunc | ( | const OUString & | rFormula, |
| bool | bBack, | ||
| sal_Int32 & | rFStart, | ||
| sal_Int32 * | pFEnd = nullptr, |
||
| const IFunctionDescription ** | ppFDesc = nullptr, |
||
| ::std::vector< OUString > * | pArgs = nullptr |
||
| ) | const |
Definition at line 79 of file FormulaHelper.cxx.
References FUNC_NOTFOUND, formula::IFunctionCategory::getCount(), formula::IFunctionCategory::getFunction(), formula::IFunctionDescription::getFunctionName(), i, and nCount.
Referenced by formula::FormulaDlg_Impl::EditNextFunc(), formula::FormulaDlg_Impl::EditThisFunc(), formula::FormulaDlg_Impl::FillControls(), and formula::FormulaDlg_Impl::GetPrevFuncExpression().
|
private |
Definition at line 47 of file formulahelper.hxx.
Referenced by GetArgStart(), and GetFunctionEnd().
|
private |
Definition at line 46 of file formulahelper.hxx.
Referenced by GetArgStart(), and GetFunctionEnd().
|
private |
Definition at line 44 of file formulahelper.hxx.
Referenced by GetArgStart(), and GetFunctionEnd().
|
private |
Definition at line 40 of file formulahelper.hxx.
|
private |
Definition at line 42 of file formulahelper.hxx.
Referenced by GetCategoryCount().
|
private |
Definition at line 41 of file formulahelper.hxx.
Referenced by GetFunctionStart().
|
private |
Definition at line 43 of file formulahelper.hxx.
Referenced by GetArgStart(), and GetFunctionEnd().
|
private |
Definition at line 45 of file formulahelper.hxx.
Referenced by GetArgStart(), and GetFunctionEnd().