LCOV - code coverage report
Current view: top level - include/svx - imapdlg.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 4 0.0 %
Date: 2015-06-13 12:38:46 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( vcl::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             :     VclPtr<ToolBox>             m_pTbxIMapDlg1;
      86             :     VclPtr<FixedText>           m_pFtURL;
      87             :     VclPtr<SvtURLBox>           m_pURLBox;
      88             :     VclPtr<FixedText>           m_pFtText;
      89             :     VclPtr<Edit>                m_pEdtText;
      90             :     VclPtr<FixedText>           m_pFtTarget;
      91             :     VclPtr<ComboBox>            m_pCbbTarget;
      92             :     VclPtr<StatusBar>           m_pStbStatus;
      93             : 
      94             :     sal_uInt16          mnApplyId;
      95             :     sal_uInt16          mnOpenId;
      96             :     sal_uInt16          mnSaveAsId;
      97             :     sal_uInt16          mnSelectId;
      98             :     sal_uInt16          mnRectId;
      99             :     sal_uInt16          mnCircleId;
     100             :     sal_uInt16          mnPolyId;
     101             :     sal_uInt16          mnFreePolyId;
     102             :     sal_uInt16          mnPolyEditId;
     103             :     sal_uInt16          mnPolyMoveId;
     104             :     sal_uInt16          mnPolyInsertId;
     105             :     sal_uInt16          mnPolyDeleteId;
     106             :     sal_uInt16          mnUndoId;
     107             :     sal_uInt16          mnRedoId;
     108             :     sal_uInt16          mnActiveId;
     109             :     sal_uInt16          mnMacroId;
     110             :     sal_uInt16          mnPropertyId;
     111             : 
     112             :     Size                aLastSize;
     113             :     VclPtr<IMapWindow>         pIMapWnd;
     114             :     IMapOwnData*        pOwnData;
     115             :     void*               pCheckObj;
     116             :     SvxIMapDlgItem      aIMapItem;
     117             : 
     118             :     virtual bool    Close() SAL_OVERRIDE;
     119             : 
     120             :     DECL_LINK_TYPED( TbxClickHdl, ToolBox*, void );
     121             :     DECL_LINK( InfoHdl, IMapWindow* );
     122             :     DECL_LINK( MousePosHdl, IMapWindow* );
     123             :     DECL_LINK( GraphSizeHdl, IMapWindow* );
     124             :     DECL_LINK( URLModifyHdl, void* );
     125             :     DECL_LINK( URLLoseFocusHdl, void* );
     126             :     DECL_LINK_TYPED(UpdateHdl, Idle *, void);
     127             :     DECL_LINK( TbxUpdateHdl, Timer* );
     128             :     DECL_LINK( StateHdl, IMapWindow* );
     129             :     DECL_LINK( MiscHdl, void* );
     130             : 
     131             :     void                DoOpen();
     132             :     bool                DoSave();
     133             : 
     134             : public:
     135             : 
     136             :                         SvxIMapDlg( SfxBindings *pBindings, SfxChildWindow *pCW,
     137             :                                     vcl::Window* pParent );
     138             :                         virtual ~SvxIMapDlg();
     139             :     virtual void        dispose() SAL_OVERRIDE;
     140             : 
     141             :     void                SetExecState( bool bEnable );
     142             : 
     143             :     void                SetGraphic( const Graphic& rGraphic );
     144             : 
     145           0 :     void                SetEditingObject( void* pObj ) { pCheckObj = pObj; }
     146           0 :     const void*         GetEditingObject() const { return pCheckObj; }
     147             : 
     148             :     void                SetImageMap( const ImageMap& rImageMap );
     149             :     const ImageMap&     GetImageMap() const;
     150             : 
     151             :     void                SetTargetList( const TargetList& rTargetList );
     152             : 
     153             :     void                UpdateLink( const Graphic& rGraphic, const ImageMap* pImageMap = NULL,
     154             :                                 const TargetList* pTargetList = NULL, void* pEditingObj = NULL );
     155             : 
     156             :     virtual void        KeyInput( const KeyEvent& rKEvt ) SAL_OVERRIDE;
     157             : };
     158             : 
     159             : SVX_DLLPUBLIC SvxIMapDlg* GetIMapDlg();
     160             : 
     161             : #endif // INCLUDED_SVX_IMAPDLG_HXX
     162             : 
     163             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11