Index: monohb-provider.cs
===================================================================
RCS file: /cvs/public/monodoc/browser/monohb-provider.cs,v
retrieving revision 1.1
diff -u -r1.1 monohb-provider.cs
--- monohb-provider.cs  1 Jun 2003 15:26:45 -0000       1.1
+++ monohb-provider.cs  12 Jun 2003 16:16:56 -0000
@@ -23,6 +23,85 @@
                                node.RemoveAll();
                        }
                }
+
+
+
+
+
+
+
+XmlNodeList nodeList2 = docToProcess.GetElementsByTagName("pre");
+foreach(XmlNode node in nodeList2)
+       {
+               string cssClass = ((XmlElement)node).GetAttribute("class");
+
+               if (cssClass != null)
+               {
+
+                       switch(cssClass)       
+                       {         
+
+                       case "code":   
+
+                               node.InnerXml = "<table border='0' cellspacing='0' 
cellpadding='3'><tr><td>" + 
+                                       "<table width='100%' border='0' 
cellspacing='0' cellpadding='0' height='100%'>" + 
+                                       "<tr><td bgcolor='#c0c0c0'><img 
src='images/empty.png' width='1' height='1' /></td>" + 
+                                       "<td bgcolor='#c0c0c0'><img 
src='images/empty.png' width='1' height='1' /></td>" + 
+                                       "<td bgcolor='#c0c0c0'><img 
src='images/empty.png' width='1' height='1' /></td>" + 
+                                       "</tr><tr> <td bgcolor='#c0c0c0'> </td><td 
width='100%' bgcolor='#efefef'> " + 
+                                       "<table width='100%' border='0' 
cellspacing='0' cellpadding='0'><tr><td bgcolor='#ffffff'>" + 
+                                       "<table width='100%' border='0' 
cellspacing='0' cellpadding='2'><tr><td bgcolor='#efefef'>" + 
+
+                                       node.InnerXml +
+
+                                       "</td></tr></table></td></tr></table></td><td 
bgcolor='#999999'><img src='images/shim.gif' width='1' height='1' /></td>" + 
+                                       "</tr><tr> <td bgcolor='#c0c0c0'><img 
src='images/empty.png' width='1' height='1' /></td>" + 
+                                       "<td bgcolor='#c0c0c0'><img 
src='images/empty.png' width='1' height='1' /></td>" + 
+                                       "<td bgcolor='#c0c0c0'><img 
src='images/empty.png' width='1' height='1' /></td>" + 
+                                       "</tr></table></td></tr></table>";
+
+                       break;        
+                       case "console":   
+
+                               node.InnerXml = "<table border='0' cellspacing='0' 
cellpadding='3'><tr><td>" + 
+                                       "<table width='100%' border='0' 
cellspacing='0' cellpadding='0' height='100%'>" + 
+                                       "<tr><td bgcolor='#555555'><img 
src='images/empty.png' width='1' height='1' /></td>" + 
+                                       "<td bgcolor='#555555'><img 
src='images/empty.png' width='1' height='1' /></td>" + 
+                                       "<td bgcolor='#555555'><img 
src='images/empty.png' width='1' height='1' /></td>" + 
+                                       "</tr><tr> <td bgcolor='#c0c0c0'> </td><td 
width='100%' bgcolor='#efefef'> " + 
+                                       "<table width='100%' border='0' 
cellspacing='0' cellpadding='0'><tr><td bgcolor='#ffffff'>" + 
+                                       "<table width='100%' border='0' 
cellspacing='0' cellpadding='2'><tr><td bgcolor='#999999'>" + 
+
+                                       node.InnerXml +
+
+                                       "</td></tr></table></td></tr></table></td><td 
bgcolor='#999999'><img src='images/shim.gif' width='1' height='1' /></td>" + 
+                                       "</tr><tr> <td bgcolor='#555555'><img 
src='images/empty.png' width='1' height='1' /></td>" + 
+                                       "<td bgcolor='#555555'><img 
src='images/empty.png' width='1' height='1' /></td>" + 
+                                       "<td bgcolor='#555555'><img 
src='images/empty.png' width='1' height='1' /></td>" + 
+                                       "</tr></table></td></tr></table>";
+                       break;
+
+                       default:
+                       break;      
+                       }
+
+
+               }
+       }
+
+
+
+
+
+
+
+
+
+
+
+
+
+       
                return docToProcess;
        }
 }
_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to