00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef TEXGENERATOR_H
00029 #define TEXGENERATOR_H
00030
00031 #include <string>
00032
00033 #include "codegenerator.h"
00034
00035
00036 namespace highlight
00037 {
00038
00049 class TexGenerator : public highlight::CodeGenerator
00050 {
00051 public:
00052
00053 TexGenerator();
00054 ~TexGenerator();
00055
00056 private:
00057
00060 string getHeader();
00061
00063 string getFooter();
00064
00066 void printBody();
00067
00069 void initOutputTags();
00070
00071 string styleDefinitionCache;
00072
00073 string getStyleDefinition();
00074
00076 virtual string maskCharacter ( unsigned char );
00077
00079 string getAttributes ( const string & elemName, const ElementStyle & elem );
00080
00083 string getKeywordOpenTag ( unsigned int styleID );
00084
00087 string getKeywordCloseTag ( unsigned int styleID );
00088
00089 };
00090
00091 }
00092
00093 #endif