aboutsummaryrefslogtreecommitdiff
path: root/src/css.hh
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-10-22 22:11:10 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-10-22 22:11:10 +0200
commit6c592d3b8e1808a000d219a2e40fd34f3d471773 (patch)
treed60309913cce82bd682fd3d2ec2543699395d5ce /src/css.hh
parenta41af55a2ac4ac8db5c5a4cc982bdeb845ff36c2 (diff)
add css.hh css.cc
Diffstat (limited to 'src/css.hh')
-rw-r--r--src/css.hh21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/css.hh b/src/css.hh
new file mode 100644
index 00000000..31147db7
--- /dev/null
+++ b/src/css.hh
@@ -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