summaryrefslogtreecommitdiff
path: root/svx/source/sidebar/styles/StylesPropertyPanel.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/sidebar/styles/StylesPropertyPanel.cxx')
-rw-r--r--svx/source/sidebar/styles/StylesPropertyPanel.cxx23
1 files changed, 5 insertions, 18 deletions
diff --git a/svx/source/sidebar/styles/StylesPropertyPanel.cxx b/svx/source/sidebar/styles/StylesPropertyPanel.cxx
index bbfa86190b8c..4e6b2235d104 100644
--- a/svx/source/sidebar/styles/StylesPropertyPanel.cxx
+++ b/svx/source/sidebar/styles/StylesPropertyPanel.cxx
@@ -17,8 +17,8 @@ using namespace css::uno;
namespace svx::sidebar {
-VclPtr<PanelLayout> StylesPropertyPanel::Create (
- vcl::Window* pParent,
+std::unique_ptr<PanelLayout> StylesPropertyPanel::Create (
+ weld::Widget* pParent,
const css::uno::Reference<css::frame::XFrame>& rxFrame)
{
if (pParent == nullptr)
@@ -26,37 +26,24 @@ VclPtr<PanelLayout> StylesPropertyPanel::Create (
if ( ! rxFrame.is())
throw lang::IllegalArgumentException("no XFrame given to StylesPropertyPanel::Create", nullptr, 1);
- return VclPtr<StylesPropertyPanel>::Create(pParent,rxFrame);
+ return std::make_unique<StylesPropertyPanel>(pParent, rxFrame);
}
-StylesPropertyPanel::StylesPropertyPanel ( vcl::Window* pParent, const css::uno::Reference<css::frame::XFrame>& rxFrame )
- : PanelLayout(pParent, "SidebarStylesPanel", "svx/ui/sidebarstylespanel.ui", rxFrame)
+StylesPropertyPanel::StylesPropertyPanel(weld::Widget* pParent, const css::uno::Reference<css::frame::XFrame>& rxFrame)
+ : PanelLayout(pParent, "SidebarStylesPanel", "svx/ui/sidebarstylespanel.ui")
, 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))
{
- m_pInitialFocusWidget = m_xFontStyle.get();
}
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*/)
-{
-
}
}