From 16073ff56f792144bf262795869f7e5413eca8fc Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 29 Jul 2019 20:01:09 +0100 Subject: weld OfaViewTabPage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I259e10ad8bdf3d1630ab1d24590c43919a351a86 Reviewed-on: https://gerrit.libreoffice.org/76567 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- cui/source/options/optgdlg.hxx | 57 +++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 29 deletions(-) (limited to 'cui/source/options/optgdlg.hxx') diff --git a/cui/source/options/optgdlg.hxx b/cui/source/options/optgdlg.hxx index c1ab0bc765af..e9d2666ec633 100644 --- a/cui/source/options/optgdlg.hxx +++ b/cui/source/options/optgdlg.hxx @@ -78,31 +78,6 @@ class SvtTabAppearanceCfg; class OfaViewTabPage : public SfxTabPage { private: - VclPtr m_pIconSizeLB; - VclPtr m_pSidebarIconSizeLB; - VclPtr m_pNotebookbarIconSizeLB; - VclPtr m_pIconStyleLB; - - VclPtr m_pFontAntiAliasing; - VclPtr m_pAAPointLimitLabel; - VclPtr m_pAAPointLimit; - - VclPtr m_pMenuIconsLB; - VclPtr m_pContextMenuShortcutsLB; - - VclPtr m_pFontShowCB; - - VclPtr m_pUseHardwareAccell; - VclPtr m_pUseAntiAliase; - VclPtr m_pUseOpenGL; - VclPtr m_pForceOpenGL; - - VclPtr m_pOpenGLStatusEnabled; - VclPtr m_pOpenGLStatusDisabled; - - VclPtr m_pMousePosLB; - VclPtr m_pMouseMiddleLB; - sal_Int32 nSizeLB_InitialSelection; sal_Int32 nSidebarSizeLB_InitialSelection; sal_Int32 nNotebookbarSizeLB_InitialSelection; @@ -115,16 +90,40 @@ private: std::vector mInstalledIconThemes; + std::unique_ptr m_xIconSizeLB; + std::unique_ptr m_xSidebarIconSizeLB; + std::unique_ptr m_xNotebookbarIconSizeLB; + std::unique_ptr m_xIconStyleLB; + + std::unique_ptr m_xFontAntiAliasing; + std::unique_ptr m_xAAPointLimitLabel; + std::unique_ptr m_xAAPointLimit; + + std::unique_ptr m_xMenuIconsLB; + std::unique_ptr m_xContextMenuShortcutsLB; + + std::unique_ptr m_xFontShowCB; + + std::unique_ptr m_xUseHardwareAccell; + std::unique_ptr m_xUseAntiAliase; + std::unique_ptr m_xUseOpenGL; + std::unique_ptr m_xForceOpenGL; + + std::unique_ptr m_xOpenGLStatusEnabled; + std::unique_ptr m_xOpenGLStatusDisabled; + + std::unique_ptr m_xMousePosLB; + std::unique_ptr m_xMouseMiddleLB; + #if defined( UNX ) - DECL_LINK( OnAntialiasingToggled, CheckBox&, void ); + DECL_LINK(OnAntialiasingToggled, weld::ToggleButton&, void); #endif - DECL_LINK(OnForceOpenGLToggled, CheckBox&, void); + DECL_LINK(OnForceOpenGLToggled, weld::ToggleButton&, void); void UpdateOGLStatus(); public: - OfaViewTabPage( vcl::Window* pParent, const SfxItemSet& rSet ); + OfaViewTabPage(TabPageParent pParent, const SfxItemSet& rSet); virtual ~OfaViewTabPage() override; - virtual void dispose() override; static VclPtr Create( TabPageParent pParent, const SfxItemSet* rAttrSet ); -- cgit