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