Blame src/htmlentity.h

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