diff src/css.hh @ 493:03e0cacbb994

add css.hh css.cc
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Wed, 22 Oct 2008 22:11:10 +0200
parents
children 7224de9c34b7
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/css.hh	Wed Oct 22 22:11:10 2008 +0200
@@ -0,0 +1,21 @@
+#ifndef __CSS_HH__
+#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 ();
+
+      void startElement (const char *name);
+      void endElement (const char *name);
+      inline dw::core::style::Style *style () { return currentStyle; };
+};
+
+#endif