kword

KWStatisticsDialog.h
1/* This file is part of the KOffice project
2 * Copyright (C) 2005 Thomas Zander <zander@kde.org>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; version 2.
7
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Library General Public License for more details.
12 *
13 * You should have received a copy of the GNU Library General Public License
14 * along with this library; see the file COPYING.LIB. If not, write to
15 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 * Boston, MA 02110-1301, USA.
17 */
18
19#ifndef kwstatistics_h
20#define kwstatistics_h
21
22class KWFrameSet;
23class KWDocument;
24class TQVBoxLayout;
25class TQTabWidget;
26class TQLabel;
27
28#include <defs.h>
29#include <kdialogbase.h>
30
34class KWStatisticsDialog : public KDialogBase
35{
36 TQ_OBJECT
37
38
39public:
40 KWStatisticsDialog( TQWidget *parent, KWDocument *doc );
41 bool wasCanceled()const { return m_canceled; }
42
43private:
44 KWDocument *m_doc;
45 TQWidget *m_parent;
46 bool m_canceled;
47 TQLabel *m_resultLabelAll[7];
48 TQLabel *m_resultLabelSelected[7];
49 TQLabel *m_resultGeneralLabel[6];
50
51 void addBox( TQFrame *page, TQLabel **resultLabel, bool calcWithFootNoteCheckbox );
52 void addBoxGeneral( TQFrame *page, TQLabel **resultLabel );
53
54 bool calcStats( TQLabel **resultLabel, bool selection, bool useFootEndNote );
55 void calcGeneral( TQLabel **resultLabel );
56 bool docHasSelection()const;
57 double calcFlesch(ulong sentences, ulong words, ulong syllables);
58private slots:
59 void slotRefreshValue(bool);
60};
61
62#endif
Class: KWFrameSet Base type, a frameset holds content as well as frames to show that content.
Definition KWFrameSet.h:62