25#include <bitmaps.hlst>
36 : m_xBuilder(
Application::CreateBuilder(pParent,
"formula/ui/structpage.ui"))
38 , m_xTlbStruct(m_xBuilder->weld_tree_view(
"struct"))
39 , maImgEnd(BMP_STR_END)
40 , maImgError(BMP_STR_ERROR)
41 , pSelectedToken(nullptr)
61 sal_uInt16 nFlag,
int nPos,
92 if (bEntry && pParent)
115 std::unique_ptr<weld::TreeIter> xParent(
m_xTlbStruct->make_iterator(pEntry));
130 if (!GetActiveFlag())
133 if (&rTlb == m_xTlbStruct.get())
135 std::unique_ptr<weld::TreeIter> xCurEntry(m_xTlbStruct->make_iterator());
136 if (m_xTlbStruct->get_cursor(xCurEntry.get()))
138 pSelectedToken = weld::fromId<const FormulaToken*>(m_xTlbStruct->get_id(*xCurEntry));
141 if ( !(pSelectedToken->IsFunction() || pSelectedToken->GetParamCount() > 1) )
143 pSelectedToken = GetFunctionEntry(xCurEntry.get());
149 aSelLink.Call(*
this);
OUString GetEntryText(const weld::TreeIter *pEntry) const
std::unique_ptr< weld::TreeView > m_xTlbStruct
StructPage(weld::Container *pParent)
bool InsertEntry(const OUString &rText, const weld::TreeIter *pParent, sal_uInt16 nFlag, int nPos, const FormulaToken *pIFormulaToken, weld::TreeIter &rRet)
const FormulaToken * GetFunctionEntry(const weld::TreeIter *pEntry)
void SetActiveFlag(bool bFlag)
#define LINK(Instance, Class, Member)
OUString toId(const void *pValue)
Reference< XNameAccess > m_xContainer