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 .
22 #include <config_options.h>
23 #include <svtools/svtdllapi.h>
24 #include <sal/types.h>
25 #include <unotools/options.hxx>
27 namespace osl
{ class Mutex
; }
29 class SvtPrintOptions_Impl
;
33 class UNLESS_MERGELIBS(SVT_DLLPUBLIC
) SvtBasePrintOptions
: public utl::detail::Options
36 SvtPrintOptions_Impl
* m_pDataContainer
;
40 void SetDataContainer( SvtPrintOptions_Impl
* pDataContainer
) { m_pDataContainer
= pDataContainer
; }
44 static ::osl::Mutex
& GetOwnStaticMutex();
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
);
77 static void GetPrinterOptions( PrinterOptions
& rOptions
);
78 void SetPrinterOptions( const PrinterOptions
& rOptions
);
82 class UNLESS_MERGELIBS(SVT_DLLPUBLIC
) SvtPrinterOptions final
: public SvtBasePrintOptions
86 static SvtPrintOptions_Impl
* m_pStaticDataContainer
;
87 static sal_Int32 m_nRefCount
;
92 virtual ~SvtPrinterOptions() override
;
96 class UNLESS_MERGELIBS(SVT_DLLPUBLIC
) SvtPrintFileOptions final
: public SvtBasePrintOptions
100 static SvtPrintOptions_Impl
* m_pStaticDataContainer
;
101 static sal_Int32 m_nRefCount
;
105 SvtPrintFileOptions();
106 virtual ~SvtPrintFileOptions() override
;
109 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */