Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / cui / source / options / certpath.hxx
blobc23812eefed34a0523b5d101917d79c5ec9ae4a1
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_CUI_SOURCE_OPTIONS_CERTPATH_HXX
11 #define INCLUDED_CUI_SOURCE_OPTIONS_CERTPATH_HXX
13 #include <vcl/weld.hxx>
15 class CertPathDialog : public weld::GenericDialogController
17 std::unique_ptr<weld::Button> m_xManualButton;
18 std::unique_ptr<weld::Button> m_xOKButton;
19 std::unique_ptr<weld::TreeView> m_xCertPathList;
20 OUString m_sAddDialogText;
21 OUString m_sManualLabel;
22 OUString m_sManualPath;
24 typedef std::pair<int, int> row_col;
25 DECL_LINK(CheckHdl_Impl, const row_col&, void);
26 DECL_LINK(ManualHdl_Impl, weld::Button&, void);
27 DECL_LINK(OKHdl_Impl, weld::Button&, void);
29 void HandleEntryChecked(int nRow);
30 void AddCertPath(const OUString &rProfile, const OUString &rPath, bool bSelect = true);
31 void AddManualCertPath(const OUString& sUserSetCertPath, bool bSelect = true);
33 public:
34 explicit CertPathDialog(weld::Window* pParent);
35 virtual ~CertPathDialog() override;
37 OUString getDirectory() const;
40 #endif
42 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */