over to n.p.m.layout Marco Righi wrote: > Hi all. > I'm creating an application for Windows platforms to which I would like to add the >capability to display HTML documents, taking > examples from the MfcEmbed sample, but I have a problem that I could not resolve. > I need to modify the text read from the input stream in order to modify special HTML >tags (otherwise unhandled). I noticed that > there is an entry point for an external parser in htmlparser\src\nsparser.cpp at >line 2429: > if (pws->mParserFilter) pws->mParserFilter->RawBuffer(buf, &theNumRead); > that seems to be exactly what I need. Unfortunately, the SetParserFilter function >(that should allow me to do this) has a very poor > documentation. I only have a WebBrowser object (created from the nsIWebBrowser >interface) and I would like to know: > - How can I get the parser object/interface associated to my WebBrowser? > - Can I create my own class derived from nsIParserFilter and use it to set the >ParserFilter of that parser? > - Will the ParserFilter object be available for all the documents loaded by my >WebBrowser? > > Does anyone know how to do that? > Marco >
