Permalink
Browse files

remove O2_Extenal_IE project

new extension methods
updated visualstudio extension project
  • Loading branch information...
1 parent 89f2599 commit 89fa48678647c5fc46dba567fc92d418feb1d282 @DinisCruz DinisCruz committed Sep 17, 2012
Showing with 487 additions and 3,183 deletions.
  1. +0 −203 Misc_Microsoft_MPL_Libs/HtmlAgilityPack/ExtensionMethods/HtmlAgilityPack_ExtensionMethods.cs
  2. +0 −130 Misc_Microsoft_MPL_Libs/HtmlAgilityPack/ExtensionMethods/XTypedElement_ExtensionMethods.cs
  3. +4 −2 Misc_Microsoft_MPL_Libs/Irony_Parser/Microsoft/BigInteger.cs
  4. +2 −2 Misc_Microsoft_MPL_Libs/Irony_Parser/Microsoft/Complex64.cs
  5. +1 −5 Misc_Microsoft_MPL_Libs/O2_Misc_Microsoft_MPL_Libs.csproj
  6. +4 −4 Misc_Microsoft_MPL_Libs/Properties/AssemblyInfo.cs
  7. +0 −11 O2.Platform.VisualStudio_2010/GlobalSuppressions.cs
  8. +0 −14 O2.Platform.VisualStudio_2010/Guids.cs
  9. +46 −15 O2.Platform.VisualStudio_2010/O2.Platform.VisualStudio_2010.csproj
  10. +23 −35 O2.Platform.VisualStudio_2010/O2.Platform.VisualStudio_2010Package.cs
  11. +0 −64 O2.Platform.VisualStudio_2010/Resources.Designer.cs
  12. +0 −129 O2.Platform.VisualStudio_2010/Resources.resx
  13. +202 −0 O2.Platform.VisualStudio_2010/Resources/Apache.2.0.license.txt
  14. BIN O2.Platform.VisualStudio_2010/{ → Resources}/Key.snk
  15. BIN O2.Platform.VisualStudio_2010/Resources/O2Logo.ico
  16. BIN O2.Platform.VisualStudio_2010/Resources/Package.ico
  17. +1 −4 O2.Platform.VisualStudio_2010/VSPackage.resx
  18. +36 −0 O2.Platform.VisualStudio_2010/VS_O2_PlugIns/Create O2 Platform Menu.h2
  19. +21 −0 O2.Platform.VisualStudio_2010/VS_O2_PlugIns/On Save - Compile File.h2
  20. +9 −0 O2.Platform.VisualStudio_2010/VS_O2_PlugIns/Set development environment.h2
  21. +66 −0 O2.Platform.VisualStudio_2010/VS_Scripts/O2_Menus_In_VisualStudio.cs.txt
  22. +56 −0 O2.Platform.VisualStudio_2010/VS_Scripts/O2_Platform_Gui.cs
  23. +9 −5 O2.Platform.VisualStudio_2010/source.extension.vsixmanifest
  24. +0 −83 O2_External_IE/BruteForceEngines/FormBruteForm.cs
  25. +0 −132 O2_External_IE/BruteForceEngines/FormBruteForm_v2.cs
  26. +0 −28 O2_External_IE/DI.cs
  27. +0 −152 O2_External_IE/ExtensionMethods/Html_ExtensionMethods.cs
  28. +0 −21 O2_External_IE/ExtensionMethods/IEChangeSink.cs
  29. +0 −32 O2_External_IE/ExtensionMethods/IEScreenshot_ExtensionMethods.cs
  30. +0 −247 O2_External_IE/ExtensionMethods/IE_Controls_ExtensionMethods.cs
  31. +0 −48 O2_External_IE/ExtensionMethods/IE_Http_ExtensionMethods.cs
  32. +0 −30 O2_External_IE/Interfaces/IO2Browser.cs
  33. +0 −7 O2_External_IE/Interfaces/IO2HtmlAnchor.cs
  34. +0 −22 O2_External_IE/Interfaces/IO2HtmlForm.cs
  35. +0 −11 O2_External_IE/Interfaces/IO2HtmlFormField.cs
  36. +0 −7 O2_External_IE/Interfaces/IO2HtmlImg.cs
  37. +0 −11 O2_External_IE/Interfaces/IO2HtmlLink.cs
  38. +0 −17 O2_External_IE/Interfaces/IO2HtmlPage.cs
  39. +0 −13 O2_External_IE/Interfaces/IO2HtmlScript.cs
  40. +0 −123 O2_External_IE/O2_External_IE.csproj
  41. +0 −38 O2_External_IE/O2_External_IE.sln
  42. +0 −36 O2_External_IE/Properties/AssemblyInfo.cs
  43. +0 −29 O2_External_IE/WebObjects/IE_Anchor.cs
  44. +0 −97 O2_External_IE/WebObjects/IE_Form.cs
  45. +0 −13 O2_External_IE/WebObjects/IE_Form_Field.cs
  46. +0 −139 O2_External_IE/WebObjects/IE_HtmlPage.cs
  47. +0 −29 O2_External_IE/WebObjects/IE_Img.cs
  48. +0 −49 O2_External_IE/WebObjects/IE_Link.cs
  49. +0 −42 O2_External_IE/WebObjects/IE_Script.cs
  50. +0 −97 O2_External_IE/WebObjects/old/O2Form.cs
  51. +0 −52 O2_External_IE/WebObjects/old/O2FormInputField.cs
  52. +0 −32 O2_External_IE/WebObjects/old/O2HtmlPage.cs
  53. +0 −10 O2_External_IE/WebObjects/old/O2JavaScript.cs
  54. +0 −344 O2_External_IE/Wrapper/ExtendedWebBrowser.cs
  55. +0 −265 O2_External_IE/Wrapper/O2BrowserIE.cs
  56. +0 −207 O2_External_IE/Wrapper/O2BrowserIE_Screenshot.cs
  57. BIN O2_External_IE/_External_Dlls/Microsoft.mshtml.dll
  58. +0 −47 O2_External_IE/open.cs.txt
  59. +0 −44 O2_External_IE/show.cs.txt
  60. +7 −0 VisualStudio Solution Files/O2.Platform.4.0 - Main Projects.sln
  61. +0 −6 ...lStudio Solution Files/{O2.FluentSharp.VisualStudio_2010.sln → O2.Platform.VisualStudio_2010.sln}
@@ -8,7 +8,6 @@
using System.Collections.Generic;
using O2.DotNetWrappers.ExtensionMethods;
-//O2Ref:O2_Misc_Microsoft_MPL_Libs.dll
//O2Ref:System.Xml.Linq.dll
//O2Ref:System.Xml.dll
@@ -196,206 +195,4 @@ public static List<string> values(this List<HtmlAgilityPack.HtmlAttribute> htmlA
}
}
-
- public static class HtmlAgilityPack_ExtensionMethods_TreeView
- {
- #region TreeView mappings
-
- public static TreeView add_Node(this TreeView treeView, HtmlAgilityPack.HtmlDocument htmlDocument)
- {
- return treeView.add_Node(htmlDocument.DocumentNode);
- }
-
- public static TreeView add_Node(this TreeView treeView, HtmlAgilityPack.HtmlNode htmlNode)
- {
- treeView.rootNode().add_Node(htmlNode);
- return treeView;
- }
-
- public static TreeNode add_Node(this TreeNode treeNode, HtmlAgilityPack.HtmlNode htmlNode)
- {
- return treeNode.add_Node(htmlNode.Name, htmlNode, true);
- }
-
- public static TreeView add_Nodes(this TreeView treeView, List<HtmlAgilityPack.HtmlNode> htmlNodes)
- {
- treeView.rootNode().add_Nodes(htmlNodes);
- return treeView;
- }
-
- public static TreeNode add_Nodes(this TreeNode treeNode, List<HtmlAgilityPack.HtmlNode> htmlNodes)
- {
- foreach (var htmlNode in htmlNodes)
- treeNode.add_Node(htmlNode);
- return treeNode;
- }
-
- #endregion
- }
-
-
-
- public static class HtmlAgilityPack_ExtensionMethods_GuiHelpers
- {
- public static TextBox add_HtmlTags_Viewer_with_Filter(this Control control, string htmlCode)
- {
- var htmlTags_TreeView = control.add_TreeView_for_HtmlTags();
- return htmlTags_TreeView.add_HtmlTagFilter(htmlCode);
- //return htmlTags_TreeView;
- }
-
- public static TreeView add_TreeView_for_HtmlTags(this Control control)
- {
- return control.add_TreeView_for_HtmlTags(null);
- }
-
- public static TreeView add_TreeView_for_HtmlTags(this Control control, Action<string> applyFilter)
- {
- control.clear();
- var htmlTags_TreeView = control.add_TreeView();
- htmlTags_TreeView.beforeExpand<HtmlAgilityPack.HtmlNode>(
- (treeNode, htmlNode) =>
- {
- if (htmlNode.Attributes != null)
- foreach (var attribute in htmlNode.Attributes)
- treeNode.add_Node("a: {0}={1}".format(attribute.Name, attribute.Value));
- treeNode.add_Node("v: {0}".format(htmlNode.InnerHtml));
- if (htmlNode.ChildNodes != null)
- foreach (var childNode in htmlNode.ChildNodes)
- if (childNode.html().valid())
- treeNode.add_Node("n: {0}".format(childNode.Name), childNode, true);
- });
-
- var treeView_ContextMenu = htmlTags_TreeView.add_ContextMenu();
- treeView_ContextMenu.add_MenuItem("Sort Nodes", () => htmlTags_TreeView.sort());
- treeView_ContextMenu.add_MenuItem("Don't Sort Nodes", () => htmlTags_TreeView.sort(false));
- //treeView_ContextMenu.add_MenuItem("Show all nodes",()=> htmlNodeFilter.sendKeys("//*".line()));
-
- if (applyFilter.notNull())
- htmlTags_TreeView.insert_Below_HtmlTagFilter(applyFilter);
- return htmlTags_TreeView;
- }
-
- public static TextBox insert_Below_HtmlTagFilter(this Control control, Action<string> applyFilter)
- {
- var sampleXPathQueries = new List<string> { "//*",
- "//a",
- "//img",
- "//a[contains(@href,'news')]",
- "//a[contains(text(),'S')]",
- "//a[text()='Blogs']" };
- var htmlNodeFilter = control.insert_Below<TextBox>(25).fill();
- var sampleQueries_MenuItem = htmlNodeFilter.add_ContextMenu().add_MenuItem("Sample queries");
-
- foreach (var xPathQuery in sampleXPathQueries)
- sampleQueries_MenuItem.add_MenuItem(xPathQuery, (text) => htmlNodeFilter.set_Text(text.str()));
-
- htmlNodeFilter.onEnter(
- (text) =>
- {
- applyFilter(text);
- });
-
- return htmlNodeFilter;
- }
-
- public static TextBox add_HtmlTagFilter(this TreeView htmlTags_TreeView, string htmlCode)
- {
- TextBox htmlNodeFilter = null;
- Action<string> applyFilter =
- (filter) =>
- {
- htmlCode.showFilteredHtmlContentInTreeView(filter, htmlTags_TreeView, htmlNodeFilter);
- };
-
- htmlNodeFilter = htmlTags_TreeView.insert_Below_HtmlTagFilter(applyFilter);
-
- return htmlNodeFilter;
- }
-
- public static string showFilteredHtmlContentInTreeView(this string htmlCode, string filter, TreeView htmlTags_TreeView, TextBox htmlNodeFilter)
- {
- htmlTags_TreeView.clear();
- try
- {
- ">showing htmlcode with size: {0}".info(htmlCode.size());
- htmlNodeFilter.backColor(Color.White);
- var htmlDocument = htmlCode.htmlDocument();
- if (filter.valid())
- htmlTags_TreeView.add_Nodes(htmlDocument.select(filter));
- else
- {
- htmlTags_TreeView.add_Node(htmlDocument);
- htmlTags_TreeView.expand();
- }
- "HtmlTags_TreeView nodes: {0}".info(htmlTags_TreeView.nodes().size());
-
- }
- catch (System.Exception ex)
- {
- ex.log("in htmlNodeFilter.onEnter");
- htmlNodeFilter.backColor(Color.Red);
- }
- htmlTags_TreeView.applyPathFor_1NodeMissingNodeBug();
- return htmlCode;
- }
-
- #region string mappings
-
- public static string htmlToXml(this string htmlCode)
- {
- return htmlCode.htmlToXml(true);
- }
-
- public static string htmlToXml(this string htmlCode, bool xmlFormat)
- {
- try
- {
- var stringWriter = new StringWriter();
- var xmlWriter = XmlWriter.Create(stringWriter);
- xmlWriter.Flush();
- var htmlDocument = htmlCode.htmlDocument();
-
- htmlDocument.Save(xmlWriter);
- if (xmlFormat)
- return stringWriter.str().xmlFormat();
- return stringWriter.str();
- }
- catch (Exception ex)
- {
- ex.log("[string.htmlToXml]");
- return ex.Message;
- }
- }
-
- public static string tidyHtml(this string htmlCode)
- {
- var htmlDocument = htmlCode.htmlDocument();
- var tidiedhtml = htmlDocument.tidyHtml();
- if (tidiedhtml.valid())
- return tidiedhtml;
- return htmlCode;
- }
-
- public static string tidyHtml(this HtmlAgilityPack.HtmlDocument htmlDocument)
- {
- try
- {
- htmlDocument.OptionCheckSyntax = true;
- htmlDocument.OptionFixNestedTags = true;
- htmlDocument.OptionAutoCloseOnEnd = true;
- htmlDocument.OptionOutputAsXml = true;
- //htmlDocument.OptionDefaultStreamEncoding = Encoding.Default;
- var formatedCode = htmlDocument.DocumentNode.OuterHtml.xmlFormat().xRoot().innerXml().trim();
- return formatedCode;
- }
- catch (Exception ex)
- {
- ex.log("[string.tidyHtml]");
- return null;
- }
- }
- #endregion
- }
-
}
@@ -19,134 +19,4 @@ public static string xElementName(this XTypedElement xTypedElement)
return xTypedElement.xElement().Name.str();
}
}
-
- public static class XTypedElement_ExtensionMethods_TreeView
- {
- public static TreeNode add_Node(this TreeView treeView, XElement xElement)
- {
- return treeView.add_Node(xElement.name(), xElement, xElement.hasDataForChildTreeNodes());
- }
-
- public static TreeNode add_Node(this TreeNode treeNode, XElement xElement)
- {
- return treeNode.add_Node(xElement.name(), xElement, xElement.hasDataForChildTreeNodes());
- }
-
- public static TreeNode add_Node(this TreeNode treeNode, XAttribute xAttribute)
- {
- return treeNode.add_Node("{0}: {1}".format(xAttribute.Name, xAttribute.Value));
- }
-
- public static string getNormalizedValue(this XElement xElement)
- {
- var value = xElement.Value;
- if (value.valid())
- xElement.Nodes().forEach<XElement>(
- (element) => value = value.replace(element.Value, ""));
- return value.trim();
- }
-
- public static TreeView autoExpandXElementData(this TreeView treeView)
- {
- //var onBeforeExpand = "onBeforeExpand"
- if (treeView.hasEventHandler("BeforeExpand")) // don't add if there is already an onBeforeExpand event already mapped
- return treeView;
- treeView.beforeExpand<XElement>(
- (xElement) =>
- {
- treeView.current().clear();
- xElement.Nodes().forEach<XElement>(
- (element) => treeView.current().add_Node(element));
-
- xElement.Attributes().forEach<XAttribute>(
- (attribute) => treeView.current().add_Node(attribute));
-
- var value = xElement.getNormalizedValue();
- if (value.valid())
- treeView.current().add_Node("value: {0}".format(value));
- });
- return treeView;
- }
-
- public static TreeView xmlShow(this TreeView treeView, string xml)
- {
- return treeView.showXml(xml);
- }
-
- public static TreeView showXml(this TreeView treeView, object dataToLoad)
- {
- try
- {
- XElement xElement = null;
- if (dataToLoad is string)
- xElement = ((string)dataToLoad).xRoot();
- else if (dataToLoad is XTypedElement)
- xElement = ((XTypedElement)dataToLoad).xElement();
-
- if (xElement != null)
- {
- treeView.clear();
- treeView.autoExpandXElementData();
- treeView.add_Node(xElement);
- treeView.expand();
- }
- }
- catch (Exception ex)
- {
- ex.log(ex.Message);
- }
- return treeView;
- }
-
- public static TreeView showXml(this TreeView treeView, XElement xElement)
- {
- treeView.clear();
- treeView.autoExpandXElementData();
- treeView.add_Node(xElement);
- treeView.expand();
- return treeView;
- }
-
- public static TreeNode showXml(this TreeNode treeNode, List<XElement> xElements)
- {
- foreach (var xElement in xElements)
- treeNode.showXml(xElement);
- return treeNode;
- }
-
- public static TreeNode showXml(this TreeNode treeNode, XElement xElement)
- {
- if (treeNode.TreeView != null)
- treeNode.TreeView.autoExpandXElementData();
- treeNode.add_Node(xElement);
- treeNode.expand();
- return treeNode;
- }
-
- public static TreeNode showXml(this TreeNode treeNode, object dataToLoad)
- {
- try
- {
- XElement xElement = null;
- if (dataToLoad is string)
- xElement = ((string)dataToLoad).xRoot();
- else if (dataToLoad is XTypedElement)
- xElement = ((XTypedElement)dataToLoad).xElement();
-
- if (xElement != null)
- {
- if (treeNode.TreeView != null)
- treeNode.TreeView.autoExpandXElementData();
- treeNode.add_Node(xElement);
- treeNode.expand();
- }
- }
- catch (Exception ex)
- {
- ex.log(ex.Message);
- }
- return treeNode;
- }
-
- }
}
@@ -27,8 +27,10 @@
using System.Collections.Generic;
using System.Globalization;
using System.Diagnostics;
-using System.Diagnostics.CodeAnalysis;
-//using Microsoft.Scripting.Utils;
+using System.Diagnostics.CodeAnalysis;
+using System.Runtime.InteropServices;
+//using Microsoft.Scripting.Utils;
+
namespace Microsoft.Scripting.Math {
/// <summary>
@@ -78,8 +78,8 @@ public Complex64(double real)
public static implicit operator Complex64(int i) {
return MakeReal(i);
}
-
- [CLSCompliant(false)]
+
+ [CLSCompliant(false)]
public static implicit operator Complex64(uint i) {
return MakeReal(i);
}
@@ -40,7 +40,7 @@
<OutputPath>..\..\O2_Platform_ReferencedAssemblies\O2_Assemblies\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
+ <WarningLevel>1</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@@ -418,10 +418,6 @@
</ItemGroup>
<ItemGroup />
<ItemGroup>
- <ProjectReference Include="..\..\O2.FluentSharp\O2.FluentSharp.BCL\O2.FluentSharp.BCL.csproj">
- <Project>{DF7E73CB-02AC-4689-BB8C-AC21FFCCDDC5}</Project>
- <Name>O2.FluentSharp.BCL</Name>
- </ProjectReference>
<ProjectReference Include="..\..\O2.FluentSharp\O2.FluentSharp.CoreLib\O2.FluentSharp.CoreLib.csproj">
<Project>{0A7CE0E0-B092-43B5-AB80-99BA909019C9}</Project>
<Name>O2.FluentSharp.CoreLib</Name>
Oops, something went wrong.

0 comments on commit 89fa486

Please sign in to comment.