Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[monkeydoc] Add more legacy methods

  • Loading branch information...
commit 36e1835acfdf7f9ff8f79eaa2a1578db7aea89b9 1 parent f14ecc4
@garuma garuma authored
View
16 mcs/tools/monkeydoc/MonkeyDoc/HelpSource_Legacy.cs
@@ -12,8 +12,12 @@
namespace MonkeyDoc
{
+ using Generators;
+
public partial class HelpSource
{
+ static HtmlGenerator htmlGenerator = new HtmlGenerator (null);
+
[Obsolete]
public static bool use_css;
[Obsolete]
@@ -30,6 +34,18 @@ public partial class HelpSource
public string InlineJavaScript {
get { return null; }
}
+
+ [Obsolete ("Use RenderUrl")]
+ public string GetText (string url, out Node node)
+ {
+ return rootTree.RenderUrl (url, htmlGenerator, out node, this);
+ }
+
+ [Obsolete ("Use RenderUrl")]
+ public string RenderNamespaceLookup (string url, out Node node)
+ {
+ return rootTree.RenderUrl (url, htmlGenerator, out node, this);
+ }
}
}
View
8 mcs/tools/monkeydoc/MonkeyDoc/Node_Legacy.cs
@@ -17,6 +17,14 @@ public partial class Node
return this.Tree;
}
}
+
+ [Obsolete ("Use TreeDumper")]
+ public static void PrintTree (Tree t)
+ {
+ TreeDumper.PrintTree (t.RootNode);
+ }
+
+
}
}
View
12 mcs/tools/monkeydoc/MonkeyDoc/RootTree_Legacy.cs
@@ -32,6 +32,18 @@ public string RenderUrl (string url, out Node n)
{
return RenderUrl (url, htmlGenerator, out n);
}
+
+ [Obsolete ("Use GenerateIndex")]
+ public static void MakeIndex (RootTree root)
+ {
+ root.GenerateIndex ();
+ }
+
+ [Obsolete ("Use GenerateSearchIndex")]
+ public static void MakeSearchIndex (RootTree root)
+ {
+ root.GenerateSearchIndex ();
+ }
}
}
View
7 mcs/tools/monkeydoc/MonkeyDoc/Tree_Legacy.cs
@@ -9,10 +9,17 @@ namespace MonkeyDoc
{
public partial class Tree
{
+ [Obsolete ("Proxy to RootNode")]
public List<Node> Nodes {
get {
return RootNode.Nodes;
}
}
+
+ [Obsolete ("Proxy to RootNode")]
+ public void Sort ()
+ {
+ RootNode.Sort ();
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.