android: Update app-specific/MIME type icons
[LibreOffice.git] / include / sfx2 / printopt.hxx
blob2cc4b0a1ded6d6306f6195ee435c2dbcfefb366d
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_SFX2_PRINTOPT_HXX
21 #define INCLUDED_SFX2_PRINTOPT_HXX
23 #include <sal/config.h>
24 #include <sfx2/dllapi.h>
25 #include <sfx2/tabdlg.hxx>
26 #include <sal/types.h>
27 #include <vcl/printer/Options.hxx>
29 class SFX2_DLLPUBLIC SfxCommonPrintOptionsTabPage final : public SfxTabPage
31 private:
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;
53 private:
55 vcl::printer::Options maPrinterOptions;
56 vcl::printer::Options maPrintFileOptions;
58 DECL_DLLPRIVATE_LINK( ToggleOutputPrinterRBHdl, weld::Toggleable&, void );
59 DECL_DLLPRIVATE_LINK( ToggleOutputPrintFileRBHdl, weld::Toggleable&, void);
61 DECL_DLLPRIVATE_LINK( ClickReduceTransparencyCBHdl, weld::Toggleable&, void );
62 DECL_DLLPRIVATE_LINK( ClickReduceGradientsCBHdl, weld::Toggleable&, void );
63 DECL_DLLPRIVATE_LINK( ClickReduceBitmapsCBHdl, weld::Toggleable&, void );
65 DECL_DLLPRIVATE_LINK( ToggleReduceGradientsStripesRBHdl, weld::Toggleable&, void );
66 DECL_DLLPRIVATE_LINK( ToggleReduceBitmapsResolutionRBHdl, weld::Toggleable&, void );
68 SAL_DLLPRIVATE void ImplUpdateControls( const vcl::printer::Options* pCurrentOptions );
69 SAL_DLLPRIVATE void ImplSaveControls( vcl::printer::Options* pCurrentOptions );
71 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
73 public:
75 SfxCommonPrintOptionsTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
76 virtual ~SfxCommonPrintOptionsTabPage() override;
77 virtual bool FillItemSet( SfxItemSet* rSet ) override;
78 virtual void Reset( const SfxItemSet* rSet ) override;
80 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet*);
83 #endif // INCLUDED_SFX2_PRINTOPT_HXX
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */