aboutsummaryrefslogtreecommitdiff
path: root/src/styleengine.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-10-30 20:04:24 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-10-30 20:04:24 +0100
commit96e7c3f0bd4b6521539b096a3616922605fa19fa (patch)
tree78ea3fdc6c5bb43fbd0cc8d7d2ae423b790ae4b3 /src/styleengine.cc
parentb048b697486d97e9dd83619242f34493c69a8bb4 (diff)
use prefs only in user stylesheet generation
Diffstat (limited to 'src/styleengine.cc')
-rw-r--r--src/styleengine.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc
index a144bc63..8aa6e7b1 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -10,7 +10,6 @@
*/
#include <stdio.h>
-#include "prefs.h"
#include "styleengine.hh"
using namespace dw::core::style;
@@ -27,14 +26,14 @@ StyleEngine::StyleEngine (dw::core::Layout *layout) {
Node *n = stack->getRef (stack->size () - 1);
/* Create a dummy font, attribute, and tag for the bottom of the stack. */
- font_attrs.name = prefs.vw_fontname;
+ font_attrs.name = "helvetica";
font_attrs.size = 12;
font_attrs.weight = 400;
font_attrs.style = FONT_STYLE_NORMAL;
style_attrs.initValues ();
style_attrs.font = Font::create (layout, &font_attrs);
- style_attrs.color = Color::createSimple (layout, prefs.text_color);
+ style_attrs.color = Color::createSimple (layout, 0);
n->style = Style::create (layout, &style_attrs);
}
@@ -45,7 +44,7 @@ StyleEngine::~StyleEngine () {
void StyleEngine::startElement (int tag, const char *id, const char *klass,
const char *style) {
- fprintf(stderr, "===> START %d %s %s %s\n", tag, id, klass, style);
+// fprintf(stderr, "===> START %d %s %s %s\n", tag, id, klass, style);
if (stack->getRef (stack->size () - 1)->style == NULL)
style0 ();
@@ -65,7 +64,7 @@ void StyleEngine::setNonCssProperties (CssPropertyList *props) {
}
void StyleEngine::endElement (int tag) {
- fprintf(stderr, "===> END %d\n", tag);
+// fprintf(stderr, "===> END %d\n", tag);
assert (stack->size () > 1);
Node *n = stack->getRef (stack->size () - 1);