LibreOffice Module cui (master)  1
optinet2.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  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #ifndef INCLUDED_CUI_SOURCE_OPTIONS_OPTINET2_HXX
20 #define INCLUDED_CUI_SOURCE_OPTIONS_OPTINET2_HXX
21 
22 #include <memory>
23 #include <sfx2/tabdlg.hxx>
24 
25 namespace svx {
26  class SecurityOptionsDialog;
27 }
28 
29 // class SvxProxyTabPage -------------------------------------------------
31 {
32 private:
33 
34  std::unique_ptr<weld::ComboBox> m_xProxyModeLB;
35 
36  std::unique_ptr<weld::Label> m_xHttpProxyFT;
37  std::unique_ptr<weld::Entry> m_xHttpProxyED;
38  std::unique_ptr<weld::Label> m_xHttpPortFT;
39  std::unique_ptr<weld::Entry> m_xHttpPortED;
40 
41  std::unique_ptr<weld::Label> m_xHttpsProxyFT;
42  std::unique_ptr<weld::Entry> m_xHttpsProxyED;
43  std::unique_ptr<weld::Label> m_xHttpsPortFT;
44  std::unique_ptr<weld::Entry> m_xHttpsPortED;
45 
46  std::unique_ptr<weld::Label> m_xFtpProxyFT;
47  std::unique_ptr<weld::Entry> m_xFtpProxyED;
48  std::unique_ptr<weld::Label> m_xFtpPortFT;
49  std::unique_ptr<weld::Entry> m_xFtpPortED;
50 
51  std::unique_ptr<weld::Label> m_xNoProxyForFT;
52  std::unique_ptr<weld::Entry> m_xNoProxyForED;
53  std::unique_ptr<weld::Label> m_xNoProxyDescFT;
54 
55  css::uno::Reference< css::uno::XInterface > m_xConfigurationUpdateAccess;
56 
57  void EnableControls_Impl();
58  void ReadConfigData_Impl();
61 
62  DECL_LINK(PortChangedHdl, weld::Entry&, void);
63  DECL_STATIC_LINK(SvxProxyTabPage, NumberOnlyTextFilterHdl, OUString&, bool);
64  DECL_STATIC_LINK(SvxProxyTabPage, NoSpaceTextFilterHdl, OUString&, bool);
65  DECL_LINK(ProxyHdl_Impl, weld::ComboBox&, void);
66  DECL_STATIC_LINK(SvxProxyTabPage, LoseFocusHdl_Impl, weld::Widget&, void);
67 
68 public:
69  SvxProxyTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
70  virtual ~SvxProxyTabPage() override;
71  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
72  virtual bool FillItemSet( SfxItemSet* rSet ) override;
73  virtual void Reset( const SfxItemSet* rSet ) override;
74 };
75 
76 // class SvxSecurityTabPage ---------------------------------------------
77 
78 class SvtSecurityOptions;
79 class CertPathDialog;
81 {
82 private:
83  std::unique_ptr<SvtSecurityOptions> mpSecOptions;
84  std::unique_ptr<svx::SecurityOptionsDialog> m_xSecOptDlg;
85 
86  std::unique_ptr<CertPathDialog> mpCertPathDlg;
87 
89 
90  std::unique_ptr<weld::Button> m_xSecurityOptionsPB;
91 
92  std::unique_ptr<weld::CheckButton> m_xSavePasswordsCB;
93  std::unique_ptr<weld::Button> m_xShowConnectionsPB;
94 
95  std::unique_ptr<weld::CheckButton> m_xMasterPasswordCB;
96  std::unique_ptr<weld::Label> m_xMasterPasswordFT;
97  std::unique_ptr<weld::Button> m_xMasterPasswordPB;
98 
99  std::unique_ptr<weld::Container> m_xMacroSecFrame;
100  std::unique_ptr<weld::Button> m_xMacroSecPB;
101 
102  std::unique_ptr<weld::Container> m_xCertFrame;
103  std::unique_ptr<weld::Button> m_xCertPathPB;
104 
105  std::unique_ptr<weld::Container> m_xTSAURLsFrame;
106  std::unique_ptr<weld::Button> m_xTSAURLsPB;
107 
108  std::unique_ptr<weld::Label> m_xNoPasswordSaveFT;
109 
110  DECL_LINK(SecurityOptionsHdl, weld::Button&, void);
111  DECL_LINK(SavePasswordHdl, weld::Button&, void);
112  DECL_LINK(MasterPasswordHdl, weld::Button&, void);
113  DECL_LINK(MasterPasswordCBHdl, weld::Button&, void);
114  DECL_LINK(ShowPasswordsHdl, weld::Button&, void);
115  DECL_LINK(MacroSecPBHdl, weld::Button&, void );
116  DECL_LINK(CertPathPBHdl, weld::Button&, void );
117  DECL_LINK(TSAURLsPBHdl, weld::Button&, void );
118 
119  void InitControls();
120 
121 protected:
122  virtual void ActivatePage( const SfxItemSet& rSet ) override;
123  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
124 
125 public:
126  SvxSecurityTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
127  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
128  virtual ~SvxSecurityTabPage() override;
129  virtual bool FillItemSet( SfxItemSet* rSet ) override;
130  virtual void Reset( const SfxItemSet* rSet ) override;
131 };
132 
133 struct SvxEMailTabPage_Impl;
135 {
137 
138  std::unique_ptr<SvxEMailTabPage_Impl> pImpl;
139 
140  std::unique_ptr<weld::Container> m_xMailContainer;
141  std::unique_ptr<weld::Image> m_xMailerURLFI;
142  std::unique_ptr<weld::Entry> m_xMailerURLED;
143  std::unique_ptr<weld::Button> m_xMailerURLPB;
144  std::unique_ptr<weld::Container> m_xSuppressHiddenContainer;
145  std::unique_ptr<weld::Image> m_xSuppressHiddenFI;
146  std::unique_ptr<weld::CheckButton> m_xSuppressHidden;
147  std::unique_ptr<weld::Label> m_xDefaultFilterFT;
148 
149  DECL_LINK(FileDialogHdl_Impl, weld::Button&, void);
150 
151 public:
152  SvxEMailTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet );
153  virtual ~SvxEMailTabPage() override;
154 
155  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
156 
157  virtual bool FillItemSet( SfxItemSet* rSet ) override;
158  virtual void Reset( const SfxItemSet* rSet ) override;
159 };
160 
161 #endif // INCLUDED_CUI_SOURCE_OPTIONS_OPTINET2_HXX
162 
163 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Entry > m_xMailerURLED
Definition: optinet2.hxx:142
std::unique_ptr< CertPathDialog > mpCertPathDlg
Definition: optinet2.hxx:86
std::unique_ptr< weld::Label > m_xNoPasswordSaveFT
Definition: optinet2.hxx:108
std::unique_ptr< weld::Button > m_xSecurityOptionsPB
Definition: optinet2.hxx:90
std::unique_ptr< weld::Label > m_xHttpProxyFT
Definition: optinet2.hxx:36
virtual ~SvxEMailTabPage() override
Definition: optinet2.cxx:885
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: optinet2.cxx:798
void ReadConfigData_Impl()
Definition: optinet2.cxx:193
std::unique_ptr< weld::Label > m_xNoProxyForFT
Definition: optinet2.hxx:51
std::unique_ptr< weld::Label > m_xMasterPasswordFT
Definition: optinet2.hxx:96
std::unique_ptr< weld::Entry > m_xFtpPortED
Definition: optinet2.hxx:49
const SfxItemSet * pSet
std::unique_ptr< weld::CheckButton > m_xSuppressHidden
Definition: optinet2.hxx:146
std::unique_ptr< SvtSecurityOptions > mpSecOptions
Definition: optinet2.hxx:83
std::unique_ptr< weld::Button > m_xMacroSecPB
Definition: optinet2.hxx:100
SvxEMailTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optinet2.cxx:867
std::unique_ptr< weld::Entry > m_xHttpProxyED
Definition: optinet2.hxx:37
std::unique_ptr< weld::Button > m_xMasterPasswordPB
Definition: optinet2.hxx:97
std::unique_ptr< weld::Entry > m_xFtpProxyED
Definition: optinet2.hxx:47
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: optinet2.cxx:794
std::unique_ptr< weld::Image > m_xMailerURLFI
Definition: optinet2.hxx:141
std::unique_ptr< weld::Button > m_xCertPathPB
Definition: optinet2.hxx:103
virtual void Reset(const SfxItemSet *rSet) override
Definition: optinet2.cxx:921
std::unique_ptr< weld::Image > m_xSuppressHiddenFI
Definition: optinet2.hxx:145
std::unique_ptr< weld::Label > m_xDefaultFilterFT
Definition: optinet2.hxx:147
std::unique_ptr< SvxEMailTabPage_Impl > pImpl
Definition: optinet2.hxx:138
std::unique_ptr< weld::Label > m_xNoProxyDescFT
Definition: optinet2.hxx:53
std::unique_ptr< weld::ComboBox > m_xProxyModeLB
Definition: optinet2.hxx:34
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: optinet2.cxx:789
DECL_LINK(SecurityOptionsHdl, weld::Button &, void)
void EnableControls_Impl()
Definition: optinet2.cxx:440
std::unique_ptr< weld::Label > m_xFtpProxyFT
Definition: optinet2.hxx:46
std::unique_ptr< weld::Button > m_xShowConnectionsPB
Definition: optinet2.hxx:93
std::unique_ptr< weld::Container > m_xMacroSecFrame
Definition: optinet2.hxx:99
std::unique_ptr< weld::CheckButton > m_xMasterPasswordCB
Definition: optinet2.hxx:95
std::unique_ptr< weld::Entry > m_xNoProxyForED
Definition: optinet2.hxx:52
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: optinet2.cxx:188
DECL_STATIC_LINK(SvxProxyTabPage, NumberOnlyTextFilterHdl, OUString &, bool)
std::unique_ptr< weld::Button > m_xTSAURLsPB
Definition: optinet2.hxx:106
std::unique_ptr< weld::Label > m_xHttpsProxyFT
Definition: optinet2.hxx:41
css::uno::Reference< css::uno::XInterface > m_xConfigurationUpdateAccess
Definition: optinet2.hxx:55
SvxProxyTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optinet2.cxx:131
void ReadConfigDefaults_Impl()
Definition: optinet2.cxx:252
std::unique_ptr< weld::CheckButton > m_xSavePasswordsCB
Definition: optinet2.hxx:92
virtual ~SvxProxyTabPage() override
Definition: optinet2.cxx:184
std::unique_ptr< weld::Entry > m_xHttpsPortED
Definition: optinet2.hxx:44
std::unique_ptr< weld::Container > m_xTSAURLsFrame
Definition: optinet2.hxx:105
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optinet2.cxx:824
DECL_LINK(PortChangedHdl, weld::Entry &, void)
std::unique_ptr< weld::Container > m_xCertFrame
Definition: optinet2.hxx:102
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optinet2.cxx:898
std::unique_ptr< weld::Entry > m_xHttpsProxyED
Definition: optinet2.hxx:42
OUString m_sDefaultFilterName
Definition: optinet2.hxx:136
std::unique_ptr< weld::Container > m_xSuppressHiddenContainer
Definition: optinet2.hxx:144
SvxSecurityTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optinet2.cxx:498
DECL_LINK(FileDialogHdl_Impl, weld::Button &, void)
std::unique_ptr< weld::Label > m_xHttpsPortFT
Definition: optinet2.hxx:43
OUString m_sPasswordStoringDeactivateStr
Definition: optinet2.hxx:88
std::unique_ptr< weld::Label > m_xHttpPortFT
Definition: optinet2.hxx:38
std::unique_ptr< weld::Button > m_xMailerURLPB
Definition: optinet2.hxx:143
std::unique_ptr< weld::Entry > m_xHttpPortED
Definition: optinet2.hxx:39
virtual void Reset(const SfxItemSet *rSet) override
Definition: optinet2.cxx:340
DeactivateRC
std::unique_ptr< svx::SecurityOptionsDialog > m_xSecOptDlg
Definition: optinet2.hxx:84
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: optinet2.cxx:891
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optinet2.cxx:356
virtual void Reset(const SfxItemSet *rSet) override
Definition: optinet2.cxx:845
virtual ~SvxSecurityTabPage() override
Definition: optinet2.cxx:541
std::unique_ptr< weld::Label > m_xFtpPortFT
Definition: optinet2.hxx:48
std::unique_ptr< weld::Container > m_xMailContainer
Definition: optinet2.hxx:140
void RestoreConfigDefaults_Impl()
Definition: optinet2.cxx:309