[fpc-pascal] HTML or RichText viewer components
Graeme Geldenhuys
graemeg.lists at gmail.com
Tue Jan 8 08:10:08 CET 2008
Hi,
Has anybody got experience with HTML or RichText viewer components?
Has anybody implemented something like this?
I would like to start a HTML/RichText viewer component for fpGUI.
Unfortunately I have no idea where to start. I guess trying to make
the component HTML 4 and maybe CSS1 complaint would be a good idea.
This will obviously be a long term effort, but would come in very
handy if fpGUI wanted to implement it's own HTML based Help Viewer or
some Rich Text Viewer. There are lots of other uses for such a
component as well.
I need some guidelines of the development process of such a
component.... Anybody got some thoughts. Here are some 'off the top of
my head' steps to follow.
1. I guess first thing would be to get some HTML parser. There are
lots available, so that should be fairly easy.
2. Break down the document into parts (classes or some sort). Letters,
Words, Lines, Paragraphs, Document.
3. Next I guess would be to implement simple text formatting as a
start - Bold, Italics, Underline, font color etc...
4. A lot more.... :)
I guess I could look at Java or Qt class documentation for ideas of
breaking down the classes.
Anybody got some thoughts or code to offer? Maybe somebody saw a
article explaining such a process (no matter the language).
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
More information about the fpc-pascal
mailing list