LCOV - code coverage report
Current view: top level - include/svx - imapdlg.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 4 0.0 %
Date: 2014-11-03 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             :     ToolBox             *m_pTbxIMapDlg1;
      86             :     FixedText           *m_pFtURL;
      87             :     SvtURLBox           *m_pURLBox;
      88             :     FixedText           *m_pFtText;
      89             :     Edit                *m_pEdtText;
      90             :     FixedText           *m_pFtTarget;
      91             :     ComboBox            *m_pCbbTarget;
      92             :     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             :     IMapWindow*         pIMapWnd;
     114             :     IMapOwnData*        pOwnData;
     115             :     void*               pCheckObj;
     116             :     SvxIMapDlgItem      aIMapItem;
     117             : 
     118             :     virtual bool    Close() SAL_OVERRIDE;
     119             : 
     120             :     DECL_LINK( TbxClickHdl, ToolBox* );
     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(UpdateHdl, 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             : 
     140             :     void                SetExecState( bool bEnable );
     141             : 
     142             :     void                SetGraphic( const Graphic& rGraphic );
     143             : 
     144           0 :     void                SetEditingObject( void* pObj ) { pCheckObj = pObj; }
     145           0 :     const void*         GetEditingObject() const { return pCheckObj; }
     146             : 
     147             :     void                SetImageMap( const ImageMap& rImageMap );
     148             :     const ImageMap&     GetImageMap() const;
     149             : 
     150             :     void                SetTargetList( const TargetList& rTargetList );
     151             : 
     152             :     void                UpdateLink( const Graphic& rGraphic, const ImageMap* pImageMap = NULL,
     153             :                                 const TargetList* pTargetList = NULL, void* pEditingObj = NULL );
     154             : 
     155             :     virtual void        KeyInput( const KeyEvent& rKEvt ) SAL_OVERRIDE;
     156             : };
     157             : 
     158             : 
     159             : /*************************************************************************
     160             : |*
     161             : |* Defines
     162             : |*
     163             : \************************************************************************/
     164             : 
     165             : #define SVXIMAPDLG() ( static_cast<SvxIMapDlg*>( SfxViewFrame::Current()->GetChildWindow(         \
     166             :                         SvxIMapDlgChildWindow::GetChildWindowId() )->   \
     167             :                         GetWindow() ) )
     168             : 
     169             : 
     170             : #endif // INCLUDED_SVX_IMAPDLG_HXX
     171             : 
     172             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10