moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kwordquiz / src / keduvocdata.h
blob04a810978a4af326ad4db8d93afaea2d8fb7b69b
1 #ifndef KEDUVOCDATA_H
2 #define KEDUVOCDATA_H
4 /* This file is part of the KDE Edu Library
5 Copyright (C) 2002 Scott Wheeler <wheeler@kde.org>
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License version 2 as published by the Free Software Foundation.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA.
22 #include <qdom.h>
23 #include <qvaluelist.h>
25 class KEduVocDataItem
27 public:
28 KEduVocDataItem();
29 KEduVocDataItem(QDomElement &entry);
30 virtual ~KEduVocDataItem();
32 QString originalText() const;
33 QString translatedText() const;
35 protected:
36 QString getText(const QString &tagName) const;
38 private:
39 QDomElement domElement;
42 typedef QValueList<KEduVocDataItem> KEduVocDataItemList;
44 class KEduVocData
46 public:
47 KEduVocData();
48 KEduVocDataItemList parse(const QString &fileName);
49 int colWidth(int col);
50 int numRows();
51 QString language(int col);
54 private:
55 QDomDocument* document;
58 #endif