LCOV - code coverage report
Current view: top level - libreoffice/sd/source/ui/inc - vectdlg.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-12-27 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 _SD_VECTDLG_HXX
      22             : #define _SD_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             :     FixedLine           aGrpSettings;
      47             :     FixedText           aFtLayers;
      48             :     NumericField        aNmLayers;
      49             :     FixedText           aFtReduce;
      50             :     MetricField         aMtReduce;
      51             :     FixedText           aFtFillHoles;
      52             :     MetricField         aMtFillHoles;
      53             :     CheckBox            aCbFillHoles;
      54             : 
      55             :     FixedText           aFtOriginal;
      56             :     GraphCtrl           aBmpWin;
      57             : 
      58             :     FixedText           aFtVectorized;
      59             :     GraphCtrl           aMtfWin;
      60             : 
      61             :     FixedText           aGrpPrgs;
      62             :     ProgressBar         aPrgs;
      63             : 
      64             :     OKButton            aBtnOK;
      65             :     CancelButton        aBtnCancel;
      66             :     HelpButton          aBtnHelp;
      67             :     PushButton          aBtnPreview;
      68             : 
      69             :     Bitmap              aBmp;
      70             :     Bitmap              aPreviewBmp;
      71             :     GDIMetaFile         aMtf;
      72             : 
      73             :     void                LoadSettings();
      74             :     void                SaveSettings() const;
      75             :     void                InitPreviewBmp();
      76             :     void                UpdatePreviewMtf();
      77             : 
      78             :     Rectangle           GetRect( const Size& rDispSize, const Size& rBmpSize ) const;
      79             :     Bitmap              GetPreparedBitmap( Bitmap& rBmp, Fraction& rScale );
      80             :     void                Calculate( Bitmap& rBmp, GDIMetaFile& rMtf );
      81             :     void                AddTile( BitmapReadAccess* pRAcc, GDIMetaFile& rMtf,
      82             :                                  long nPosX, long nPosY, long nWidth, long nHeight );
      83             : 
      84             :                         DECL_LINK( ProgressHdl, void* );
      85             :                         DECL_LINK( ClickPreviewHdl, void* );
      86             :                         DECL_LINK( ClickOKHdl, void* );
      87             :                         DECL_LINK( ToggleHdl, CheckBox* );
      88             :                         DECL_LINK( ModifyHdl, void* );
      89             : 
      90             : public:
      91             : 
      92             :                         SdVectorizeDlg( Window* pParent, const Bitmap& rBmp, ::sd::DrawDocShell* pDocShell );
      93             :                         ~SdVectorizeDlg();
      94             : 
      95           0 :     const GDIMetaFile&  GetGDIMetaFile() const { return aMtf; }
      96             : };
      97             : 
      98             : #endif
      99             : 
     100             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10