LCOV - code coverage report
Current view: top level - sd/source/ui/inc - vectdlg.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 1 0.0 %
Date: 2014-04-14 Functions: 0 1 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             : 
      21             : #ifndef INCLUDED_SD_SOURCE_UI_INC_VECTDLG_HXX
      22             : #define INCLUDED_SD_SOURCE_UI_INC_VECTDLG_HXX
      23             : 
      24             : #include <vcl/button.hxx>
      25             : #include <vcl/group.hxx>
      26             : #include <vcl/fixed.hxx>
      27             : #include <vcl/field.hxx>
      28             : #include <vcl/dialog.hxx>
      29             : #include <vcl/gdimtf.hxx>
      30             : #include <vcl/prgsbar.hxx>
      31             : #include <svx/graphctl.hxx>
      32             : 
      33             : namespace sd {
      34             : class DrawDocShell;
      35             : }
      36             : 
      37             : /******************************************************************************
      38             : |*
      39             : |* SdVectorizeDlg
      40             : |*
      41             : \******************************************************************************/
      42             : 
      43             : class SdVectorizeDlg : public ModalDialog
      44             : {
      45             :     ::sd::DrawDocShell *    mpDocSh;
      46             :     NumericField*       m_pNmLayers;
      47             :     MetricField*        m_pMtReduce;
      48             :     FixedText*          m_pFtFillHoles;
      49             :     MetricField*        m_pMtFillHoles;
      50             :     CheckBox*           m_pCbFillHoles;
      51             : 
      52             :     GraphCtrl*          m_pBmpWin;
      53             : 
      54             :     GraphCtrl*          m_pMtfWin;
      55             : 
      56             :     ProgressBar*        m_pPrgs;
      57             : 
      58             :     OKButton*           m_pBtnOK;
      59             :     PushButton*         m_pBtnPreview;
      60             : 
      61             :     Bitmap              aBmp;
      62             :     Bitmap              aPreviewBmp;
      63             :     GDIMetaFile         aMtf;
      64             : 
      65             :     void                LoadSettings();
      66             :     void                SaveSettings() const;
      67             :     void                InitPreviewBmp();
      68             :     void                UpdatePreviewMtf();
      69             : 
      70             :     Rectangle           GetRect( const Size& rDispSize, const Size& rBmpSize ) const;
      71             :     Bitmap              GetPreparedBitmap( Bitmap& rBmp, Fraction& rScale );
      72             :     void                Calculate( Bitmap& rBmp, GDIMetaFile& rMtf );
      73             :     void                AddTile( BitmapReadAccess* pRAcc, GDIMetaFile& rMtf,
      74             :                                  long nPosX, long nPosY, long nWidth, long nHeight );
      75             : 
      76             :                         DECL_LINK( ProgressHdl, void* );
      77             :                         DECL_LINK( ClickPreviewHdl, void* );
      78             :                         DECL_LINK( ClickOKHdl, void* );
      79             :                         DECL_LINK( ToggleHdl, CheckBox* );
      80             :                         DECL_LINK( ModifyHdl, void* );
      81             : 
      82             : public:
      83             : 
      84             :                         SdVectorizeDlg( Window* pParent, const Bitmap& rBmp, ::sd::DrawDocShell* pDocShell );
      85             :                         virtual ~SdVectorizeDlg();
      86             : 
      87           0 :     const GDIMetaFile&  GetGDIMetaFile() const { return aMtf; }
      88             : };
      89             : 
      90             : #endif
      91             : 
      92             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10