• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

libkdeedu/keduvocdocument

  • sources
  • kde-4.12
  • kdeedu
  • libkdeedu
  • keduvocdocument
keduvockvtmlreader.h
Go to the documentation of this file.
1 /***************************************************************************
2  read a KEduVocDocument from a KVTML file
3  -----------------------------------------------------------------------
4  copyright : (C) 1999-2001 Ewald Arnold <kvoctrain@ewald-arnold.de>
5 
6  (C) 2005 Eric Pignet <eric at erixpage.com>
7  (C) 2007 Peter Hedlund <peter.hedlund@kdemail.net>
8  (C) 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
9  ***************************************************************************/
10 
11 /***************************************************************************
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * *
18  ***************************************************************************/
19 
20 #ifndef KEDUVOCKVTMLREADER_H
21 #define KEDUVOCKVTMLREADER_H
22 
23 #include <QtXml/QDomDocument>
24 #include <QtCore/QList>
25 
26 
27 #include "keduvocexpression.h"
28 #include "keduvocarticle.h"
29 #include "keduvocmultiplechoice.h"
30 #include "keduvockvtmlcompability.h"
31 #include "keduvocpersonalpronoun.h"
32 
33 class QIODevice;
34 class KEduVocDocument;
35 
39 class KEduVocKvtmlReader : public QObject
40 {
41  Q_OBJECT
42 public:
43  KEduVocKvtmlReader( QIODevice *file );
44 
45  bool readDoc( KEduVocDocument *doc );
46 
54  bool addLanguage( int languageId, const QString& language);
55 
56  bool readLesson( QDomElement &domElementParent );
57  bool readArticle( QDomElement &domElementParent );
58  bool readPersonalPronouns( QDomElement &domElementParent, KEduVocPersonalPronoun& pronouns );
59  bool readConjugation( QDomElement &domElementParent, KEduVocConjugation &conjugation );
60  bool readTranslationConjugations( QDomElement &domElementParent, KEduVocTranslation* translation );
61  bool readType( QDomElement &domElementParent );
62  bool readTense( QDomElement &domElementParent );
63  bool readUsage( QDomElement &domElementParent );
64  bool readComparison( QDomElement &domElementParent, KEduVocTranslation* translation );
65  bool readMultipleChoice( QDomElement &domElementParent, KEduVocTranslation* translation );
66  bool readExpressionChildAttributes( QDomElement &domElementExpressionChild,
67  QString &lang,
68  grade_t &grade, grade_t &rev_grade,
69  int &count, int &rev_count,
70  QDateTime &date, QDateTime &rev_date,
71  QString &remark,
72  int &bcount, int &rev_bcount,
73  QString &query_id,
74  QString &pronunciation,
75  int &width,
76  QString &type,
77  QString &faux_ami_f,
78  QString &faux_ami_t,
79  QString &synonym,
80  QString &example,
81  QString &antonym,
82  QSet<QString> &usage,
83  QString &paraphrase );
84  bool readExpression( QDomElement &domElementParent );
85  bool readBody( QDomElement &domElementParent );
86 
87  QString errorMessage() const
88  {
89  return m_errorMessage;
90  }
91 
92 private:
93  QIODevice *m_inputFile;
94  KEduVocDocument *m_doc;
95  QString m_errorMessage;
96  int m_cols;
97  int m_lines;
98  QStringList m_oldSelfDefinedTypes;
99 
100  KEduVocKvtmlCompability m_compability;
101 };
102 
103 #endif
keduvocpersonalpronoun.h
KEduVocKvtmlReader::readPersonalPronouns
bool readPersonalPronouns(QDomElement &domElementParent, KEduVocPersonalPronoun &pronouns)
Definition: keduvockvtmlreader.cpp:499
keduvocexpression.h
KEduVocKvtmlReader
Definition: keduvockvtmlreader.h:39
KEduVocKvtmlReader::KEduVocKvtmlReader
KEduVocKvtmlReader(QIODevice *file)
Definition: keduvockvtmlreader.cpp:36
KEduVocKvtmlReader::readLesson
bool readLesson(QDomElement &domElementParent)
Definition: keduvockvtmlreader.cpp:198
KEduVocKvtmlReader::errorMessage
QString errorMessage() const
Definition: keduvockvtmlreader.h:87
KEduVocConjugation
The conjugation of a verb.
Definition: keduvocconjugation.h:37
KEduVocKvtmlReader::readType
bool readType(QDomElement &domElementParent)
Definition: keduvockvtmlreader.cpp:609
QObject
KEduVocPersonalPronoun
The conjugation of a verb.
Definition: keduvocpersonalpronoun.h:25
KEduVocKvtmlReader::readConjugation
bool readConjugation(QDomElement &domElementParent, KEduVocConjugation &conjugation)
Definition: keduvockvtmlreader.cpp:360
KEduVocKvtmlCompability
Definition: keduvockvtmlcompability.h:74
KEduVocKvtmlReader::readBody
bool readBody(QDomElement &domElementParent)
Definition: keduvockvtmlreader.cpp:115
grade_t
unsigned short grade_t
Definition: keduvoctext.h:49
KEduVocKvtmlReader::readTranslationConjugations
bool readTranslationConjugations(QDomElement &domElementParent, KEduVocTranslation *translation)
Definition: keduvockvtmlreader.cpp:339
KEduVocTranslation
Definition: keduvoctranslation.h:35
keduvocmultiplechoice.h
KEduVocKvtmlReader::readMultipleChoice
bool readMultipleChoice(QDomElement &domElementParent, KEduVocTranslation *translation)
Definition: keduvockvtmlreader.cpp:673
KEduVocKvtmlReader::readDoc
bool readDoc(KEduVocDocument *doc)
Definition: keduvockvtmlreader.cpp:45
KEduVocKvtmlReader::readArticle
bool readArticle(QDomElement &domElementParent)
Definition: keduvockvtmlreader.cpp:243
KEduVocKvtmlReader::addLanguage
bool addLanguage(int languageId, const QString &language)
Attempt to add a language/locale.
Definition: keduvockvtmlreader.cpp:1062
KEduVocKvtmlReader::readComparison
bool readComparison(QDomElement &domElementParent, KEduVocTranslation *translation)
Definition: keduvockvtmlreader.cpp:652
KEduVocKvtmlReader::readExpression
bool readExpression(QDomElement &domElementParent)
Definition: keduvockvtmlreader.cpp:857
KEduVocKvtmlReader::readUsage
bool readUsage(QDomElement &domElementParent)
KEduVocDocument
This class contains the expressions of your vocabulary as well as other information about the vocabul...
Definition: keduvocdocument.h:44
keduvockvtmlcompability.h
keduvocarticle.h
KEduVocKvtmlReader::readExpressionChildAttributes
bool readExpressionChildAttributes(QDomElement &domElementExpressionChild, QString &lang, grade_t &grade, grade_t &rev_grade, int &count, int &rev_count, QDateTime &date, QDateTime &rev_date, QString &remark, int &bcount, int &rev_bcount, QString &query_id, QString &pronunciation, int &width, QString &type, QString &faux_ami_f, QString &faux_ami_t, QString &synonym, QString &example, QString &antonym, QSet< QString > &usage, QString &paraphrase)
Definition: keduvockvtmlreader.cpp:716
KEduVocKvtmlReader::readTense
bool readTense(QDomElement &domElementParent)
Definition: keduvockvtmlreader.cpp:638
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:37:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdeedu/keduvocdocument

Skip menu "libkdeedu/keduvocdocument"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal