From: Frederik Gladhorn Date: Tue, 28 Aug 2007 14:42:41 +0000 (+0000) Subject: Move oldType() function to the compability class. Apidox it. X-Git-Tag: v3.93.0~13 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=cd1f1be2648fd43237973e5857ef798624157df0;p=libqmvoc.git Move oldType() function to the compability class. Apidox it. svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705766 --- diff --git a/keduvocdocument/keduvockvtmlcompability.h b/keduvocdocument/keduvockvtmlcompability.h index a23fb75..0294eff 100644 --- a/keduvocdocument/keduvockvtmlcompability.h +++ b/keduvocdocument/keduvockvtmlcompability.h @@ -113,9 +113,28 @@ public: QSet documentUsages() const; ///// TYPES + /** + * Get the type from an old type definition + * @param typeSubtypeString the old string containing everything + * @return new main type + */ QString mainTypeFromOldFormat(const QString& typeSubtypeString) const; + + /** + * Get the subtype from an old type definition + * @param typeSubtypeString the old string containing everything + * @return new sub type + */ QString subTypeFromOldFormat(const QString& typeSubtypeString) const; + /** + * To write old docs: convert a nice new type to the ugly old style. + * @param mainType type + * @param subType subtype + * @return old type string + */ + QString oldType(const QString& mainType, const QString& subType) const; + private: /** diff --git a/keduvocdocument/keduvocwordtype.h b/keduvocdocument/keduvocwordtype.h index d896966..d358dba 100644 --- a/keduvocdocument/keduvocwordtype.h +++ b/keduvocdocument/keduvocwordtype.h @@ -144,8 +144,6 @@ private: int mainTypeIndex(const QString& name) const; int subTypeIndex( const QString& mainTypeName, const QString& subTypeName ) const; - QString oldType(const QString& mainType, const QString& subType) const; - class Private; Private * const d; };