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

Generated by: LCOV version 1.10