LCOV - code coverage report
Current view: top level - svx/source/dialog - contimp.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 4 0.0 %
Date: 2012-08-25 Functions: 0 4 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : #ifndef _CONTIMP_HXX_
      29                 :            : #define _CONTIMP_HXX_
      30                 :            : 
      31                 :            : #include <svx/contdlg.hxx>
      32                 :            : #include "contwnd.hxx"
      33                 :            : #include <vcl/toolbox.hxx>
      34                 :            : #include <vcl/status.hxx>
      35                 :            : 
      36                 :            : #define CONT_RESID(nId)  ResId( nId, DIALOG_MGR() )
      37                 :            : 
      38                 :            : class SvxSuperContourDlg : public SvxContourDlg
      39                 :            : {
      40                 :            :     using SvxContourDlg::GetPolyPolygon;
      41                 :            : 
      42                 :            :     Graphic             aGraphic;
      43                 :            :     Graphic             aUndoGraphic;
      44                 :            :     Graphic             aRedoGraphic;
      45                 :            :     Graphic             aUpdateGraphic;
      46                 :            :     PolyPolygon         aUpdatePolyPoly;
      47                 :            :     Timer               aUpdateTimer;
      48                 :            :     Timer               aCreateTimer;
      49                 :            :     Size                aLastSize;
      50                 :            :     void*               pUpdateEditingObject;
      51                 :            :     void*               pCheckObj;
      52                 :            :     SvxContourDlgItem   aContourItem;
      53                 :            :     ToolBox             aTbx1;
      54                 :            :     MetricField         aMtfTolerance;
      55                 :            :     ContourWindow       aContourWnd;
      56                 :            :     StatusBar           aStbStatus;
      57                 :            :     sal_uIntPtr             nGrfChanged;
      58                 :            :     sal_Bool                bExecState;
      59                 :            :     sal_Bool                bUpdateGraphicLinked;
      60                 :            :     sal_Bool                bGraphicLinked;
      61                 :            :     ImageList           maImageList;
      62                 :            : 
      63                 :            :     virtual void        Resize();
      64                 :            :     virtual sal_Bool        Close();
      65                 :            : 
      66                 :            :                         DECL_LINK( Tbx1ClickHdl, ToolBox* );
      67                 :            :                         DECL_LINK( MousePosHdl, ContourWindow* );
      68                 :            :                         DECL_LINK( GraphSizeHdl, ContourWindow* );
      69                 :            :                         DECL_LINK(UpdateHdl, void *);
      70                 :            :                         DECL_LINK(CreateHdl, void *);
      71                 :            :                         DECL_LINK( StateHdl, ContourWindow* );
      72                 :            :                         DECL_LINK( PipetteHdl, ContourWindow* );
      73                 :            :                         DECL_LINK( PipetteClickHdl, ContourWindow* );
      74                 :            :                         DECL_LINK( WorkplaceClickHdl, ContourWindow* );
      75                 :            :                         DECL_LINK( MiscHdl, void* );
      76                 :            : 
      77                 :            : public:
      78                 :            : 
      79                 :            :                         SvxSuperContourDlg( SfxBindings *pBindings, SfxChildWindow *pCW,
      80                 :            :                                             Window* pParent, const ResId& rResId );
      81                 :            :                         ~SvxSuperContourDlg();
      82                 :            : 
      83                 :            :     void                SetExecState( sal_Bool bEnable );
      84                 :            : 
      85                 :            :     void                SetGraphic( const Graphic& rGraphic );
      86                 :            :     void                SetGraphicLinked( sal_Bool bLinked ) { bGraphicLinked = bLinked; }
      87                 :          0 :     const Graphic&      GetGraphic() const { return aGraphic; }
      88                 :          0 :     sal_Bool                IsGraphicChanged() const { return nGrfChanged > 0UL; }
      89                 :            : 
      90                 :            :     void                SetPolyPolygon( const PolyPolygon& rPolyPoly );
      91                 :            :     PolyPolygon         GetPolyPolygon( sal_Bool bRescaleToGraphic = sal_True );
      92                 :            : 
      93                 :          0 :     void                SetEditingObject( void* pObj ) { pCheckObj = pObj; }
      94                 :          0 :     const void*         GetEditingObject() const { return pCheckObj; }
      95                 :            : 
      96                 :            :     sal_Bool                IsUndoPossible() const;
      97                 :            :     sal_Bool                IsRedoPossible() const;
      98                 :            : 
      99                 :            :     void                UpdateGraphic( const Graphic& rGraphic, sal_Bool bGraphicLinked,
     100                 :            :                                 const PolyPolygon* pPolyPoly = NULL,
     101                 :            :                                 void* pEditingObj = NULL );
     102                 :            : 
     103                 :            :     /** switches the toolbox images depending on the actuall high contrast display mode state */
     104                 :            :     void                ApplyImageList();
     105                 :            : 
     106                 :            :     /** virtual method from Window is used to detect change in high contrast display mode
     107                 :            :         to switch the toolbox images */
     108                 :            :     virtual void        DataChanged( const DataChangedEvent& rDCEvt );
     109                 :            : 
     110                 :            : };
     111                 :            : 
     112                 :            : 
     113                 :            : #endif // _CONTIMP_HXX_
     114                 :            : 
     115                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10