[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-kafka
Subject: Re: Open Issues
From: Stefan Schimanski <1Stein () gmx ! de>
Date: 2000-10-26 20:38:05
[Download RAW message or body]
> Something we could then do is to add code to the tokenizer to accept
> "plugin-tokens". In normal html viewing there would be no plugins
> registered, in kafka however tokens like "whitespace", "php-tag" etc, could
> be added. Which would be then be stored in the dom-tree.
> Example:
>
> <html>
> <?echo $text; ?>
> </html>
>
> in normal khtml this would create
> [html]
> [texttag] <?echo $bgcolor; ?>"
>
> But after registering the php and whitespace objects we would have
> [html]
> [kafka-whitespace] " "
> [kafka-php tag] "echo $bgcolor;"
> [whitespace] "\n"
>
> Implementation specific, all kafka objects would have to subclass a
> "unknown-token" in the khtml lib, some smart code would have to sneak into
> the tokenizer to parse the "plugin" tokens.
That's exactly what I had in mind. Adding this to khtml should be possible.
Lars already said that he would change the parser/tokenizer into classes with
virtual function we could overwrite.
> > B) editing must be interactive and intiutive. This means that
> > drag'n'drop, wysiwyg editing of positions and dimension (i.e. of images,
> > tables, divs) is possible.
>
> Certainly, but is this not really easy if you have a DOM? You can ask khtml
> where stuff is, so finding out which token has been clicked is really easy.
> All we have to do is write logic that wil do the drawing.
I looked into the KHTMLView class this morning. Adding those things shouldn't
be very hard. The whole html page is double buffered in a QImage while
drawing and blitted to the QPainter. Before the last step we can easily add
our own drawing code.
Schimmi
--
#! /bin/sh
for DVDs in Linux screw the MPAA and ; do dig $DVDs.z.zoy.org ; done | \
perl -ne 's/\.//g; print pack("H224",$1) if(/^x([^z]*)/)' | gunzip
_______________________________________________
Kde-kafka mailing list
Kde-kafka@master.kde.org
http://master.kde.org/mailman/listinfo/kde-kafka
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic