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 #pragma once
20 
21 #include <memory>
22 #include <sfx2/tabdlg.hxx>
23 
24 namespace svx {
25  class SecurityOptionsDialog;
26 }
27 
28 // class SvxProxyTabPage -------------------------------------------------
30 {
31 private:
32 
33  std::unique_ptr<weld::ComboBox> m_xProxyModeLB;
34 
35  std::unique_ptr<weld::Label> m_xHttpProxyFT;
36  std::unique_ptr<weld::Entry> m_xHttpProxyED;
37  std::unique_ptr<weld::Label> m_xHttpPortFT;
38  std::unique_ptr<weld::Entry> m_xHttpPortED;
39 
40  std::unique_ptr<weld::Label> m_xHttpsProxyFT;
41  std::unique_ptr<weld::Entry> m_xHttpsProxyED;
42  std::unique_ptr<weld::Label> m_xHttpsPortFT;
43  std::unique_ptr<weld::Entry> m_xHttpsPortED;
44 
45  std::unique_ptr<weld::Label> m_xFtpProxyFT;
46  std::unique_ptr<weld::Entry> m_xFtpProxyED;
47  std::unique_ptr<weld::Label> m_xFtpPortFT;
48  std::unique_ptr<weld::Entry> m_xFtpPortED;
49 
50  std::unique_ptr<weld::Label> m_xNoProxyForFT;
51  std::unique_ptr<weld::Entry> m_xNoProxyForED;
52  std::unique_ptr<weld::Label> m_xNoProxyDescFT;
53 
54  css::uno::Reference< css::uno::XInterface > m_xConfigurationUpdateAccess;
55 
56  void EnableControls_Impl();
57  void ReadConfigData_Impl();
60 
61  DECL_LINK(PortChangedHdl, weld::Entry&, void);
62  DECL_STATIC_LINK(SvxProxyTabPage, NumberOnlyTextFilterHdl, OUString&, bool);
63  DECL_STATIC_LINK(SvxProxyTabPage, NoSpaceTextFilterHdl, OUString&, bool);
64  DECL_LINK(ProxyHdl_Impl, weld::ComboBox&, void);
65  DECL_STATIC_LINK(SvxProxyTabPage, LoseFocusHdl_Impl, weld::Widget&, void);
66 
67 public:
68  SvxProxyTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
69  virtual ~SvxProxyTabPage() override;
70  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
71  virtual bool FillItemSet( SfxItemSet* rSet ) override;
72  virtual void Reset( const SfxItemSet* rSet ) override;
73 };
74 
75 // class SvxSecurityTabPage ---------------------------------------------
76 
77 class SvtSecurityOptions;
78 class CertPathDialog;
80 {
81 private:
82  std::unique_ptr<SvtSecurityOptions> mpSecOptions;
83  std::unique_ptr<svx::SecurityOptionsDialog> m_xSecOptDlg;
84 
85  std::unique_ptr<CertPathDialog> mpCertPathDlg;
86 
88 
89  std::unique_ptr<weld::Button> m_xSecurityOptionsPB;
90 
91  std::unique_ptr<weld::CheckButton> m_xSavePasswordsCB;
92  std::unique_ptr<weld::Button> m_xShowConnectionsPB;
93 
94  std::unique_ptr<weld::CheckButton> m_xMasterPasswordCB;
95  std::unique_ptr<weld::Label> m_xMasterPasswordFT;
96  std::unique_ptr<weld::Button> m_xMasterPasswordPB;
97 
98  std::unique_ptr<weld::Container> m_xMacroSecFrame;
99  std::unique_ptr<weld::Button> m_xMacroSecPB;
100 
101  std::unique_ptr<weld::Container> m_xCertFrame;
102  std::unique_ptr<weld::Button> m_xCertPathPB;
103 
104  std::unique_ptr<weld::Container> m_xTSAURLsFrame;
105  std::unique_ptr<weld::Button> m_xTSAURLsPB;
106 
107  std::unique_ptr<weld::Label> m_xNoPasswordSaveFT;
108 
109  DECL_LINK(SecurityOptionsHdl, weld::Button&, void);
110  DECL_LINK(SavePasswordHdl, weld::Button&, void);
111  DECL_LINK(MasterPasswordHdl, weld::Button&, void);
112  DECL_LINK(MasterPasswordCBHdl, weld::Button&, void);
113  DECL_LINK(ShowPasswordsHdl, weld::Button&, void);
114  DECL_LINK(MacroSecPBHdl, weld::Button&, void );
115  DECL_LINK(CertPathPBHdl, weld::Button&, void );
116  DECL_LINK(TSAURLsPBHdl, weld::Button&, void );
117 
118  void InitControls();
119 
120 protected:
121  virtual void ActivatePage( const SfxItemSet& rSet ) override;
122  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
123 
124 public:
125  SvxSecurityTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
126  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
127  virtual ~SvxSecurityTabPage() override;
128  virtual bool FillItemSet( SfxItemSet* rSet ) override;
129  virtual void Reset( const SfxItemSet* rSet ) override;
130 };
131 
132 struct SvxEMailTabPage_Impl;
134 {
136 
137  std::unique_ptr<SvxEMailTabPage_Impl> pImpl;
138 
139  std::unique_ptr<weld::Container> m_xMailContainer;
140  std::unique_ptr<weld::Image> m_xMailerURLFI;
141  std::unique_ptr<weld::Entry> m_xMailerURLED;
142  std::unique_ptr<weld::Button> m_xMailerURLPB;
143  std::unique_ptr<weld::Container> m_xSuppressHiddenContainer;
144  std::unique_ptr<weld::Image> m_xSuppressHiddenFI;
145  std::unique_ptr<weld::CheckButton> m_xSuppressHidden;
146  std::unique_ptr<weld::Label> m_xDefaultFilterFT;
147 
148  DECL_LINK(FileDialogHdl_Impl, weld::Button&, void);
149 
150 public:
151  SvxEMailTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet );
152  virtual ~SvxEMailTabPage() override;
153 
154  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
155 
156  virtual bool FillItemSet( SfxItemSet* rSet ) override;
157  virtual void Reset( const SfxItemSet* rSet ) override;
158 };
159 
160 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Entry > m_xMailerURLED
Definition: optinet2.hxx:141
std::unique_ptr< CertPathDialog > mpCertPathDlg
Definition: optinet2.hxx:85
std::unique_ptr< weld::Label > m_xNoPasswordSaveFT
Definition: optinet2.hxx:107
std::unique_ptr< weld::Button > m_xSecurityOptionsPB
Definition: optinet2.hxx:89
std::unique_ptr< weld::Label > m_xHttpProxyFT
Definition: optinet2.hxx:35
virtual ~SvxEMailTabPage() override
Definition: optinet2.cxx:847
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: optinet2.cxx:760
void ReadConfigData_Impl()
Definition: optinet2.cxx:190
std::unique_ptr< weld::Label > m_xNoProxyForFT
Definition: optinet2.hxx:50
std::unique_ptr< weld::Label > m_xMasterPasswordFT
Definition: optinet2.hxx:95
std::unique_ptr< weld::Entry > m_xFtpPortED
Definition: optinet2.hxx:48
const SfxItemSet * pSet
std::unique_ptr< weld::CheckButton > m_xSuppressHidden
Definition: optinet2.hxx:145
std::unique_ptr< SvtSecurityOptions > mpSecOptions
Definition: optinet2.hxx:82
std::unique_ptr< weld::Button > m_xMacroSecPB
Definition: optinet2.hxx:99
SvxEMailTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optinet2.cxx:829
std::unique_ptr< weld::Entry > m_xHttpProxyED
Definition: optinet2.hxx:36
std::unique_ptr< weld::Button > m_xMasterPasswordPB
Definition: optinet2.hxx:96
std::unique_ptr< weld::Entry > m_xFtpProxyED
Definition: optinet2.hxx:46
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: optinet2.cxx:756
std::unique_ptr< weld::Image > m_xMailerURLFI
Definition: optinet2.hxx:140
std::unique_ptr< weld::Button > m_xCertPathPB
Definition: optinet2.hxx:102
virtual void Reset(const SfxItemSet *rSet) override
Definition: optinet2.cxx:883
std::unique_ptr< weld::Image > m_xSuppressHiddenFI
Definition: optinet2.hxx:144
std::unique_ptr< weld::Label > m_xDefaultFilterFT
Definition: optinet2.hxx:146
std::unique_ptr< SvxEMailTabPage_Impl > pImpl
Definition: optinet2.hxx:137
std::unique_ptr< weld::Label > m_xNoProxyDescFT
Definition: optinet2.hxx:52
std::unique_ptr< weld::ComboBox > m_xProxyModeLB
Definition: optinet2.hxx:33
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: optinet2.cxx:751
DECL_LINK(SecurityOptionsHdl, weld::Button &, void)
void EnableControls_Impl()
Definition: optinet2.cxx:418
std::unique_ptr< weld::Label > m_xFtpProxyFT
Definition: optinet2.hxx:45
std::unique_ptr< weld::Button > m_xShowConnectionsPB
Definition: optinet2.hxx:92
std::unique_ptr< weld::Container > m_xMacroSecFrame
Definition: optinet2.hxx:98
std::unique_ptr< weld::CheckButton > m_xMasterPasswordCB
Definition: optinet2.hxx:94
std::unique_ptr< weld::Entry > m_xNoProxyForED
Definition: optinet2.hxx:51
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: optinet2.cxx:185
DECL_STATIC_LINK(SvxProxyTabPage, NumberOnlyTextFilterHdl, OUString &, bool)
std::unique_ptr< weld::Button > m_xTSAURLsPB
Definition: optinet2.hxx:105
std::unique_ptr< weld::Label > m_xHttpsProxyFT
Definition: optinet2.hxx:40
css::uno::Reference< css::uno::XInterface > m_xConfigurationUpdateAccess
Definition: optinet2.hxx:54
SvxProxyTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optinet2.cxx:128
void ReadConfigDefaults_Impl()
Definition: optinet2.cxx:228
std::unique_ptr< weld::CheckButton > m_xSavePasswordsCB
Definition: optinet2.hxx:91
virtual ~SvxProxyTabPage() override
Definition: optinet2.cxx:181
std::unique_ptr< weld::Entry > m_xHttpsPortED
Definition: optinet2.hxx:43
std::unique_ptr< weld::Container > m_xTSAURLsFrame
Definition: optinet2.hxx:104
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optinet2.cxx:786
DECL_LINK(PortChangedHdl, weld::Entry &, void)
std::unique_ptr< weld::Container > m_xCertFrame
Definition: optinet2.hxx:101
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optinet2.cxx:860
std::unique_ptr< weld::Entry > m_xHttpsProxyED
Definition: optinet2.hxx:41
OUString m_sDefaultFilterName
Definition: optinet2.hxx:135
std::unique_ptr< weld::Container > m_xSuppressHiddenContainer
Definition: optinet2.hxx:143
SvxSecurityTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optinet2.cxx:476
DECL_LINK(FileDialogHdl_Impl, weld::Button &, void)
std::unique_ptr< weld::Label > m_xHttpsPortFT
Definition: optinet2.hxx:42
OUString m_sPasswordStoringDeactivateStr
Definition: optinet2.hxx:87
std::unique_ptr< weld::Label > m_xHttpPortFT
Definition: optinet2.hxx:37
std::unique_ptr< weld::Button > m_xMailerURLPB
Definition: optinet2.hxx:142
std::unique_ptr< weld::Entry > m_xHttpPortED
Definition: optinet2.hxx:38
virtual void Reset(const SfxItemSet *rSet) override
Definition: optinet2.cxx:318
DeactivateRC
std::unique_ptr< svx::SecurityOptionsDialog > m_xSecOptDlg
Definition: optinet2.hxx:83
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: optinet2.cxx:853
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optinet2.cxx:334
virtual void Reset(const SfxItemSet *rSet) override
Definition: optinet2.cxx:807
virtual ~SvxSecurityTabPage() override
Definition: optinet2.cxx:519
std::unique_ptr< weld::Label > m_xFtpPortFT
Definition: optinet2.hxx:47
std::unique_ptr< weld::Container > m_xMailContainer
Definition: optinet2.hxx:139
void RestoreConfigDefaults_Impl()
Definition: optinet2.cxx:286