Source-highlight Library
|
00001 00006 #ifndef _TEXTSTYLEBUILDER_H_ 00007 #define _TEXTSTYLEBUILDER_H_ 00008 00009 #include "textstyle.h" 00010 00011 namespace srchilite { 00012 00018 class TextStyleBuilder { 00019 std::string start_, separator_; 00020 00021 TextStyle buffer; 00022 bool added; 00023 00024 public: 00025 TextStyleBuilder(const std::string &st = "", const std::string &sep = ""); 00026 void start(); 00027 void add(const TextStyle &textStyle); 00028 TextStyle end(); 00029 }; 00030 00031 } 00032 00033 #endif /*_TEXTSTYLEBUILDER_H_*/