23 #if ! defined (txt_eng_h)
88 enum { invalid_code = 0xFFFFFFFFU };
98 uint32_t get_symbol_code (
void)
const;
286 #define ASSIGN_COLOR(r,g,b) { rgb(0) = r; rgb(1) = g; rgb(2) = b; }
297 else if (cname ==
"lightBlue")
ASSIGN_COLOR(0.68, .85, .9)
323 it != e.
end (); ++it)
325 (*it)->accept (*
this);
353 #define TEXT_ELEMENT_ACCEPT(cls) \
355 cls::accept (text_processor& p) \
415 { destroy_lexer (); }
426 bool init_lexer (
const std::string& s);
428 void destroy_lexer (
void);
441 std::auto_ptr<text_parser>
parser;
443 if (interpreter.
compare (
"tex"))
448 return parser->
parse (s);
~text_element_color(void)
text_element * get_element(void)
text_element_string(const std::string &s="")
virtual ~text_processor(void)
~text_element_superscript(void)
text_element_subscript(char c)
fontstyle get_fontstyle(void) const
text_element_list(text_element *e)
virtual void visit(text_element_list &e)
void set_parse_result(text_element *e)
text_element_superscript(char c)
virtual ~text_parser(void)
double get_fontsize(void) const
virtual void visit(text_element_fontsize &)
text_element_color(double r, double g, double b)
text_element * parse(const std::string &s)
text_element * get_parse_result(void)
text_element_fontstyle(fontstyle st)
~text_element_subscript(void)
int get_symbol(void) const
virtual void visit(text_element_superscript &e)
~text_element_fontstyle(void)
This class gets nodes and searchs inside of 'info files'.
#define ASSIGN_COLOR(r, g, b)
std::list< text_element * >::iterator iterator
~text_element_fontname(void)
text_element_fontname(const std::string &fname)
text_element_superscript(text_element *e)
text_element * get_element(void)
virtual void visit(text_element_fontname &)
text_element_subscript(text_element *e)
virtual void accept(text_processor &p)=0
#define TEXT_ELEMENT_ACCEPT(cls)
std::string string_value(void) const
virtual void visit(text_element_subscript &e)
~text_element_symbol(void)
virtual text_element * parse(const std::string &s)=0
virtual void visit(text_element_color &)
size_t size(T const (&)[z])
text_element_fontsize(double fsize)
text_element_combined(text_element *e1, text_element *e2)
text_element_symbol(int sym)
text_element_combined(text_element *e)
~text_element_string(void)
virtual ~text_element(void)
virtual void visit(text_element_fontstyle &)
virtual void visit(text_element_symbol &)
bool compare(const std::string &s, size_t limit=std::string::npos) const
virtual void visit(text_element_combined &)
~text_element_fontsize(void)
virtual void visit(text_element_string &e)=0
text_element_color(const std::string &cname)
const std::string & get_fontname(void) const