LibreOffice Module cui (master)  1
certpath.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 <vcl/weld.hxx>
13 
15 {
16  std::unique_ptr<weld::Button> m_xManualButton;
17  std::unique_ptr<weld::Button> m_xOKButton;
18  std::unique_ptr<weld::TreeView> m_xCertPathList;
19  OUString m_sAddDialogText;
20  OUString m_sManualLabel;
21  OUString m_sManualPath;
22 
23  typedef std::pair<int, int> row_col;
24  DECL_LINK(CheckHdl_Impl, const row_col&, void);
25  DECL_LINK(ManualHdl_Impl, weld::Button&, void);
26  DECL_LINK(OKHdl_Impl, weld::Button&, void);
27 
28  void HandleEntryChecked(int nRow);
29  void AddCertPath(const OUString &rProfile, const OUString &rPath, bool bSelect = true);
30  void AddManualCertPath(const OUString& sUserSetCertPath, bool bSelect = true);
31 
32 public:
33  explicit CertPathDialog(weld::Window* pParent);
34  virtual ~CertPathDialog() override;
35 
36  OUString getDirectory() const;
37 };
38 
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void HandleEntryChecked(int nRow)
Definition: certpath.cxx:163
DECL_LINK(CheckHdl_Impl, const row_col &, void)
OUString getDirectory() const
Definition: certpath.cxx:146
void AddManualCertPath(const OUString &sUserSetCertPath, bool bSelect=true)
Definition: certpath.cxx:109
OUString m_sAddDialogText
Definition: certpath.hxx:19
std::unique_ptr< weld::Button > m_xOKButton
Definition: certpath.hxx:17
void AddCertPath(const OUString &rProfile, const OUString &rPath, bool bSelect=true)
Definition: certpath.cxx:179
OUString m_sManualPath
Definition: certpath.hxx:21
virtual ~CertPathDialog() override
Definition: certpath.cxx:154
std::unique_ptr< weld::TreeView > m_xCertPathList
Definition: certpath.hxx:18
std::pair< int, int > row_col
Definition: certpath.hxx:23
std::unique_ptr< weld::Button > m_xManualButton
Definition: certpath.hxx:16
CertPathDialog(weld::Window *pParent)
Definition: certpath.cxx:24
OUString m_sManualLabel
Definition: certpath.hxx:20