1 | |
2 | /* |
3 | This file is part of KHelpcenter. |
4 | |
5 | Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org> |
6 | |
7 | This program is free software; you can redistribute it and/or modify |
8 | it under the terms of the GNU General Public License as published by |
9 | the Free Software Foundation; either version 2 of the License, or |
10 | (at your option) any later version. |
11 | |
12 | This program is distributed in the hope that it will be useful, |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | GNU General Public License for more details. |
16 | |
17 | You should have received a copy of the GNU General Public License |
18 | along with this program; if not, write to the Free Software |
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
20 | */ |
21 | |
22 | #ifndef KHC_FORMATTER_H |
23 | #define KHC_FORMATTER_H |
24 | |
25 | #include <QMap> |
26 | |
27 | namespace KHC { |
28 | |
29 | class Formatter |
30 | { |
31 | public: |
32 | Formatter(); |
33 | virtual ~Formatter(); |
34 | |
35 | bool readTemplates(); |
36 | |
37 | virtual QString ( const QString &title ); |
38 | virtual QString (); |
39 | virtual QString separator(); |
40 | virtual QString docTitle( const QString & ); |
41 | virtual QString ( const QString & ); |
42 | virtual QString paragraph( const QString & ); |
43 | virtual QString title( const QString & ); |
44 | |
45 | virtual QString processResult( const QString & ); |
46 | |
47 | private: |
48 | bool mHasTemplate; |
49 | QMap<QString,QString> mSymbols; |
50 | }; |
51 | |
52 | } |
53 | |
54 | #endif //KHC_FORMATTER_H |
55 | |
56 | // vim:ts=2:sw=2:et |
57 | |