Source-highlight Library
textstylebuilder.h
1 
6 #ifndef _TEXTSTYLEBUILDER_H_
7 #define _TEXTSTYLEBUILDER_H_
8 
9 #include "textstyle.h"
10 
11 namespace srchilite {
12 
19  std::string start_, separator_;
20 
22  bool added;
23 
24 public:
25  TextStyleBuilder(const std::string &st = "", const std::string &sep = "");
26  void start();
27  void add(const TextStyle &textStyle);
28  TextStyle end();
29 };
30 
31 }
32 
33 #endif /*_TEXTSTYLEBUILDER_H_*/
bool added
whether we've already added something
Definition: textstylebuilder.h:22
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
Represents a formatting template where there can be some variables (starting with $...
Definition: textstyle.h:36
Given TextStyle objects build a new one, adding a starting part, and ending part, and separating them...
Definition: textstylebuilder.h:18
TextStyle buffer
where we store intermediate results
Definition: textstylebuilder.h:21