libkdeedu/keduvocdocument
KEduVocKvtml2Writer Class Reference
#include <keduvockvtml2writer.h>
Detailed Description
Class to write kvtml2 data files from KEduVocDocument.
Definition at line 35 of file keduvockvtml2writer.h.
Public Member Functions | |
| KEduVocKvtml2Writer (QFile *file) | |
| bool | writeDoc (KEduVocDocument *doc, const QString &generator) |
| bool | writeInformation (QDomElement &informationElement, const QString &generator) |
| bool | writeIdentifiers (QDomElement &identifiersElement) |
| bool | writeArticle (QDomElement &articleElement, int article) |
| bool | writeConjugation (QDomElement &conjugationElement, const KEduVocConjugation &conjugation, const QString &tense) |
| bool | writePersonalPronoun (QDomElement &pronounElement, const KEduVocPersonalPronoun &pronoun) |
| bool | writeWordTypes (QDomElement &typesElement) |
| bool | writeTenses (QDomElement &tensesElement) |
| bool | writeUsages (QDomElement &usagesElement) |
| bool | writeEntries (QDomElement &entriesElement) |
| bool | writeTranslation (QDomElement &translationElement, KEduVocTranslation &translation) |
| bool | writeLessons (QDomElement &lessonsElement) |
| bool | writeComparison (QDomElement &comparisonElement, const KEduVocComparison &comparison) |
| bool | writeMultipleChoice (QDomElement &multipleChoiceElement, const KEduVocMultipleChoice &mc) |
Constructor & Destructor Documentation
| KEduVocKvtml2Writer::KEduVocKvtml2Writer | ( | QFile * | file | ) |
Definition at line 31 of file keduvockvtml2writer.cpp.
Member Function Documentation
| bool KEduVocKvtml2Writer::writeDoc | ( | KEduVocDocument * | doc, | |
| const QString & | generator | |||
| ) |
Definition at line 38 of file keduvockvtml2writer.cpp.
| bool KEduVocKvtml2Writer::writeInformation | ( | QDomElement & | informationElement, | |
| const QString & | generator | |||
| ) |
write information entries
- Parameters:
-
informationElement QDomElement information to write to generator text describing generator
Definition at line 103 of file keduvockvtml2writer.cpp.
| bool KEduVocKvtml2Writer::writeIdentifiers | ( | QDomElement & | identifiersElement | ) |
write identifiers group
- Parameters:
-
identifiersElement QDomElement identifiers to write to
Definition at line 140 of file keduvockvtml2writer.cpp.
| bool KEduVocKvtml2Writer::writeArticle | ( | QDomElement & | articleElement, | |
| int | article | |||
| ) |
write article
- Parameters:
-
articleElement QDomElement article to write to article the article number to write
- Todo:
- : this is ugly as hell and writes only singular
Definition at line 209 of file keduvockvtml2writer.cpp.
| bool KEduVocKvtml2Writer::writeConjugation | ( | QDomElement & | conjugationElement, | |
| const KEduVocConjugation & | conjugation, | |||
| const QString & | tense | |||
| ) |
write conjugation
- Parameters:
-
conjugationElement QDomElement conjugation or personalpronouns to write to conjugation object to write type conjugation type
Definition at line 583 of file keduvockvtml2writer.cpp.
| bool KEduVocKvtml2Writer::writePersonalPronoun | ( | QDomElement & | pronounElement, | |
| const KEduVocPersonalPronoun & | pronoun | |||
| ) |
Definition at line 637 of file keduvockvtml2writer.cpp.
| bool KEduVocKvtml2Writer::writeWordTypes | ( | QDomElement & | typesElement | ) |
write types
- Parameters:
-
typesElement QDomElement types to write to
Definition at line 268 of file keduvockvtml2writer.cpp.
| bool KEduVocKvtml2Writer::writeTenses | ( | QDomElement & | tensesElement | ) |
write tenses
- Parameters:
-
tensesElement QDomElement tenses to write to
Definition at line 366 of file keduvockvtml2writer.cpp.
| bool KEduVocKvtml2Writer::writeUsages | ( | QDomElement & | usagesElement | ) |
write usages
- Parameters:
-
usagesElement QDomElement usages to write to
Definition at line 378 of file keduvockvtml2writer.cpp.
| bool KEduVocKvtml2Writer::writeEntries | ( | QDomElement & | entriesElement | ) |
write entries
- Parameters:
-
entriesElement QDomElement entries to write to
Definition at line 387 of file keduvockvtml2writer.cpp.
| bool KEduVocKvtml2Writer::writeTranslation | ( | QDomElement & | translationElement, | |
| KEduVocTranslation & | translation | |||
| ) |
write a translation
- Parameters:
-
translationElement QDomElement translation to write to, with id pre-set translation object to write
Definition at line 424 of file keduvockvtml2writer.cpp.
| bool KEduVocKvtml2Writer::writeLessons | ( | QDomElement & | lessonsElement | ) |
write the lesson group
- Parameters:
-
lessonsElement QDomElement lessons to write to
Definition at line 175 of file keduvockvtml2writer.cpp.
| bool KEduVocKvtml2Writer::writeComparison | ( | QDomElement & | comparisonElement, | |
| const KEduVocComparison & | comparison | |||
| ) |
write a comparison
- Parameters:
-
comparisonElement QDomElement comparison to write to comparison object to write
- Returns:
- success
Definition at line 547 of file keduvockvtml2writer.cpp.
| bool KEduVocKvtml2Writer::writeMultipleChoice | ( | QDomElement & | multipleChoiceElement, | |
| const KEduVocMultipleChoice & | mc | |||
| ) |
write multiple choice choices
- Parameters:
-
multipleChoiceElement QDomElement multiplechoice to write to
- Returns:
- success
Definition at line 564 of file keduvockvtml2writer.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference