641dd90b69a9863f5d80b096919ac061cf463cab
[mono.git] / mcs / tools / monkeydoc / MonkeyDoc / RootTree_Legacy.cs
1 using System;
2 using System.IO;
3 using System.Linq;
4 using System.Xml;
5 using System.Diagnostics;
6 using System.Collections.Generic;
7
8 using Mono.Utilities;
9 using Lucene.Net.Index;
10
11 #if LEGACY_MODE
12
13 namespace MonkeyDoc
14 {
15         using Generators;
16
17         public partial class RootTree
18         {
19                 static IDocGenerator<string> rawGenerator = new RawGenerator ();
20                 static HtmlGenerator htmlGenerator = new HtmlGenerator (null);
21
22                 [Obsolete ("Use RawGenerator directly")]
23                 public XmlDocument GetHelpXml (string id)
24                 {
25                         var doc = new XmlDocument ();
26                         doc.LoadXml (RenderUrl (id, rawGenerator));
27                         return doc;
28                 }
29
30                 [Obsolete ("Use the RenderUrl variant accepting a generator")]
31                 public string RenderUrl (string url, out Node n)
32                 {
33                         return RenderUrl (url, htmlGenerator, out n);
34                 }
35         }
36 }
37
38 #endif