LibreOffice Module sfx2 (master) 1
printopt.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#ifndef INCLUDED_SFX2_PRINTOPT_HXX
21#define INCLUDED_SFX2_PRINTOPT_HXX
22
23#include <sal/config.h>
24#include <sfx2/dllapi.h>
25#include <sfx2/tabdlg.hxx>
26#include <sal/types.h>
28
30{
31private:
32
33 std::unique_ptr<weld::RadioButton> m_xPrinterOutputRB;
34 std::unique_ptr<weld::RadioButton> m_xPrintFileOutputRB;
35 std::unique_ptr<weld::CheckButton> m_xReduceTransparencyCB;
36 std::unique_ptr<weld::RadioButton> m_xReduceTransparencyAutoRB;
37 std::unique_ptr<weld::RadioButton> m_xReduceTransparencyNoneRB;
38 std::unique_ptr<weld::CheckButton> m_xReduceGradientsCB;
39 std::unique_ptr<weld::RadioButton> m_xReduceGradientsStripesRB;
40 std::unique_ptr<weld::RadioButton> m_xReduceGradientsColorRB;
41 std::unique_ptr<weld::SpinButton> m_xReduceGradientsStepCountNF;
42 std::unique_ptr<weld::CheckButton> m_xReduceBitmapsCB;
43 std::unique_ptr<weld::RadioButton> m_xReduceBitmapsOptimalRB;
44 std::unique_ptr<weld::RadioButton> m_xReduceBitmapsNormalRB;
45 std::unique_ptr<weld::RadioButton> m_xReduceBitmapsResolutionRB;
46 std::unique_ptr<weld::ComboBox> m_xReduceBitmapsResolutionLB;
47 std::unique_ptr<weld::CheckButton> m_xReduceBitmapsTransparencyCB;
48 std::unique_ptr<weld::CheckButton> m_xConvertToGreyscalesCB;
49 std::unique_ptr<weld::CheckButton> m_xPaperSizeCB;
50 std::unique_ptr<weld::CheckButton> m_xPaperOrientationCB;
51 std::unique_ptr<weld::CheckButton> m_xTransparencyCB;
52
53private:
54
55 vcl::printer::Options maPrinterOptions;
56 vcl::printer::Options maPrintFileOptions;
57
58 DECL_DLLPRIVATE_LINK( ToggleOutputPrinterRBHdl, weld::Toggleable&, void );
59 DECL_DLLPRIVATE_LINK( ToggleOutputPrintFileRBHdl, weld::Toggleable&, void);
60
61 DECL_DLLPRIVATE_LINK( ClickReduceTransparencyCBHdl, weld::Toggleable&, void );
62 DECL_DLLPRIVATE_LINK( ClickReduceGradientsCBHdl, weld::Toggleable&, void );
63 DECL_DLLPRIVATE_LINK( ClickReduceBitmapsCBHdl, weld::Toggleable&, void );
64
65 DECL_DLLPRIVATE_LINK( ToggleReduceGradientsStripesRBHdl, weld::Toggleable&, void );
66 DECL_DLLPRIVATE_LINK( ToggleReduceBitmapsResolutionRBHdl, weld::Toggleable&, void );
67
68 SAL_DLLPRIVATE void ImplUpdateControls( const vcl::printer::Options* pCurrentOptions );
69 SAL_DLLPRIVATE void ImplSaveControls( vcl::printer::Options* pCurrentOptions );
70
71 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
72
73public:
74
76 virtual ~SfxCommonPrintOptionsTabPage() override;
77 virtual bool FillItemSet( SfxItemSet* rSet ) override;
78 virtual void Reset( const SfxItemSet* rSet ) override;
79
80 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet*);
81};
82
83#endif // INCLUDED_SFX2_PRINTOPT_HXX
84
85/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::CheckButton > m_xConvertToGreyscalesCB
Definition: printopt.hxx:48
std::unique_ptr< weld::ComboBox > m_xReduceBitmapsResolutionLB
Definition: printopt.hxx:46
DECL_DLLPRIVATE_LINK(ToggleReduceGradientsStripesRBHdl, weld::Toggleable &, void)
std::unique_ptr< weld::RadioButton > m_xReduceTransparencyAutoRB
Definition: printopt.hxx:36
std::unique_ptr< weld::CheckButton > m_xReduceTransparencyCB
Definition: printopt.hxx:35
std::unique_ptr< weld::RadioButton > m_xReduceBitmapsResolutionRB
Definition: printopt.hxx:45
DECL_DLLPRIVATE_LINK(ClickReduceBitmapsCBHdl, weld::Toggleable &, void)
std::unique_ptr< weld::RadioButton > m_xPrintFileOutputRB
Definition: printopt.hxx:34
vcl::printer::Options maPrintFileOptions
Definition: printopt.hxx:56
DECL_DLLPRIVATE_LINK(ClickReduceGradientsCBHdl, weld::Toggleable &, void)
std::unique_ptr< weld::RadioButton > m_xReduceGradientsStripesRB
Definition: printopt.hxx:39
DECL_DLLPRIVATE_LINK(ToggleReduceBitmapsResolutionRBHdl, weld::Toggleable &, void)
DECL_DLLPRIVATE_LINK(ToggleOutputPrinterRBHdl, weld::Toggleable &, void)
std::unique_ptr< weld::RadioButton > m_xReduceTransparencyNoneRB
Definition: printopt.hxx:37
DECL_DLLPRIVATE_LINK(ToggleOutputPrintFileRBHdl, weld::Toggleable &, void)
std::unique_ptr< weld::CheckButton > m_xReduceBitmapsCB
Definition: printopt.hxx:42
std::unique_ptr< weld::RadioButton > m_xReduceBitmapsNormalRB
Definition: printopt.hxx:44
std::unique_ptr< weld::CheckButton > m_xPaperSizeCB
Definition: printopt.hxx:49
vcl::printer::Options maPrinterOptions
Definition: printopt.hxx:55
std::unique_ptr< weld::SpinButton > m_xReduceGradientsStepCountNF
Definition: printopt.hxx:41
std::unique_ptr< weld::CheckButton > m_xReduceBitmapsTransparencyCB
Definition: printopt.hxx:47
DECL_DLLPRIVATE_LINK(ClickReduceTransparencyCBHdl, weld::Toggleable &, void)
std::unique_ptr< weld::RadioButton > m_xReduceGradientsColorRB
Definition: printopt.hxx:40
std::unique_ptr< weld::CheckButton > m_xReduceGradientsCB
Definition: printopt.hxx:38
std::unique_ptr< weld::RadioButton > m_xReduceBitmapsOptimalRB
Definition: printopt.hxx:43
std::unique_ptr< weld::CheckButton > m_xPaperOrientationCB
Definition: printopt.hxx:50
std::unique_ptr< weld::CheckButton > m_xTransparencyCB
Definition: printopt.hxx:51
std::unique_ptr< weld::RadioButton > m_xPrinterOutputRB
Definition: printopt.hxx:33
virtual void Reset(const SfxItemSet *)
Definition: tabdlg.cxx:169
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet)
Definition: tabdlg.cxx:185
virtual bool FillItemSet(SfxItemSet *)
Definition: tabdlg.cxx:164
#define SFX2_DLLPUBLIC
Definition: dllapi.h:29
void Create(SwFormatVertOrient &rItem, SvStream &rStrm, sal_uInt16 nVersionAbusedAsSize)
static SfxItemSet & rSet
Definition: shell.cxx:534
DeactivateRC
Definition: tabdlg.hxx:173