Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / sc / source / ui / inc / datastreamdlg.hxx
blob6ea9c14436e259ae2184b087172c62c5a866b72b
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef INCLUDED_SC_SOURCE_UI_INC_DATASTREAMDLG_HXX
11 #define INCLUDED_SC_SOURCE_UI_INC_DATASTREAMDLG_HXX
13 #include <sal/config.h>
15 #include <rtl/ref.hxx>
16 #include <vcl/dialog.hxx>
17 #include <vcl/layout.hxx>
19 #include "datastream.hxx"
21 class ScDocShell;
22 class SvtURLBox;
23 class ScRange;
24 class ComboBox;
26 namespace sc {
28 class DataStreamDlg : public ModalDialog
30 ScDocShell *mpDocShell;
32 VclPtr<SvtURLBox> m_pCbUrl;
33 VclPtr<PushButton> m_pBtnBrowse;
34 VclPtr<RadioButton> m_pRBDirectData;
35 VclPtr<RadioButton> m_pRBScriptData;
36 VclPtr<RadioButton> m_pRBValuesInLine;
37 VclPtr<RadioButton> m_pRBAddressValue;
38 VclPtr<CheckBox> m_pCBRefreshOnEmpty;
39 VclPtr<RadioButton> m_pRBDataDown;
40 VclPtr<RadioButton> m_pRBRangeDown;
41 VclPtr<RadioButton> m_pRBNoMove;
42 VclPtr<RadioButton> m_pRBMaxLimit;
43 VclPtr<RadioButton> m_pRBUnlimited;
44 VclPtr<Edit> m_pEdRange;
45 VclPtr<Edit> m_pEdLimit;
46 VclPtr<OKButton> m_pBtnOk;
47 VclPtr<VclFrame> m_pVclFrameLimit;
48 VclPtr<VclFrame> m_pVclFrameMove;
50 DECL_LINK_TYPED(UpdateClickHdl, Button*, void);
51 DECL_LINK_TYPED(UpdateHdl, Edit&, void);
52 DECL_LINK_TYPED(UpdateComboBoxHdl, ComboBox&, void);
53 DECL_LINK_TYPED(BrowseHdl, Button*, void);
55 void UpdateEnable();
56 ScRange GetStartRange();
58 public:
59 DataStreamDlg(ScDocShell *pDocShell, vcl::Window* pParent);
60 virtual ~DataStreamDlg();
61 virtual void dispose() override;
63 void Init( const DataStream& rStrm );
65 void StartStream();
70 #endif // INCLUDED_SC_SOURCE_UI_INC_DATASTREAMDLG_HXX
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */