LCOV - code coverage report
Current view: top level - cui/source/inc - hldoctp.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_HLDOCTP_HXX
      20             : #define INCLUDED_CUI_SOURCE_INC_HLDOCTP_HXX
      21             : 
      22             : #include "hltpbase.hxx"
      23             : 
      24             : /*************************************************************************
      25             : |*
      26             : |* Tabpage : Hyperlink - Document
      27             : |*
      28             : \************************************************************************/
      29             : 
      30             : class SvxHyperlinkDocTp : public SvxHyperlinkTabPageBase
      31             : {
      32             : private:
      33             :     FixedLine           maGrpDocument;
      34             :     FixedText           maFtPath;
      35             :     SvxHyperURLBox      maCbbPath;
      36             :     ImageButton         maBtFileopen;
      37             : 
      38             :     FixedLine           maGrpTarget;
      39             :     FixedText           maFtTarget;
      40             :     Edit                maEdTarget;
      41             :     FixedText           maFtURL;
      42             :     FixedText           maFtFullURL;
      43             :     ImageButton         maBtBrowse;
      44             : 
      45             :     OUString            maStrURL;
      46             : 
      47             :     sal_Bool                mbMarkWndOpen;
      48             : 
      49             :     DECL_LINK (ClickFileopenHdl_Impl  , void * );
      50             :     DECL_LINK (ClickTargetHdl_Impl    , void * );
      51             : 
      52             :     DECL_LINK (ModifiedPathHdl_Impl  , void * ); ///< Contens of combobox "Path" modified
      53             :     DECL_LINK (ModifiedTargetHdl_Impl, void * ); ///< Contens of editfield "Target" modified
      54             : 
      55             :     DECL_LINK (LostFocusPathHdl_Impl,  void * ); ///< Combobox "path" lost its focus
      56             : 
      57             :     DECL_LINK(TimeoutHdl_Impl      , void *);  ///< Handler for timer -timeout
      58             : 
      59             :     enum EPathType { Type_Unknown, Type_Invalid,
      60             :                      Type_ExistsFile, Type_File,
      61             :                      Type_ExistsDir, Type_Dir };
      62             :     EPathType GetPathType ( const OUString& rStrPath );
      63             : 
      64             : protected:
      65             :     void FillDlgFields(const OUString& rStrURL) SAL_OVERRIDE;
      66             :     void GetCurentItemData ( OUString& rStrURL, OUString& aStrName,
      67             :                              OUString& aStrIntName, OUString& aStrFrame,
      68             :                              SvxLinkInsertMode& eMode ) SAL_OVERRIDE;
      69           0 :     virtual sal_Bool   ShouldOpenMarkWnd () SAL_OVERRIDE {return mbMarkWndOpen;}
      70           0 :     virtual void   SetMarkWndShouldOpen (sal_Bool bOpen) SAL_OVERRIDE {mbMarkWndOpen=bOpen;}
      71             :     OUString GetCurrentURL    ();
      72             : 
      73             : public:
      74             :     SvxHyperlinkDocTp ( Window *pParent, const SfxItemSet& rItemSet);
      75             :     virtual ~SvxHyperlinkDocTp ();
      76             : 
      77             :     static  IconChoicePage* Create( Window* pWindow, const SfxItemSet& rItemSet );
      78             : 
      79             :     virtual void        SetMarkStr ( const OUString& aStrMark ) SAL_OVERRIDE;
      80             : 
      81             :     virtual void        SetInitFocus() SAL_OVERRIDE;
      82             : };
      83             : 
      84             : 
      85             : #endif // INCLUDED_CUI_SOURCE_INC_HLDOCTP_HXX
      86             : 
      87             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10