1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
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>
38 // class SwEnvPrtPage ---------------------------------------------------------
40 class SwEnvPrtPage
: public SfxTabPage
43 RadioButton aTopButton
;
44 RadioButton aBottomButton
;
46 MetricField aRightField
;
48 MetricField aDownField
;
49 FixedInfo aPrinterInfo
;
56 SwEnvPrtPage(Window
* pParent
, const SfxItemSet
& rSet
);
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
;
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
; }
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */