xref: /trunk/main/sw/source/ui/envelp/labprt.hxx (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _LABPRT_HXX
28 #define _LABPRT_HXX
29 
30 #include <vcl/group.hxx>
31 #include <vcl/field.hxx>
32 #include <svtools/stdctrl.hxx>
33 #ifndef _SV_BUTTON_HXX //autogen
34 #include <vcl/button.hxx>
35 #endif
36 #include <sfx2/tabdlg.hxx>
37 
38 
39 class SwLabDlg;
40 class SwLabItem;
41 
42 // class SwLabPrtPage -------------------------------------------------------
43 
44 class SwLabPrtPage : public SfxTabPage
45 {
46     Printer*      pPrinter;             //Fuer die Schachteinstellug - leider.
47 
48     FixedLine     aFLDontKnow;
49     RadioButton   aPageButton;
50     RadioButton   aSingleButton;
51     FixedText     aColText;
52     NumericField  aColField;
53     FixedText     aRowText;
54     NumericField  aRowField;
55     CheckBox      aSynchronCB;
56 
57     FixedLine     aFLPrinter;
58     FixedInfo     aPrinterInfo;
59     PushButton    aPrtSetup;
60 
61      SwLabPrtPage(Window* pParent, const SfxItemSet& rSet);
62     ~SwLabPrtPage();
63 
64     DECL_LINK( CountHdl, Button * );
65 
66     using Window::GetParent;
67     SwLabDlg* GetParent() {return (SwLabDlg*) SfxTabPage::GetParent()->GetParent();}
68 
69     using TabPage::ActivatePage;
70     using TabPage::DeactivatePage;
71 
72 public:
73 
74     static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
75 
76     virtual void ActivatePage(const SfxItemSet& rSet);
77     virtual int  DeactivatePage(SfxItemSet* pSet = 0);
78             void FillItem(SwLabItem& rItem);
79     virtual sal_Bool FillItemSet(SfxItemSet& rSet);
80     virtual void Reset(const SfxItemSet& rSet);
81     inline Printer* GetPrt() { return (pPrinter); }
82 };
83 
84 #endif
85 
86 
87