comparison src/css.hh @ 495:7224de9c34b7

add StyleEngine
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Thu, 23 Oct 2008 20:03:33 +0200
parents 03e0cacbb994
children
comparison
equal deleted inserted replaced
494:db216e0183a1 495:7224de9c34b7
1 #ifndef __CSS_HH__ 1 #ifndef __CSS_HH__
2 #define __CSS_HH__ 2 #define __CSS_HH__
3 3
4 #include "dw/core.hh" 4 #include "dw/core.hh"
5 #include "html_common.hh"
6 5
7 class StyleEngine { 6 class StyleEngine {
8 private: 7 private:
9 DilloHtml *html;
10 dw::core::style::Style *currentStyle; 8 dw::core::style::Style *currentStyle;
11 9
12 public: 10 public:
13 StyleEngine (DilloHtml *html); 11 StyleEngine ();
14 ~StyleEngine (); 12 ~StyleEngine ();
15 13
16 void startElement (const char *name); 14 void startElement (int tag, const char *id, const char *style);
17 void endElement (const char *name); 15 void endElement (int tag);
18 inline dw::core::style::Style *style () { return currentStyle; }; 16 inline dw::core::style::Style *style () { return currentStyle; };
19 }; 17 };
20 18
21 #endif 19 #endif