Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / cui / source / options / tsaurls.hxx
blob8fb1d049072b9df0852c25a5f076d2ee9b073a51
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 #pragma once
12 #include <vcl/weld.hxx>
14 #include <set>
16 class TSAURLsDialog : public weld::GenericDialogController
18 private:
19 std::unique_ptr<weld::Button> m_xAddBtn;
20 std::unique_ptr<weld::Button> m_xDeleteBtn;
21 std::unique_ptr<weld::Button> m_xOKBtn;
22 std::unique_ptr<weld::TreeView> m_xURLListBox;
23 std::unique_ptr<weld::Label> m_xEnterAUrl;
25 DECL_LINK(AddHdl_Impl, weld::Button&, void);
26 DECL_LINK(DeleteHdl_Impl, weld::Button&, void);
27 DECL_LINK(OKHdl_Impl, weld::Button&, void);
28 // After operations in a TreeView we have nothing selected
29 // Is Selected element handler for the TreeView
30 DECL_LINK(SelectHdl, weld::TreeView&, void);
32 std::set<OUString> m_aURLs;
34 void AddTSAURL(const OUString& rURL);
36 public:
37 explicit TSAURLsDialog(weld::Window* pParent);
38 virtual ~TSAURLsDialog() override;
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */