LibreOffice Module sc (master)  1
datastreamdlg.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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  */
9 
10 #ifndef INCLUDED_SC_SOURCE_UI_INC_DATASTREAMDLG_HXX
11 #define INCLUDED_SC_SOURCE_UI_INC_DATASTREAMDLG_HXX
12 
13 #include <sal/config.h>
14 
15 #include <vcl/weld.hxx>
16 
17 class ScDocShell;
18 class SvtURLBox;
19 class ScRange;
20 
21 namespace sc
22 {
23 class DataStream;
24 
26 {
28 
29  std::unique_ptr<SvtURLBox> m_xCbUrl;
30  std::unique_ptr<weld::Button> m_xBtnBrowse;
31  std::unique_ptr<weld::RadioButton> m_xRBValuesInLine;
32  std::unique_ptr<weld::RadioButton> m_xRBAddressValue;
33  std::unique_ptr<weld::CheckButton> m_xCBRefreshOnEmpty;
34  std::unique_ptr<weld::RadioButton> m_xRBDataDown;
35  std::unique_ptr<weld::RadioButton> m_xRBRangeDown;
36  std::unique_ptr<weld::RadioButton> m_xRBNoMove;
37  std::unique_ptr<weld::RadioButton> m_xRBMaxLimit;
38  std::unique_ptr<weld::RadioButton> m_xRBUnlimited;
39  std::unique_ptr<weld::Entry> m_xEdRange;
40  std::unique_ptr<weld::Entry> m_xEdLimit;
41  std::unique_ptr<weld::Button> m_xBtnOk;
42  std::unique_ptr<weld::Frame> m_xVclFrameLimit;
43  std::unique_ptr<weld::Frame> m_xVclFrameMove;
44 
45  DECL_LINK(UpdateClickHdl, weld::ToggleButton&, void);
46  DECL_LINK(UpdateHdl, weld::Entry&, void);
47  DECL_LINK(UpdateComboBoxHdl, weld::ComboBox&, void);
48  DECL_LINK(BrowseHdl, weld::Button&, void);
49 
50  void UpdateEnable();
52 
53 public:
54  DataStreamDlg(ScDocShell* pDocShell, weld::Window* pParent);
55  virtual ~DataStreamDlg() override;
56 
57  void Init(const DataStream& rStrm);
58 
59  void StartStream();
60 };
61 }
62 
63 #endif // INCLUDED_SC_SOURCE_UI_INC_DATASTREAMDLG_HXX
64 
65 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::RadioButton > m_xRBDataDown
std::unique_ptr< weld::CheckButton > m_xCBRefreshOnEmpty
std::unique_ptr< weld::Frame > m_xVclFrameMove
std::unique_ptr< weld::RadioButton > m_xRBMaxLimit
std::unique_ptr< weld::Button > m_xBtnBrowse
ScRange GetStartRange()
DataStreamDlg(ScDocShell *pDocShell, weld::Window *pParent)
DECL_LINK(UpdateClickHdl, weld::ToggleButton &, void)
virtual ~DataStreamDlg() override
std::unique_ptr< weld::Button > m_xBtnOk
std::unique_ptr< weld::Frame > m_xVclFrameLimit
void Init(const DataStream &rStrm)
std::unique_ptr< weld::RadioButton > m_xRBNoMove
std::unique_ptr< weld::RadioButton > m_xRBAddressValue
std::unique_ptr< weld::RadioButton > m_xRBUnlimited
std::unique_ptr< weld::RadioButton > m_xRBValuesInLine
std::unique_ptr< weld::Entry > m_xEdLimit
std::unique_ptr< SvtURLBox > m_xCbUrl
ScDocShell * m_pDocShell
std::unique_ptr< weld::Entry > m_xEdRange
std::unique_ptr< weld::RadioButton > m_xRBRangeDown