changeset 497:96713a0f5d8b

css.[ch][ch] -> styleengine.[ch][ch]
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Thu, 23 Oct 2008 20:38:31 +0200
parents 8f420eb7c20d
children 80382646fb75
files src/Makefile.am src/css.cc src/css.hh src/html_common.hh src/styleengine.cc src/styleengine.hh
diffstat 6 files changed, 51 insertions(+), 49 deletions(-) [+]
line wrap: on
line diff
--- a/src/Makefile.am	Thu Oct 23 20:30:38 2008 +0200
+++ b/src/Makefile.am	Thu Oct 23 20:38:31 2008 +0200
@@ -67,6 +67,8 @@
 	capi.h \
 	css.cc \
 	css.hh \
+	styleengine.cc \
+	styleengine.hh \
 	plain.cc \
 	html.cc \
 	html.hh \
--- a/src/css.cc	Thu Oct 23 20:30:38 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-/*
- * File: css.cc
- *
- * Copyright 2008 Jorge Arellano Cid <jcid@dillo.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- */
-
-#include <stdio.h>
-#include "css.hh"
-
-StyleEngine::StyleEngine () {
-}
-
-StyleEngine::~StyleEngine () {
-}
-
-void
-StyleEngine::startElement (int tag, const char *id, const char *style) {
-   fprintf(stderr, "===> START %d %s %s\n", tag, id, style);
-}
-
-void
-StyleEngine::endElement (int tag) {
-   fprintf(stderr, "===> END %d\n", tag);
-}
--- a/src/css.hh	Thu Oct 23 20:30:38 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-#ifndef __CSS_HH__
-#define __CSS_HH__
-
-#include "dw/core.hh"
-
-class StyleEngine {
-   private:
-      dw::core::style::Style *currentStyle;
-
-   public:
-      StyleEngine ();
-      ~StyleEngine ();
-
-      void startElement (int tag, const char *id, const char *style);
-      void endElement (int tag);
-      inline dw::core::style::Style *style () { return currentStyle; };
-};
-
-#endif
--- a/src/html_common.hh	Thu Oct 23 20:30:38 2008 +0200
+++ b/src/html_common.hh	Thu Oct 23 20:38:31 2008 +0200
@@ -13,7 +13,7 @@
 
 #include "form.hh"
 
-#include "css.hh"
+#include "styleengine.hh"
 
 /*
  * Macros 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/styleengine.cc	Thu Oct 23 20:38:31 2008 +0200
@@ -0,0 +1,29 @@
+/*
+ * File: styleengine.cc
+ *
+ * Copyright 2008 Jorge Arellano Cid <jcid@dillo.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ */
+
+#include <stdio.h>
+#include "styleengine.hh"
+
+StyleEngine::StyleEngine () {
+}
+
+StyleEngine::~StyleEngine () {
+}
+
+void
+StyleEngine::startElement (int tag, const char *id, const char *style) {
+   fprintf(stderr, "===> START %d %s %s\n", tag, id, style);
+}
+
+void
+StyleEngine::endElement (int tag) {
+   fprintf(stderr, "===> END %d\n", tag);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/styleengine.hh	Thu Oct 23 20:38:31 2008 +0200
@@ -0,0 +1,19 @@
+#ifndef __STYLEENGINE_HH__
+#define __STYLEENGINE_HH__
+
+#include "dw/core.hh"
+
+class StyleEngine {
+   private:
+      dw::core::style::Style *currentStyle;
+
+   public:
+      StyleEngine ();
+      ~StyleEngine ();
+
+      void startElement (int tag, const char *id, const char *style);
+      void endElement (int tag);
+      inline dw::core::style::Style *style () { return currentStyle; };
+};
+
+#endif