LCOV - code coverage report
Current view: top level - cui/source/inc - hlinettp.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 2 0.0 %
Date: 2014-04-14 Functions: 0 2 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_INC_HLINETTP_HXX
      20             : #define INCLUDED_CUI_SOURCE_INC_HLINETTP_HXX
      21             : 
      22             : #include <svx/hyperdlg.hxx>
      23             : #include "cuihyperdlg.hxx"
      24             : #include "hltpbase.hxx"
      25             : 
      26             : /*************************************************************************
      27             : |*
      28             : |* Tabpage : Hyperlink - Internet
      29             : |*
      30             : \************************************************************************/
      31             : 
      32             : class SvxHyperlinkInternetTp : public SvxHyperlinkTabPageBase
      33             : {
      34             : private:
      35             :     FixedLine           maGrpLinkTyp;
      36             :     RadioButton         maRbtLinktypInternet;
      37             :     RadioButton         maRbtLinktypFTP;
      38             :     FixedText           maFtTarget;
      39             :     SvxHyperURLBox      maCbbTarget;
      40             :     ImageButton         maBtBrowse;
      41             :     FixedText           maFtLogin;
      42             :     Edit                maEdLogin;
      43             :     FixedText           maFtPassword;
      44             :     Edit                maEdPassword;
      45             :     CheckBox            maCbAnonymous;
      46             : 
      47             :     OUString            maStrOldUser;
      48             :     OUString            maStrOldPassword;
      49             : 
      50             :     sal_Bool                mbMarkWndOpen;
      51             : 
      52             :     DECL_LINK (Click_SmartProtocol_Impl  , void * ); ///< Radiobutton clicked: Type HTTP or FTP
      53             :     DECL_LINK (ClickAnonymousHdl_Impl    , void * ); ///< Checkbox : Anonymous User
      54             :     DECL_LINK (ClickBrowseHdl_Impl       , void * ); ///< Button : Browse
      55             :     DECL_LINK (ModifiedLoginHdl_Impl     , void * ); ///< Contens of editfield "Login" modified
      56             :     DECL_LINK (LostFocusTargetHdl_Impl   , void * ); ///< Combobox "Target" lost its focus
      57             :     DECL_LINK (ModifiedTargetHdl_Impl    , void * ); ///< Contens of editfield "Target" modified
      58             : 
      59             :     DECL_LINK(TimeoutHdl_Impl           , void *); ///< Handler for timer -timeout
      60             : 
      61             : 
      62             :     void    SetScheme(const OUString& rScheme);
      63             :     void    RemoveImproperProtocol(const OUString& rProperScheme);
      64             :     OUString  GetSchemeFromButtons() const;
      65             :     INetProtocol GetSmartProtocolFromButtons() const;
      66             : 
      67             :     OUString CreateAbsoluteURL() const;
      68             : 
      69             :     void   setAnonymousFTPUser();
      70             :     void   setFTPUser(const OUString& rUser, const OUString& rPassword);
      71             :     void   RefreshMarkWindow();
      72             : 
      73             : protected:
      74             :     virtual void FillDlgFields(const OUString& rStrURL) SAL_OVERRIDE;
      75             :     virtual void GetCurentItemData ( OUString& rStrURL, OUString& aStrName,
      76             :                                      OUString& aStrIntName, OUString& aStrFrame,
      77             :                                      SvxLinkInsertMode& eMode ) SAL_OVERRIDE;
      78           0 :     virtual sal_Bool ShouldOpenMarkWnd () SAL_OVERRIDE {return ( mbMarkWndOpen && maRbtLinktypInternet.IsChecked() );}
      79           0 :     virtual void SetMarkWndShouldOpen (sal_Bool bOpen) SAL_OVERRIDE {mbMarkWndOpen=bOpen;}
      80             : 
      81             : public:
      82             :     SvxHyperlinkInternetTp ( Window *pParent, const SfxItemSet& rItemSet);
      83             :     virtual ~SvxHyperlinkInternetTp ();
      84             : 
      85             :     static  IconChoicePage* Create( Window* pWindow, const SfxItemSet& rItemSet );
      86             : 
      87             :     virtual void        SetMarkStr ( const OUString& aStrMark ) SAL_OVERRIDE;
      88             : 
      89             :     virtual void        SetInitFocus() SAL_OVERRIDE;
      90             : };
      91             : 
      92             : 
      93             : #endif // INCLUDED_CUI_SOURCE_INC_HLINETTP_HXX
      94             : 
      95             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10