1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
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);
34 explicit CertPathDialog(weld::Window
* pParent
);
35 virtual ~CertPathDialog() override
;
37 OUString
getDirectory() const;
42 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */