My Project
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
htmlentity.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
* Copyright (C) 1997-2015 by Dimitri van Heesch.
4
*
5
* Permission to use, copy, modify, and distribute this software and its
6
* documentation under the terms of the GNU General Public License is hereby
7
* granted. No representations are made about the suitability of this software
8
* for any purpose. It is provided "as is" without express or implied warranty.
9
* See the GNU General Public License for more details.
10
*
11
* Documents produced by Doxygen are derivative works derived from the
12
* input used in their production; they are not affected by this license.
13
*
14
*/
15
#ifndef HTMLENTITY_H
16
#define HTMLENTITY_H
17
18
#include <qdict.h>
19
#include "
docparser.h
"
20
21
class
FTextStream
;
22
24
class
HtmlEntityMapper
25
{
26
public
:
27
static
HtmlEntityMapper
*
instance
();
28
static
void
deleteInstance
();
29
DocSymbol::SymType
name2sym
(
const
QCString &symName)
const
;
30
const
char
*
utf8
(
DocSymbol::SymType
symb,
bool
useInPrintf=FALSE)
const
;
31
const
char
*
html
(
DocSymbol::SymType
symb,
bool
useInPrintf=FALSE)
const
;
32
const
char
*
xml
(
DocSymbol::SymType
symb)
const
;
33
const
char
*
docbook
(
DocSymbol::SymType
symb)
const
;
34
const
char
*
latex
(
DocSymbol::SymType
symb)
const
;
35
const
char
*
man
(
DocSymbol::SymType
symb)
const
;
36
const
char
*
rtf
(
DocSymbol::SymType
symb)
const
;
37
const
DocSymbol::PerlSymb
*
perl
(
DocSymbol::SymType
symb)
const
;
38
void
writeXMLSchema
(
FTextStream
&t);
39
private
:
40
void
validate
();
41
HtmlEntityMapper
();
42
~HtmlEntityMapper
();
43
static
HtmlEntityMapper
*
s_instance
;
44
QDict<int> *
m_name2sym
;
45
};
46
47
#endif