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

libkdeedu/keduvocdocument

KEduVocKvtmlCompability Class Reference

#include <keduvockvtmlcompability.h>

List of all members.


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 (  ) 

Constructor, initialize the map.

Definition at line 32 of file keduvockvtmlcompability.cpp.


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.

QSet< QString > KEduVocKvtmlCompability::usageFromKvtml1 ( const QString &  oldUsage  )  const

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.

QSet< QString > KEduVocKvtmlCompability::documentUsages (  )  const

Return set of all available usages.

Since the doc also needs them.

Returns:
usage set

Definition at line 115 of file keduvockvtmlcompability.cpp.

QString KEduVocKvtmlCompability::mainTypeFromOldFormat ( const QString &  typeSubtypeString  )  const

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.

QString KEduVocKvtmlCompability::subTypeFromOldFormat ( const QString &  typeSubtypeString  )  const

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.

QString KEduVocKvtmlCompability::tenseFromKvtml1 ( const QString &  oldTense  ) 

Definition at line 238 of file keduvockvtmlcompability.cpp.

QStringList KEduVocKvtmlCompability::documentTenses (  )  const

Definition at line 250 of file keduvockvtmlcompability.cpp.

QString KEduVocKvtmlCompability::oldTense ( const QString &  tense  ) 

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:
  • keduvockvtmlcompability.h
  • keduvockvtmlcompability.cpp

libkdeedu/keduvocdocument

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

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal