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
24namespace svx {
25 class SecurityOptionsDialog;
26}
27
28// class SvxProxyTabPage -------------------------------------------------
30{
31private:
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
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
67public:
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
77class CertPathDialog;
79{
80private:
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 std::unique_ptr<weld::Button> m_xCertMgrPathLB;
108 std::unique_ptr<weld::Entry> m_xParameterEdit;
109
110 DECL_LINK(SecurityOptionsHdl, weld::Button&, void);
111 DECL_LINK(SavePasswordHdl, weld::Toggleable&, void);
112 DECL_LINK(MasterPasswordHdl, weld::Button&, void);
113 DECL_LINK(MasterPasswordCBHdl, weld::Toggleable&, 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 DECL_LINK(CertMgrPBHdl, weld::Button&, void );
119
120 void InitControls();
121
122protected:
123 virtual void ActivatePage( const SfxItemSet& rSet ) override;
124 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
125
126public:
127 SvxSecurityTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
128 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
129 virtual ~SvxSecurityTabPage() override;
130 virtual bool FillItemSet( SfxItemSet* rSet ) override;
131 virtual void Reset( const SfxItemSet* rSet ) override;
132};
133
136{
138
139 std::unique_ptr<SvxEMailTabPage_Impl> pImpl;
140
141 std::unique_ptr<weld::Container> m_xMailContainer;
142 std::unique_ptr<weld::Image> m_xMailerURLFI;
143 std::unique_ptr<weld::Entry> m_xMailerURLED;
144 std::unique_ptr<weld::Button> m_xMailerURLPB;
145 std::unique_ptr<weld::Container> m_xSuppressHiddenContainer;
146 std::unique_ptr<weld::Image> m_xSuppressHiddenFI;
147 std::unique_ptr<weld::CheckButton> m_xSuppressHidden;
148 std::unique_ptr<weld::Label> m_xDefaultFilterFT;
149
150 DECL_LINK(FileDialogHdl_Impl, weld::Button&, void);
151
152public:
153 SvxEMailTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet );
154 virtual ~SvxEMailTabPage() override;
155
156 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
157
158 virtual bool FillItemSet( SfxItemSet* rSet ) override;
159 virtual void Reset( const SfxItemSet* rSet ) override;
160};
161
162/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Label > m_xDefaultFilterFT
Definition: optinet2.hxx:148
std::unique_ptr< weld::Button > m_xMailerURLPB
Definition: optinet2.hxx:144
SvxEMailTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optinet2.cxx:891
std::unique_ptr< weld::Container > m_xSuppressHiddenContainer
Definition: optinet2.hxx:145
std::unique_ptr< SvxEMailTabPage_Impl > pImpl
Definition: optinet2.hxx:139
virtual ~SvxEMailTabPage() override
Definition: optinet2.cxx:909
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: optinet2.cxx:915
std::unique_ptr< weld::Container > m_xMailContainer
Definition: optinet2.hxx:141
std::unique_ptr< weld::CheckButton > m_xSuppressHidden
Definition: optinet2.hxx:147
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optinet2.cxx:922
virtual void Reset(const SfxItemSet *rSet) override
Definition: optinet2.cxx:945
OUString m_sDefaultFilterName
Definition: optinet2.hxx:137
std::unique_ptr< weld::Image > m_xSuppressHiddenFI
Definition: optinet2.hxx:146
std::unique_ptr< weld::Entry > m_xMailerURLED
Definition: optinet2.hxx:143
DECL_LINK(FileDialogHdl_Impl, weld::Button &, void)
std::unique_ptr< weld::Image > m_xMailerURLFI
Definition: optinet2.hxx:142
DECL_LINK(PortChangedHdl, weld::Entry &, void)
void RestoreConfigDefaults_Impl()
Definition: optinet2.cxx:291
SvxProxyTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optinet2.cxx:128
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: optinet2.cxx:184
std::unique_ptr< weld::Entry > m_xFtpProxyED
Definition: optinet2.hxx:46
DECL_STATIC_LINK(SvxProxyTabPage, LoseFocusHdl_Impl, weld::Widget &, void)
std::unique_ptr< weld::Label > m_xHttpsProxyFT
Definition: optinet2.hxx:40
void ReadConfigDefaults_Impl()
Definition: optinet2.cxx:233
std::unique_ptr< weld::Entry > m_xHttpPortED
Definition: optinet2.hxx:38
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optinet2.cxx:339
virtual ~SvxProxyTabPage() override
Definition: optinet2.cxx:180
DECL_STATIC_LINK(SvxProxyTabPage, NoSpaceTextFilterHdl, OUString &, bool)
virtual void Reset(const SfxItemSet *rSet) override
Definition: optinet2.cxx:323
DECL_STATIC_LINK(SvxProxyTabPage, NumberOnlyTextFilterHdl, OUString &, bool)
void ReadConfigData_Impl()
Definition: optinet2.cxx:189
std::unique_ptr< weld::Label > m_xHttpPortFT
Definition: optinet2.hxx:37
std::unique_ptr< weld::Label > m_xNoProxyForFT
Definition: optinet2.hxx:50
std::unique_ptr< weld::ComboBox > m_xProxyModeLB
Definition: optinet2.hxx:33
std::unique_ptr< weld::Entry > m_xHttpsProxyED
Definition: optinet2.hxx:41
css::uno::Reference< css::uno::XInterface > m_xConfigurationUpdateAccess
Definition: optinet2.hxx:54
void EnableControls_Impl()
Definition: optinet2.cxx:423
std::unique_ptr< weld::Label > m_xHttpProxyFT
Definition: optinet2.hxx:35
std::unique_ptr< weld::Entry > m_xHttpProxyED
Definition: optinet2.hxx:36
std::unique_ptr< weld::Entry > m_xHttpsPortED
Definition: optinet2.hxx:43
std::unique_ptr< weld::Entry > m_xNoProxyForED
Definition: optinet2.hxx:51
std::unique_ptr< weld::Entry > m_xFtpPortED
Definition: optinet2.hxx:48
std::unique_ptr< weld::Label > m_xNoProxyDescFT
Definition: optinet2.hxx:52
std::unique_ptr< weld::Label > m_xFtpPortFT
Definition: optinet2.hxx:47
std::unique_ptr< weld::Label > m_xHttpsPortFT
Definition: optinet2.hxx:42
std::unique_ptr< weld::Label > m_xFtpProxyFT
Definition: optinet2.hxx:45
DECL_LINK(ProxyHdl_Impl, weld::ComboBox &, void)
std::unique_ptr< weld::CheckButton > m_xSavePasswordsCB
Definition: optinet2.hxx:89
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: optinet2.cxx:809
std::unique_ptr< weld::Button > m_xShowConnectionsPB
Definition: optinet2.hxx:90
virtual ~SvxSecurityTabPage() override
Definition: optinet2.cxx:561
std::unique_ptr< weld::Button > m_xCertMgrPathLB
Definition: optinet2.hxx:107
std::unique_ptr< weld::Button > m_xTSAURLsPB
Definition: optinet2.hxx:103
DECL_LINK(CertMgrPBHdl, weld::Button &, void)
std::unique_ptr< weld::Button > m_xMasterPasswordPB
Definition: optinet2.hxx:94
DECL_LINK(ShowPasswordsHdl, weld::Button &, void)
std::unique_ptr< CertPathDialog > mpCertPathDlg
Definition: optinet2.hxx:83
std::unique_ptr< weld::Button > m_xCertPathPB
Definition: optinet2.hxx:100
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optinet2.cxx:839
virtual void Reset(const SfxItemSet *rSet) override
Definition: optinet2.cxx:869
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: optinet2.cxx:813
std::unique_ptr< svx::SecurityOptionsDialog > m_xSecOptDlg
Definition: optinet2.hxx:81
SvxSecurityTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optinet2.cxx:481
std::unique_ptr< weld::CheckButton > m_xMasterPasswordCB
Definition: optinet2.hxx:92
std::unique_ptr< weld::Button > m_xMacroSecPB
Definition: optinet2.hxx:97
std::unique_ptr< weld::Label > m_xMasterPasswordFT
Definition: optinet2.hxx:93
DECL_LINK(MasterPasswordHdl, weld::Button &, void)
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: optinet2.cxx:804
std::unique_ptr< weld::Container > m_xTSAURLsFrame
Definition: optinet2.hxx:102
DECL_LINK(CertPathPBHdl, weld::Button &, void)
std::unique_ptr< weld::Button > m_xSecurityOptionsPB
Definition: optinet2.hxx:87
DECL_LINK(MasterPasswordCBHdl, weld::Toggleable &, void)
std::unique_ptr< weld::Container > m_xMacroSecFrame
Definition: optinet2.hxx:96
DECL_LINK(SecurityOptionsHdl, weld::Button &, void)
OUString m_sPasswordStoringDeactivateStr
Definition: optinet2.hxx:85
std::unique_ptr< weld::Container > m_xCertFrame
Definition: optinet2.hxx:99
DECL_LINK(SavePasswordHdl, weld::Toggleable &, void)
std::unique_ptr< weld::Entry > m_xParameterEdit
Definition: optinet2.hxx:108
DECL_LINK(MacroSecPBHdl, weld::Button &, void)
std::unique_ptr< weld::Label > m_xNoPasswordSaveFT
Definition: optinet2.hxx:105
DECL_LINK(TSAURLsPBHdl, weld::Button &, void)
DeactivateRC