xref: /aoo41x/main/sw/source/ui/inc/docstdlg.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 _DOCSTDLG_HXX
24 #define _DOCSTDLG_HXX
25 
26 #include <sfx2/tabdlg.hxx>
27 
28 #ifndef _FIXED_HXX //autogen
29 #include <vcl/fixed.hxx>
30 #endif
31 #include <svtools/stdctrl.hxx>
32 
33 #include "docstat.hxx"
34 
35 /*--------------------------------------------------------------------
36 	Beschreibung:   DocInfo jetzt als Page
37  --------------------------------------------------------------------*/
38 
39 class SwDocStatPage: public SfxTabPage
40 {
41 public:
42 	SwDocStatPage(Window *pParent, const SfxItemSet &rSet);
43 	~SwDocStatPage();
44 
45 	static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
46 
47 protected:
48 	virtual sal_Bool    FillItemSet(      SfxItemSet &rSet);
49 	virtual void    Reset      (const SfxItemSet &rSet);
50 
51 	DECL_LINK( UpdateHdl, PushButton*);
52 
53 private:
54 	FixedText       aPageLbl;
55 	FixedInfo       aPageNo;
56 	FixedText       aTableLbl;
57 	FixedInfo       aTableNo;
58 	FixedText       aGrfLbl;
59 	FixedInfo       aGrfNo;
60 	FixedText       aOLELbl;
61 	FixedInfo       aOLENo;
62 	FixedText       aParaLbl;
63 	FixedInfo       aParaNo;
64 	FixedText       aWordLbl;
65 	FixedInfo       aWordNo;
66 	FixedText       aCharLbl;
67 	FixedInfo       aCharNo;
68 	FixedText       aLineLbl;
69 	FixedInfo       aLineNo;
70 
71 	PushButton		aUpdatePB;
72 	SwDocStat       aDocStat;
73 
74 	void            Update();
75 
76     using Window::SetData;
77 	void            SetData(const SwDocStat &rStat);
78 };
79 
80 #endif
81