libkdeedu/keduvocdocument
KEduVocKvtmlCompability Class Reference
#include <keduvockvtmlcompability.h>
Detailed Description
Definition at line 74 of file keduvockvtmlcompability.h.
Public Member Functions | |
| KEduVocKvtmlCompability () | |
| void | addUserdefinedUsage (const QString &usage) |
| QSet< QString > | usageFromKvtml1 (const QString &oldUsage) const |
| QSet< QString > | documentUsages () const |
| QString | mainTypeFromOldFormat (const QString &typeSubtypeString) const |
| QString | subTypeFromOldFormat (const QString &typeSubtypeString) const |
| QString | oldType (const QString &mainType, const QString &subType) const |
| void | addUserdefinedTense (const QString &tense) |
| QString | tenseFromKvtml1 (const QString &oldTense) |
| QStringList | documentTenses () const |
| QString | oldTense (const QString &tense) |
Constructor & Destructor Documentation
| KEduVocKvtmlCompability::KEduVocKvtmlCompability | ( | ) |
Member Function Documentation
| void KEduVocKvtmlCompability::addUserdefinedUsage | ( | const QString & | usage | ) |
In old kvtml documents usages could be added.
When parsing the doc, we need those too. They map "#1" to something meaningful. Add them in order!
- Parameters:
-
usage the old user defined usage.
Definition at line 108 of file keduvockvtmlcompability.cpp.
This "translates" the old usage string found in the files to the real word/meaning.
It will also consider the user defined usages. Use this method for usages.
- Parameters:
-
oldUsage string e.g. "biol:anat:#1"
- Returns:
- full set e.g. {"biology", "anatomy", "user defined 1"}
Definition at line 43 of file keduvockvtmlcompability.cpp.
Return set of all available usages.
Since the doc also needs them.
- Returns:
- usage set
Definition at line 115 of file keduvockvtmlcompability.cpp.
Get the type from an old type definition.
- Parameters:
-
typeSubtypeString the old string containing everything
- Returns:
- new main type
Definition at line 156 of file keduvockvtmlcompability.cpp.
Get the subtype from an old type definition.
- Parameters:
-
typeSubtypeString the old string containing everything
- Returns:
- new sub type
Definition at line 185 of file keduvockvtmlcompability.cpp.
| QString KEduVocKvtmlCompability::oldType | ( | const QString & | mainType, | |
| const QString & | subType | |||
| ) | const |
To write old docs: convert a nice new type to the ugly old style.
- Parameters:
-
mainType type subType subtype
- Returns:
- old type string
Definition at line 203 of file keduvockvtmlcompability.cpp.
| void KEduVocKvtmlCompability::addUserdefinedTense | ( | const QString & | tense | ) |
Definition at line 228 of file keduvockvtmlcompability.cpp.
Definition at line 238 of file keduvockvtmlcompability.cpp.
| QStringList KEduVocKvtmlCompability::documentTenses | ( | ) | const |
Definition at line 250 of file keduvockvtmlcompability.cpp.
- Todo:
- writing of the user defined tenses is probably messed up
Definition at line 256 of file keduvockvtmlcompability.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference