LCOV - code coverage report
Current view: top level - cui/source/inc - hlinettp.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 2 0.0 %
Date: 2012-08-25 Functions: 0 2 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 4 0.0 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : #ifndef _SVX_TABPAGE_INET_HYPERLINK_HXX
      29                 :            : #define _SVX_TABPAGE_INET_HYPERLINK_HXX
      30                 :            : 
      31                 :            : #include <svx/hyperdlg.hxx>
      32                 :            : #include "cuihyperdlg.hxx"
      33                 :            : #include "hltpbase.hxx"
      34                 :            : 
      35                 :            : /*************************************************************************
      36                 :            : |*
      37                 :            : |* Tabpage : Hyperlink - Internet
      38                 :            : |*
      39                 :            : \************************************************************************/
      40                 :            : 
      41                 :            : class SvxHyperlinkInternetTp : public SvxHyperlinkTabPageBase
      42                 :            : {
      43                 :            : private:
      44                 :            :     FixedLine           maGrpLinkTyp;
      45                 :            :     RadioButton         maRbtLinktypInternet;
      46                 :            :     RadioButton         maRbtLinktypFTP;
      47                 :            :     FixedText           maFtTarget;
      48                 :            :     SvxHyperURLBox      maCbbTarget;
      49                 :            :     ImageButton         maBtBrowse;
      50                 :            :     FixedText           maFtLogin;
      51                 :            :     Edit                maEdLogin;
      52                 :            :     ImageButton         maBtTarget;
      53                 :            :     FixedText           maFtPassword;
      54                 :            :     Edit                maEdPassword;
      55                 :            :     CheckBox            maCbAnonymous;
      56                 :            : 
      57                 :            :     String              maStrOldUser;
      58                 :            :     String              maStrOldPassword;
      59                 :            : 
      60                 :            :     sal_Bool                mbMarkWndOpen;
      61                 :            : 
      62                 :            :     DECL_LINK (Click_SmartProtocol_Impl  , void * ); ///< Radiobutton clicked: Type HTTP or FTP
      63                 :            :     DECL_LINK (ClickAnonymousHdl_Impl    , void * ); ///< Checkbox : Anonymous User
      64                 :            :     DECL_LINK (ClickBrowseHdl_Impl       , void * ); ///< Button : Browse
      65                 :            :     DECL_LINK (ClickTargetHdl_Impl       , void * ); ///< Button : Target
      66                 :            :     DECL_LINK (ModifiedLoginHdl_Impl     , void * ); ///< Contens of editfield "Login" modified
      67                 :            :     DECL_LINK (LostFocusTargetHdl_Impl   , void * ); ///< Combobox "Target" lost its focus
      68                 :            :     DECL_LINK (ModifiedTargetHdl_Impl    , void * ); ///< Contens of editfield "Target" modified
      69                 :            : 
      70                 :            :     DECL_LINK(TimeoutHdl_Impl           , void *); ///< Handler for timer -timeout
      71                 :            : 
      72                 :            : 
      73                 :            :     void    SetScheme( const String& aScheme );
      74                 :            :     void    RemoveImproperProtocol(const String& aProperScheme);
      75                 :            :     String  GetSchemeFromButtons() const;
      76                 :            :     INetProtocol GetSmartProtocolFromButtons() const;
      77                 :            : 
      78                 :            :     String CreateAbsoluteURL() const;
      79                 :            : 
      80                 :            :     void   setAnonymousFTPUser();
      81                 :            :     void   setFTPUser(const String& rUser, const String& rPassword);
      82                 :            :     void   RefreshMarkWindow();
      83                 :            : 
      84                 :            : protected:
      85                 :            :     virtual void FillDlgFields     ( String& aStrURL );
      86                 :            :     virtual void GetCurentItemData ( String& aStrURL, String& aStrName,
      87                 :            :                                      String& aStrIntName, String& aStrFrame,
      88                 :            :                                      SvxLinkInsertMode& eMode );
      89 [ #  # ][ #  # ]:          0 :     virtual sal_Bool ShouldOpenMarkWnd () {return ( mbMarkWndOpen && maRbtLinktypInternet.IsChecked() );}
      90                 :          0 :     virtual void SetMarkWndShouldOpen (sal_Bool bOpen) {mbMarkWndOpen=bOpen;}
      91                 :            : 
      92                 :            : public:
      93                 :            :     SvxHyperlinkInternetTp ( Window *pParent, const SfxItemSet& rItemSet);
      94                 :            :     ~SvxHyperlinkInternetTp ();
      95                 :            : 
      96                 :            :     static  IconChoicePage* Create( Window* pWindow, const SfxItemSet& rItemSet );
      97                 :            : 
      98                 :            :     virtual void        SetMarkStr ( String& aStrMark );
      99                 :            :     virtual void        SetOnlineMode( sal_Bool bEnable );
     100                 :            : 
     101                 :            :     virtual void        SetInitFocus();
     102                 :            : };
     103                 :            : 
     104                 :            : 
     105                 :            : #endif // _SVX_TABPAGE_INET_HYPERLINK_HXX
     106                 :            : 
     107                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10