diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2013-11-21 15:23:09 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2013-11-28 20:40:36 +0100 |
commit | 47bc56725a37834888680986844b5d7630a6581d (patch) | |
tree | ab7891d0d074934859314a8a7105d7242291f87c /sc/source/ui/inc/datastreamdlg.hxx | |
parent | 4cbc3d855529737bf8ce37a3c98dbbcc6b17f09e (diff) |
Rework data streams to be more like file links (ScAreaLink).
By inheriting from sfx2::SvBaseLink and storing in sfx2::LinkManager we can
have more data streams and see / remove them in Edit -> Links... dialog.
Also rename to DataStream to avoid confusion.
Change-Id: I9c3b89020324af7be082f9e6e1cd479aeb72fe81
Diffstat (limited to 'sc/source/ui/inc/datastreamdlg.hxx')
-rw-r--r-- | sc/source/ui/inc/datastreamdlg.hxx | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/sc/source/ui/inc/datastreamdlg.hxx b/sc/source/ui/inc/datastreamdlg.hxx new file mode 100644 index 000000000000..cb469d78600c --- /dev/null +++ b/sc/source/ui/inc/datastreamdlg.hxx @@ -0,0 +1,49 @@ +/* -*- 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/. + */ + +#include <sal/config.h> + +#include <rtl/ref.hxx> +#include <vcl/dialog.hxx> +#include <vcl/layout.hxx> + +class ScDocShell; +class SvtURLBox; + +class DataStreamDlg : public ModalDialog +{ + ScDocShell *mpDocShell; + + SvtURLBox* m_pCbUrl; + PushButton* m_pBtnBrowse; + RadioButton* m_pRBScriptData; + RadioButton* m_pRBValuesInLine; + RadioButton* m_pRBAddressValue; + RadioButton* m_pRBRangeDown; + RadioButton* m_pRBNoMove; + RadioButton* m_pRBMaxLimit; + Edit* m_pEdRange; + Edit* m_pEdLimit; + OKButton* m_pBtnOk; + VclFrame* m_pVclFrameLimit; + VclFrame* m_pVclFrameMove; + VclFrame* m_pVclFrameRange; + + DECL_LINK(UpdateHdl, void *); + DECL_LINK(BrowseHdl, void *); + + void UpdateEnable(); + +public: + DataStreamDlg(ScDocShell *pDocShell, Window* pParent); + ~DataStreamDlg() {} + void StartStream(); +}; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |