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_SD_SOURCE_UI_INC_PRNTOPTS_HXX
21 #define INCLUDED_SD_SOURCE_UI_INC_PRNTOPTS_HXX
22 
23 #include <sfx2/tabdlg.hxx>
24 
25 class SdPrintOptions : public SfxTabPage
26 {
27  friend class SdModule;
28 
29 private:
30     std::unique_ptr<weld::Frame> m_xFrmContent;
31     std::unique_ptr<weld::CheckButton> m_xCbxDraw;
32     std::unique_ptr<weld::CheckButton> m_xCbxNotes;
33     std::unique_ptr<weld::CheckButton> m_xCbxHandout;
34     std::unique_ptr<weld::CheckButton> m_xCbxOutline;
35     std::unique_ptr<weld::RadioButton> m_xRbtColor;
36     std::unique_ptr<weld::RadioButton> m_xRbtGrayscale;
37     std::unique_ptr<weld::RadioButton> m_xRbtBlackWhite;
38     std::unique_ptr<weld::CheckButton> m_xCbxPagename;
39     std::unique_ptr<weld::CheckButton> m_xCbxDate;
40     std::unique_ptr<weld::CheckButton> m_xCbxTime;
41     std::unique_ptr<weld::CheckButton> m_xCbxHiddenPages;
42     std::unique_ptr<weld::RadioButton> m_xRbtDefault;
43     std::unique_ptr<weld::RadioButton> m_xRbtPagesize;
44     std::unique_ptr<weld::RadioButton> m_xRbtPagetile;
45     std::unique_ptr<weld::RadioButton> m_xRbtBooklet;
46     std::unique_ptr<weld::CheckButton> m_xCbxFront;
47     std::unique_ptr<weld::CheckButton> m_xCbxBack;
48     std::unique_ptr<weld::CheckButton> m_xCbxPaperbin;
49 
50     DECL_LINK( ClickCheckboxHdl, weld::ToggleButton&, void );
51     DECL_LINK( ClickBookletHdl, weld::ToggleButton&, void );
52 
53     void updateControls();
54 
55 public:
56     SdPrintOptions(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
57     virtual ~SdPrintOptions() override;
58 
59     static  std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
60 
61     virtual bool FillItemSet( SfxItemSet* ) override;
62     virtual void Reset( const SfxItemSet * ) override;
63 
64     void         SetDrawMode();
65     virtual void PageCreated(const SfxAllItemSet& aSet) override;
66 };
67 
68 #endif // INCLUDED_SD_SOURCE_UI_INC_PRNTOPTS_HXX
69 
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
71