KDECore
kuitsemantics_p.h
Go to the documentation of this file.
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2007 Chusslove Illich <caslav.ilic@gmx.net> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 Boston, MA 02110-1301, USA. 00018 */ 00019 00020 #ifndef KUITSEMANTICS_P_H 00021 #define KUITSEMANTICS_P_H 00022 00023 #include <QString> 00024 00025 class KuitSemantics; 00026 class KuitSemanticsPrivate; 00027 00038 class KuitSemantics 00039 { 00040 public: 00041 00047 KuitSemantics (const QString &lang); 00048 00060 QString format (const QString &text, const QString &ctxt) const; 00061 00065 ~KuitSemantics (); 00066 00070 static bool mightBeRichText (const QString &text); 00071 00076 static QString escape (const QString &text); 00077 00078 private: 00079 00080 KuitSemantics (const KuitSemantics &t); 00081 KuitSemantics &operator= (const KuitSemantics &t); 00082 00083 KuitSemanticsPrivate *d; 00084 }; 00085 00086 // Some stuff needed in klocalizedstring.cpp too. 00087 #define KUIT_NUMINTG "numintg" 00088 #define KUIT_NUMREAL "numreal" 00089 00090 #endif
KDE 4.6 API Reference