From 810cfc0106ae0b1874681f7a8c79c36186aefcca Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 2 Mar 2018 16:28:51 +0000 Subject: weld convert text-to-table/table-to-text dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I81137c0fe0b0e243ebc5b836ac09448d746b2214 Reviewed-on: https://gerrit.libreoffice.org/50644 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sw/source/uibase/inc/convert.hxx | 53 ++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 27 deletions(-) (limited to 'sw/source/uibase/inc/convert.hxx') diff --git a/sw/source/uibase/inc/convert.hxx b/sw/source/uibase/inc/convert.hxx index 15fc35be7ab8..6ae9a8e699c9 100644 --- a/sw/source/uibase/inc/convert.hxx +++ b/sw/source/uibase/inc/convert.hxx @@ -19,52 +19,51 @@ #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_CONVERT_HXX #define INCLUDED_SW_SOURCE_UIBASE_INC_CONVERT_HXX -#include -#include -#include -#include +#include class VclContainer; class SwTableAutoFormat; class SwView; class SwWrtShell; -class NumericField; struct SwInsertTableOptions; -class SwConvertTableDlg: public SfxModalDialog +class SwConvertTableDlg { - VclPtr mpTabBtn; - VclPtr mpSemiBtn; - VclPtr mpParaBtn; - VclPtr mpOtherBtn; - VclPtr mpOtherEd; - VclPtr mpKeepColumn; + std::unique_ptr m_xBuilder; + std::unique_ptr m_xDialog; - VclPtr mpOptions; + std::unique_ptr m_xTabBtn; + std::unique_ptr m_xSemiBtn; + std::unique_ptr m_xParaBtn; + std::unique_ptr m_xOtherBtn; + std::unique_ptr m_xOtherEd; + std::unique_ptr m_xKeepColumn; - VclPtr mpHeaderCB; - VclPtr mpRepeatHeaderCB; + std::unique_ptr m_xOptions; - VclPtr mpRepeatRows; - VclPtr mpRepeatHeaderNF; + std::unique_ptr m_xHeaderCB; + std::unique_ptr m_xRepeatHeaderCB; - VclPtr mpDontSplitCB; - VclPtr mpBorderCB; - VclPtr mpAutoFormatBtn; + std::unique_ptr m_xRepeatRows; + std::unique_ptr m_xRepeatHeaderNF; + + std::unique_ptr m_xDontSplitCB; + std::unique_ptr m_xBorderCB; + std::unique_ptr m_xAutoFormatBtn; OUString sConvertTextTable; std::unique_ptr mxTAutoFormat; SwWrtShell* pShell; - DECL_LINK( AutoFormatHdl, Button*, void ); - DECL_LINK( BtnHdl, Button*, void ); - DECL_LINK( CheckBoxHdl, Button*, void ); - DECL_LINK( ReapeatHeaderCheckBoxHdl, Button*, void ); + DECL_LINK(AutoFormatHdl, weld::Button&, void); + DECL_LINK(BtnHdl, weld::Button&, void); + DECL_LINK(CheckBoxHdl, weld::Button&, void); + DECL_LINK(ReapeatHeaderCheckBoxHdl, weld::Button&, void); public: - SwConvertTableDlg( SwView& rView, bool bToTable ); - virtual ~SwConvertTableDlg() override; - virtual void dispose() override; + SwConvertTableDlg(SwView& rView, bool bToTable); + + short run() { return m_xDialog->run(); } void GetValues( sal_Unicode& rDelim, SwInsertTableOptions& rInsTableOpts, -- cgit v1.2.3