xmlgenerator.h

00001 /***************************************************************************
00002                           xmlcode.h  -  description
00003                              -------------------
00004     begin                : Do 20.01.2005
00005     copyright            : (C) 2005 by Andre Simon
00006     email                : andre.simon1@gmx.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef XMLGENERATOR_H
00019 #define XMLGENERATOR_H
00020 
00021 #include <string>
00022 #include <sstream>
00023 #include <iostream>
00024 
00025 #include "codegenerator.h"
00026 #include "version.h"
00027 
00028 namespace highlight {
00029 
00040 class XmlGenerator : public highlight::CodeGenerator
00041   {
00042   public:
00043 
00044    XmlGenerator();
00045 
00046     ~XmlGenerator();
00047 
00051     string getHeader(const string & title);
00052 
00054     string getFooter();
00055 
00057     void printBody();
00058 
00059   private:
00060 
00061     string styleDefinitionCache;
00062 
00063     string getStyleDefinition();
00064 
00065     string formatStyleAttributes(const string &, const ElementStyle &);
00066 
00068     virtual string maskCharacter(unsigned char );
00069 
00070 
00071 //    string getNewLine();
00072 
00073     string getOpenTag(const string& );
00074     string getCloseTag(const string& );
00075 
00076     string getMatchingOpenTag(unsigned int styleID);
00077     string getMatchingCloseTag(unsigned int styleID);
00078   };
00079 
00080 }
00081 
00082 #endif

Generated on Fri Apr 27 13:12:36 2007 for Highlight Code Converter by  doxygen 1.5.2