32 if (rKEvt.GetCharCode() ==
' ')
34 aDoubleClickLink.Call(*
this);
44 : m_xBuilder(
Application::CreateBuilder(pParent,
"formula/ui/functionpage.ui"))
45 ,
m_xContainer(m_xBuilder->weld_container(
"FunctionPage"))
46 , m_xLbCategory(m_xBuilder->weld_combo_box(
"category"))
47 , m_xLbFunction(m_xBuilder->weld_tree_view(
"function"))
48 , m_xLbFunctionSearchString(m_xBuilder->weld_entry(
"search"))
49 , m_pFunctionManager(_pFunctionManager)
57 for (sal_uInt32 j = 0; j < nCategoryCount; ++j)
106 if (
aStr.isEmpty() || nSelPos == 0)
109 = weld::fromId<const IFunctionCategory*>(
m_xLbCategory->get_id(nSelPos));
113 if (pCategory ==
nullptr)
147 const sal_Int32 nCategoryOffset =
m_xLbCategory->get_count() - nCategoryCount;
150 sal_Int32 nCatBeg = (nSelPos == -1 ? -1 : nSelPos - nCategoryOffset);
155 nCatEnd = nCategoryCount;
159 nCatEnd = nCatBeg + 1;
161 for (sal_uInt32
i = nCatBeg;
i < nCatEnd; ++
i)
164 const sal_uInt32 nFunctionCount = pCategory->
getCount();
165 for (sal_uInt32 j = 0; j < nFunctionCount; ++j)
193 OUString searchStr = m_xLbFunctionSearchString->get_text();
194 m_xLbFunction->set_help_id(m_aHelpId);
195 UpdateFunctionList(searchStr);
203 const OUString sHelpId = pDesc->
getHelpId();
204 if (!sHelpId.isEmpty())
205 m_xLbFunction->set_help_id(sHelpId);
207 aSelectionLink.Call(*
this);
212 aDoubleClickLink.Call(*
this);
219 m_xLbCategory->set_active(1);
220 OUString searchStr = m_xLbFunctionSearchString->get_text();
221 UpdateFunctionList(searchStr);
OUString uppercase(const OUString &rStr, sal_Int32 nPos, sal_Int32 nCount) const
const CharClass & GetCharClass() const
static sal_Int32 m_nRememberedFunctionCategory
std::unique_ptr< weld::Entry > m_xLbFunctionSearchString
const IFunctionManager * m_pFunctionManager
std::unique_ptr< weld::ComboBox > m_xLbCategory
std::unique_ptr< weld::TreeView > m_xLbFunction
sal_Int32 GetCategoryEntryCount() const
OUString GetSelFunctionName() const
::std::vector< TFunctionDesc > aLRUList
void impl_addFunctions(const IFunctionCategory *_pCategory)
sal_Int32 GetFunctionEntryCount() const
sal_Int32 GetFuncPos(const IFunctionDescription *_pDesc)
void UpdateFunctionList(const OUString &)
sal_Int32 GetCategory() const
void SetFunction(sal_Int32 nFunc)
FuncPage(weld::Container *pContainer, const IFunctionManager *_pFunctionManager)
const IFunctionDescription * GetFuncDesc(sal_Int32 nPos) const
void SetCategory(sal_Int32 nCat)
sal_Int32 GetFunction() const
#define LINK(Instance, Class, Member)
OUString toId(const void *pValue)
Reference< XNameAccess > m_xContainer