1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 <osl/mutex.hxx>
26 #include <rtl/ustring.hxx>
27 #include <unotools/options.hxx>
29 class SvtPrintOptions_Impl
;
33 class SVT_DLLPUBLIC SvtBasePrintOptions
: public utl::detail::Options
37 SvtPrintOptions_Impl
* m_pDataContainer
;
39 void SetDataContainer( SvtPrintOptions_Impl
* pDataContainer
) { m_pDataContainer
= pDataContainer
; }
43 static ::osl::Mutex
& GetOwnStaticMutex();
47 SvtBasePrintOptions();
48 virtual ~SvtBasePrintOptions() override
;
50 bool IsReduceTransparency() const;
51 sal_Int16
GetReducedTransparencyMode() const;
52 bool IsReduceGradients() const;
53 sal_Int16
GetReducedGradientMode() const;
54 sal_Int16
GetReducedGradientStepCount() const;
55 bool IsReduceBitmaps() const;
56 sal_Int16
GetReducedBitmapMode() const;
57 sal_Int16
GetReducedBitmapResolution() const;
58 bool IsReducedBitmapIncludesTransparency() const;
59 bool IsConvertToGreyscales() const;
60 bool IsPDFAsStandardPrintJobFormat() const;
62 void SetReduceTransparency( bool bState
);
63 void SetReducedTransparencyMode( sal_Int16 nMode
);
64 void SetReduceGradients( bool bState
);
65 void SetReducedGradientMode( sal_Int16 nMode
);
66 void SetReducedGradientStepCount( sal_Int16 nStepCount
);
67 void SetReduceBitmaps( bool bState
);
68 void SetReducedBitmapMode( sal_Int16 bState
);
69 void SetReducedBitmapResolution( sal_Int16 nResolution
);
70 void SetReducedBitmapIncludesTransparency( bool bState
);
71 void SetConvertToGreyscales( bool bState
);
72 void SetPDFAsStandardPrintJobFormat( bool bState
);
76 void GetPrinterOptions( PrinterOptions
& rOptions
) const;
77 void SetPrinterOptions( const PrinterOptions
& rOptions
);
81 class SVT_DLLPUBLIC SvtPrinterOptions
: public SvtBasePrintOptions
85 static SvtPrintOptions_Impl
* m_pStaticDataContainer
;
86 static sal_Int32 m_nRefCount
;
91 virtual ~SvtPrinterOptions() override
;
95 class SVT_DLLPUBLIC SvtPrintFileOptions
: public SvtBasePrintOptions
99 static SvtPrintOptions_Impl
* m_pStaticDataContainer
;
100 static sal_Int32 m_nRefCount
;
104 SvtPrintFileOptions();
105 virtual ~SvtPrintFileOptions() override
;
108 #endif // INCLUDED_SVTOOLS_PRINTOPTIONS_HXX
110 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */