xslfogenerator.h

00001 /***************************************************************************
00002                           xslfocode.h  -  description
00003                              -------------------
00004     begin                : Do 11.12.2003
00005     copyright            : (C) 2003 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 XSLFOGENERATOR_H
00019 #define XSLFOGENERATOR_H
00020 
00021 
00022 #include <string>
00023 #include <sstream>
00024 #include <iostream>
00025 #include <fstream>
00026 
00027 #include "codegenerator.h"
00028 #include "version.h"
00029 
00030 namespace highlight {
00031 
00042 class XslFoGenerator : public highlight::CodeGenerator
00043   {
00044   public:
00045     XslFoGenerator();
00046 
00047     ~XslFoGenerator();
00048 
00049    bool initStyle(const string& stylePath);
00050 
00054     string getHeader(const string & title);
00055 
00057     string getFooter();
00058 
00060     void printBody();
00061 
00065     void setFopCompatible(bool flag){ fopOutput = flag; }
00066 
00067   private:
00068     ostringstream snl;
00069 
00070     string styleDefinition;
00071     bool fopOutput;
00072 
00074     virtual string maskCharacter(unsigned char );
00075 
00076     string getOpenTag(const ElementStyle &);
00077 
00078   //  string getNewLine();
00079 
00080     string getMatchingOpenTag(unsigned int styleID);
00081     string getMatchingCloseTag(unsigned int styleID);
00082   };
00083 
00084 }
00085 
00086 #endif

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