bump product version to 4.1.6.2
[LibreOffice.git] / sw / source / ui / envelp / envprt.hxx
blobd0b227329a739b29878695e5e0f247bad8028ea7
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 _ENVPRT_HXX
21 #define _ENVPRT_HXX
24 #include <sfx2/tabdlg.hxx>
25 #include <vcl/toolbox.hxx>
26 #include <vcl/field.hxx>
27 #include <vcl/fixed.hxx>
28 #include <vcl/group.hxx>
29 #include <vcl/button.hxx>
30 #include <svtools/stdctrl.hxx>
34 #include "envimg.hxx"
36 class SwEnvDlg;
38 // class SwEnvPrtPage ---------------------------------------------------------
40 class SwEnvPrtPage : public SfxTabPage
42 ToolBox aAlignBox;
43 RadioButton aTopButton;
44 RadioButton aBottomButton;
45 FixedText aRightText;
46 MetricField aRightField;
47 FixedText aDownText;
48 MetricField aDownField;
49 FixedInfo aPrinterInfo;
50 FixedLine aNoNameFL;
51 FixedLine aPrinterFL;
52 PushButton aPrtSetup;
54 Printer* pPrt;
56 SwEnvPrtPage(Window* pParent, const SfxItemSet& rSet);
57 ~SwEnvPrtPage();
59 DECL_LINK(ClickHdl, void *);
60 DECL_LINK(AlignHdl, void *);
61 DECL_LINK( ButtonHdl, Button * );
63 SwEnvDlg* GetParentSwEnvDlg() {return (SwEnvDlg*) GetParentDialog();}
65 using TabPage::ActivatePage;
66 using TabPage::DeactivatePage;
68 public:
70 static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
72 virtual void ActivatePage(const SfxItemSet& rSet);
73 virtual int DeactivatePage(SfxItemSet* pSet = 0);
74 void FillItem(SwEnvItem& rItem);
75 virtual sal_Bool FillItemSet(SfxItemSet& rSet);
76 virtual void Reset(const SfxItemSet& rSet);
78 inline void SetPrt(Printer* pPrinter) { pPrt = pPrinter; }
81 #endif
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */