22#include <com/sun/star/lang/IllegalArgumentException.hpp>
27using namespace css::uno;
34 const css::uno::Reference<css::frame::XFrame>& rxFrame)
35 :
PanelLayout(pParent,
"FontworkPropertyPanel",
"svx/ui/sidebarfontwork.ui")
36 , m_pToolbar(m_xBuilder->weld_toolbar(
"fontwork-toolbox"))
40 m_pToolbar->set_item_visible(
".uno:ExtrusionToggle",
false);
43std::unique_ptr<PanelLayout>
45 const css::uno::Reference<css::frame::XFrame>& rxFrame)
47 if (pParent ==
nullptr)
48 throw lang::IllegalArgumentException(
49 "no parent Window given to FontworkPropertyPanel::Create",
nullptr, 0);
51 throw lang::IllegalArgumentException(
"no XFrame given to FontworkPropertyPanel::Create",
54 return std::make_unique<FontworkPropertyPanel>(pParent, rxFrame);