summaryrefslogtreecommitdiffstats
path: root/lib/kotext/kohyphen/kohyphen.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kotext/kohyphen/kohyphen.h')
-rw-r--r--lib/kotext/kohyphen/kohyphen.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/kotext/kohyphen/kohyphen.h b/lib/kotext/kohyphen/kohyphen.h
index b36f80c3..af3bef41 100644
--- a/lib/kotext/kohyphen/kohyphen.h
+++ b/lib/kotext/kohyphen/kohyphen.h
@@ -22,16 +22,16 @@
#ifndef KOHYPHEN_H
#define KOHYPHEN_H
-#include <qmap.h>
-#include <qstring.h>
+#include <tqmap.h>
+#include <tqstring.h>
#include "hyphen.h"
class KoHyphenatorException{
public:
- KoHyphenatorException(const QString& MessageText): messageText(MessageText) {}
- QString message() const { return messageText; }
+ KoHyphenatorException(const TQString& MessageText): messageText(MessageText) {}
+ TQString message() const { return messageText; }
private:
- QString messageText;
+ TQString messageText;
};
/**
@@ -45,11 +45,11 @@ private:
* This library tries to adopt it for KDE.
*
* It handles the hyphenation dictionary loading for the specified language.
- * QString -> char* conversion is done by using of settings in
+ * TQString -> char* conversion is done by using of settings in
* dicts.xml file in datadir/koffice/hyphdicts (dictionaries are also located
* there).
*
- * The @ref hyphenate() functions returns QString containing hyphenation
+ * The @ref hyphenate() functions returns TQString containing hyphenation
* chars (0xad) or char* in format of hnj_hyphen_hyphenate() function from
* libhnj library.
*/
@@ -70,7 +70,7 @@ public:
* Can be used to check if the line break at given position
* should be forced and automatic hyphen added.
*/
- bool checkHyphenPos(const QString& str, int pos, const QString& lang) const;
+ bool checkHyphenPos(const TQString& str, int pos, const TQString& lang) const;
/**
* Returns the pointer to the string in hnj_hyphen_hyphenate() format
@@ -88,7 +88,7 @@ public:
* Language: two chars containing the ISO 639-1 code
* (for example "en", "uk", etc.) (could be lang_COUNTRY as well).
*/
- char *hyphens(const QString& str, const QString& lang) const;
+ char *hyphens(const TQString& str, const TQString& lang) const;
/**
* Hyphenates the string str and returns the string with
@@ -100,27 +100,27 @@ public:
* Language: two chars containing the ISO 639-1 code
* (for example "en", "uk", etc.) (could be lang_COUNTRY as well).
*/
- QString hyphenate(const QString& str, const QString& lang) const;
+ TQString hyphenate(const TQString& str, const TQString& lang) const;
private:
/**
* @return the encoding of dictionary for the language @p lang.
*/
- QTextCodec* codecForLang(const QString& lang) const;
+ TQTextCodec* codecForLang(const TQString& lang) const;
KoHyphenator();
- HyphenDict *dict(const QString &lang) const;
+ HyphenDict *dict(const TQString &lang) const;
- QMap<QString, HyphenDict*> dicts;
+ TQMap<TQString, HyphenDict*> dicts;
struct EncodingStruct {
- EncodingStruct() // for QMap
+ EncodingStruct() // for TQMap
: encoding(), codec(0L) {}
- EncodingStruct(const QCString& _encoding)
+ EncodingStruct(const TQCString& _encoding)
: encoding(_encoding), codec(0L) {}
- QCString encoding;
- QTextCodec* codec;
+ TQCString encoding;
+ TQTextCodec* codec;
};
- typedef QMap<QString, EncodingStruct> EncodingMap;
+ typedef TQMap<TQString, EncodingStruct> EncodingMap;
mutable EncodingMap encodings; // key is the language code
static KoHyphenator* s_self;