diff options
author | Jaskaran Singh <jvsg1303@gmail.com> | 2017-08-07 23:39:39 +0530 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-08-10 18:53:31 +0200 |
commit | 213a83ce46edf1b81f2285fd59f1d04935760caa (patch) | |
tree | 29355aa1f1242661d4055c8e561746473945931e /sc/source/ui/inc/dataproviderdlg.hxx | |
parent | 772686adb99137733db79b7d1ab6ebb21bf93b4a (diff) |
Add UI for the sc::dataprovider
Change-Id: I29acc8903d5694e46e7575133ee852bbaae6eeee
Reviewed-on: https://gerrit.libreoffice.org/40851
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source/ui/inc/dataproviderdlg.hxx')
-rw-r--r-- | sc/source/ui/inc/dataproviderdlg.hxx | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/sc/source/ui/inc/dataproviderdlg.hxx b/sc/source/ui/inc/dataproviderdlg.hxx new file mode 100644 index 000000000000..05e607157931 --- /dev/null +++ b/sc/source/ui/inc/dataproviderdlg.hxx @@ -0,0 +1,69 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_SC_SOURCE_UI_INC_DATAPROVIDERDLG_HXX +#define INCLUDED_SC_SOURCE_UI_INC_DATAPROVIDERDLG_HXX + +#include <sal/config.h> + +#include <rtl/ref.hxx> +#include <vcl/dialog.hxx> +#include <vcl/layout.hxx> + +#include "address.hxx" +#include "datamapper.hxx" +#include "dataprovider.hxx" + +class ScDocShell; +class SvtURLBox; +class ScRange; +class ComboBox; + +namespace sc { + +class DataProviderDlg : public ModalDialog +{ + ScDocShell *mpDocShell; + + VclPtr<SvtURLBox> m_pCbUrl; + VclPtr<PushButton> m_pBtnBrowse; + VclPtr<RadioButton> m_pRBAddressValue; + VclPtr<CheckBox> m_pCBRefreshOnEmpty; + VclPtr<RadioButton> m_pRBMaxLimit; + VclPtr<RadioButton> m_pRBUnlimited; + VclPtr<Edit> m_pEdRange; + VclPtr<Edit> m_pEdLimit; + VclPtr<OKButton> m_pBtnOk; + VclPtr<VclFrame> m_pVclFrameLimit; + + DECL_LINK(UpdateClickHdl, Button*, void); + DECL_LINK(UpdateHdl, Edit&, void); + DECL_LINK(UpdateComboBoxHdl, ComboBox&, void); + DECL_LINK(BrowseHdl, Button*, void); + + void UpdateEnable(); + ScRange GetStartRange(); + + std::shared_ptr<ExternalDataSource> mpDataSource; + +public: + DataProviderDlg(ScDocShell *pDocShell, vcl::Window* pParent); + virtual ~DataProviderDlg() override; + virtual void dispose() override; + + void Init(); + + void StartImport(); +}; + +} + +#endif // INCLUDED_SC_SOURCE_UI_INC_DATAPROVIDERDLG_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |