diff 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
line wrap: on
line diff
--- a/src/css.hh	Thu Oct 23 19:09:42 2008 +0200
+++ b/src/css.hh	Thu Oct 23 20:03:33 2008 +0200
@@ -2,19 +2,17 @@
 #define __CSS_HH__
 
 #include "dw/core.hh"
-#include "html_common.hh"
 
 class StyleEngine {
    private:
-      DilloHtml *html;
       dw::core::style::Style *currentStyle;
 
    public:
-      StyleEngine (DilloHtml *html);
+      StyleEngine ();
       ~StyleEngine ();
 
-      void startElement (const char *name);
-      void endElement (const char *name);
+      void startElement (int tag, const char *id, const char *style);
+      void endElement (int tag);
       inline dw::core::style::Style *style () { return currentStyle; };
 };