LCOV - code coverage report
Current view: top level - cui/source/inc - hlinettp.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 2 0.0 %
Date: 2015-06-13 12:38:46 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             :     VclPtr<RadioButton >        m_pRbtLinktypInternet;
      36             :     VclPtr<RadioButton>         m_pRbtLinktypFTP;
      37             :     VclPtr<SvxHyperURLBox>      m_pCbbTarget;
      38             :     VclPtr<PushButton>          m_pBtBrowse;
      39             :     VclPtr<FixedText>           m_pFtLogin;
      40             :     VclPtr<Edit>                m_pEdLogin;
      41             :     VclPtr<FixedText>           m_pFtPassword;
      42             :     VclPtr<Edit>                m_pEdPassword;
      43             :     VclPtr<CheckBox>            m_pCbAnonymous;
      44             : 
      45             :     OUString            maStrOldUser;
      46             :     OUString            maStrOldPassword;
      47             : 
      48             :     bool                mbMarkWndOpen;
      49             : 
      50             :     DECL_LINK (Click_SmartProtocol_Impl  , void * ); ///< Radiobutton clicked: Type HTTP or FTP
      51             :     DECL_LINK (ClickAnonymousHdl_Impl    , void * ); ///< Checkbox : Anonymous User
      52             :     DECL_LINK (ClickBrowseHdl_Impl       , void * ); ///< Button : Browse
      53             :     DECL_LINK (ModifiedLoginHdl_Impl     , void * ); ///< Contens of editfield "Login" modified
      54             :     DECL_LINK (LostFocusTargetHdl_Impl   , void * ); ///< Combobox "Target" lost its focus
      55             :     DECL_LINK (ModifiedTargetHdl_Impl    , void * ); ///< Contens of editfield "Target" modified
      56             : 
      57             :     DECL_LINK_TYPED(TimeoutHdl_Impl, Timer *, void); ///< Handler for timer -timeout
      58             : 
      59             : 
      60             :     void    SetScheme(const OUString& rScheme);
      61             :     void    RemoveImproperProtocol(const OUString& rProperScheme);
      62             :     OUString  GetSchemeFromButtons() const;
      63             :     INetProtocol GetSmartProtocolFromButtons() const;
      64             : 
      65             :     OUString CreateAbsoluteURL() const;
      66             : 
      67             :     void   setAnonymousFTPUser();
      68             :     void   setFTPUser(const OUString& rUser, const OUString& rPassword);
      69             :     void   RefreshMarkWindow();
      70             : 
      71             : protected:
      72             :     virtual void FillDlgFields(const OUString& rStrURL) SAL_OVERRIDE;
      73             :     virtual void GetCurentItemData ( OUString& rStrURL, OUString& aStrName,
      74             :                                      OUString& aStrIntName, OUString& aStrFrame,
      75             :                                      SvxLinkInsertMode& eMode ) SAL_OVERRIDE;
      76           0 :     virtual bool ShouldOpenMarkWnd () SAL_OVERRIDE {return ( mbMarkWndOpen && m_pRbtLinktypInternet->IsChecked() );}
      77           0 :     virtual void SetMarkWndShouldOpen (bool bOpen) SAL_OVERRIDE {mbMarkWndOpen=bOpen;}
      78             : 
      79             : public:
      80             :     SvxHyperlinkInternetTp ( vcl::Window *pParent, IconChoiceDialog* pDlg, const SfxItemSet& rItemSet);
      81             :     virtual ~SvxHyperlinkInternetTp();
      82             :     virtual void dispose() SAL_OVERRIDE;
      83             : 
      84             :     static  VclPtr<IconChoicePage> Create( vcl::Window* pWindow, IconChoiceDialog* pDlg, const SfxItemSet& rItemSet );
      85             : 
      86             :     virtual void        SetMarkStr ( const OUString& aStrMark ) SAL_OVERRIDE;
      87             : 
      88             :     virtual void        SetInitFocus() SAL_OVERRIDE;
      89             : };
      90             : 
      91             : 
      92             : #endif // INCLUDED_CUI_SOURCE_INC_HLINETTP_HXX
      93             : 
      94             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11