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 CertPathDialog;
79 {
80 private:
81  std::unique_ptr<svx::SecurityOptionsDialog> m_xSecOptDlg;
82 
83  std::unique_ptr<CertPathDialog> mpCertPathDlg;
84 
86 
87  std::unique_ptr<weld::Button> m_xSecurityOptionsPB;
88 
89  std::unique_ptr<weld::CheckButton> m_xSavePasswordsCB;
90  std::unique_ptr<weld::Button> m_xShowConnectionsPB;
91 
92  std::unique_ptr<weld::CheckButton> m_xMasterPasswordCB;
93  std::unique_ptr<weld::Label> m_xMasterPasswordFT;
94  std::unique_ptr<weld::Button> m_xMasterPasswordPB;
95 
96  std::unique_ptr<weld::Container> m_xMacroSecFrame;
97  std::unique_ptr<weld::Button> m_xMacroSecPB;
98 
99  std::unique_ptr<weld::Container> m_xCertFrame;
100  std::unique_ptr<weld::Button> m_xCertPathPB;
101 
102  std::unique_ptr<weld::Container> m_xTSAURLsFrame;
103  std::unique_ptr<weld::Button> m_xTSAURLsPB;
104 
105  std::unique_ptr<weld::Label> m_xNoPasswordSaveFT;
106 
107  DECL_LINK(SecurityOptionsHdl, weld::Button&, void);
108  DECL_LINK(SavePasswordHdl, weld::Toggleable&, void);
109  DECL_LINK(MasterPasswordHdl, weld::Button&, void);
110  DECL_LINK(MasterPasswordCBHdl, weld::Toggleable&, void);
111  DECL_LINK(ShowPasswordsHdl, weld::Button&, void);
112  DECL_LINK(MacroSecPBHdl, weld::Button&, void );
113  DECL_LINK(CertPathPBHdl, weld::Button&, void );
114  DECL_LINK(TSAURLsPBHdl, weld::Button&, void );
115 
116  void InitControls();
117 
118 protected:
119  virtual void ActivatePage( const SfxItemSet& rSet ) override;
120  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
121 
122 public:
123  SvxSecurityTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
124  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
125  virtual ~SvxSecurityTabPage() override;
126  virtual bool FillItemSet( SfxItemSet* rSet ) override;
127  virtual void Reset( const SfxItemSet* rSet ) override;
128 };
129 
130 struct SvxEMailTabPage_Impl;
132 {
134 
135  std::unique_ptr<SvxEMailTabPage_Impl> pImpl;
136 
137  std::unique_ptr<weld::Container> m_xMailContainer;
138  std::unique_ptr<weld::Image> m_xMailerURLFI;
139  std::unique_ptr<weld::Entry> m_xMailerURLED;
140  std::unique_ptr<weld::Button> m_xMailerURLPB;
141  std::unique_ptr<weld::Container> m_xSuppressHiddenContainer;
142  std::unique_ptr<weld::Image> m_xSuppressHiddenFI;
143  std::unique_ptr<weld::CheckButton> m_xSuppressHidden;
144  std::unique_ptr<weld::Label> m_xDefaultFilterFT;
145 
146  DECL_LINK(FileDialogHdl_Impl, weld::Button&, void);
147 
148 public:
149  SvxEMailTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet );
150  virtual ~SvxEMailTabPage() override;
151 
152  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
153 
154  virtual bool FillItemSet( SfxItemSet* rSet ) override;
155  virtual void Reset( const SfxItemSet* rSet ) override;
156 };
157 
158 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Entry > m_xMailerURLED
Definition: optinet2.hxx:139
std::unique_ptr< CertPathDialog > mpCertPathDlg
Definition: optinet2.hxx:83
std::unique_ptr< weld::Label > m_xNoPasswordSaveFT
Definition: optinet2.hxx:105
std::unique_ptr< weld::Button > m_xSecurityOptionsPB
Definition: optinet2.hxx:87
std::unique_ptr< weld::Label > m_xHttpProxyFT
Definition: optinet2.hxx:35
virtual ~SvxEMailTabPage() override
Definition: optinet2.cxx:846
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: optinet2.cxx:759
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:93
std::unique_ptr< weld::Entry > m_xFtpPortED
Definition: optinet2.hxx:48
const SfxItemSet * pSet
std::unique_ptr< weld::CheckButton > m_xSuppressHidden
Definition: optinet2.hxx:143
std::unique_ptr< weld::Button > m_xMacroSecPB
Definition: optinet2.hxx:97
SvxEMailTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optinet2.cxx:828
std::unique_ptr< weld::Entry > m_xHttpProxyED
Definition: optinet2.hxx:36
std::unique_ptr< weld::Button > m_xMasterPasswordPB
Definition: optinet2.hxx:94
std::unique_ptr< weld::Entry > m_xFtpProxyED
Definition: optinet2.hxx:46
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: optinet2.cxx:755
std::unique_ptr< weld::Image > m_xMailerURLFI
Definition: optinet2.hxx:138
std::unique_ptr< weld::Button > m_xCertPathPB
Definition: optinet2.hxx:100
virtual void Reset(const SfxItemSet *rSet) override
Definition: optinet2.cxx:882
std::unique_ptr< weld::Image > m_xSuppressHiddenFI
Definition: optinet2.hxx:142
std::unique_ptr< weld::Label > m_xDefaultFilterFT
Definition: optinet2.hxx:144
std::unique_ptr< SvxEMailTabPage_Impl > pImpl
Definition: optinet2.hxx:135
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:750
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:90
std::unique_ptr< weld::Container > m_xMacroSecFrame
Definition: optinet2.hxx:96
std::unique_ptr< weld::CheckButton > m_xMasterPasswordCB
Definition: optinet2.hxx:92
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:103
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:89
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:102
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optinet2.cxx:785
DECL_LINK(PortChangedHdl, weld::Entry &, void)
std::unique_ptr< weld::Container > m_xCertFrame
Definition: optinet2.hxx:99
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optinet2.cxx:859
std::unique_ptr< weld::Entry > m_xHttpsProxyED
Definition: optinet2.hxx:41
OUString m_sDefaultFilterName
Definition: optinet2.hxx:133
std::unique_ptr< weld::Container > m_xSuppressHiddenContainer
Definition: optinet2.hxx:141
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:85
std::unique_ptr< weld::Label > m_xHttpPortFT
Definition: optinet2.hxx:37
std::unique_ptr< weld::Button > m_xMailerURLPB
Definition: optinet2.hxx:140
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:81
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: optinet2.cxx:852
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optinet2.cxx:334
virtual void Reset(const SfxItemSet *rSet) override
Definition: optinet2.cxx:806
virtual ~SvxSecurityTabPage() override
Definition: optinet2.cxx:518
std::unique_ptr< weld::Label > m_xFtpPortFT
Definition: optinet2.hxx:47
std::unique_ptr< weld::Container > m_xMailContainer
Definition: optinet2.hxx:137
void RestoreConfigDefaults_Impl()
Definition: optinet2.cxx:286