LCOV - code coverage report
Current view: top level - libreoffice/cui/source/options - optinet2.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 4 0.0 %
Date: 2012-12-27 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 _SVX_OPTINET_HXX
      20             : #define _SVX_OPTINET_HXX
      21             : 
      22             : #include <com/sun/star/lang/XMultiServiceFactory.hpp>
      23             : #include <vcl/lstbox.hxx>
      24             : #include <vcl/group.hxx>
      25             : #include <vcl/field.hxx>
      26             : #include <svtools/stdctrl.hxx>
      27             : #include <svtools/svtabbx.hxx>
      28             : #include <sfx2/tabdlg.hxx>
      29             : #include <unotools/configitem.hxx>
      30             : 
      31             : #ifdef _SVX_OPTINET2_CXX
      32             : #include <svtools/headbar.hxx>
      33             : #else
      34             : class HeaderBar;
      35             : #endif
      36             : #include <readonlyimage.hxx>
      37             : 
      38             : namespace svx {
      39             :     class SecurityOptionsDialog;
      40             : }
      41             : 
      42             : namespace lang = ::com::sun::star::lang;
      43             : namespace uno = ::com::sun::star::uno;
      44             : 
      45             : // class SvxNoSpaceEdit --------------------------------------------------
      46             : 
      47           0 : class SvxNoSpaceEdit : public Edit
      48             : {
      49             : private:
      50             :     sal_Bool            bOnlyNumeric;
      51             : 
      52             : public:
      53           0 :     SvxNoSpaceEdit(Window* pParent, ResId rResId, sal_Bool bNum = sal_False ) :
      54           0 :         Edit( pParent, rResId ), bOnlyNumeric( bNum ) {}
      55             : 
      56             :     virtual void    KeyInput( const KeyEvent& rKEvent );
      57             :     virtual void    Modify();
      58             : };
      59             : 
      60             : // class SvxProxyTabPage -------------------------------------------------
      61             : 
      62             : class SvxProxyTabPage : public SfxTabPage
      63             : {
      64             : private:
      65             :     FixedLine       aOptionGB;
      66             : 
      67             :     FixedText       aProxyModeFT;
      68             :     ListBox         aProxyModeLB;
      69             : 
      70             :     FixedText       aHttpProxyFT;
      71             :     SvxNoSpaceEdit  aHttpProxyED;
      72             :     FixedText       aHttpPortFT;
      73             :     SvxNoSpaceEdit  aHttpPortED;
      74             : 
      75             :     FixedText       aHttpsProxyFT;
      76             :     SvxNoSpaceEdit  aHttpsProxyED;
      77             :     FixedText       aHttpsPortFT;
      78             :     SvxNoSpaceEdit  aHttpsPortED;
      79             : 
      80             : 
      81             :     FixedText       aFtpProxyFT;
      82             :     SvxNoSpaceEdit  aFtpProxyED;
      83             :     FixedText       aFtpPortFT;
      84             :     SvxNoSpaceEdit  aFtpPortED;
      85             : 
      86             :     FixedText       aNoProxyForFT;
      87             :     Edit            aNoProxyForED;
      88             :     FixedText       aNoProxyDescFT;
      89             : 
      90             :     String          sFromBrowser;
      91             : 
      92             :     const rtl::OUString aProxyModePN;
      93             :     const rtl::OUString aHttpProxyPN;
      94             :     const rtl::OUString aHttpPortPN;
      95             :     const rtl::OUString aHttpsProxyPN;
      96             :     const rtl::OUString aHttpsPortPN;
      97             :     const rtl::OUString aFtpProxyPN;
      98             :     const rtl::OUString aFtpPortPN;
      99             :     const rtl::OUString aNoProxyDescPN;
     100             : 
     101             :     uno::Reference< uno::XInterface > m_xConfigurationUpdateAccess;
     102             : 
     103             : #ifdef _SVX_OPTINET2_CXX
     104             :     void ArrangeControls_Impl();
     105             :     void EnableControls_Impl(sal_Bool bEnable);
     106             :     void ReadConfigData_Impl();
     107             :     void ReadConfigDefaults_Impl();
     108             :     void RestoreConfigDefaults_Impl();
     109             : 
     110             :     DECL_LINK( ProxyHdl_Impl, ListBox * );
     111             :     DECL_LINK( LoseFocusHdl_Impl, Edit * );
     112             : #endif
     113             : 
     114             :     SvxProxyTabPage( Window* pParent, const SfxItemSet& rSet );
     115             :     virtual ~SvxProxyTabPage();
     116             : 
     117             : public:
     118             :     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rAttrSet );
     119             :     virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
     120             :     virtual void        Reset( const SfxItemSet& rSet );
     121             : };
     122             : 
     123             : // #98647# class SvxScriptExecListBox ------------------------------------
     124           0 : class SvxScriptExecListBox : public ListBox
     125             : { // for adding tooltips to ListBox
     126             : public:
     127             :     SvxScriptExecListBox( Window* pParent, WinBits nStyle = WB_BORDER )
     128             :             :ListBox(pParent, nStyle) {}
     129             :     SvxScriptExecListBox( Window* pParent, const ResId& rResId )
     130             :             :ListBox(pParent, rResId) {}
     131             : 
     132             : protected:
     133             :     virtual void RequestHelp( const HelpEvent& rHEvt );
     134             : };
     135             : 
     136             : // class SvxSecurityTabPage ---------------------------------------------
     137             : 
     138             : class SvtSecurityOptions;
     139             : 
     140             : class CertPathDialog;
     141             : 
     142             : class SvxSecurityTabPage : public SfxTabPage
     143             : {
     144             :     using TabPage::ActivatePage;
     145             :     using TabPage::DeactivatePage;
     146             : 
     147             : private:
     148             :     FixedLine           maSecurityOptionsFL;
     149             :     FixedInfo           maSecurityOptionsFI;
     150             :     PushButton          maSecurityOptionsPB;
     151             : 
     152             :     FixedLine           maPasswordsFL;
     153             :     CheckBox            maSavePasswordsCB;
     154             :     PushButton          maShowConnectionsPB;
     155             :     CheckBox            maMasterPasswordCB;
     156             :     FixedInfo           maMasterPasswordFI;
     157             :     PushButton          maMasterPasswordPB;
     158             : 
     159             :     FixedLine           maMacroSecFL;
     160             :     FixedInfo           maMacroSecFI;
     161             :     PushButton          maMacroSecPB;
     162             : 
     163             :     FixedLine           m_aCertPathFL;
     164             :     FixedInfo           m_aCertPathFI;
     165             :     PushButton          m_aCertPathPB;
     166             : 
     167             :     SvtSecurityOptions*         mpSecOptions;
     168             :     svx::SecurityOptionsDialog* mpSecOptDlg;
     169             : 
     170             :     CertPathDialog* mpCertPathDlg;
     171             : 
     172             :     String              msPasswordStoringDeactivateStr;
     173             : 
     174             :     DECL_LINK(SecurityOptionsHdl, void *);
     175             :     DECL_LINK(SavePasswordHdl, void* );
     176             :     DECL_LINK(MasterPasswordHdl, void *);
     177             :     DECL_LINK(MasterPasswordCBHdl, void* );
     178             :     DECL_LINK(ShowPasswordsHdl, void *);
     179             :     DECL_LINK(MacroSecPBHdl, void* );
     180             :     DECL_LINK(CertPathPBHdl, void* );
     181             : 
     182             :     void                InitControls();
     183             : 
     184             :                 SvxSecurityTabPage( Window* pParent, const SfxItemSet& rSet );
     185             :     virtual     ~SvxSecurityTabPage();
     186             : 
     187             : protected:
     188             :     virtual void        ActivatePage( const SfxItemSet& rSet );
     189             :     virtual int         DeactivatePage( SfxItemSet* pSet = 0 );
     190             : 
     191             : public:
     192             :     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rAttrSet );
     193             :     virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
     194             :     virtual void        Reset( const SfxItemSet& rSet );
     195             : };
     196             : 
     197             : class MozPluginTabPage : public SfxTabPage
     198             : {
     199             :     FixedLine       aMSWordGB;
     200             :     CheckBox        aWBasicCodeCB;
     201             : 
     202             :     sal_Bool isInstalled(void);
     203             :     sal_Bool installPlugin(void);
     204             :     sal_Bool uninstallPlugin(void);
     205             : 
     206             :     MozPluginTabPage( Window* pParent, const SfxItemSet& rSet );
     207             :     virtual ~MozPluginTabPage();
     208             : 
     209             : public:
     210             : 
     211             :     static SfxTabPage*  Create( Window* pParent,
     212             :                                 const SfxItemSet& rAttrSet );
     213             : 
     214             :     virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
     215             :     virtual void        Reset( const SfxItemSet& rSet );
     216             : 
     217             : };
     218             : 
     219             : struct SvxEMailTabPage_Impl;
     220             : class SvxEMailTabPage : public SfxTabPage
     221             : {
     222             :     FixedLine       aMailFL;
     223             :     ReadOnlyImage   aMailerURLFI;
     224             :     FixedText       aMailerURLFT;
     225             :     Edit            aMailerURLED;
     226             :     PushButton      aMailerURLPB;
     227             : 
     228             :     String          m_sDefaultFilterName;
     229             : 
     230             :     SvxEMailTabPage_Impl* pImpl;
     231             : 
     232             :     DECL_LINK(  FileDialogHdl_Impl, PushButton* ) ;
     233             : 
     234             : public:
     235             :     SvxEMailTabPage( Window* pParent, const SfxItemSet& rSet );
     236             :     ~SvxEMailTabPage();
     237             : 
     238             :     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rAttrSet );
     239             : 
     240             :     virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
     241             :     virtual void        Reset( const SfxItemSet& rSet );
     242             : };
     243             : 
     244             : #endif // #ifndef _SVX_OPTINET_HXX
     245             : 
     246             : 
     247             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10