android: Update app-specific/MIME type icons
[LibreOffice.git] / sd / source / ui / inc / prntopts.hxx
blob51c3a3603b44ec66ce52cc01c0f77c8cd2197216
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 #pragma once
22 #include <sfx2/tabdlg.hxx>
24 class SdPrintOptions final : public SfxTabPage
26 friend class SdModule;
28 private:
29 std::unique_ptr<weld::Frame> m_xFrmContent;
30 std::unique_ptr<weld::CheckButton> m_xCbxDraw;
31 std::unique_ptr<weld::CheckButton> m_xCbxNotes;
32 std::unique_ptr<weld::CheckButton> m_xCbxHandout;
33 std::unique_ptr<weld::CheckButton> m_xCbxOutline;
34 std::unique_ptr<weld::RadioButton> m_xRbtColor;
35 std::unique_ptr<weld::RadioButton> m_xRbtGrayscale;
36 std::unique_ptr<weld::RadioButton> m_xRbtBlackWhite;
37 std::unique_ptr<weld::CheckButton> m_xCbxPagename;
38 std::unique_ptr<weld::CheckButton> m_xCbxDate;
39 std::unique_ptr<weld::CheckButton> m_xCbxTime;
40 std::unique_ptr<weld::CheckButton> m_xCbxHiddenPages;
41 std::unique_ptr<weld::RadioButton> m_xRbtDefault;
42 std::unique_ptr<weld::RadioButton> m_xRbtPagesize;
43 std::unique_ptr<weld::RadioButton> m_xRbtPagetile;
44 std::unique_ptr<weld::RadioButton> m_xRbtBooklet;
45 std::unique_ptr<weld::CheckButton> m_xCbxFront;
46 std::unique_ptr<weld::CheckButton> m_xCbxBack;
47 std::unique_ptr<weld::CheckButton> m_xCbxPaperbin;
49 DECL_LINK(ClickCheckboxHdl, weld::Toggleable&, void);
50 DECL_LINK(ClickBookletHdl, weld::Toggleable&, void);
52 void updateControls();
54 public:
55 SdPrintOptions(weld::Container* pPage, weld::DialogController* pController,
56 const SfxItemSet& rInAttrs);
57 virtual ~SdPrintOptions() override;
59 static std::unique_ptr<SfxTabPage>
60 Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet*);
62 virtual bool FillItemSet(SfxItemSet*) override;
63 virtual void Reset(const SfxItemSet*) override;
65 void SetDrawMode();
66 virtual void PageCreated(const SfxAllItemSet& aSet) override;
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */