html.h

Go to the documentation of this file.
00001 /****************************************************************
00002  *  Vidalia is distributed under the following license:
00003  *
00004  *  Copyright (C) 2006,  Matt Edman, Justin Hipple
00005  *
00006  *  This program is free software; you can redistribute it and/or
00007  *  modify it under the terms of the GNU General Public License
00008  *  as published by the Free Software Foundation; either version 2
00009  *  of the License, or (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, 
00019  *  Boston, MA  02110-1301, USA.
00020  ****************************************************************/
00021 
00022 /** 
00023  * \file html.h
00024  * \version $Id: html.h 1563 2006-12-26 06:06:04Z edmanm $
00025  * \brief HTML formatting functions
00026  */
00027 
00028 #ifndef _HTML_H
00029 #define _HTML_H
00030 
00031 #include <QString>
00032 
00033 
00034 /** Wraps a string in "<p>" tags, converts "\n" to "<br/>" and converts "\n\n"
00035  * to a new paragraph. */
00036 QString p(QString str);
00037 
00038 /** Wraps a string in "<i>" tags. */
00039 QString i(QString str);
00040 
00041 /** Wraps a string in "<b>" tags. */
00042 QString b(QString str);
00043 
00044 /** Wraps a string in "<tr>" tags. */
00045 QString trow(QString str);
00046 
00047 /** Wraps a string in "<td>" tags. */
00048 QString tcol(QString str);
00049 
00050 /** Wraps a string in "<th>" tags. */
00051 QString thead(QString str);
00052 
00053 /** Escapes "<" and ">" characters in a string, for html. */
00054 QString escape(QString str);
00055 
00056 #endif
00057 

Generated on Wed Sep 5 15:49:27 2007 for Vidalia by  doxygen 1.5.3