Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / cui / source / options / optinet2.hxx
blob4d03d2d04337f68250ba0d7717b6490b03bac7c1
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
19 #pragma once
21 #include <memory>
22 #include <sfx2/tabdlg.hxx>
24 namespace svx {
25 class SecurityOptionsDialog;
28 // class SvxProxyTabPage -------------------------------------------------
29 class SvxProxyTabPage : public SfxTabPage
31 private:
33 std::unique_ptr<weld::ComboBox> m_xProxyModeLB;
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;
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;
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;
50 std::unique_ptr<weld::Label> m_xNoProxyForFT;
51 std::unique_ptr<weld::Entry> m_xNoProxyForED;
52 std::unique_ptr<weld::Label> m_xNoProxyDescFT;
54 css::uno::Reference< css::uno::XInterface > m_xConfigurationUpdateAccess;
56 void EnableControls_Impl();
57 void ReadConfigData_Impl();
58 void ReadConfigDefaults_Impl();
59 void RestoreConfigDefaults_Impl();
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);
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;
75 // class SvxSecurityTabPage ---------------------------------------------
77 class CertPathDialog;
78 class SvxSecurityTabPage : public SfxTabPage
80 private:
81 std::unique_ptr<svx::SecurityOptionsDialog> m_xSecOptDlg;
83 std::unique_ptr<CertPathDialog> mpCertPathDlg;
85 OUString m_sPasswordStoringDeactivateStr;
87 std::unique_ptr<weld::Button> m_xSecurityOptionsPB;
89 std::unique_ptr<weld::CheckButton> m_xSavePasswordsCB;
90 std::unique_ptr<weld::Button> m_xShowConnectionsPB;
92 std::unique_ptr<weld::CheckButton> m_xMasterPasswordCB;
93 std::unique_ptr<weld::Label> m_xMasterPasswordFT;
94 std::unique_ptr<weld::Button> m_xMasterPasswordPB;
96 std::unique_ptr<weld::Container> m_xMacroSecFrame;
97 std::unique_ptr<weld::Button> m_xMacroSecPB;
99 std::unique_ptr<weld::Container> m_xCertFrame;
100 std::unique_ptr<weld::Button> m_xCertPathPB;
102 std::unique_ptr<weld::Container> m_xTSAURLsFrame;
103 std::unique_ptr<weld::Button> m_xTSAURLsPB;
105 std::unique_ptr<weld::Label> m_xNoPasswordSaveFT;
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 );
116 void InitControls();
118 protected:
119 virtual void ActivatePage( const SfxItemSet& rSet ) override;
120 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
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;
130 struct SvxEMailTabPage_Impl;
131 class SvxEMailTabPage : public SfxTabPage
133 OUString m_sDefaultFilterName;
135 std::unique_ptr<SvxEMailTabPage_Impl> pImpl;
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;
146 DECL_LINK(FileDialogHdl_Impl, weld::Button&, void);
148 public:
149 SvxEMailTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet );
150 virtual ~SvxEMailTabPage() override;
152 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
154 virtual bool FillItemSet( SfxItemSet* rSet ) override;
155 virtual void Reset( const SfxItemSet* rSet ) override;
158 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */