/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #pragma once #include #include namespace svx { class SecurityOptionsDialog; } // class SvxProxyTabPage ------------------------------------------------- class SvxProxyTabPage : public SfxTabPage { private: std::unique_ptr m_xProxyModeFT; std::unique_ptr m_xProxyModeLB; std::unique_ptr m_xProxyModeImg; std::unique_ptr m_xHttpProxyFT; std::unique_ptr m_xHttpProxyED; std::unique_ptr m_xHttpProxyImg; std::unique_ptr m_xHttpPortFT; std::unique_ptr m_xHttpPortED; std::unique_ptr m_xHttpPortImg; std::unique_ptr m_xHttpsProxyFT; std::unique_ptr m_xHttpsProxyED; std::unique_ptr m_xHttpsProxyImg; std::unique_ptr m_xHttpsPortFT; std::unique_ptr m_xHttpsPortED; std::unique_ptr m_xHttpsPortImg; std::unique_ptr m_xNoProxyForFT; std::unique_ptr m_xNoProxyForED; std::unique_ptr m_xNoProxyForImg; std::unique_ptr m_xNoProxyDescFT; css::uno::Reference< css::uno::XInterface > m_xConfigurationUpdateAccess; void EnableControls_Impl(); void ReadConfigData_Impl(); void ReadConfigDefaults_Impl(); void RestoreConfigDefaults_Impl(); DECL_LINK(PortChangedHdl, weld::Entry&, void); DECL_STATIC_LINK(SvxProxyTabPage, NumberOnlyTextFilterHdl, OUString&, bool); DECL_STATIC_LINK(SvxProxyTabPage, NoSpaceTextFilterHdl, OUString&, bool); DECL_LINK(ProxyHdl_Impl, weld::ComboBox&, void); DECL_STATIC_LINK(SvxProxyTabPage, LoseFocusHdl_Impl, weld::Widget&, void); public: SvxProxyTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet); virtual ~SvxProxyTabPage() override; static std::unique_ptr Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet ); virtual OUString GetAllStrings() override; virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override; }; // class SvxSecurityTabPage --------------------------------------------- class CertPathDialog; class SvxSecurityTabPage : public SfxTabPage { private: std::unique_ptr m_xSecOptDlg; std::unique_ptr mpCertPathDlg; OUString m_sPasswordStoringDeactivateStr; std::unique_ptr m_xSecurityOptionsPB; std::unique_ptr m_xSavePasswordsCB; std::unique_ptr m_xSavePasswordsImg; std::unique_ptr m_xShowConnectionsPB; std::unique_ptr m_xMasterPasswordCB; std::unique_ptr m_xMasterPasswordImg; std::unique_ptr m_xMasterPasswordFT; std::unique_ptr m_xMasterPasswordPB; std::unique_ptr m_xMacroSecFrame; std::unique_ptr m_xMacroSecPB; std::unique_ptr m_xCertFrame; std::unique_ptr m_xCertPathPB; std::unique_ptr m_xCertPathImg; std::unique_ptr m_xCertPathLabel; std::unique_ptr m_xTSAURLsFrame; std::unique_ptr m_xTSAURLsPB; std::unique_ptr m_xTSAURLsImg; std::unique_ptr m_xTSAURLsLabel; std::unique_ptr m_xNoPasswordSaveFT; std::unique_ptr m_xCertMgrPathLB; std::unique_ptr m_xParameterEdit; std::unique_ptr m_xCertMgrPathImg; std::unique_ptr m_xCertMgrPathLabel; DECL_LINK(SecurityOptionsHdl, weld::Button&, void); DECL_LINK(SavePasswordHdl, weld::Toggleable&, void); DECL_LINK(MasterPasswordHdl, weld::Button&, void); DECL_LINK(MasterPasswordCBHdl, weld::Toggleable&, void); DECL_LINK(ShowPasswordsHdl, weld::Button&, void); DECL_LINK(MacroSecPBHdl, weld::Button&, void ); DECL_LINK(CertPathPBHdl, weld::Button&, void ); DECL_LINK(TSAURLsPBHdl, weld::Button&, void ); DECL_LINK(CertMgrPBHdl, weld::Button&, void ); void InitControls(); protected: virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override; public: SvxSecurityTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet); static std::unique_ptr Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet ); virtual ~SvxSecurityTabPage() override; virtual OUString GetAllStrings() override; virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override; }; struct SvxEMailTabPage_Impl; class SvxEMailTabPage : public SfxTabPage { OUString m_sDefaultFilterName; std::unique_ptr pImpl; std::unique_ptr m_xMailContainer; std::unique_ptr m_xMailerURLFI; std::unique_ptr m_xMailerURLED; std::unique_ptr m_xMailerURLPB; std::unique_ptr m_xSuppressHiddenContainer; std::unique_ptr m_xSuppressHiddenFI; std::unique_ptr m_xSuppressHidden; std::unique_ptr m_xDefaultFilterFT; DECL_LINK(FileDialogHdl_Impl, weld::Button&, void); public: SvxEMailTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet ); virtual ~SvxEMailTabPage() override; static std::unique_ptr Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet ); virtual OUString GetAllStrings() override; virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */