In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Robert Mao) wrote:
> It may be a strange question, but is there any project that build a
>lightweight DHTML engine based on gecko? The current mozilla emb.
>including too many things, but in most of the application all we need
>is just dhtml rendering(including javascript execution).
I, too, would like a lightweight mozilla object for embedding in
Windows prgrammes. The Gecko runtime Environment (GRE) is too much for
my needs, as I do not need an entire browser.
I do not need the chrome stuff for the user interface (URL bar,
statusbar, etc...), neither JavaScript nor Java, nor the XPcom plugin
stuff. I don't need any network IO or SSL. All I need is the basic HTML
layout engine for text formatting (with CSS would be nice, but not
strictly ncessary) with a few images. Only very (extremely) rarely would
I ever need any of really fancy stuff like one might use to make DHTML
dropdown menus on web pages, along with a few callbacks for mouse events
(e.g. double clicking a link, right clicking anywhere in the document
with ability to tell on which element, things like that).
I don't want to make a "browser", which to me is specifically something
whch goes and gets external (to the programme) HTML files and diplays
them - something which surfs. I just want the display part. I want to be
able to programmatically change the HTML in the document currently being
displayed in the control. Now whether that is by inserting "raw" HTML in
a pMozCtrl->InsertHTML("<p>this is is the new paragraph with an
image</p>", location) manner or by creating new nodes with the DOM
interface, I don't particularly care. (The raw insertion method would be
nice, but I am familiar with DOM-type stuff from writing XML-enabled
apps.)
Right now I use the richedit control, but is annoying. Unless you bother
to take the time to learn RTF, you have to set the text attributes, then
insert new text, then add themore text, the set the new attributes, then
insert more text... and so on. No "inline" text formatting like in HTML.
And to insert images is a real pain in the gluteus maximus because you
have to do it via OLE. :-P HTML would be _sooo_ much simpler.
The Mozilla ActiveX control, almost appears to be what I need, but there
is still a whole bunch of DLLs included with it which lookes to be most
of the GRE. Not only that, I just tried to change a programme to use the
Mozilla control instead the IE control, and the Mozilla control doesn't
like IHTMLDocument2::get_body() it crashes the programme. :-(
Does anybody know if it is possible to build _only_ the the NGLayout
engine for Windows in such away that I can make it a child window?
--
Cory Albrecht
http://www.sentex.net/~corya/
_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding