1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
22 #include <sfx2/tabdlg.hxx>
25 class SecurityOptionsDialog
;
28 // class SvxProxyTabPage -------------------------------------------------
29 class SvxProxyTabPage
: public SfxTabPage
33 std::unique_ptr
<weld::Label
> m_xProxyModeFT
;
34 std::unique_ptr
<weld::ComboBox
> m_xProxyModeLB
;
35 std::unique_ptr
<weld::Widget
> m_xProxyModeImg
;
37 std::unique_ptr
<weld::Label
> m_xHttpProxyFT
;
38 std::unique_ptr
<weld::Entry
> m_xHttpProxyED
;
39 std::unique_ptr
<weld::Widget
> m_xHttpProxyImg
;
40 std::unique_ptr
<weld::Label
> m_xHttpPortFT
;
41 std::unique_ptr
<weld::Entry
> m_xHttpPortED
;
42 std::unique_ptr
<weld::Widget
> m_xHttpPortImg
;
44 std::unique_ptr
<weld::Label
> m_xHttpsProxyFT
;
45 std::unique_ptr
<weld::Entry
> m_xHttpsProxyED
;
46 std::unique_ptr
<weld::Widget
> m_xHttpsProxyImg
;
47 std::unique_ptr
<weld::Label
> m_xHttpsPortFT
;
48 std::unique_ptr
<weld::Entry
> m_xHttpsPortED
;
49 std::unique_ptr
<weld::Widget
> m_xHttpsPortImg
;
51 std::unique_ptr
<weld::Label
> m_xNoProxyForFT
;
52 std::unique_ptr
<weld::Entry
> m_xNoProxyForED
;
53 std::unique_ptr
<weld::Widget
> m_xNoProxyForImg
;
54 std::unique_ptr
<weld::Label
> m_xNoProxyDescFT
;
56 css::uno::Reference
< css::uno::XInterface
> m_xConfigurationUpdateAccess
;
58 void EnableControls_Impl();
59 void ReadConfigData_Impl();
60 void ReadConfigDefaults_Impl();
61 void RestoreConfigDefaults_Impl();
63 DECL_LINK(PortChangedHdl
, weld::Entry
&, void);
64 DECL_STATIC_LINK(SvxProxyTabPage
, NumberOnlyTextFilterHdl
, OUString
&, bool);
65 DECL_STATIC_LINK(SvxProxyTabPage
, NoSpaceTextFilterHdl
, OUString
&, bool);
66 DECL_LINK(ProxyHdl_Impl
, weld::ComboBox
&, void);
67 DECL_STATIC_LINK(SvxProxyTabPage
, LoseFocusHdl_Impl
, weld::Widget
&, void);
70 SvxProxyTabPage(weld::Container
* pPage
, weld::DialogController
* pController
, const SfxItemSet
& rSet
);
71 virtual ~SvxProxyTabPage() override
;
72 static std::unique_ptr
<SfxTabPage
> Create( weld::Container
* pPage
, weld::DialogController
* pController
, const SfxItemSet
* rAttrSet
);
74 virtual OUString
GetAllStrings() override
;
76 virtual bool FillItemSet( SfxItemSet
* rSet
) override
;
77 virtual void Reset( const SfxItemSet
* rSet
) override
;
80 // class SvxSecurityTabPage ---------------------------------------------
83 class SvxSecurityTabPage
: public SfxTabPage
86 std::unique_ptr
<svx::SecurityOptionsDialog
> m_xSecOptDlg
;
88 std::unique_ptr
<CertPathDialog
> mpCertPathDlg
;
90 OUString m_sPasswordStoringDeactivateStr
;
92 std::unique_ptr
<weld::Button
> m_xSecurityOptionsPB
;
94 std::unique_ptr
<weld::CheckButton
> m_xSavePasswordsCB
;
95 std::unique_ptr
<weld::Widget
> m_xSavePasswordsImg
;
96 std::unique_ptr
<weld::Button
> m_xShowConnectionsPB
;
98 std::unique_ptr
<weld::CheckButton
> m_xMasterPasswordCB
;
99 std::unique_ptr
<weld::Widget
> m_xMasterPasswordImg
;
100 std::unique_ptr
<weld::Label
> m_xMasterPasswordFT
;
101 std::unique_ptr
<weld::Button
> m_xMasterPasswordPB
;
103 std::unique_ptr
<weld::Container
> m_xMacroSecFrame
;
104 std::unique_ptr
<weld::Button
> m_xMacroSecPB
;
106 std::unique_ptr
<weld::Container
> m_xCertFrame
;
107 std::unique_ptr
<weld::Button
> m_xCertPathPB
;
108 std::unique_ptr
<weld::Widget
> m_xCertPathImg
;
109 std::unique_ptr
<weld::Label
> m_xCertPathLabel
;
111 std::unique_ptr
<weld::Container
> m_xTSAURLsFrame
;
112 std::unique_ptr
<weld::Button
> m_xTSAURLsPB
;
113 std::unique_ptr
<weld::Widget
> m_xTSAURLsImg
;
114 std::unique_ptr
<weld::Label
> m_xTSAURLsLabel
;
116 std::unique_ptr
<weld::Label
> m_xNoPasswordSaveFT
;
118 std::unique_ptr
<weld::Button
> m_xCertMgrPathLB
;
119 std::unique_ptr
<weld::Entry
> m_xParameterEdit
;
120 std::unique_ptr
<weld::Widget
> m_xCertMgrPathImg
;
121 std::unique_ptr
<weld::Label
> m_xCertMgrPathLabel
;
123 DECL_LINK(SecurityOptionsHdl
, weld::Button
&, void);
124 DECL_LINK(SavePasswordHdl
, weld::Toggleable
&, void);
125 DECL_LINK(MasterPasswordHdl
, weld::Button
&, void);
126 DECL_LINK(MasterPasswordCBHdl
, weld::Toggleable
&, void);
127 DECL_LINK(ShowPasswordsHdl
, weld::Button
&, void);
128 DECL_LINK(MacroSecPBHdl
, weld::Button
&, void );
129 DECL_LINK(CertPathPBHdl
, weld::Button
&, void );
130 DECL_LINK(TSAURLsPBHdl
, weld::Button
&, void );
131 DECL_LINK(CertMgrPBHdl
, weld::Button
&, void );
136 virtual void ActivatePage( const SfxItemSet
& rSet
) override
;
137 virtual DeactivateRC
DeactivatePage( SfxItemSet
* pSet
) override
;
140 SvxSecurityTabPage(weld::Container
* pPage
, weld::DialogController
* pController
, const SfxItemSet
& rSet
);
141 static std::unique_ptr
<SfxTabPage
> Create( weld::Container
* pPage
, weld::DialogController
* pController
, const SfxItemSet
* rAttrSet
);
142 virtual ~SvxSecurityTabPage() override
;
144 virtual OUString
GetAllStrings() override
;
146 virtual bool FillItemSet( SfxItemSet
* rSet
) override
;
147 virtual void Reset( const SfxItemSet
* rSet
) override
;
150 struct SvxEMailTabPage_Impl
;
151 class SvxEMailTabPage
: public SfxTabPage
153 OUString m_sDefaultFilterName
;
155 std::unique_ptr
<SvxEMailTabPage_Impl
> pImpl
;
157 std::unique_ptr
<weld::Container
> m_xMailContainer
;
158 std::unique_ptr
<weld::Image
> m_xMailerURLFI
;
159 std::unique_ptr
<weld::Entry
> m_xMailerURLED
;
160 std::unique_ptr
<weld::Button
> m_xMailerURLPB
;
161 std::unique_ptr
<weld::Container
> m_xSuppressHiddenContainer
;
162 std::unique_ptr
<weld::Image
> m_xSuppressHiddenFI
;
163 std::unique_ptr
<weld::CheckButton
> m_xSuppressHidden
;
164 std::unique_ptr
<weld::Label
> m_xDefaultFilterFT
;
166 DECL_LINK(FileDialogHdl_Impl
, weld::Button
&, void);
169 SvxEMailTabPage(weld::Container
* pPage
, weld::DialogController
* pController
, const SfxItemSet
& rSet
);
170 virtual ~SvxEMailTabPage() override
;
172 static std::unique_ptr
<SfxTabPage
> Create( weld::Container
* pPage
, weld::DialogController
* pController
, const SfxItemSet
* rAttrSet
);
174 virtual OUString
GetAllStrings() override
;
176 virtual bool FillItemSet( SfxItemSet
* rSet
) override
;
177 virtual void Reset( const SfxItemSet
* rSet
) override
;
180 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */