lok: use "None" string item in the ListBox control
[LibreOffice.git] / include / svtools / printoptions.hxx
blobf5fe0a6da2a8cc99ff3d211d3d1a336f50a126d3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SVTOOLS_PRINTOPTIONS_HXX
21 #define INCLUDED_SVTOOLS_PRINTOPTIONS_HXX
23 #include <svtools/svtdllapi.h>
24 #include <sal/types.h>
25 #include <unotools/options.hxx>
27 namespace osl { class Mutex; }
29 class SvtPrintOptions_Impl;
30 class PrinterOptions;
33 class SVT_DLLPUBLIC SvtBasePrintOptions: public utl::detail::Options
36 SvtPrintOptions_Impl* m_pDataContainer;
38 protected:
40 void SetDataContainer( SvtPrintOptions_Impl* pDataContainer ) { m_pDataContainer = pDataContainer; }
42 public:
44 static ::osl::Mutex& GetOwnStaticMutex();
46 public:
48 SvtBasePrintOptions();
49 virtual ~SvtBasePrintOptions() override;
51 static bool IsReduceTransparency();
52 static sal_Int16 GetReducedTransparencyMode();
53 static bool IsReduceGradients();
54 static sal_Int16 GetReducedGradientMode();
55 static sal_Int16 GetReducedGradientStepCount();
56 static bool IsReduceBitmaps();
57 static sal_Int16 GetReducedBitmapMode();
58 static sal_Int16 GetReducedBitmapResolution();
59 static bool IsReducedBitmapIncludesTransparency();
60 static bool IsConvertToGreyscales();
61 static bool IsPDFAsStandardPrintJobFormat();
63 void SetReduceTransparency( bool bState );
64 void SetReducedTransparencyMode( sal_Int16 nMode );
65 void SetReduceGradients( bool bState );
66 void SetReducedGradientMode( sal_Int16 nMode );
67 void SetReducedGradientStepCount( sal_Int16 nStepCount );
68 void SetReduceBitmaps( bool bState );
69 void SetReducedBitmapMode( sal_Int16 bState );
70 void SetReducedBitmapResolution( sal_Int16 nResolution );
71 void SetReducedBitmapIncludesTransparency( bool bState );
72 void SetConvertToGreyscales( bool bState );
73 void SetPDFAsStandardPrintJobFormat( bool bState );
75 public:
77 static void GetPrinterOptions( PrinterOptions& rOptions );
78 void SetPrinterOptions( const PrinterOptions& rOptions );
82 class SVT_DLLPUBLIC SvtPrinterOptions final : public SvtBasePrintOptions
84 private:
86 static SvtPrintOptions_Impl* m_pStaticDataContainer;
87 static sal_Int32 m_nRefCount;
89 public:
91 SvtPrinterOptions();
92 virtual ~SvtPrinterOptions() override;
96 class SVT_DLLPUBLIC SvtPrintFileOptions final : public SvtBasePrintOptions
98 private:
100 static SvtPrintOptions_Impl* m_pStaticDataContainer;
101 static sal_Int32 m_nRefCount;
103 public:
105 SvtPrintFileOptions();
106 virtual ~SvtPrintFileOptions() override;
109 #endif // INCLUDED_SVTOOLS_PRINTOPTIONS_HXX
111 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */