xref: /trunk/main/sw/source/ui/envelp/labprt.hxx (revision 1d2dbeb0)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _LABPRT_HXX
24 #define _LABPRT_HXX
25 
26 #include <vcl/group.hxx>
27 #include <vcl/field.hxx>
28 #include <svtools/stdctrl.hxx>
29 #ifndef _SV_BUTTON_HXX //autogen
30 #include <vcl/button.hxx>
31 #endif
32 #include <sfx2/tabdlg.hxx>
33 
34 
35 class SwLabDlg;
36 class SwLabItem;
37 
38 // class SwLabPrtPage -------------------------------------------------------
39 
40 class SwLabPrtPage : public SfxTabPage
41 {
42 	Printer* 	  pPrinter;				//Fuer die Schachteinstellug - leider.
43 
44 	FixedLine     aFLDontKnow;
45 	RadioButton   aPageButton;
46 	RadioButton   aSingleButton;
47 	FixedText     aColText;
48 	NumericField  aColField;
49 	FixedText     aRowText;
50 	NumericField  aRowField;
51 	CheckBox	  aSynchronCB;
52 
53 	FixedLine     aFLPrinter;
54 	FixedInfo     aPrinterInfo;
55 	PushButton    aPrtSetup;
56 
57 	 SwLabPrtPage(Window* pParent, const SfxItemSet& rSet);
58 	~SwLabPrtPage();
59 
60 	DECL_LINK( CountHdl, Button * );
61 
62 	using Window::GetParent;
GetParent()63 	SwLabDlg* GetParent() {return (SwLabDlg*) SfxTabPage::GetParent()->GetParent();}
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(SwLabItem& rItem);
75 	virtual sal_Bool FillItemSet(SfxItemSet& rSet);
76 	virtual void Reset(const SfxItemSet& rSet);
GetPrt()77 	inline Printer* GetPrt() { return (pPrinter); }
78 };
79 
80 #endif
81 
82 
83