fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / include / svtools / printoptions.hxx
blobe3e70e7750e6cf1274a5986f7e384a936562c4a9
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 <osl/mutex.hxx>
26 #include <rtl/ustring.hxx>
27 #include <unotools/options.hxx>
29 class SvtPrintOptions_Impl;
31 // -----------------------
32 // - SvtBasePrintOptions -
33 // -----------------------
35 class PrinterOptions;
37 class SVT_DLLPUBLIC SvtBasePrintOptions: public utl::detail::Options
39 protected:
41 SvtPrintOptions_Impl* m_pDataContainer;
43 void SetDataContainer( SvtPrintOptions_Impl* pDataContainer ) { m_pDataContainer = pDataContainer; }
45 public:
47 static ::osl::Mutex& GetOwnStaticMutex();
49 public:
51 SvtBasePrintOptions();
52 virtual ~SvtBasePrintOptions();
54 sal_Bool IsReduceTransparency() const;
55 sal_Int16 GetReducedTransparencyMode() const;
56 sal_Bool IsReduceGradients() const;
57 sal_Int16 GetReducedGradientMode() const;
58 sal_Int16 GetReducedGradientStepCount() const;
59 sal_Bool IsReduceBitmaps() const;
60 sal_Int16 GetReducedBitmapMode() const;
61 sal_Int16 GetReducedBitmapResolution() const;
62 sal_Bool IsReducedBitmapIncludesTransparency() const;
63 sal_Bool IsConvertToGreyscales() const;
64 sal_Bool IsPDFAsStandardPrintJobFormat() const;
66 void SetReduceTransparency( sal_Bool bState );
67 void SetReducedTransparencyMode( sal_Int16 nMode );
68 void SetReduceGradients( sal_Bool bState );
69 void SetReducedGradientMode( sal_Int16 nMode );
70 void SetReducedGradientStepCount( sal_Int16 nStepCount );
71 void SetReduceBitmaps( sal_Bool bState );
72 void SetReducedBitmapMode( sal_Int16 bState );
73 void SetReducedBitmapResolution( sal_Int16 nResolution );
74 void SetReducedBitmapIncludesTransparency( sal_Bool bState );
75 void SetConvertToGreyscales( sal_Bool bState );
76 void SetPDFAsStandardPrintJobFormat( sal_Bool bState );
78 public:
80 void GetPrinterOptions( PrinterOptions& rOptions ) const;
81 void SetPrinterOptions( const PrinterOptions& rOptions );
84 // ---------------------
85 // - SvtPrinterOptions -
86 // ---------------------
88 class SVT_DLLPUBLIC SvtPrinterOptions : public SvtBasePrintOptions
90 private:
92 static SvtPrintOptions_Impl* m_pStaticDataContainer; /// impl. data container as dynamic pointer for smaller memory requirements!
93 static sal_Int32 m_nRefCount; /// internal ref count mechanism
95 public:
97 SvtPrinterOptions();
98 virtual ~SvtPrinterOptions();
101 // -----------------------
102 // - SvtPrintFileOptions -
103 // -----------------------
105 class SVT_DLLPUBLIC SvtPrintFileOptions : public SvtBasePrintOptions
107 private:
109 static SvtPrintOptions_Impl* m_pStaticDataContainer; /// impl. data container as dynamic pointer for smaller memory requirements!
110 static sal_Int32 m_nRefCount; /// internal ref count mechanism
112 public:
114 SvtPrintFileOptions();
115 virtual ~SvtPrintFileOptions();
118 #endif // INCLUDED_SVTOOLS_PRINTOPTIONS_HXX
120 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */