11#include <com/sun/star/lang/IllegalArgumentException.hpp>
16using namespace css::uno;
22 const css::uno::Reference<css::frame::XFrame>& rxFrame)
24 if (pParent ==
nullptr)
25 throw lang::IllegalArgumentException(
"no parent Window given to StylesPropertyPanel::Create",
nullptr, 0);
27 throw lang::IllegalArgumentException(
"no XFrame given to StylesPropertyPanel::Create",
nullptr, 1);
29 return std::make_unique<StylesPropertyPanel>(pParent, rxFrame);
33 :
PanelLayout(pParent,
"SidebarStylesPanel",
"svx/ui/sidebarstylespanel.ui")
34 , m_xFontStyle(m_xBuilder->weld_toolbar(
"fontstyletoolbox"))
36 , m_xStyle(m_xBuilder->weld_toolbar(
"style"))