summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-07-24 22:56:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-25 12:55:51 +0200
commitc05adac9229aad0683d2e75a8f8dcd5421c66b02 (patch)
tree9e824bf7e4452069e3fd906bc97933fdfff3bd2d /include
parent67e47070a7580a17804adce812cc2f98bfe7b51f (diff)
use officecfg for print options
Change-Id: I2a85d802b9edda638da467e273ad3d24cbf2bcf1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119476 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/svtools/printoptions.hxx79
-rw-r--r--include/unotools/itemholderbase.hxx2
2 files changed, 3 insertions, 78 deletions
diff --git a/include/svtools/printoptions.hxx b/include/svtools/printoptions.hxx
index 72120306c5f5..6f2e86df3cf1 100644
--- a/include/svtools/printoptions.hxx
+++ b/include/svtools/printoptions.hxx
@@ -22,88 +22,15 @@
#include <config_options.h>
#include <svtools/svtdllapi.h>
#include <sal/types.h>
-#include <unotools/options.hxx>
-namespace osl { class Mutex; }
-
-class SvtPrintOptions_Impl;
class PrinterOptions;
-
-class UNLESS_MERGELIBS(SVT_DLLPUBLIC) SvtBasePrintOptions: public utl::detail::Options
+namespace svtools
{
-
- SvtPrintOptions_Impl* m_pDataContainer;
-
-protected:
-
- void SetDataContainer( SvtPrintOptions_Impl* pDataContainer ) { m_pDataContainer = pDataContainer; }
-
-public:
-
- static ::osl::Mutex& GetOwnStaticMutex();
-
-public:
-
- SvtBasePrintOptions();
- virtual ~SvtBasePrintOptions() override;
-
- static bool IsReduceTransparency();
- static sal_Int16 GetReducedTransparencyMode();
- static bool IsReduceGradients();
- static sal_Int16 GetReducedGradientMode();
- static sal_Int16 GetReducedGradientStepCount();
- static bool IsReduceBitmaps();
- static sal_Int16 GetReducedBitmapMode();
- static sal_Int16 GetReducedBitmapResolution();
- static bool IsReducedBitmapIncludesTransparency();
- static bool IsConvertToGreyscales();
- static bool IsPDFAsStandardPrintJobFormat();
-
- void SetReduceTransparency( bool bState );
- void SetReducedTransparencyMode( sal_Int16 nMode );
- void SetReduceGradients( bool bState );
- void SetReducedGradientMode( sal_Int16 nMode );
- void SetReducedGradientStepCount( sal_Int16 nStepCount );
- void SetReduceBitmaps( bool bState );
- void SetReducedBitmapMode( sal_Int16 bState );
- void SetReducedBitmapResolution( sal_Int16 nResolution );
- void SetReducedBitmapIncludesTransparency( bool bState );
- void SetConvertToGreyscales( bool bState );
- void SetPDFAsStandardPrintJobFormat( bool bState );
-
-public:
-
- static void GetPrinterOptions( PrinterOptions& rOptions );
- void SetPrinterOptions( const PrinterOptions& rOptions );
+ SVT_DLLPUBLIC void GetPrinterOptions( PrinterOptions& rOptions, bool bFile );
+ SVT_DLLPUBLIC void SetPrinterOptions( const PrinterOptions& rOptions, bool bFile );
};
-class UNLESS_MERGELIBS(SVT_DLLPUBLIC) SvtPrinterOptions final : public SvtBasePrintOptions
-{
-private:
-
- static SvtPrintOptions_Impl* m_pStaticDataContainer;
- static sal_Int32 m_nRefCount;
-
-public:
-
- SvtPrinterOptions();
- virtual ~SvtPrinterOptions() override;
-};
-
-
-class UNLESS_MERGELIBS(SVT_DLLPUBLIC) SvtPrintFileOptions final : public SvtBasePrintOptions
-{
-private:
-
- static SvtPrintOptions_Impl* m_pStaticDataContainer;
- static sal_Int32 m_nRefCount;
-
-public:
-
- SvtPrintFileOptions();
- virtual ~SvtPrintFileOptions() override;
-};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/unotools/itemholderbase.hxx b/include/unotools/itemholderbase.hxx
index 3546e5fd1478..676ed455484a 100644
--- a/include/unotools/itemholderbase.hxx
+++ b/include/unotools/itemholderbase.hxx
@@ -55,8 +55,6 @@ enum class EItem
OptionsDialogOptions ,
PathOptions ,
- PrintOptions , // 2
- PrintFileOptions , // 2
SecurityOptions ,
SysLocaleOptions , // 2