Re: [Mono-docs-list] Monodoc print support patch - feedback needed.

2005-09-04 Thread Rafael Ferreira
Mario, 

That sounds perfectly good to me. I kinda expected the output to be
fairly ugly under that scenario. 

- raf

On Sun, 2005-09-04 at 12:28 +0200, Mario Sopena wrote:
> Hey,
> 
>  I was trying your patch and I realized that when using gecko and
> printing, the results are ugly, because monodoc uses css for rendering
> but you use Gtkhtml for printing, so, while we make gecko print, we
> can disable css before printing and enable it later. Something like
> this:
> 
> void on_print1_activate (object sender, EventArgs e) {
>   Node n; 
>   // desactivate css temporary 
>   if (UseGecko)
>   HelpSource.use_css = false;
>   
>   // sending Html to the printed. 
>   print_manager.Print(help_tree.RenderUrl (CurrentUrl, out 
> n),null,n.Caption);
>   
>   if (UseGecko)
>   HelpSource.use_css = true;  
>   }
> 
> if you agree I can make the changes myself before applying the patch.
> 
> Mario
> 

___
Mono-docs-list maillist  -  Mono-docs-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-docs-list


Re: [Mono-docs-list] Monodoc print support patch - feedback needed.

2005-09-04 Thread Mario Sopena
Hey,

 I was trying your patch and I realized that when using gecko and
printing, the results are ugly, because monodoc uses css for rendering
but you use Gtkhtml for printing, so, while we make gecko print, we
can disable css before printing and enable it later. Something like
this:

void on_print1_activate (object sender, EventArgs e) {
Node n; 
// desactivate css temporary 
if (UseGecko)
HelpSource.use_css = false;

// sending Html to the printed. 
print_manager.Print(help_tree.RenderUrl (CurrentUrl, out 
n),null,n.Caption);

if (UseGecko)
HelpSource.use_css = true;  
}

if you agree I can make the changes myself before applying the patch.

Mario
___
Mono-docs-list maillist  -  Mono-docs-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-docs-list