LibreOffice Module formula (master) 1
Public Member Functions | Private Attributes | List of all members
formula::FormulaHelper Class Reference

#include <formulahelper.hxx>

Collaboration diagram for formula::FormulaHelper:
[legend]

Public Member Functions

 FormulaHelper (const IFunctionManager *_pFunctionManager)
 
const CharClassGetCharClass () 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 CharClassm_rCharClass
 
const IFunctionManagerm_pFunctionManager
 
const sal_Unicode open
 
const sal_Unicode close
 
const sal_Unicode sep
 
const sal_Unicode arrayOpen
 
const sal_Unicode arrayClose
 

Detailed Description

Definition at line 38 of file formulahelper.hxx.

Constructor & Destructor Documentation

◆ FormulaHelper()

formula::FormulaHelper::FormulaHelper ( const IFunctionManager _pFunctionManager)

Definition at line 63 of file FormulaHelper.cxx.

References close, and eOk.

Member Function Documentation

◆ FillArgStrings()

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().

◆ GetArgStart()

sal_Int32 formula::FormulaHelper::GetArgStart ( std::u16string_view  rFormula,
sal_Int32  nStart,
sal_uInt16  nArg 
) const

◆ GetArgStrings()

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().

◆ GetCategoryCount()

sal_Int32 formula::FormulaHelper::GetCategoryCount ( ) const

◆ GetCharClass()

const CharClass & formula::FormulaHelper::GetCharClass ( ) const
inline

Definition at line 51 of file formulahelper.hxx.

Referenced by formula::FormulaDlg_Impl::GetFunctionPos().

◆ GetFunctionEnd()

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().

◆ GetFunctionStart()

sal_Int32 formula::FormulaHelper::GetFunctionStart ( const OUString &  rFormula,
sal_Int32  nStart,
bool  bBack,
OUString *  pFuncName = nullptr 
) const

◆ GetNextFunc()

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

Member Data Documentation

◆ arrayClose

const sal_Unicode formula::FormulaHelper::arrayClose
private

Definition at line 47 of file formulahelper.hxx.

Referenced by GetArgStart(), and GetFunctionEnd().

◆ arrayOpen

const sal_Unicode formula::FormulaHelper::arrayOpen
private

Definition at line 46 of file formulahelper.hxx.

Referenced by GetArgStart(), and GetFunctionEnd().

◆ close

const sal_Unicode formula::FormulaHelper::close
private

Definition at line 44 of file formulahelper.hxx.

Referenced by GetArgStart(), and GetFunctionEnd().

◆ m_aSysLocale

SvtSysLocale formula::FormulaHelper::m_aSysLocale
private

Definition at line 40 of file formulahelper.hxx.

◆ m_pFunctionManager

const IFunctionManager* formula::FormulaHelper::m_pFunctionManager
private

Definition at line 42 of file formulahelper.hxx.

Referenced by GetCategoryCount().

◆ m_rCharClass

const CharClass& formula::FormulaHelper::m_rCharClass
private

Definition at line 41 of file formulahelper.hxx.

Referenced by GetFunctionStart().

◆ open

const sal_Unicode formula::FormulaHelper::open
private

Definition at line 43 of file formulahelper.hxx.

Referenced by GetArgStart(), and GetFunctionEnd().

◆ sep

const sal_Unicode formula::FormulaHelper::sep
private

Definition at line 45 of file formulahelper.hxx.

Referenced by GetArgStart(), and GetFunctionEnd().


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