LCOV - code coverage report
Current view: top level - cui/source/inc - cuihyperdlg.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 4 0.0 %
Date: 2014-11-03 Functions: 0 5 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             : 
      20             : #ifndef INCLUDED_CUI_SOURCE_INC_CUIHYPERDLG_HXX
      21             : #define INCLUDED_CUI_SOURCE_INC_CUIHYPERDLG_HXX
      22             : 
      23             : #include <svx/hlnkitem.hxx>
      24             : #include <sfx2/childwin.hxx>
      25             : #include <sfx2/ctrlitem.hxx>
      26             : #include <sfx2/bindings.hxx>
      27             : #include <vcl/image.hxx>
      28             : 
      29             : #include "iconcdlg.hxx"
      30             : 
      31             : /*************************************************************************
      32             : |*
      33             : |* Hyperlink-Dialog
      34             : |*
      35             : \************************************************************************/
      36             : 
      37             : class SvxHpLinkDlg;
      38           0 : class SvxHlinkCtrl : public SfxControllerItem
      39             : {
      40             : private :
      41             :     SvxHpLinkDlg *pParent;
      42             : 
      43             :     SfxStatusForwarder aRdOnlyForwarder;
      44             : 
      45             : public :
      46             :     SvxHlinkCtrl( sal_uInt16 nId, SfxBindings & rBindings, SvxHpLinkDlg* pDlg);
      47             : 
      48             :     virtual void    StateChanged( sal_uInt16 nSID, SfxItemState eState,
      49             :                                 const SfxPoolItem* pState ) SAL_OVERRIDE;
      50             : };
      51             : 
      52             : 
      53             : 
      54             : /*************************************************************************
      55             : |*
      56             : |* Hyperlink-Dialog
      57             : |*
      58             : \************************************************************************/
      59             : 
      60             : class SvxHpLinkDlg : public IconChoiceDialog
      61             : {
      62             : private:
      63             :     SvxHlinkCtrl        maCtrl;         ///< Controller
      64             :     SfxBindings*        mpBindings;
      65             :     SfxItemSet*         mpItemSet;
      66             : 
      67             :     bool            mbGrabFocus : 1;
      68             :     bool            mbReadOnly  : 1;
      69             :     bool            mbIsHTMLDoc : 1;
      70             : 
      71             :     DECL_LINK (ClickOkHdl_Impl, void * );
      72             :     DECL_LINK (ClickApplyHdl_Impl, void * );
      73             :     DECL_LINK (ClickCloseHdl_Impl, void * );
      74             : 
      75             : protected:
      76             :     virtual bool            Close() SAL_OVERRIDE;
      77             :     virtual void            Move() SAL_OVERRIDE;
      78             :     void Apply();
      79             : 
      80             : public:
      81             :     SvxHpLinkDlg (vcl::Window* pParent, SfxBindings* pBindings );
      82             :     virtual ~SvxHpLinkDlg ();
      83             : 
      84             :     virtual void            PageCreated( sal_uInt16 nId, IconChoicePage& rPage ) SAL_OVERRIDE;
      85             : 
      86             :     sal_uInt16                  SetPage( SvxHyperlinkItem* pItem );
      87             :     void                    SetReadOnlyMode( bool bReadOnly = false );
      88           0 :     inline bool     IsHTMLDoc() const { return mbIsHTMLDoc; }
      89             : 
      90           0 :     inline SfxBindings*     GetBindings() const { return mpBindings; };
      91           0 :     inline SfxDispatcher*   GetDispatcher() const { return mpBindings->GetDispatcher(); }
      92             : };
      93             : 
      94             : 
      95             : #endif // INCLUDED_CUI_SOURCE_INC_CUIHYPERDLG_HXX
      96             : 
      97             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10