bump product version to 5.0.4.1
[LibreOffice.git] / sd / source / ui / inc / prntopts.hxx
blob4c013ce36db1c26217b5d640dbfafcfc99e9b1bd
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_SD_SOURCE_UI_INC_PRNTOPTS_HXX
21 #define INCLUDED_SD_SOURCE_UI_INC_PRNTOPTS_HXX
23 #include <vcl/group.hxx>
25 #include <vcl/button.hxx>
26 #include <sfx2/tabdlg.hxx>
27 #include <vcl/fixed.hxx>
29 class SdModule;
30 class SdPrintOptions : public SfxTabPage
32 friend class SdModule;
34 private:
35 VclPtr<VclFrame> m_pFrmContent;
36 VclPtr<CheckBox> m_pCbxDraw;
37 VclPtr<CheckBox> m_pCbxNotes;
38 VclPtr<CheckBox> m_pCbxHandout;
39 VclPtr<CheckBox> m_pCbxOutline;
40 VclPtr<RadioButton> m_pRbtColor;
41 VclPtr<RadioButton> m_pRbtGrayscale;
42 VclPtr<RadioButton> m_pRbtBlackWhite;
43 VclPtr<CheckBox> m_pCbxPagename;
44 VclPtr<CheckBox> m_pCbxDate;
45 VclPtr<CheckBox> m_pCbxTime;
46 VclPtr<CheckBox> m_pCbxHiddenPages;
47 VclPtr<RadioButton> m_pRbtDefault;
48 VclPtr<RadioButton> m_pRbtPagesize;
49 VclPtr<RadioButton> m_pRbtPagetile;
50 VclPtr<RadioButton> m_pRbtBooklet;
51 VclPtr<CheckBox> m_pCbxFront;
52 VclPtr<CheckBox> m_pCbxBack;
53 VclPtr<CheckBox> m_pCbxPaperbin;
55 const SfxItemSet& rOutAttrs;
57 DECL_LINK( ClickCheckboxHdl, CheckBox * );
58 DECL_LINK( ClickBookletHdl, void * );
60 void updateControls();
62 using OutputDevice::SetDrawMode;
63 public:
64 SdPrintOptions( vcl::Window* pParent, const SfxItemSet& rInAttrs);
65 virtual ~SdPrintOptions();
66 virtual void dispose() SAL_OVERRIDE;
68 static VclPtr<SfxTabPage> Create( vcl::Window*, const SfxItemSet* );
70 virtual bool FillItemSet( SfxItemSet* ) SAL_OVERRIDE;
71 virtual void Reset( const SfxItemSet * ) SAL_OVERRIDE;
73 void SetDrawMode();
74 virtual void PageCreated(const SfxAllItemSet& aSet) SAL_OVERRIDE;
77 #endif // INCLUDED_SD_SOURCE_UI_INC_PRNTOPTS_HXX
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */