#include #include #include "StylesPropertyPanel.hxx" using namespace css; using namespace css::uno; namespace svx::sidebar { VclPtr StylesPropertyPanel::Create ( vcl::Window* pParent, const css::uno::Reference& rxFrame) { if (pParent == nullptr) throw lang::IllegalArgumentException("no parent Window given to StylesPropertyPanel::Create", nullptr, 0); if ( ! rxFrame.is()) throw lang::IllegalArgumentException("no XFrame given to StylesPropertyPanel::Create", nullptr, 1); return VclPtr::Create(pParent,rxFrame); } StylesPropertyPanel::StylesPropertyPanel ( vcl::Window* pParent, const css::uno::Reference& rxFrame ) : PanelLayout(pParent, "SidebarStylesPanel", "svx/ui/sidebarstylespanel.ui", rxFrame) , m_xFontStyle(m_xBuilder->weld_toolbar("fontstyletoolbox")) , m_xFontStyleDispatch(new ToolbarUnoDispatcher(*m_xFontStyle, *m_xBuilder, rxFrame)) , m_xStyle(m_xBuilder->weld_toolbar("style")) , m_xStyleDispatch(new ToolbarUnoDispatcher(*m_xStyle, *m_xBuilder, rxFrame)) { } StylesPropertyPanel::~StylesPropertyPanel() { disposeOnce(); } void StylesPropertyPanel::dispose() { m_xStyleDispatch.reset(); m_xStyle.reset(); m_xFontStyleDispatch.reset(); m_xFontStyle.reset(); PanelLayout::dispose(); } void StylesPropertyPanel::DataChanged( const DataChangedEvent& /*rEvent*/) { } }