summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/inc')
-rw-r--r--sc/source/ui/inc/linkarea.hxx47
1 files changed, 20 insertions, 27 deletions
diff --git a/sc/source/ui/inc/linkarea.hxx b/sc/source/ui/inc/linkarea.hxx
index e0fef1f20f9e..564568419d30 100644
--- a/sc/source/ui/inc/linkarea.hxx
+++ b/sc/source/ui/inc/linkarea.hxx
@@ -20,12 +20,7 @@
#ifndef INCLUDED_SC_SOURCE_UI_INC_LINKAREA_HXX
#define INCLUDED_SC_SOURCE_UI_INC_LINKAREA_HXX
-#include <vcl/dialog.hxx>
-
-#include <vcl/button.hxx>
-#include <vcl/field.hxx>
-#include <vcl/fixed.hxx>
-#include <vcl/lstbox.hxx>
+#include <vcl/weld.hxx>
#include <sfx2/objsh.hxx>
#include <svtools/inettbc.hxx>
@@ -34,27 +29,26 @@ namespace sfx2 { class FileDialogHelper; }
class ScDocShell;
-class ScLinkedAreaDlg : public ModalDialog
+class ScLinkedAreaDlg : public weld::GenericDialogController
{
private:
- VclPtr<SvtURLBox> m_pCbUrl;
- VclPtr<PushButton> m_pBtnBrowse;
- VclPtr<ListBox> m_pLbRanges;
- VclPtr<CheckBox> m_pBtnReload;
- VclPtr<NumericField> m_pNfDelay;
- VclPtr<FixedText> m_pFtSeconds;
- VclPtr<OKButton> m_pBtnOk;
-
- ScDocShell* pSourceShell;
- std::unique_ptr<sfx2::DocumentInserter> pDocInserter;
-
+ ScDocShell* m_pSourceShell;
+ std::unique_ptr<sfx2::DocumentInserter> m_xDocInserter;
SfxObjectShellRef aSourceRef;
- DECL_LINK(FileHdl, ComboBox&, void);
- DECL_LINK(BrowseHdl, Button*, void);
- DECL_LINK(RangeHdl, ListBox&, void);
- DECL_LINK(ReloadHdl, Button*, void);
- DECL_LINK( DialogClosedHdl, sfx2::FileDialogHelper*, void );
+ std::unique_ptr<URLBox> m_xCbUrl;
+ std::unique_ptr<weld::Button> m_xBtnBrowse;
+ std::unique_ptr<weld::TreeView> m_xLbRanges;
+ std::unique_ptr<weld::CheckButton> m_xBtnReload;
+ std::unique_ptr<weld::SpinButton> m_xNfDelay;
+ std::unique_ptr<weld::Label> m_xFtSeconds;
+ std::unique_ptr<weld::Button> m_xBtnOk;
+
+ DECL_LINK(FileHdl, weld::ComboBoxText&, void);
+ DECL_LINK(BrowseHdl, weld::Button&, void);
+ DECL_LINK(RangeHdl, weld::TreeView&, void);
+ DECL_LINK(ReloadHdl, weld::Button&, void);
+ DECL_LINK(DialogClosedHdl, sfx2::FileDialogHelper*, void);
void UpdateSourceRanges();
void UpdateEnable();
@@ -62,9 +56,8 @@ private:
const OUString& rOptions );
public:
- ScLinkedAreaDlg( vcl::Window* pParent );
- virtual ~ScLinkedAreaDlg() override;
- virtual void dispose() override;
+ ScLinkedAreaDlg(weld::Window* pParent);
+ virtual ~ScLinkedAreaDlg() override;
void InitFromOldLink( const OUString& rFile, const OUString& rFilter,
const OUString& rOptions, const OUString& rSource,
@@ -74,7 +67,7 @@ public:
OUString GetFilter(); // may be empty
OUString GetOptions(); // filter options
OUString GetSource(); // separated by ";"
- sal_uLong GetRefresh(); // 0 if disabled
+ sal_uLong GetRefresh(); // 0 if disabled
};
#endif