comparison src/styleengine.hh @ 643:eb0279297fde

hook up <style>...</style> parsing
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Thu, 04 Dec 2008 18:04:14 +0100
parents 4c9f7f03caf0
children 9e4ad941cbdc
comparison
equal deleted inserted replaced
642:2b8a9d2bdf6e 643:eb0279297fde
2 #define __STYLEENGINE_HH__ 2 #define __STYLEENGINE_HH__
3 3
4 #include "dw/core.hh" 4 #include "dw/core.hh"
5 #include "doctree.hh" 5 #include "doctree.hh"
6 #include "css.hh" 6 #include "css.hh"
7 #include "cssparser.hh"
7 8
8 class StyleEngine : public Doctree { 9 class StyleEngine : public Doctree {
9 private: 10 private:
10 class Node : public DoctreeNode { 11 class Node : public DoctreeNode {
11 public: 12 public:
36 return stack->getRef (n->depth - 1); 37 return stack->getRef (n->depth - 1);
37 else 38 else
38 return NULL; 39 return NULL;
39 }; 40 };
40 41
42 void parse (const char *buf, int buflen, int order_count, CssOrigin origin);
41 void startElement (int tag); 43 void startElement (int tag);
42 void setId (const char *id); 44 void setId (const char *id);
43 void setClass (const char *klass); 45 void setClass (const char *klass);
44 void setStyle (const char *style); 46 void setStyle (const char *style);
45 void endElement (int tag); 47 void endElement (int tag);