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_*/
srchilite::ColorMap
Simple map for colors (maps a color constant string to the corresponding color of the output format)
Definition: colormap.h:38
srchilite::TextStyles::onestyle
TextStyle onestyle
the TextStyle used when there's only one specification for all formats
Definition: textstyles.h:46
srchilite::TextStyles::italics
TextStyle italics
the TextStyle for italics
Definition: textstyles.h:28
srchilite
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
srchilite::TextStyles::underline
TextStyle underline
the TextStyle for underline
Definition: textstyles.h:31
srchilite::TextStyles::bg_color
TextStyle bg_color
the TextStyle for background color specification
Definition: textstyles.h:43
srchilite::TextStyles::color
TextStyle color
the TextStyle for color specification
Definition: textstyles.h:40
srchilite::TextStyles::docTemplate
DocTemplate docTemplate
template used when generating entire document
Definition: textstyles.h:66
srchilite::TextStyles::noDocTemplate
DocTemplate noDocTemplate
template used when not generating entire document
Definition: textstyles.h:69
srchilite::TextStyles::bold
TextStyle bold
the TextStyle for bold
Definition: textstyles.h:25
srchilite::TextStylesPtr
boost::shared_ptr< TextStyles > TextStylesPtr
shared pointer
Definition: textstyles.h:77
srchilite::TextStyles::RefTextStyle
The TextStyle objects for reference formatting.
Definition: textstyles.h:54
srchilite::DocTemplate
Definition: doctemplate.h:18
srchilite::CharTranslator
Translates specific character sequences into corresponding ones; it can also use regular expression f...
Definition: chartranslator.h:39
srchilite::ColorMapPtr
boost::shared_ptr< ColorMap > ColorMapPtr
shared pointer for ColorMap
Definition: colormap.h:78
srchilite::TextStyles::linenum
TextStyle linenum
the TextStyle for line numbering
Definition: textstyles.h:49
srchilite::TextStyles::fixed
TextStyle fixed
the TextStyle for fixed width font
Definition: textstyles.h:37
srchilite::TextStyles
Contains TextStyle objects for all formats (e.g., bold, italics, etc), and other templates (e....
Definition: textstyles.h:23
srchilite::TextStyle
Represents a formatting template where there can be some variables (starting with $,...
Definition: textstyle.h:36
srchilite::TextStyles::notfixed
TextStyle notfixed
the TextStyle for non fixed width font
Definition: textstyles.h:34