From cd1f1be2648fd43237973e5857ef798624157df0 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Tue, 28 Aug 2007 14:42:41 +0000 Subject: [PATCH] Move oldType() function to the compability class. Apidox it. svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705766 --- keduvocdocument/keduvockvtmlcompability.h | 19 +++++++++++++++++++ keduvocdocument/keduvocwordtype.h | 2 -- 2 files changed, 19 insertions(+), 2 deletions(-) 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; }; -- 2.47.3