LCOV - code coverage report
Current view: top level - libreoffice/cui/source/inc - hldoctp.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 2 0.0 %
Date: 2012-12-27 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 _SVX_TABPAGE_DOC_HYPERLINK_HXX
      20             : #define _SVX_TABPAGE_DOC_HYPERLINK_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             :     String              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 ( String& aStrPath );
      63             : 
      64             : protected:
      65             :     void FillDlgFields     ( String& aStrURL );
      66             :     void GetCurentItemData ( String& aStrURL, String& aStrName,
      67             :                              String& aStrIntName, String& aStrFrame,
      68             :                              SvxLinkInsertMode& eMode );
      69           0 :     virtual sal_Bool   ShouldOpenMarkWnd () {return mbMarkWndOpen;}
      70           0 :     virtual void   SetMarkWndShouldOpen (sal_Bool bOpen) {mbMarkWndOpen=bOpen;}
      71             :     String GetCurrentURL    ();
      72             : 
      73             : public:
      74             :     SvxHyperlinkDocTp ( Window *pParent, const SfxItemSet& rItemSet);
      75             :     ~SvxHyperlinkDocTp ();
      76             : 
      77             :     static  IconChoicePage* Create( Window* pWindow, const SfxItemSet& rItemSet );
      78             : 
      79             :     virtual void        SetMarkStr ( String& aStrMark );
      80             : 
      81             :     virtual void        SetInitFocus();
      82             : };
      83             : 
      84             : 
      85             : #endif // _SVX_TABPAGE_DOC_HYPERLINK_HXX
      86             : 
      87             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10