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