view 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 source
#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