Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #ifndef _ENVPRT_HXX
30 : : #define _ENVPRT_HXX
31 : :
32 : :
33 : : #include <sfx2/tabdlg.hxx>
34 : : #include <vcl/toolbox.hxx>
35 : : #include <vcl/field.hxx>
36 : : #include <vcl/fixed.hxx>
37 : : #include <vcl/group.hxx>
38 : : #include <vcl/button.hxx>
39 : : #include <svtools/stdctrl.hxx>
40 : :
41 : :
42 : :
43 : : #include "envimg.hxx"
44 : :
45 : : class SwEnvDlg;
46 : :
47 : : // class SwEnvPrtPage ---------------------------------------------------------
48 : :
49 : : class SwEnvPrtPage : public SfxTabPage
50 : : {
51 : : ToolBox aAlignBox;
52 : : RadioButton aTopButton;
53 : : RadioButton aBottomButton;
54 : : FixedText aRightText;
55 : : MetricField aRightField;
56 : : FixedText aDownText;
57 : : MetricField aDownField;
58 : : FixedInfo aPrinterInfo;
59 : : FixedLine aNoNameFL;
60 : : FixedLine aPrinterFL;
61 : : PushButton aPrtSetup;
62 : :
63 : : Printer* pPrt;
64 : :
65 : : SwEnvPrtPage(Window* pParent, const SfxItemSet& rSet);
66 : : ~SwEnvPrtPage();
67 : :
68 : : DECL_LINK(ClickHdl, void *);
69 : : DECL_LINK(AlignHdl, void *);
70 : : DECL_LINK( ButtonHdl, Button * );
71 : :
72 : : using Window::GetParent;
73 : 0 : SwEnvDlg* GetParent() {return (SwEnvDlg*) SfxTabPage::GetParent()->GetParent();}
74 : :
75 : : using TabPage::ActivatePage;
76 : : using TabPage::DeactivatePage;
77 : :
78 : : public:
79 : :
80 : : static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
81 : :
82 : : virtual void ActivatePage(const SfxItemSet& rSet);
83 : : virtual int DeactivatePage(SfxItemSet* pSet = 0);
84 : : void FillItem(SwEnvItem& rItem);
85 : : virtual sal_Bool FillItemSet(SfxItemSet& rSet);
86 : : virtual void Reset(const SfxItemSet& rSet);
87 : :
88 : 0 : inline void SetPrt(Printer* pPrinter) { pPrt = pPrinter; }
89 : : };
90 : :
91 : : #endif
92 : :
93 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|