A nice look for the Docs (was: Re: [Mono-list] Need help: writing a COM control.)

Guenther Roith groith@tcrz.net
Sun, 11 Aug 2002 20:34:42 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_000D_01C24176.8603AF50
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hi, everybody!

Here is a quick & dirty solution to stop the window-opening in Mozilla and
add a stylesheet to the MS docs.

After extracting the class libs and copying them to Linux, like described
before, copy the attached convert.php and style.php one directory level
higher than the html directory and run convert.php. That will take about 20
minutes.

Then run cpref_start.htm in Mozilla.

The docs are designed for use with stylesheets and style.css can be modified
to produce the original ms look & feel.

Johannes


----- Original Message -----
From: "Guenther Roith" <groith@tcrz.net>
To: "Guenther Roith" <groith@tcrz.net>
Cc: "mono-list" <mono-list@ximian.com>
Sent: Sunday, August 11, 2002 8:04 PM
Subject: Re: [Mono-list] Need help: writing a COM control.


> So finally I'm finished with the class library.
> I have now 39.279 Files, taking 242 MB.
>
> I'll take some time until mono has so much documentation itself...
>
> The start-file is cpref_start.htm and it looks ugly and a window pops up.
>
> There needs to be a css files created, that makes the thing look better
and
> the non-html-tags (and the popup-window) must be removed perhaps trough
> xslt.
>
> Here's a screenshot of the class lib doc in Mozilla.
>
> http://www.superin.formativ.net/mono/mozdoc.png
>
>
> Johannes
>
> ----- Original Message -----
> From: "Guenther Roith" <groith@tcrz.net>
> To: "Miguel de Icaza" <miguel@ximian.com>
> Cc: "mono-list" <mono-list@ximian.com>
> Sent: Sunday, August 11, 2002 7:23 PM
> Subject: Re: [Mono-list] Need help: writing a COM control.
>
>
> > Hi!
> >
> > I've also found some additional information on the IE COM API:
> >
>
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/WebBrows
> > er/WebBrowser.asp
> >
> > As well as a vb script (stupid, I know, but the only example I found).
> > must be saved a something.vbs:
> >
> > Dim MyIE
> > Set MyIE = CreateObject("InternetExplorer.Application")
> >
> > do while MyIE.Busy
> > loop
> > MyIE.Visible = 0
> > MyIE.Navigate "http://www.go-mono.org"
> > MyIE.Silent = True
> > Do While MyIE.ReadyState<>4
> > Loop
> >
> >
> > MsgBox(MyIE.Document.Body.innerText)
> >
> > MeinIE.Quit
> >
> >
> >
> > Johannes
> >
> >
> >
> >
> >
> >
> > ----- Original Message -----
> > From: "Miguel de Icaza" <miguel@ximian.com>
> > To: <mono-list@ximian.com>
> > Sent: Sunday, August 11, 2002 1:11 PM
> > Subject: [Mono-list] Need help: writing a COM control.
> >
> >
> > > Hello guys,
> > >
> > >     I usually find myself traveling and without the desire to boot
> > > VMware.  The only reason to start up VMWare is to read the online
> > > documentation for the .NET Framework.
> > >
> > >     Ideally, we would have our own documentation, but we do not have
it
> > > yet.  So what I want to do is pull all the data from the existing
> > > Microsoft implementation, and dump it into HTML that I can later view
> > > from Linux when am traveling.
> > >
> > >     I found that they have a control that handles the `ms-help:'
prefix
> > > (indeed, the URL would work just fine under IE).  But the API is an
> > > internal API, so it is not easy to figure out what arguments to pass
to
> > > it.  Even with this, I was able to write a simple C# program that
could
> > > load the index, and return a list of topics, but I was stopped there.
> > >
> > >     Since the `ms-help:' happens to be some kind of handler that IE
> > > uses, I wonder if it is possible to write a COM control that would
allow
> > > me to pull the stream of data that would be rendered by the ms-help:
> > > control.
> > >
> > >      Once this is done, I could safely write a little program to pull
> > > all the data and copy it over to Linux to browse.  I know its
possible,
> > > I just do not know enough COM to pull this out.
> > >
> > > Miguel.
> > >
> > > _______________________________________________
> > > Mono-list maillist  -  Mono-list@ximian.com
> > > http://lists.ximian.com/mailman/listinfo/mono-list
> > >
> >
> >
> > _______________________________________________
> > Mono-list maillist  -  Mono-list@ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> >
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>

------=_NextPart_000_000D_01C24176.8603AF50
Content-Type: application/octet-stream;
	name="convert.php"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="convert.php"

<?php
if ($handle =3D opendir('html/')) {
while (false !=3D=3D ($file =3D readdir($handle))) {=20
echo "$file\n";
$filename=3D"html/".$file;=20
$fd =3D fopen ($filename, "r");
$tmp1=3Dfread($fd,filesize($filename));
fclose ($fd);

$tmp1=3Dstr_replace('<SCRIPT =
SRC=3D"ms-help:/../commoner/scripts/dtuelink.js"></SCRIPT>', '<link =
REL=3DSTYLESHEET type=3DTEXT/CSS href=3D../style.css>', $tmp1);

$fd =3D fopen ($filename, "w");
fwrite($fd,$tmp1);
fclose ($fd);

    }


    closedir($handle);=20
}

?>
------=_NextPart_000_000D_01C24176.8603AF50
Content-Type: text/css;
	name="style.css"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="style.css"

   body { font-family: "trebuchet ms", lucida, verdana, helvetica;}
------=_NextPart_000_000D_01C24176.8603AF50--