Blame src/htmlentity.h

Packit 1c1d7e
/******************************************************************************
Packit 1c1d7e
 *
Packit 1c1d7e
 * Copyright (C) 1997-2015 by Dimitri van Heesch.
Packit 1c1d7e
 *
Packit 1c1d7e
 * Permission to use, copy, modify, and distribute this software and its
Packit 1c1d7e
 * documentation under the terms of the GNU General Public License is hereby
Packit 1c1d7e
 * granted. No representations are made about the suitability of this software
Packit 1c1d7e
 * for any purpose. It is provided "as is" without express or implied warranty.
Packit 1c1d7e
 * See the GNU General Public License for more details.
Packit 1c1d7e
 *
Packit 1c1d7e
 * Documents produced by Doxygen are derivative works derived from the
Packit 1c1d7e
 * input used in their production; they are not affected by this license.
Packit 1c1d7e
 *
Packit 1c1d7e
 */
Packit 1c1d7e
#ifndef HTMLENTITY_H
Packit 1c1d7e
#define HTMLENTITY_H
Packit 1c1d7e
Packit 1c1d7e
#include <qdict.h>
Packit 1c1d7e
#include "docparser.h"
Packit 1c1d7e
Packit 1c1d7e
class FTextStream;
Packit 1c1d7e
Packit 1c1d7e
/** @brief Singleton helper class to map html entities to other formats */
Packit 1c1d7e
class HtmlEntityMapper
Packit 1c1d7e
{
Packit 1c1d7e
  public:
Packit 1c1d7e
    static HtmlEntityMapper *instance();
Packit 1c1d7e
    static void deleteInstance();
Packit 1c1d7e
    DocSymbol::SymType name2sym(const QCString &symName) const;
Packit 1c1d7e
    const char *utf8(DocSymbol::SymType symb,bool useInPrintf=FALSE) const;
Packit 1c1d7e
    const char *html(DocSymbol::SymType symb,bool useInPrintf=FALSE) const;
Packit 1c1d7e
    const char *xml(DocSymbol::SymType symb) const;
Packit 1c1d7e
    const char *docbook(DocSymbol::SymType symb) const;
Packit 1c1d7e
    const char *latex(DocSymbol::SymType symb) const;
Packit 1c1d7e
    const char *man(DocSymbol::SymType symb) const;
Packit 1c1d7e
    const char *rtf(DocSymbol::SymType symb) const;
Packit 1c1d7e
    const DocSymbol::PerlSymb *perl(DocSymbol::SymType symb) const;
Packit 1c1d7e
    void  writeXMLSchema(FTextStream &t);
Packit 1c1d7e
  private:
Packit 1c1d7e
    void  validate();
Packit 1c1d7e
    HtmlEntityMapper();
Packit 1c1d7e
   ~HtmlEntityMapper();
Packit 1c1d7e
    static HtmlEntityMapper *s_instance;
Packit 1c1d7e
    QDict<int> *m_name2sym;
Packit 1c1d7e
};
Packit 1c1d7e
Packit 1c1d7e
#endif