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 #pragma once
11 
12 #include <sal/config.h>
13 
14 #include <vcl/weld.hxx>
15 
16 class ScDocShell;
17 class SvtURLBox;
18 class ScRange;
19 
20 namespace sc
21 {
22 class DataStream;
23 
25 {
27 
28  std::unique_ptr<SvtURLBox> m_xCbUrl;
29  std::unique_ptr<weld::Button> m_xBtnBrowse;
30  std::unique_ptr<weld::RadioButton> m_xRBValuesInLine;
31  std::unique_ptr<weld::RadioButton> m_xRBAddressValue;
32  std::unique_ptr<weld::CheckButton> m_xCBRefreshOnEmpty;
33  std::unique_ptr<weld::RadioButton> m_xRBDataDown;
34  std::unique_ptr<weld::RadioButton> m_xRBRangeDown;
35  std::unique_ptr<weld::RadioButton> m_xRBNoMove;
36  std::unique_ptr<weld::RadioButton> m_xRBMaxLimit;
37  std::unique_ptr<weld::RadioButton> m_xRBUnlimited;
38  std::unique_ptr<weld::Entry> m_xEdRange;
39  std::unique_ptr<weld::Entry> m_xEdLimit;
40  std::unique_ptr<weld::Button> m_xBtnOk;
41  std::unique_ptr<weld::Frame> m_xVclFrameLimit;
42  std::unique_ptr<weld::Frame> m_xVclFrameMove;
43 
44  DECL_LINK(UpdateClickHdl, weld::Toggleable&, void);
45  DECL_LINK(UpdateHdl, weld::Entry&, void);
46  DECL_LINK(UpdateComboBoxHdl, weld::ComboBox&, void);
47  DECL_LINK(BrowseHdl, weld::Button&, void);
48 
49  void UpdateEnable();
51 
52 public:
53  DataStreamDlg(ScDocShell* pDocShell, weld::Window* pParent);
54  virtual ~DataStreamDlg() override;
55 
56  void Init(const DataStream& rStrm);
57 
58  void StartStream();
59 };
60 }
61 
62 /* 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)
virtual ~DataStreamDlg() override
DECL_LINK(UpdateClickHdl, weld::Toggleable &, void)
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