summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/mvtabdlg.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-05-01 16:03:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-05-01 21:23:32 +0200
commitab4609c8f9756e4fe6959a10e54ebee9105edbf7 (patch)
treeaf85710d0826cba013b52f72b9033dc5ad0dc1ba /sc/source/ui/inc/mvtabdlg.hxx
parent43af818557904450b13839350c65ad865b9ee9d2 (diff)
weld ScMoveTableDlg
Change-Id: I4d5601d0fb02a20bf6c83fc10411f610bdb5ce32 Reviewed-on: https://gerrit.libreoffice.org/53698 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/inc/mvtabdlg.hxx')
-rw-r--r--sc/source/ui/inc/mvtabdlg.hxx38
1 files changed, 18 insertions, 20 deletions
diff --git a/sc/source/ui/inc/mvtabdlg.hxx b/sc/source/ui/inc/mvtabdlg.hxx
index 5a31e88dfc77..8f1acc65f6d3 100644
--- a/sc/source/ui/inc/mvtabdlg.hxx
+++ b/sc/source/ui/inc/mvtabdlg.hxx
@@ -21,18 +21,13 @@
#define INCLUDED_SC_SOURCE_UI_INC_MVTABDLG_HXX
#include <address.hxx>
-#include <vcl/dialog.hxx>
-#include <vcl/button.hxx>
-#include <vcl/lstbox.hxx>
-#include <vcl/fixed.hxx>
-#include <vcl/edit.hxx>
+#include <vcl/weld.hxx>
-class ScMoveTableDlg : public ModalDialog
+class ScMoveTableDlg : public weld::GenericDialogController
{
public:
- ScMoveTableDlg(vcl::Window* pParent, const OUString& rDefault);
+ ScMoveTableDlg(weld::Window* pParent, const OUString& rDefault);
virtual ~ScMoveTableDlg() override;
- virtual void dispose() override;
sal_uInt16 GetSelectedDocument () const { return nDocument; }
SCTAB GetSelectedTable () const { return nTable; }
@@ -48,14 +43,6 @@ private:
ScDocument* GetSelectedDoc();
private:
- VclPtr<RadioButton> pBtnMove;
- VclPtr<RadioButton> pBtnCopy;
- VclPtr<ListBox> pLbDoc;
- VclPtr<ListBox> pLbTable;
- VclPtr<Edit> pEdTabName;
- VclPtr<FixedText> pFtWarn;
- VclPtr<OKButton> pBtnOk;
-
OUString msCurrentDoc;
OUString msNewDoc;
@@ -72,12 +59,23 @@ private:
bool bRenameTable:1;
bool mbEverEdited:1;
+ std::unique_ptr<weld::RadioButton> m_xBtnMove;
+ std::unique_ptr<weld::RadioButton> m_xBtnCopy;
+ std::unique_ptr<weld::ComboBoxText> m_xLbDoc;
+ std::unique_ptr<weld::TreeView> m_xLbTable;
+ std::unique_ptr<weld::Entry> m_xEdTabName;
+ std::unique_ptr<weld::Label> m_xFtWarn;
+ std::unique_ptr<weld::Button> m_xBtnOk;
+ std::unique_ptr<weld::Label> m_xUnusedLabel;
+ std::unique_ptr<weld::Label> m_xEmptyLabel;
+ std::unique_ptr<weld::Label> m_xInvalidLabel;
+
void Init ();
void InitDocListBox ();
- DECL_LINK( OkHdl, Button*, void );
- DECL_LINK( SelHdl, ListBox&, void );
- DECL_LINK( CheckBtnHdl, RadioButton&, void );
- DECL_LINK( CheckNameHdl, Edit&, void );
+ DECL_LINK(OkHdl, weld::Button&, void);
+ DECL_LINK(SelHdl, weld::ComboBoxText&, void);
+ DECL_LINK(CheckBtnHdl, weld::ToggleButton&, void);
+ DECL_LINK(CheckNameHdl, weld::Entry&, void);
};
#endif // INCLUDED_SC_SOURCE_UI_INC_MVTABDLG_HXX