Source-highlight Library
textstylebuilder.h
1
5
6#ifndef _TEXTSTYLEBUILDER_H_
7#define _TEXTSTYLEBUILDER_H_
8
9#include "textstyle.h"
10
11namespace srchilite {
12
18class TextStyleBuilder {
19 std::string start_, separator_;
20
22 bool added;
23
24public:
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
TextStyle buffer
where we store intermediate results
Definition textstylebuilder.h:21
Represents a formatting template where there can be some variables (starting with $,...
Definition textstyle.h:36
C++ class: doctemplate.h.
Definition bufferedoutput.cpp:13