LCOV - code coverage report
Current view: top level - include/svtools - printoptions.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_SVTOOLS_PRINTOPTIONS_HXX
      21             : #define INCLUDED_SVTOOLS_PRINTOPTIONS_HXX
      22             : 
      23             : #include <svtools/svtdllapi.h>
      24             : #include <sal/types.h>
      25             : #include <osl/mutex.hxx>
      26             : #include <rtl/ustring.hxx>
      27             : #include <unotools/options.hxx>
      28             : 
      29             : class SvtPrintOptions_Impl;
      30             : 
      31             : 
      32             : // - SvtBasePrintOptions -
      33             : 
      34             : 
      35             : class PrinterOptions;
      36             : 
      37             : class SVT_DLLPUBLIC SvtBasePrintOptions: public utl::detail::Options
      38             : {
      39             : protected:
      40             : 
      41             :     SvtPrintOptions_Impl* m_pDataContainer;
      42             : 
      43           0 :     void        SetDataContainer( SvtPrintOptions_Impl* pDataContainer ) { m_pDataContainer = pDataContainer; }
      44             : 
      45             : public:
      46             : 
      47             :     static ::osl::Mutex& GetOwnStaticMutex();
      48             : 
      49             : public:
      50             : 
      51             :                 SvtBasePrintOptions();
      52             :                 virtual ~SvtBasePrintOptions();
      53             : 
      54             :     bool        IsReduceTransparency() const;
      55             :     sal_Int16   GetReducedTransparencyMode() const;
      56             :     bool        IsReduceGradients() const;
      57             :     sal_Int16   GetReducedGradientMode() const;
      58             :     sal_Int16   GetReducedGradientStepCount() const;
      59             :     bool        IsReduceBitmaps() const;
      60             :     sal_Int16   GetReducedBitmapMode() const;
      61             :     sal_Int16   GetReducedBitmapResolution() const;
      62             :     bool        IsReducedBitmapIncludesTransparency() const;
      63             :     bool        IsConvertToGreyscales() const;
      64             :     bool        IsPDFAsStandardPrintJobFormat() const;
      65             : 
      66             :     void        SetReduceTransparency( bool bState );
      67             :     void        SetReducedTransparencyMode( sal_Int16 nMode );
      68             :     void        SetReduceGradients( bool bState );
      69             :     void        SetReducedGradientMode( sal_Int16 nMode );
      70             :     void        SetReducedGradientStepCount( sal_Int16 nStepCount );
      71             :     void        SetReduceBitmaps( bool bState );
      72             :     void        SetReducedBitmapMode( sal_Int16   bState );
      73             :     void        SetReducedBitmapResolution( sal_Int16 nResolution );
      74             :     void        SetReducedBitmapIncludesTransparency( bool bState );
      75             :     void        SetConvertToGreyscales( bool bState );
      76             :     void        SetPDFAsStandardPrintJobFormat( bool bState );
      77             : 
      78             : public:
      79             : 
      80             :     void        GetPrinterOptions( PrinterOptions& rOptions ) const;
      81             :     void        SetPrinterOptions( const PrinterOptions& rOptions );
      82             : };
      83             : 
      84             : 
      85             : // - SvtPrinterOptions -
      86             : 
      87             : 
      88             : class SVT_DLLPUBLIC SvtPrinterOptions : public SvtBasePrintOptions
      89             : {
      90             : private:
      91             : 
      92             :     static SvtPrintOptions_Impl*    m_pStaticDataContainer;
      93             :     static sal_Int32                m_nRefCount;
      94             : 
      95             : public:
      96             : 
      97             :     SvtPrinterOptions();
      98             :     virtual ~SvtPrinterOptions();
      99             : };
     100             : 
     101             : 
     102             : // - SvtPrintFileOptions -
     103             : 
     104             : 
     105             : class SVT_DLLPUBLIC SvtPrintFileOptions : public SvtBasePrintOptions
     106             : {
     107             : private:
     108             : 
     109             :     static SvtPrintOptions_Impl*    m_pStaticDataContainer;
     110             :     static sal_Int32                m_nRefCount;
     111             : 
     112             : public:
     113             : 
     114             :     SvtPrintFileOptions();
     115             :     virtual ~SvtPrintFileOptions();
     116             : };
     117             : 
     118             : #endif // INCLUDED_SVTOOLS_PRINTOPTIONS_HXX
     119             : 
     120             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10