[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: HTMLHelp viewer via KIO + KHTML
From: aleXXX <alexander.neundorf () gmx ! net>
Date: 2002-07-06 21:48:02
[Download RAW message or body]
On Saturday 06 July 2002 23:41, aleXXX wrote:
>
> Yes.
> Or you write a kpart which contains this filter ;-)
> Following are the main parts of my local troff-kpart, derived from
> KHTMLPart. As you see, it's easy.
>
> //use the one from KReadOnlyPart
> bool KManPart::openURL( const KURL &url )
> {
> return KParts::ReadOnlyPart::openURL(url);
> };
>
> //read the data, convert it, and feed it into the KHTMLPart
> bool KManPart::openFile()
> {
> m_output_string="";
...
> delete [] fileContents;
> return true;
> }
>
> Once this is done, the links inside the displayed document can point to
> "chm:/whatever", and the ioslave will be called which can produce either
> html or the mimetype for your specialized part.
>
> Bye
> Alex
You could also start a KIO get job in openFile(), which could call an url
like "chm:/blah"
Bye
Alex
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic