LCOV - code coverage report
Current view: top level - svx/source/dialog - contimp.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 5 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             : #ifndef INCLUDED_SVX_SOURCE_DIALOG_CONTIMP_HXX
      20             : #define INCLUDED_SVX_SOURCE_DIALOG_CONTIMP_HXX
      21             : 
      22             : #include <svx/contdlg.hxx>
      23             : #include "contwnd.hxx"
      24             : #include <vcl/toolbox.hxx>
      25             : #include <vcl/status.hxx>
      26             : #include <vcl/idle.hxx>
      27             : 
      28             : #define CONT_RESID(nId)  ResId( nId, DIALOG_MGR() )
      29             : 
      30             : class SvxSuperContourDlg;
      31             : 
      32           0 : class SvxContourDlgItem : public SfxControllerItem
      33             : {
      34             :     SvxSuperContourDlg& rDlg;
      35             : 
      36             : protected:
      37             : 
      38             :     virtual void        StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) SAL_OVERRIDE;
      39             : 
      40             : public:
      41             : 
      42             :     SvxContourDlgItem( sal_uInt16 nId, SvxSuperContourDlg& rDlg, SfxBindings& rBindings );
      43             : };
      44             : 
      45             : class SvxSuperContourDlg : public SvxContourDlg
      46             : {
      47             :     using SvxContourDlg::GetPolyPolygon;
      48             : 
      49             :     Graphic             aGraphic;
      50             :     Graphic             aUndoGraphic;
      51             :     Graphic             aRedoGraphic;
      52             :     Graphic             aUpdateGraphic;
      53             :     tools::PolyPolygon         aUpdatePolyPoly;
      54             :     Idle                aUpdateIdle;
      55             :     Idle                aCreateIdle;
      56             :     Size                aLastSize;
      57             :     void*               pUpdateEditingObject;
      58             :     void*               pCheckObj;
      59             :     SvxContourDlgItem   aContourItem;
      60             :     VclPtr<ToolBox>     m_pTbx1;
      61             :     VclPtr<MetricField> m_pMtfTolerance;
      62             :     VclPtr<ContourWindow> m_pContourWnd;
      63             :     VclPtr<StatusBar>   m_pStbStatus;
      64             :     sal_uIntPtr         nGrfChanged;
      65             :     bool                bExecState;
      66             :     bool                bUpdateGraphicLinked;
      67             :     bool                bGraphicLinked;
      68             : 
      69             :     sal_uInt16          mnApplyId;
      70             :     sal_uInt16          mnWorkSpaceId;
      71             :     sal_uInt16          mnSelectId;
      72             :     sal_uInt16          mnRectId;
      73             :     sal_uInt16          mnCircleId;
      74             :     sal_uInt16          mnPolyId;
      75             :     sal_uInt16          mnPolyEditId;
      76             :     sal_uInt16          mnPolyMoveId;
      77             :     sal_uInt16          mnPolyInsertId;
      78             :     sal_uInt16          mnPolyDeleteId;
      79             :     sal_uInt16          mnAutoContourId;
      80             :     sal_uInt16          mnUndoId;
      81             :     sal_uInt16          mnRedoId;
      82             :     sal_uInt16          mnPipetteId;
      83             : 
      84             :     virtual bool        Close() SAL_OVERRIDE;
      85             : 
      86             :                         DECL_LINK_TYPED( Tbx1ClickHdl, ToolBox*, void );
      87             :                         DECL_LINK( MousePosHdl, ContourWindow* );
      88             :                         DECL_LINK( GraphSizeHdl, ContourWindow* );
      89             :                         DECL_LINK_TYPED(UpdateHdl, Idle *, void);
      90             :                         DECL_LINK_TYPED(CreateHdl, Idle *, void);
      91             :                         DECL_LINK( StateHdl, ContourWindow* );
      92             :                         DECL_LINK( PipetteHdl, ContourWindow* );
      93             :                         DECL_LINK( PipetteClickHdl, ContourWindow* );
      94             :                         DECL_LINK( WorkplaceClickHdl, ContourWindow* );
      95             :                         DECL_LINK( MiscHdl, void* );
      96             : 
      97             : public:
      98             : 
      99             :                         SvxSuperContourDlg(SfxBindings *pBindings, SfxChildWindow *pCW,
     100             :                                            vcl::Window* pParent);
     101             :                         virtual ~SvxSuperContourDlg();
     102             :     virtual void        dispose() SAL_OVERRIDE;
     103             : 
     104             :     void                SetExecState( bool bEnable );
     105             : 
     106             :     void                SetGraphic( const Graphic& rGraphic );
     107             :     void                SetGraphicLinked( bool bLinked ) { bGraphicLinked = bLinked; }
     108           0 :     const Graphic&      GetGraphic() const { return aGraphic; }
     109           0 :     bool                IsGraphicChanged() const { return nGrfChanged > 0UL; }
     110             : 
     111             :     void                SetPolyPolygon( const tools::PolyPolygon& rPolyPoly );
     112             :     tools::PolyPolygon         GetPolyPolygon( bool bRescaleToGraphic = true );
     113             : 
     114           0 :     void                SetEditingObject( void* pObj ) { pCheckObj = pObj; }
     115           0 :     const void*         GetEditingObject() const { return pCheckObj; }
     116             : 
     117             :     bool                IsUndoPossible() const;
     118             :     bool                IsRedoPossible() const;
     119             : 
     120             :     void                UpdateGraphic( const Graphic& rGraphic, bool bGraphicLinked,
     121             :                                 const tools::PolyPolygon* pPolyPoly = NULL,
     122             :                                 void* pEditingObj = NULL );
     123             : };
     124             : 
     125             : 
     126             : #endif // INCLUDED_SVX_SOURCE_DIALOG_CONTIMP_HXX
     127             : 
     128             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11