Line data Source code
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 : #ifndef _ENVPRT_HXX
21 : #define _ENVPRT_HXX
22 :
23 :
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>
31 :
32 :
33 :
34 : #include "envimg.hxx"
35 :
36 : class SwEnvDlg;
37 :
38 : // class SwEnvPrtPage ---------------------------------------------------------
39 :
40 : class SwEnvPrtPage : public SfxTabPage
41 : {
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;
53 :
54 : Printer* pPrt;
55 :
56 : SwEnvPrtPage(Window* pParent, const SfxItemSet& rSet);
57 : ~SwEnvPrtPage();
58 :
59 : DECL_LINK(ClickHdl, void *);
60 : DECL_LINK(AlignHdl, void *);
61 : DECL_LINK( ButtonHdl, Button * );
62 :
63 0 : SwEnvDlg* GetParentSwEnvDlg() {return (SwEnvDlg*) GetParentDialog();}
64 :
65 : using TabPage::ActivatePage;
66 : using TabPage::DeactivatePage;
67 :
68 : public:
69 :
70 : static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
71 :
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);
77 :
78 0 : inline void SetPrt(Printer* pPrinter) { pPrt = pPrinter; }
79 : };
80 :
81 : #endif
82 :
83 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|