LCOV - code coverage report
Current view: top level - include/svx - imapdlg.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 4 0.0 %
Date: 2014-04-14 Functions: 0 6 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_SVX_IMAPDLG_HXX
      21             : #define INCLUDED_SVX_IMAPDLG_HXX
      22             : 
      23             : #include <svtools/inettbc.hxx>
      24             : #include <sfx2/childwin.hxx>
      25             : #include <sfx2/ctrlitem.hxx>
      26             : #include <sfx2/basedlgs.hxx>
      27             : #include <vcl/fixed.hxx>
      28             : #include <vcl/combobox.hxx>
      29             : #include <vcl/edit.hxx>
      30             : #include <vcl/toolbox.hxx>
      31             : #include <vcl/status.hxx>
      32             : #include <svx/svxdllapi.h>
      33             : #include <vector>
      34             : 
      35             : class ImageMap;
      36             : 
      37             : /*************************************************************************
      38             : |*
      39             : |* Derivation from SfxChildWindow as "container" for float
      40             : |*
      41             : \************************************************************************/
      42             : 
      43             : class Graphic;
      44             : typedef ::std::vector< OUString > TargetList;
      45             : 
      46           0 : class SVX_DLLPUBLIC SvxIMapDlgChildWindow : public SfxChildWindow
      47             : {
      48             :  public:
      49             : 
      50             :     SvxIMapDlgChildWindow( Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* );
      51             : 
      52             :     SFX_DECL_CHILDWINDOW_WITHID( SvxIMapDlgChildWindow );
      53             : 
      54             :     static void UpdateIMapDlg( const Graphic& rGraphic, const ImageMap* pImageMap = NULL,
      55             :                                const TargetList* pTargetList = NULL, void* pEditingObj = NULL );
      56             : };
      57             : 
      58             : 
      59             : class SvxIMapDlg;
      60             : 
      61           0 : class SvxIMapDlgItem : public SfxControllerItem
      62             : {
      63             :     SvxIMapDlg& rIMap;
      64             : 
      65             : 
      66             : protected:
      67             : 
      68             :     virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
      69             :                                const SfxPoolItem* pState ) SAL_OVERRIDE;
      70             : 
      71             : 
      72             : public:
      73             : 
      74             :     SvxIMapDlgItem( sal_uInt16 nId, SvxIMapDlg& rIMapDlg, SfxBindings& rBindings );
      75             : };
      76             : 
      77             : class IMapOwnData;
      78             : class IMapWindow;
      79             : 
      80             : class SVX_DLLPUBLIC SvxIMapDlg : public SfxModelessDialog // SfxFloatingWindow
      81             : {
      82             :     friend class IMapOwnData;
      83             :     friend class IMapWindow;
      84             : 
      85             :     ToolBox             aTbxIMapDlg1;
      86             :     FixedText           aFtURL;
      87             :     SvtURLBox           maURLBox;
      88             :     FixedText           aFtText;
      89             :     Edit                aEdtText;
      90             :     FixedText           maFtTarget;
      91             :     ComboBox            maCbbTarget;
      92             :     StatusBar           aStbStatus;
      93             :     ImageList           maImageList;
      94             : 
      95             :     Size                aLastSize;
      96             :     IMapWindow*         pIMapWnd;
      97             :     IMapOwnData*        pOwnData;
      98             :     void*               pCheckObj;
      99             :     SvxIMapDlgItem      aIMapItem;
     100             : 
     101             :     virtual void        Resize() SAL_OVERRIDE;
     102             :     virtual bool    Close() SAL_OVERRIDE;
     103             : 
     104             :     DECL_LINK( TbxClickHdl, ToolBox* );
     105             :     DECL_LINK( InfoHdl, IMapWindow* );
     106             :     DECL_LINK( MousePosHdl, IMapWindow* );
     107             :     DECL_LINK( GraphSizeHdl, IMapWindow* );
     108             :     DECL_LINK( URLModifyHdl, void* );
     109             :     DECL_LINK( URLLoseFocusHdl, void* );
     110             :     DECL_LINK(UpdateHdl, void *);
     111             :     DECL_LINK( TbxUpdateHdl, Timer* );
     112             :     DECL_LINK( StateHdl, IMapWindow* );
     113             :     DECL_LINK( MiscHdl, void* );
     114             : 
     115             :     void                DoOpen();
     116             :     bool                DoSave();
     117             : 
     118             : public:
     119             : 
     120             :                         SvxIMapDlg( SfxBindings *pBindings, SfxChildWindow *pCW,
     121             :                                     Window* pParent, const ResId& rResId );
     122             :                         virtual ~SvxIMapDlg();
     123             : 
     124             :     void                SetExecState( bool bEnable );
     125             : 
     126             :     void                SetGraphic( const Graphic& rGraphic );
     127             : 
     128           0 :     void                SetEditingObject( void* pObj ) { pCheckObj = pObj; }
     129           0 :     const void*         GetEditingObject() const { return pCheckObj; }
     130             : 
     131             :     void                SetImageMap( const ImageMap& rImageMap );
     132             :     const ImageMap&     GetImageMap() const;
     133             : 
     134             :     void                SetTargetList( const TargetList& rTargetList );
     135             : 
     136             :     void                UpdateLink( const Graphic& rGraphic, const ImageMap* pImageMap = NULL,
     137             :                                 const TargetList* pTargetList = NULL, void* pEditingObj = NULL );
     138             : 
     139             :     virtual void        KeyInput( const KeyEvent& rKEvt ) SAL_OVERRIDE;
     140             : 
     141             :     virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
     142             :     void ApplyImageList();
     143             : };
     144             : 
     145             : 
     146             : /*************************************************************************
     147             : |*
     148             : |* Defines
     149             : |*
     150             : \************************************************************************/
     151             : 
     152             : #define SVXIMAPDLG() ( (SvxIMapDlg*) ( SfxViewFrame::Current()->GetChildWindow(         \
     153             :                         SvxIMapDlgChildWindow::GetChildWindowId() )->   \
     154             :                         GetWindow() ) )
     155             : 
     156             : 
     157             : #endif // INCLUDED_SVX_IMAPDLG_HXX
     158             : 
     159             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10