00001 00008 #ifndef _TEXTSTYLES_H_ 00009 #define _TEXTSTYLES_H_ 00010 00011 #include "textstyle.h" 00012 #include "colormap.h" 00013 #include "chartranslator.h" 00014 #include "doctemplate.h" 00015 00016 namespace srchilite { 00017 00023 struct TextStyles { 00025 TextStyle bold; 00026 00028 TextStyle italics; 00029 00031 TextStyle underline; 00032 00034 TextStyle notfixed; 00035 00037 TextStyle fixed; 00038 00040 TextStyle color; 00041 00043 TextStyle bg_color; 00044 00046 TextStyle onestyle; 00047 00049 TextStyle linenum; 00050 00054 struct RefTextStyle { 00055 TextStyle anchor, inline_reference, postline_reference, 00056 postdoc_reference; 00057 } refstyle; 00058 00059 std::string starting_template, style_separator, file_extension, line_prefix; 00060 00061 CharTranslatorPtr charTranslator; 00062 00063 ColorMapPtr colorMap; 00064 00066 DocTemplate docTemplate; 00067 00069 DocTemplate noDocTemplate; 00070 00071 TextStyles() : 00072 charTranslator(new CharTranslator), colorMap(new ColorMap) { 00073 } 00074 }; 00075 00077 typedef boost::shared_ptr<TextStyles> TextStylesPtr; 00078 00079 } 00080 00081 #endif /*_TEXTSTYLES_H_*/