28#include <starmath.hrc>
39 return std::make_unique<SmElementsPanel>(rParent, rBindings);
43 :
PanelLayout(&rParent,
"MathElementsPanel",
"modules/smath/ui/sidebarelements_math.ui")
44 , mrBindings(rBindings)
45 , mxCategoryList(m_xBuilder->weld_combo_box(
"categorylist"))
68 const int nActive = rList.get_active();
71 mxElementsControl->setElementSetIndex(nActive);
73 mxElementsControl->setSmSyntaxVersion(pViewSh->GetDoc()->GetSmSyntaxVersion());
80 SfxStringItem aInsertCommand(SID_INSERTCOMMANDTEXT, ElementSource);
81 pViewSh->GetViewFrame().GetDispatcher()->ExecuteList(
82 SID_INSERTCOMMANDTEXT, SfxCallMode::RECORD, { &aInsertCommand });
vcl::Window * GetGraphicWindow()
SfxDispatcher * GetDispatcher() const
SfxViewFrame * GetFrame() const
SfxViewShell * GetViewShell() const
static const std::vector< TranslateId > & categories()
SmGraphicWidget & GetGraphicWidget()
#define LINK(Instance, Class, Member)
OUString SmResId(TranslateId aId)