Source-highlight Library
textstyles.h
1 
8 #ifndef _TEXTSTYLES_H_
9 #define _TEXTSTYLES_H_
10 
11 #include "textstyle.h"
12 #include "colormap.h"
13 #include "chartranslator.h"
14 #include "doctemplate.h"
15 
16 namespace srchilite {
17 
23 struct TextStyles {
26 
29 
32 
35 
38 
41 
44 
47 
50 
54  struct RefTextStyle {
55  TextStyle anchor, inline_reference, postline_reference,
56  postdoc_reference;
57  } refstyle;
58 
59  std::string starting_template, style_separator, file_extension, line_prefix;
60 
61  CharTranslatorPtr charTranslator;
62 
63  ColorMapPtr colorMap;
64 
67 
70 
71  TextStyles() :
72  charTranslator(new CharTranslator), colorMap(new ColorMap) {
73  }
74 };
75 
77 typedef boost::shared_ptr<TextStyles> TextStylesPtr;
78 
79 }
80 
81 #endif /*_TEXTSTYLES_H_*/
Contains TextStyle objects for all formats (e.g., bold, italics, etc), and other templates (e...
Definition: textstyles.h:23
TextStyle bg_color
the TextStyle for background color specification
Definition: textstyles.h:43
boost::shared_ptr< TextStyles > TextStylesPtr
shared pointer
Definition: textstyles.h:77
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
TextStyle fixed
the TextStyle for fixed width font
Definition: textstyles.h:37
TextStyle underline
the TextStyle for underline
Definition: textstyles.h:31
DocTemplate docTemplate
template used when generating entire document
Definition: textstyles.h:66
Represents a formatting template where there can be some variables (starting with $...
Definition: textstyle.h:36
TextStyle onestyle
the TextStyle used when there's only one specification for all formats
Definition: textstyles.h:46
TextStyle notfixed
the TextStyle for non fixed width font
Definition: textstyles.h:34
TextStyle italics
the TextStyle for italics
Definition: textstyles.h:28
boost::shared_ptr< ColorMap > ColorMapPtr
shared pointer for ColorMap
Definition: colormap.h:78
Definition: doctemplate.h:18
TextStyle color
the TextStyle for color specification
Definition: textstyles.h:40
Translates specific character sequences into corresponding ones; it can also use regular expression f...
Definition: chartranslator.h:39
DocTemplate noDocTemplate
template used when not generating entire document
Definition: textstyles.h:69
The TextStyle objects for reference formatting.
Definition: textstyles.h:54
TextStyle bold
the TextStyle for bold
Definition: textstyles.h:25
TextStyle linenum
the TextStyle for line numbering
Definition: textstyles.h:49
Simple map for colors (maps a color constant string to the corresponding color of the output format) ...
Definition: colormap.h:38