LCOV - code coverage report
Current view: top level - cui/source/options - optinet2.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 5 0.0 %
Date: 2014-04-14 Functions: 0 5 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : #ifndef INCLUDED_CUI_SOURCE_OPTIONS_OPTINET2_HXX
      20             : #define INCLUDED_CUI_SOURCE_OPTIONS_OPTINET2_HXX
      21             : 
      22             : #include <com/sun/star/lang/XMultiServiceFactory.hpp>
      23             : #include <vcl/field.hxx>
      24             : #include <vcl/group.hxx>
      25             : #include <vcl/layout.hxx>
      26             : #include <vcl/lstbox.hxx>
      27             : #include <svtools/stdctrl.hxx>
      28             : #include <svtools/svtabbx.hxx>
      29             : #include <sfx2/tabdlg.hxx>
      30             : #include <unotools/configitem.hxx>
      31             : 
      32             : #include <svtools/headbar.hxx>
      33             : 
      34             : namespace svx {
      35             :     class SecurityOptionsDialog;
      36             : }
      37             : 
      38             : namespace lang = ::com::sun::star::lang;
      39             : namespace uno = ::com::sun::star::uno;
      40             : 
      41             : // class SvxNoSpaceEdit --------------------------------------------------
      42             : 
      43           0 : class SvxNoSpaceEdit : public Edit
      44             : {
      45             : private:
      46             :     bool bOnlyNumeric;
      47             : public:
      48           0 :     SvxNoSpaceEdit(Window* pParent, WinBits nStyle)
      49             :         : Edit(pParent, nStyle)
      50           0 :         , bOnlyNumeric(false)
      51           0 :     {}
      52             :     virtual void KeyInput(const KeyEvent& rKEvent) SAL_OVERRIDE;
      53             :     virtual void Modify() SAL_OVERRIDE;
      54             :     virtual bool set_property(const OString &rKey, const OString &rValue) SAL_OVERRIDE;
      55             : };
      56             : 
      57             : // class SvxProxyTabPage -------------------------------------------------
      58             : 
      59             : class SvxProxyTabPage : public SfxTabPage
      60             : {
      61             : private:
      62             : 
      63             :     ListBox*        m_pProxyModeLB;
      64             : 
      65             :     FixedText*      m_pHttpProxyFT;
      66             :     SvxNoSpaceEdit* m_pHttpProxyED;
      67             :     FixedText*      m_pHttpPortFT;
      68             :     SvxNoSpaceEdit* m_pHttpPortED;
      69             : 
      70             :     FixedText*      m_pHttpsProxyFT;
      71             :     SvxNoSpaceEdit* m_pHttpsProxyED;
      72             :     FixedText*      m_pHttpsPortFT;
      73             :     SvxNoSpaceEdit* m_pHttpsPortED;
      74             : 
      75             :     FixedText*      m_pFtpProxyFT;
      76             :     SvxNoSpaceEdit* m_pFtpProxyED;
      77             :     FixedText*      m_pFtpPortFT;
      78             :     SvxNoSpaceEdit* m_pFtpPortED;
      79             : 
      80             :     FixedText*      m_pNoProxyForFT;
      81             :     Edit*           m_pNoProxyForED;
      82             :     FixedText*      m_pNoProxyDescFT;
      83             : 
      84             :     const OUString aProxyModePN;
      85             :     const OUString aHttpProxyPN;
      86             :     const OUString aHttpPortPN;
      87             :     const OUString aHttpsProxyPN;
      88             :     const OUString aHttpsPortPN;
      89             :     const OUString aFtpProxyPN;
      90             :     const OUString aFtpPortPN;
      91             :     const OUString aNoProxyDescPN;
      92             : 
      93             :     uno::Reference< uno::XInterface > m_xConfigurationUpdateAccess;
      94             : 
      95             :     void EnableControls_Impl(sal_Bool bEnable);
      96             :     void ReadConfigData_Impl();
      97             :     void ReadConfigDefaults_Impl();
      98             :     void RestoreConfigDefaults_Impl();
      99             : 
     100             :     DECL_LINK( ProxyHdl_Impl, ListBox * );
     101             :     DECL_LINK( LoseFocusHdl_Impl, Edit * );
     102             : 
     103             :     SvxProxyTabPage( Window* pParent, const SfxItemSet& rSet );
     104             :     virtual ~SvxProxyTabPage();
     105             : 
     106             : public:
     107             :     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rAttrSet );
     108             :     virtual bool        FillItemSet( SfxItemSet& rSet ) SAL_OVERRIDE;
     109             :     virtual void        Reset( const SfxItemSet& rSet ) SAL_OVERRIDE;
     110             : };
     111             : 
     112             : // #98647# class SvxScriptExecListBox ------------------------------------
     113           0 : class SvxScriptExecListBox : public ListBox
     114             : { // for adding tooltips to ListBox
     115             : public:
     116             :     SvxScriptExecListBox( Window* pParent, WinBits nStyle = WB_BORDER )
     117             :             :ListBox(pParent, nStyle) {}
     118             :     SvxScriptExecListBox( Window* pParent, const ResId& rResId )
     119             :             :ListBox(pParent, rResId) {}
     120             : 
     121             : protected:
     122             :     virtual void RequestHelp( const HelpEvent& rHEvt ) SAL_OVERRIDE;
     123             : };
     124             : 
     125             : // class SvxSecurityTabPage ---------------------------------------------
     126             : 
     127             : class SvtSecurityOptions;
     128             : 
     129             : class CertPathDialog;
     130             : 
     131             : class SvxSecurityTabPage : public SfxTabPage
     132             : {
     133             :     using TabPage::ActivatePage;
     134             :     using TabPage::DeactivatePage;
     135             : 
     136             : private:
     137             :     PushButton*         m_pSecurityOptionsPB;
     138             : 
     139             :     CheckBox*           m_pSavePasswordsCB;
     140             :     PushButton*         m_pShowConnectionsPB;
     141             : 
     142             :     CheckBox*           m_pMasterPasswordCB;
     143             :     FixedText*          m_pMasterPasswordFT;
     144             :     PushButton*         m_pMasterPasswordPB;
     145             : 
     146             :     VclContainer*       m_pMacroSecFrame;
     147             :     PushButton*         m_pMacroSecPB;
     148             : 
     149             :     VclContainer*       m_pCertFrame;
     150             :     PushButton*         m_pCertPathPB;
     151             : 
     152             :     SvtSecurityOptions*         mpSecOptions;
     153             :     svx::SecurityOptionsDialog* mpSecOptDlg;
     154             : 
     155             :     CertPathDialog* mpCertPathDlg;
     156             : 
     157             :     OUString            m_sPasswordStoringDeactivateStr;
     158             : 
     159             :     DECL_LINK(SecurityOptionsHdl, void *);
     160             :     DECL_LINK(SavePasswordHdl, void* );
     161             :     DECL_LINK(MasterPasswordHdl, void *);
     162             :     DECL_LINK(MasterPasswordCBHdl, void* );
     163             :     DECL_LINK(ShowPasswordsHdl, void *);
     164             :     DECL_LINK(MacroSecPBHdl, void* );
     165             :     DECL_LINK(CertPathPBHdl, void* );
     166             : 
     167             :     void                InitControls();
     168             : 
     169             :                 SvxSecurityTabPage( Window* pParent, const SfxItemSet& rSet );
     170             :     virtual     ~SvxSecurityTabPage();
     171             : 
     172             : protected:
     173             :     virtual void        ActivatePage( const SfxItemSet& rSet ) SAL_OVERRIDE;
     174             :     virtual int         DeactivatePage( SfxItemSet* pSet = 0 ) SAL_OVERRIDE;
     175             : 
     176             : public:
     177             :     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rAttrSet );
     178             :     virtual bool        FillItemSet( SfxItemSet& rSet ) SAL_OVERRIDE;
     179             :     virtual void        Reset( const SfxItemSet& rSet ) SAL_OVERRIDE;
     180             : };
     181             : 
     182             : class MozPluginTabPage : public SfxTabPage
     183             : {
     184             :     CheckBox* m_pWBasicCodeCB;
     185             : 
     186             :     sal_Bool isInstalled(void);
     187             :     sal_Bool installPlugin(void);
     188             :     sal_Bool uninstallPlugin(void);
     189             : 
     190             :     MozPluginTabPage( Window* pParent, const SfxItemSet& rSet );
     191             :     virtual ~MozPluginTabPage();
     192             : 
     193             : public:
     194             : 
     195             :     static SfxTabPage*  Create( Window* pParent,
     196             :                                 const SfxItemSet& rAttrSet );
     197             : 
     198             :     virtual bool        FillItemSet( SfxItemSet& rSet ) SAL_OVERRIDE;
     199             :     virtual void        Reset( const SfxItemSet& rSet ) SAL_OVERRIDE;
     200             : 
     201             : };
     202             : 
     203             : struct SvxEMailTabPage_Impl;
     204             : class SvxEMailTabPage : public SfxTabPage
     205             : {
     206             :     VclContainer* m_pMailContainer;
     207             :     FixedImage*   m_pMailerURLFI;
     208             :     Edit*         m_pMailerURLED;
     209             :     PushButton*   m_pMailerURLPB;
     210             : 
     211             :     OUString      m_sDefaultFilterName;
     212             : 
     213             :     SvxEMailTabPage_Impl* pImpl;
     214             : 
     215             :     DECL_LINK(  FileDialogHdl_Impl, PushButton* ) ;
     216             : 
     217             : public:
     218             :     SvxEMailTabPage( Window* pParent, const SfxItemSet& rSet );
     219             :     virtual ~SvxEMailTabPage();
     220             : 
     221             :     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rAttrSet );
     222             : 
     223             :     virtual bool        FillItemSet( SfxItemSet& rSet ) SAL_OVERRIDE;
     224             :     virtual void        Reset( const SfxItemSet& rSet ) SAL_OVERRIDE;
     225             : };
     226             : 
     227             : #endif // INCLUDED_CUI_SOURCE_OPTIONS_OPTINET2_HXX
     228             : 
     229             : 
     230             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10