Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove O2_Extenal_IE project

new extension methods
updated visualstudio extension project
  • Loading branch information...
commit 89fa48678647c5fc46dba567fc92d418feb1d282 1 parent 89f2599
Dinis Cruz DinisCruz authored
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. 0  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 VisualStudio Solution Files/{O2.FluentSharp.VisualStudio_2010.sln → O2.Platform.VisualStudio_2010.sln}
203 Misc_Microsoft_MPL_Libs/HtmlAgilityPack/ExtensionMethods/HtmlAgilityPack_ExtensionMethods.cs
View
@@ -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
- }
-
}
130 Misc_Microsoft_MPL_Libs/HtmlAgilityPack/ExtensionMethods/XTypedElement_ExtensionMethods.cs
View
@@ -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;
- }
-
- }
}
6 Misc_Microsoft_MPL_Libs/Irony_Parser/Microsoft/BigInteger.cs
View
@@ -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>
4 Misc_Microsoft_MPL_Libs/Irony_Parser/Microsoft/Complex64.cs
View
@@ -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);
}
6 Misc_Microsoft_MPL_Libs/O2_Misc_Microsoft_MPL_Libs.csproj
View
@@ -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>
8 Misc_Microsoft_MPL_Libs/Properties/AssemblyInfo.cs
View
@@ -9,8 +9,8 @@
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("Misc_Microsoft_MPL_Libs")]
-[assembly: AssemblyCopyright("Copyright © 2010")]
+[assembly: AssemblyProduct("Misc_Microsoft_MPL_Libs")]
+[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("4.1.0.*")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyVersion("4.1.0.0")]
+[assembly: AssemblyFileVersion("4.1.0.0")]
11 O2.Platform.VisualStudio_2010/GlobalSuppressions.cs
View
@@ -1,11 +0,0 @@
-// This file is used by Code Analysis to maintain SuppressMessage
-// attributes that are applied to this project. Project-level
-// suppressions either have no target or are given a specific target
-// and scoped to a namespace, type, member, etc.
-//
-// To add a suppression to this file, right-click the message in the
-// Error List, point to "Suppress Message(s)", and click "In Project
-// Suppression File". You do not need to add suppressions to this
-// file manually.
-
-[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1017:MarkAssembliesWithComVisible")]
14 O2.Platform.VisualStudio_2010/Guids.cs
View
@@ -1,14 +0,0 @@
-// Guids.cs
-// MUST match guids.h
-using System;
-
-namespace O2Platform.O2_Platform_VisualStudio_2010
-{
- static class GuidList
- {
- public const string guidO2_Platform_VisualStudio_2010PkgString = "de85ae01-f53e-464f-9466-aa9089c0ce17";
- public const string guidO2_Platform_VisualStudio_2010CmdSetString = "dcf44788-1870-4627-9dbb-910bee34c55c";
-
- public static readonly Guid guidO2_Platform_VisualStudio_2010CmdSet = new Guid(guidO2_Platform_VisualStudio_2010CmdSetString);
- };
-}
61 O2.Platform.VisualStudio_2010/O2.Platform.VisualStudio_2010.csproj
View
@@ -11,7 +11,7 @@
<RootNamespace>O2Platform.O2_Platform_VisualStudio_2010</RootNamespace>
<AssemblyName>O2.Platform.VisualStudio_2010</AssemblyName>
<SignAssembly>True</SignAssembly>
- <AssemblyOriginatorKeyFile>Key.snk</AssemblyOriginatorKeyFile>
+ <AssemblyOriginatorKeyFile>Resources\Key.snk</AssemblyOriginatorKeyFile>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
@@ -109,45 +109,76 @@
</COMReference>
</ItemGroup>
<ItemGroup>
- <Compile Include="Guids.cs" />
- <Compile Include="Resources.Designer.cs">
- <AutoGen>True</AutoGen>
- <DesignTime>True</DesignTime>
- <DependentUpon>Resources.resx</DependentUpon>
- </Compile>
- <Compile Include="GlobalSuppressions.cs" />
<Compile Include="O2.Platform.VisualStudio_2010Package.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
+ <Content Include="VS_Scripts\O2_Platform_Gui.cs">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ <IncludeInVSIX>true</IncludeInVSIX>
+ </Content>
</ItemGroup>
<ItemGroup>
- <EmbeddedResource Include="Resources.resx">
- <Generator>ResXFileCodeGenerator</Generator>
- <LastGenOutput>Resources.Designer.cs</LastGenOutput>
- <SubType>Designer</SubType>
- </EmbeddedResource>
<EmbeddedResource Include="VSPackage.resx">
<MergeWithCTO>true</MergeWithCTO>
<ManifestResourceName>VSPackage</ManifestResourceName>
+ <SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
+ <Content Include="VS_O2_PlugIns\On Save - Compile File.h2">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ <IncludeInVSIX>true</IncludeInVSIX>
+ </Content>
+ <Content Include="VS_O2_PlugIns\Set development environment.h2">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ <IncludeInVSIX>true</IncludeInVSIX>
+ </Content>
+ <Resource Include="VS_Scripts\O2_Menus_In_VisualStudio.cs.txt">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Resource>
<None Include="source.extension.vsixmanifest">
<SubType>Designer</SubType>
</None>
+ <Content Include="VS_O2_PlugIns\Create O2 Platform Menu.h2">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ <IncludeInVSIX>true</IncludeInVSIX>
+ </Content>
</ItemGroup>
<ItemGroup>
- <None Include="Key.snk" />
+ <None Include="Resources\Key.snk" />
</ItemGroup>
<ItemGroup>
- <Content Include="Resources\Package.ico" />
+ <Content Include="Resources\Apache.2.0.license.txt">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ <IncludeInVSIX>true</IncludeInVSIX>
+ </Content>
+ <Content Include="Resources\O2Logo.ico">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ <IncludeInVSIX>true</IncludeInVSIX>
+ </Content>
</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>
+ </ProjectReference>
+ <ProjectReference Include="..\..\O2.FluentSharp\O2.FluentSharp.REPL\O2.FluentSharp.REPL.csproj">
+ <Project>{D742BBEF-BFDC-477F-9880-5E0E2C89B6B2}</Project>
+ <Name>O2.FluentSharp.REPL</Name>
+ </ProjectReference>
<ProjectReference Include="..\..\O2.FluentSharp\O2.FluentSharp.VisualStudio_2010\O2.FluentSharp.VisualStudio_2010.csproj">
<Project>{38AFBBBD-48E5-4792-B90E-B9A1A540F906}</Project>
<Name>O2.FluentSharp.VisualStudio_2010</Name>
<IncludeOutputGroupsInVSIX>BuiltProjectOutputGroup%3bBuiltProjectOutputGroupDependencies%3bGetCopyToOutputDirectoryItems%3bPkgdefProjectOutputGroup%3b</IncludeOutputGroupsInVSIX>
<IncludeOutputGroupsInVSIXLocalOnly>DebugSymbolsProjectOutputGroup%3b</IncludeOutputGroupsInVSIXLocalOnly>
</ProjectReference>
+ <ProjectReference Include="..\O2_External_SharpDevelop\O2_External_SharpDevelop.csproj">
+ <Project>{E76BCE43-8511-4CE8-A965-C0150F713CE9}</Project>
+ <Name>O2_External_SharpDevelop</Name>
+ </ProjectReference>
</ItemGroup>
<PropertyGroup>
<UseCodebase>true</UseCodebase>
58 O2.Platform.VisualStudio_2010/O2.Platform.VisualStudio_2010Package.cs
View
@@ -8,53 +8,41 @@
using Microsoft.VisualStudio.Shell.Interop;
using Microsoft.VisualStudio.OLE.Interop;
using Microsoft.VisualStudio.Shell;
+using O2.FluentSharp;
-namespace O2Platform.O2_Platform_VisualStudio_2010
+namespace O2.Platform.VisualStudio_2010_Extension
{
- /// <summary>
- /// This is the class that implements the package exposed by this assembly.
- ///
- /// The minimum requirement for a class to be considered a valid package for Visual Studio
- /// is to implement the IVsPackage interface and register itself with the shell.
- /// This package uses the helper classes defined inside the Managed Package Framework (MPF)
- /// to do it: it derives from the Package class that provides the implementation of the
- /// IVsPackage interface and uses the registration attributes defined in the framework to
- /// register itself and its components with the shell.
- /// </summary>
- // This attribute tells the PkgDef creation utility (CreatePkgDef.exe) that this class is
- // a package.
- [PackageRegistration(UseManagedResourcesOnly = true)]
- // This attribute is used to register the informations needed to show the this package
- // in the Help/About dialog of Visual Studio.
- [InstalledProductRegistration("#110", "#112", "1.0", IconResourceID = 400)]
+ static class GuidList
+ {
+ public const string guidO2_Platform_VisualStudio_2010PkgString = "F886416F-3DBF-4DEE-9578-E7692FC59871";
+ // public const string guidO2_Platform_VisualStudio_2010CmdSetString = "dcf44788-1870-4627-9dbb-910bee34c55c";
+
+ // public static readonly Guid guidO2_Platform_VisualStudio_2010CmdSet = new Guid(guidO2_Platform_VisualStudio_2010CmdSetString);
+ }
+ [PackageRegistration(UseManagedResourcesOnly = true)]
[Guid(GuidList.guidO2_Platform_VisualStudio_2010PkgString)]
- public sealed class O2_Platform_VisualStudio_2010Package : Package
+ [ProvideAutoLoad(UIContextGuids80.NoSolution)] // ensures this gets called on VisualStudio start
+ public sealed class O2_Platform_VisualStudio_2010Package : NoSolution_Package
{
- /// <summary>
- /// Default constructor of the package.
- /// Inside this method you can place any initialization code that does not require
- /// any Visual Studio service because at this point the package object is created but
- /// not sited yet inside Visual Studio environment. The place to do all the other
- /// initialization is the Initialize method.
- /// </summary>
+
public O2_Platform_VisualStudio_2010Package()
- {
- Trace.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering constructor for: {0}", this.ToString()));
+ {
+
}
-
+
/////////////////////////////////////////////////////////////////////////////
// Overriden Package Implementation
#region Package Members
-
- /// <summary>
- /// Initialization of the package; this method is called right after the package is sited, so this is the place
- /// where you can put all the initilaization code that rely on services provided by VisualStudio.
- /// </summary>
+
protected override void Initialize()
- {
- Trace.WriteLine (string.Format(CultureInfo.CurrentCulture, "Entering Initialize() of: {0}", this.ToString()));
+ {
+ //VisualStudio_O2_Utils.open_LogViewer();
+ //VisualStudio_O2_Utils.open_ScriptEditor();
+ //new NoSolution_Package().Initialize(); //
+ VisualStudio_O2_Utils.compileAndExecuteScript(@"VS_Scripts\O2_Platform_Gui.cs", "O2_Platform_Gui", "buildGui");
+
base.Initialize();
}
64 O2.Platform.VisualStudio_2010/Resources.Designer.cs
View
@@ -1,64 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-// Runtime Version:2.0.50727.42
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace O2Platform.O2_Platform_VisualStudio_2010 {
- using System;
-
-
- /// <summary>
- /// A strongly-typed resource class, for looking up localized strings, etc.
- /// </summary>
- // This class was auto-generated by the StronglyTypedResourceBuilder
- // class via a tool like ResGen or Visual Studio.
- // To add or remove a member, edit your .ResX file then rerun ResGen
- // with the /str option, or rebuild your VS project.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- internal class Resources {
-
- private static global::System.Resources.ResourceManager resourceMan;
-
- private static global::System.Globalization.CultureInfo resourceCulture;
-
- [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
- internal Resources() {
- }
-
- /// <summary>
- /// Returns the cached ResourceManager instance used by this class.
- /// </summary>
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Resources.ResourceManager ResourceManager {
- get {
- if (object.ReferenceEquals(resourceMan, null)) {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("O2Platform.O2_Platform_VisualStudio_2010.Resources", typeof(Resources).Assembly);
- resourceMan = temp;
- }
- return resourceMan;
- }
- }
-
- /// <summary>
- /// Overrides the current thread's CurrentUICulture property for all
- /// resource lookups using this strongly typed resource class.
- /// </summary>
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Globalization.CultureInfo Culture {
- get {
- return resourceCulture;
- }
- set {
- resourceCulture = value;
- }
- }
-
- }
-}
129 O2.Platform.VisualStudio_2010/Resources.resx
View
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- VS SDK Notes: This resx file contains the resources that will be consumed directly by your package.
- For example, if you chose to create a tool window, there is a resource with ID 'CanNotCreateWindow'. This
- is used in VsPkg.cs to determine the string to show the user if there is an error when attempting to create
- the tool window.
-
- Resources that are accessed directly from your package *by Visual Studio* are stored in the VSPackage.resx
- file.
--->
-<root>
- <!--
- Microsoft ResX Schema
-
- Version 2.0
-
- The primary goals of this format is to allow a simple XML format
- that is mostly human readable. The generation and parsing of the
- various data types are done through the TypeConverter classes
- associated with the data types.
-
- Example:
-
- ... ado.net/XML headers & schema ...
- <resheader name="resmimetype">text/microsoft-resx</resheader>
- <resheader name="version">2.0</resheader>
- <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
- <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
- <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
- <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
- <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
- <value>[base64 mime encoded serialized .NET Framework object]</value>
- </data>
- <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
- <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
- <comment>This is a comment</comment>
- </data>
-
- There are any number of "resheader" rows that contain simple
- name/value pairs.
-
- Each data row contains a name, and value. The row also contains a
- type or mimetype. Type corresponds to a .NET class that support
- text/value conversion through the TypeConverter architecture.
- Classes that don't support this are serialized and stored with the
- mimetype set.
-
- The mimetype is used for serialized objects, and tells the
- ResXResourceReader how to depersist the object. This is currently not
- extensible. For a given mimetype the value must be set accordingly:
-
- Note - application/x-microsoft.net.object.binary.base64 is the format
- that the ResXResourceWriter will generate, however the reader can
- read any of the formats listed below.
-
- mimetype: application/x-microsoft.net.object.binary.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.soap.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.bytearray.base64
- value : The object must be serialized into a byte array
- : using a System.ComponentModel.TypeConverter
- : and then encoded with base64 encoding.
- -->
- <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
- <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
- <xsd:element name="root" msdata:IsDataSet="true">
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="metadata">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" />
- </xsd:sequence>
- <xsd:attribute name="name" use="required" type="xsd:string" />
- <xsd:attribute name="type" type="xsd:string" />
- <xsd:attribute name="mimetype" type="xsd:string" />
- <xsd:attribute ref="xml:space" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="assembly">
- <xsd:complexType>
- <xsd:attribute name="alias" type="xsd:string" />
- <xsd:attribute name="name" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="data">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
- <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
- <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
- <xsd:attribute ref="xml:space" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="resheader">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" />
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:schema>
- <resheader name="resmimetype">
- <value>text/microsoft-resx</value>
- </resheader>
- <resheader name="version">
- <value>2.0</value>
- </resheader>
- <resheader name="reader">
- <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
- <resheader name="writer">
- <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
-</root>
202 O2.Platform.VisualStudio_2010/Resources/Apache.2.0.license.txt
View
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
0  O2.Platform.VisualStudio_2010/Key.snk → O2.Platform.VisualStudio_2010/Resources/Key.snk
View
File renamed without changes
BIN  O2.Platform.VisualStudio_2010/Resources/O2Logo.ico
View
Binary file not shown
BIN  O2.Platform.VisualStudio_2010/Resources/Package.ico
View
Binary file not shown
5 O2.Platform.VisualStudio_2010/VSPackage.resx
View
@@ -133,8 +133,5 @@
</data>
<data name="112" xml:space="preserve">
<value>This is the VisualStudio Extension for the OWASP O2 Platform</value>
- </data>
- <data name="400" type="System.Resources.ResXFileRef, System.Windows.Forms">
- <value>Resources\Package.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
- </data>
+ </data>
</root>
36 O2.Platform.VisualStudio_2010/VS_O2_PlugIns/Create O2 Platform Menu.h2
View
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<H2>
+ <SourceCode>
+"In Create TeamMentor Menu Script".info();
+var visualStudio = new VisualStudio_2010();
+var o2PlatformGui = new O2_Platform_Gui();
+var toolsMenu = visualStudio.dte().add_TopMenu("Tools");
+
+// var o2Menu = dte.add_TopMenu("Tools"); //shouldn't need to create since it is usually already there
+var o2Menu = toolsMenu.add_SubMenu("O2 Platform",1);
+o2Menu .add_Menu_Button("O2 VisualStudio PlugIns Editor", ()=&gt; o2PlatformGui.openScriptsViewer())
+ .add_Menu_Button("C# REPL Script", () =&gt; o2PlatformGui.openScriptsViewer())
+ .add_Menu_Button("Log Viewer", () =&gt; visualStudio.open_LogViewer())
+ .add_Menu_Button("Development Environment", () =&gt; open.devEnvironment())
+//o2Menu.add_Menu_Button("Code Editor", () =&gt; visualStudio.open_CodeEditor());
+//o2Menu.add_Menu_Button("Create Dock Window", () =&gt; this.createDocWindow());
+ .add_Menu_Button("O2Script: Util - O2 Available scripts", ()=&gt; "Util - O2 Available scripts.h2".local().executeH2Script())
+ .add_Menu_Button("O2Script: Main O2 Gui", () =&gt; "Main O2 Gui.h2".local().executeH2Script())
+ .add_Menu_Button("Update O2 Scripts (download from GitHub)", () =&gt; O2Scripts.downloadO2Scripts());
+
+/*TeamMentorMenu//.add_Menu_Button("--",()=&gt;{})
+ .add_Menu_Button("Open TeamMentor Landing Pages Window", ()=&gt; teamMentorGui.createLandingPagesWindow())
+ .add_Menu_Button("Open TeamMentor + Cat.Net Config Window", ()=&gt; teamMentorGui.createOptionsWindow())
+ .add_Menu_Button("Open Cat.NET -&gt; TeamMentor Mappings", ()=&gt; visualStudio.open_Document(@"TeamMentor_Files\CatNet_Mappings_TM_Embedded.xml".local()))
+ .add_Menu_Button("------- Debug-----")
+ .add_Menu_Button("Trigger Scan", () =&gt; visualStudio.dte().Solution.SolutionBuild.Build())
+ .add_Menu_Button("LogViewer", () =&gt; visualStudio.open_LogViewer())
+ .add_Menu_Button("Scripts Editor", ()=&gt; scriptsFolder.open_Script_Viewer_GUI())
+ .add_Menu_Button("Stand Alone Script Editor ", () =&gt; visualStudio.open_ScriptEditor());
+ */
+return visualStudio;
+//using O2.FluentSharp.REPL
+//O2File:VS_Scripts\O2_Platform_Gui.cs
+//O2Ref:TeamMentor_VisualStudio_with_CatNet.dll</SourceCode>
+ <ReferencedAssemblies />
+</H2>
21 O2.Platform.VisualStudio_2010/VS_O2_PlugIns/On Save - Compile File.h2
View
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<H2>
+ <SourceCode>var visualStudio = new VisualStudio_2010();
+var panel = visualStudio.open_Panel("On Save - Compile File");
+
+panel.windowBase().left(800).top(0).height(250);
+var textArea = panel.add_TextArea().insert_LogViewer().wordWrap(false);
+VisualStudio_2010.on_DocumentSaved.clear().add(
+ (document)=&gt;{
+ var fileToCompile = document.FullName;
+ textArea.insert_Line("After save, Compiling file: {0}".format(fileToCompile));
+ var assembly = new CompileEngine().compileSourceFile(fileToCompile);
+ if (assembly.notNull())
+ textArea.insert_Line("Compile OK").green();
+ else
+ textArea.insert_Line("Compile Failed").pink();
+ });
+
+//O2File:E:\O2_V4\O2.FluentSharp\O2.FluentSharp.VisualStudio_2010\ExtensionMethods\VisualStudio_2010_ExtensionMethods.cs</SourceCode>
+ <ReferencedAssemblies />
+</H2>
9 O2.Platform.VisualStudio_2010/VS_O2_PlugIns/Set development environment.h2
View
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<H2>
+ <SourceCode>var o2DevDir = @"E:\O2_V4\O2.FluentSharp\O2.FluentSharp.VisualStudio_2010";
+CompileEngine.LocalFoldersToSearchForCodeFiles.clear().add(o2DevDir);
+var o2PlatformGui = new O2_Platform_Gui();
+o2PlatformGui.openScriptsViewer();
+//O2File:VS_Scripts\O2_Platform_Gui.cs</SourceCode>
+ <ReferencedAssemblies />
+</H2>
66 O2.Platform.VisualStudio_2010/VS_Scripts/O2_Menus_In_VisualStudio.cs.txt
View
@@ -0,0 +1,66 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using O2.Kernel;
+using O2.DotNetWrappers.DotNet;
+using O2.DotNetWrappers.ExtensionMethods;
+using O2.External.SharpDevelop.ExtensionMethods;
+using O2.FluentSharp.REPL;
+//O2File:../ExtensionMethods\VisualStudio_2010_ExtensionMethods.cs
+namespace O2.FluentSharp
+{
+ public class O2_Menus_In_VisualStudio
+ {
+ public void buildMenus()
+ {
+ var o2Timer = new O2Timer("CreatedMenus in").start();
+ "[O2_Menus_In_VisualStudio] building menus".debug();
+ var dte = VisualStudio_2010.DTE2;
+ var o2Menu = dte.add_TopMenu("Tools"); //shouldn't need to create since it is usually already there
+ var o2PlatformMenu = o2Menu.add_Menu_Button("O2 Platform");
+
+ /*o2Menu.add_Menu_Button("C# REPL Script", () => this.openScriptEditor());
+ o2Menu.add_Menu_Button("Log Viewer", () => this.openLogViewer());
+ o2Menu.add_Menu_Button("Development Environment", () => open.devEnvironment());
+ o2Menu.add_Menu_Button("Code Editor", () => this.openCodeEditor());
+ o2Menu.add_Menu_Button("Create Dock Window", () => this.createDocWindow());
+ o2Menu.add_Menu_Button("O2Script: Util - O2 Available scripts", ()=> "Util - O2 Available scripts.h2".local().executeH2Script());
+ o2Menu.add_Menu_Button("O2Script: Main O2 Gui", () => "Main O2 Gui.h2".local().executeH2Script());
+ o2Menu.add_Menu_Button("Update O2 Scripts (download from GitHub)", () => O2Scripts.downloadO2Scripts());
+ */
+ o2Timer.stop();
+ }
+ public void openLogViewer()
+ {
+ "O2 LogViewer".create_WinForms_Window_Float().add_LogViewer();
+ }
+ public void openCodeEditor()
+ {
+ "O2 Script Editor".create_WinForms_Window_Float().add_SourceCodeEditor();
+ }
+ public void openScriptEditor()
+ {
+ var script = "C# REPL Script".create_WinForms_Window_Float().add_Script(true);
+ script.Code =
+@"var visualStudio = new VisualStudio_2010();
+
+visualStudio.mainWindow().title(""Hello from O2"");
+visualStudio.create_WinForms_Window_Float(""Web Browser"")
+ .add_WebBrowser().open(""http://www.google.com"");
+
+return visualStudio;
+
+//O2"+@"File:ExtensionMethods\VisualStudio_2010_ExtensionMethods.cs";
+ }
+ public void createDocWindow()
+ {
+ var panel = "O2 Platform".create_WinForms_Window();
+ panel.add_Panel().add_Link("C# REPL Script", 10, 10, () => this.openScriptEditor())
+ .append_Below_Link("Log Viewer", () => this.openLogViewer())
+ .append_Below_Link("Development Environment", () => open.devEnvironment())
+ .append_Below_Link("Code Editor", () => this.openCodeEditor())
+ .append_Below_Link("Add O2 Menu", () => this.buildMenus());
+ }
+ }
+}
56 O2.Platform.VisualStudio_2010/VS_Scripts/O2_Platform_Gui.cs
View
@@ -0,0 +1,56 @@
+using System;
+using System.Collections.Generic;
+using System.Windows.Forms;
+using System.Linq;
+using System.Text;
+using WeifenLuo.WinFormsUI.Docking;
+using O2.Kernel;
+using O2.DotNetWrappers.ExtensionMethods;
+using O2.External.SharpDevelop.ExtensionMethods;
+using O2.FluentSharp.REPL;
+
+//O2File:ExtensionMethods\VisualStudio_2010_ExtensionMethods.cs
+
+
+namespace O2.FluentSharp
+{
+ public class O2_Platform_Gui
+ {
+ public static VisualStudio_2010 visualStudio;
+
+ public O2_Platform_Gui()
+ {
+ visualStudio = new VisualStudio_2010();
+ }
+
+ public O2_Platform_Gui buildGui()
+ {
+ createTopLevelMenu();
+ return this;
+ }
+
+ public O2_Platform_Gui installO2Scripts()
+ {
+ VisualStudio_O2_Utils.installO2Scripts_IfDoesntExist();
+ return this;
+ }
+ public O2_Platform_Gui createTopLevelMenu()
+ {
+ @"VS_O2_Plugins\Create O2 Platform Menu.h2".local().executeH2Script();
+ return this;
+ }
+
+ public DockPanel openScriptsViewer()
+ {
+ var scriptsFolder = @"VS_O2_PlugIns\Create O2 Platform Menu.h2".local().parentFolder();
+ return scriptsFolder.open_Script_Viewer_GUI();
+
+ /*var panel = visualStudio.create_WinForms_Window_Float("O2 Platform VisualStudio Scripts")
+ .add_Panel()
+ .insert_LogViewer();
+ var script = panel.add_Script_With_FolderViewer(scriptsFolder);
+ scriptsFolder*/
+ }
+ }
+
+}
14 O2.Platform.VisualStudio_2010/source.extension.vsixmanifest
View
@@ -1,11 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Vsix xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="1.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2010">
- <Identifier Id="de85ae01-f53e-464f-9466-aa9089c0ce17">
- <Name>O2.Platform.VisualStudio_2010</Name>
- <Author>O2 Platform</Author>
- <Version>1.0</Version>
- <Description xml:space="preserve">This is the VisualStudio Extension for the OWASP O2 Platform</Description>
+ <Identifier Id="F886416F-3DBF-4DEE-9578-E7692FC59871">
+ <Name>O2 Platform for VisualStudio 2010 v4.0.1</Name>
+ <Author>OWASP O2 Platform</Author>
+ <Version>4.0.1</Version>
+ <Description xml:space="preserve">VisualStudio 2010 Extension for the OWASP O2 Platform</Description>
<Locale>1033</Locale>
+ <MoreInfoUrl>http://o2platform.com</MoreInfoUrl>
+ <License>Apache.2.0.license.txt</License>
+ <Icon>O2Logo.ico</Icon>
<InstalledByMsi>false</InstalledByMsi>
<SupportedProducts>
<VisualStudio Version="10.0">
@@ -23,5 +26,6 @@
<VsPackage>|%CurrentProject%;PkgdefProjectOutputGroup|</VsPackage>
<VsPackage>|O2.FluentSharp.VisualStudio_2010;PkgdefProjectOutputGroup|</VsPackage>
<MefComponent>|O2.FluentSharp.VisualStudio_2010|</MefComponent>
+ <MefComponent>|%CurrentProject%|</MefComponent>
</Content>
</Vsix>
83 O2_External_IE/BruteForceEngines/FormBruteForm.cs
View
@@ -1,83 +0,0 @@
-using System.Collections.Generic;
-
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.External.IE.Wrapper;
-using O2.External.IE.Interfaces;
-using O2.External.IE.ExtensionMethods;
-
-namespace O2.External.IE.BruteForceEngines
-{
- public class FormBruteForce
- {
- public bool DebugMode { get; set; }
- public bool ReturnOnFirstMatch { get; set; }
- public O2BrowserIE WebBrowser { get; set; }
- public IO2HtmlForm HtmlForm { get; set; }
- public string StartPage { get; set;}
- public string Field_1_Name { get; set; }
- public List<string> Field_1_Payloads { get; set; }
-
- public string Field_2_Name { get; set; }
- public List<string> Field_2_Payloads { get; set; }
-
- //public string TargetField { get; set; }
- public List<string> FailureCriteria { get; set; }
- public List<string> SuccessCriteria { get; set; }
- public int Attempts { get; set; }
- public Dictionary<string,string> Results { get; set; }
-
- public Dictionary<string,string> start()
- {
- Attempts = 0;
- WebBrowser.openSync(StartPage);
- Results = new Dictionary<string,string>();
- foreach(var payload_1 in Field_1_Payloads)
- foreach(var payload_2 in Field_2_Payloads)
- {
- Attempts++;
- if (DebugMode)
- "trying values: {0}={1} , {2}={3}".format(Field_1_Name, payload_1, Field_2_Name, payload_2).debug();
- HtmlForm.set(Field_1_Name,payload_1);
- HtmlForm.set(Field_2_Name,payload_2);
- WebBrowser.openSync("about:blank");
- WebBrowser.submit(HtmlForm);
-
- if (WebBrowser.contains(SuccessCriteria))
- {
- "MATCH!! on value: {0}={1}".format(payload_1,payload_2).info();
- if (false==Results.ContainsKey(payload_1))
- Results.Add(payload_1,payload_2);
- else
- Results.Add(payload_1.appendGuid() ,payload_2);
- if (ReturnOnFirstMatch)
- return Results;
- else
- {
- WebBrowser.openSync(StartPage);
- break;
- }
- }
- else
- if (false == WebBrowser.contains(FailureCriteria))
- {
- "Aborting Neither the SuccessCriteria or FailureCriteria was found in this page".error();
- return Results;
- }
- }
- return Results;
- }
-
- public void showResultsDetails()
- {
- if (Results.size()>0)
- {
- "--------------".info();
- "Matches in {0} attempts".format(Attempts).debug();
- foreach(var result in Results)
- " {0} : {1}".format(result.Key, result.Value).info();
- }
- else
- "NO Match in {0} attempts".format(Attempts).error();
- }
- }
-}
132 O2_External_IE/BruteForceEngines/FormBruteForm_v2.cs
View
@@ -1,132 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.External.IE.Interfaces;
-
-namespace O2.External.IE.BruteForceEngines
-{
- public class FormBruteForce_v2
- {
- public bool DebugMode { get; set; }
- public bool Abort { get; set; }
- public bool ReturnOnFirstMatch { get; set; }
- public IO2Browser O2Browser { get; set; }
- public Func<IO2Browser, string , string,string> SubmitFunction { get ;set ;}
- public List<string> Field_1_Payloads { get; set; }
- public List<string> Field_2_Payloads { get; set; }
- public List<string> FailureCriteria { get; set; }
- public List<string> SuccessCriteria { get; set; }
- public int Attempts { get; set; }
- public Dictionary<string,string> Results { get; set; }
-
- public FormBruteForce_v2()
- {
- Field_1_Payloads = new List<string>();
- Field_2_Payloads = new List<string>();
- FailureCriteria = new List<string>();
- SuccessCriteria = new List<string>();
- }
-
- public string htmlFromFirstRequest()
- {
- return SubmitFunction(O2Browser, Field_1_Payloads[0],Field_2_Payloads[0]);
- }
-
- public Dictionary<string,string> start()
- {
- Attempts = 0;
- Abort = false;
- Results = new Dictionary<string,string>();
- foreach(var payload_1 in Field_1_Payloads)
- foreach(var payload_2 in Field_2_Payloads)
- {
- if (execute(payload_1, payload_2))
- break;
- if (Abort)
- return Results;
- }
- return Results;
- }
-
- public Dictionary<string,string> start_Mode_BothSame()
- {
- Attempts = 0;
- Abort = false;
- Results = new Dictionary<string,string>();
- foreach(var payload_1 in Field_1_Payloads)
- {
- execute(payload_1, payload_1);
- if (Abort)
- return Results;
- }
- return Results;
- }
-
- public bool execute(string payload_1, string payload_2)
- {
- Attempts++;
- if (DebugMode)
- "trying values: {0} : {1} ".format(payload_1, payload_2).debug();
-
- var html = SubmitFunction(O2Browser, payload_1,payload_2);
-
- if (html.contains(SuccessCriteria))
- {
- "MATCH!! on value: {0}={1}".format(payload_1,payload_2).info();
- if (false==Results.ContainsKey(payload_1))
- Results.Add(payload_1,payload_2);
- else
- Results.Add(payload_1.appendGuid() ,payload_2);
- if (ReturnOnFirstMatch)
- Abort = true;
- return true;
- }
- if (false == html.contains(FailureCriteria))
- {
- "Aborting Neither the SuccessCriteria or FailureCriteria was found in this page".error();
- Abort = true;
- }
- return false;
- }
-
- public void showResultsDetails()
- {
- if (Results.size()>0)
- {
- "--------------".info();
- "Matches in {0} attempts".format(Attempts).debug();
- foreach(var result in Results)
- " {0} : {1}".format(result.Key, result.Value).info();
- }
- else
- "NO Match in {0} attempts".format(Attempts).error();
- }
-
- public void addPayloads1(params string[] payloads)
- {
- Field_1_Payloads.AddRange(payloads);
- }
-
- public void addPayloads2(params string[] payloads)
- {
- Field_2_Payloads.AddRange(payloads);
- }
-
- public void addBothPayloads(params string[] payloads)
- {
- Field_1_Payloads.AddRange(payloads);
- Field_2_Payloads.AddRange(payloads);
- }
-
- public void addSuccess(params string[] sucessCriteria)
- {
- SuccessCriteria.AddRange(sucessCriteria);
- }
-
- public void addFailure(params string[] failureCriteria)
- {
- FailureCriteria.AddRange(failureCriteria);
- }
- }
-}
28 O2_External_IE/DI.cs
View
@@ -1,28 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using O2.Interfaces.O2Core;
-using O2.Kernel;
-
-namespace O2.External.IE
-{
- class DI
- {
-
- static DI()
- {
- config = PublicDI.config;
- log = PublicDI.log;
- reflection = PublicDI.reflection;
- }
-
- // DI which will need to be injected
-
- public static IO2Config config { get; set; }
- public static IO2Log log { get; set; }
-
- public static IReflection reflection;
-
- }
-}
152 O2_External_IE/ExtensionMethods/Html_ExtensionMethods.cs
View
@@ -1,152 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.DotNetWrappers.Network;
-using O2.External.IE.Interfaces;
-using O2.Kernel;
-
-
-namespace O2.External.IE.ExtensionMethods
-{
- public static class Html_ExtensionMethods
- {
- public static List<String> forms(this IO2HtmlPage htmlPage)
- {
- var forms = new List<String>();
- foreach (var form in htmlPage.Forms)
- forms.add(form.str());
- return forms;
- }
-
- public static IO2HtmlForm form(this IO2HtmlPage htmlPage, string nameOrId)
- {
- foreach (var form in htmlPage.Forms)
- if (form.Name == nameOrId || form.Id == nameOrId)
- return form;
- return null;
- }
-
- public static string formData(this IO2HtmlForm form)
- {
- var formData = new StringBuilder();
- foreach (var field in form.FormFields)
- formData.Append(string.Format("{0}={1}&", field.Name, WebEncoding.urlEncode(field.Value)));
- formData.removeLastChar();
-
- return formData.ToString();
- }
-
- public static string formDetails(this IO2HtmlForm form)
- {
- return form.fieldNamesAndValues().str();
- }
-
- public static string name(this IO2HtmlForm form)
- {
- if (form.Name.valid())
- return form.Name;
- if (form.Id.valid())
- return form.Id;
- return "";
- }
-
- public static Dictionary<string, IO2HtmlFormField> fields(this IO2HtmlForm form)
- {
- var fields = new Dictionary<string, IO2HtmlFormField>();
- foreach (var field in form.FormFields)
- fields.Add(field.Name, field);
- return fields;
- }
-
- public static List<string> fieldNames(this IO2HtmlForm form)
- {
- var fieldNames = new List<string>();
- foreach (var field in form.FormFields)
- fieldNames.Add(field.Name);
- return fieldNames;
- }
-
- public static List<string> fieldNamesAndValues(this IO2HtmlForm form)
- {
- var fieldNames = new List<string>();
- foreach (var field in form.FormFields)
- fieldNames.Add("{0} = {1}".format(field.Name, field.Value));
- return fieldNames;
- }
-
- public static IO2HtmlForm set(this IO2HtmlForm form, string fieldName, string value)
- {
- try
- {
- var fields = form.fields();
- if (fields.ContainsKey(fieldName))
- fields[fieldName].Value = value;
- else
- O2.Kernel.PublicDI.log.error("the provided IO2HtmlForm.form did not contain the field: {0}", fieldName);
- return form;
- }
- catch (Exception ex)
- {
- PublicDI.log.ex(ex, "in IO2HtmlForm.set");
- return null;
- }
- }
-
- public static string get(this IO2HtmlForm form, string fieldName)
- {
- var fields = form.fields();
- if (fields.ContainsKey(fieldName))
- return fields[fieldName].Value;
-
- O2.Kernel.PublicDI.log.error("the provided IO2HtmlForm.form did not contain the field: {0}", fieldName);
- return "";
- }
-
- public static IO2HtmlForm remove(this IO2HtmlForm form, string name)
- {
- var fields = form.fields();
- if (fields.ContainsKey(name))
- form.FormFields.Remove(fields[name]);
- else
- "in IO2HtmlForm form.remove(), could not find field: {0}".format(name).error();
- return form;
- }
-
- public static Uri uri(this IO2HtmlForm form)
- {
- return form.PageUri;
- }
-
- public static string page(this Uri uri)
- {
- return uri.Segments[uri.Segments.Count() - 1];
- }
-
- public static string action(this IO2HtmlForm form)
- {
- // this is just a first pass at trying to map this value
- // maybe see if I can get IE to resolve this for me
- if (form.Action.starts(form.uri().page()))
- return form.uri().OriginalString;
-
-
- return form.Action;
- }
-
- public static string html(this IO2HtmlPage htmlPage)
- {
- return htmlPage.PageSource;
- }
-
- public static IO2HtmlPage submit(this IO2Browser o2Browser, IO2HtmlForm form)
- {
- /*"submiting form:{0}".format(form.name()).info();
- " to :{0}".format(form.action()).debug();
- " with:{0}".format(form.formData()).debug();
- */
- return o2Browser.POST(form.action(), form.formData());
- }
- }
-}
21 O2_External_IE/ExtensionMethods/IEChangeSink.cs
View
@@ -1,21 +0,0 @@
-using System.Windows.Forms;
-using mshtml;
-
-namespace O2.External.IE.ExtensionMethods
-{
- public class IEChangeSink :IHTMLChangeSink
- {
- public MethodInvoker onChange;
-
- public IEChangeSink(MethodInvoker _onChange)
- {
- onChange = _onChange;
- }
-
- public void Notify()
- {
- onChange();
- //PublicDI.log.debug("in changeSink.Notify()");
- }
- }
-}
32 O2_External_IE/ExtensionMethods/IEScreenshot_ExtensionMethods.cs
View
@@ -1,32 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Drawing;
-using O2.External.IE.Wrapper;
-
-namespace O2.External.IE.ExtensionMethods
-{
- public static class IEScreenshot_ExtensionMethods
- {
- public static Bitmap screenshot(this Uri uri)
- {
- return uri.takeScreenshot();
- }
-
- public static Bitmap takeScreenshot(this Uri uri)
- {
- return O2BrowserIE_Screenshot.open(uri);
- }
-
- public static Bitmap screenshot(this Uri uri, int width, int height)
- {
- return O2BrowserIE_Screenshot.open(uri.ToString(), width, height);
- }
-
- public static Bitmap screenshot(this Uri uri, int width, int height, int thumbnailWidth, int thumbnailHeight)
- {
- return O2BrowserIE_Screenshot.open(uri.ToString(), width, height, thumbnailWidth, thumbnailHeight);
- }
- }
-}
247 O2_External_IE/ExtensionMethods/IE_Controls_ExtensionMethods.cs
View
@@ -1,247 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Windows.Forms;
-using mshtml;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.External.IE.Interfaces;
-using O2.External.IE.WebObjects;
-using O2.External.IE.Wrapper;
-
-
-namespace O2.External.IE.ExtensionMethods
-{
- public static class IE_Controls_ExtensionMethods
- {
- /*public static O2BrowserIE add_Browser(this Control control)
- {
- //var browserType = "O2_External_IE.dll".type("O2BrowserIE");
- //return hostControl.add_Control(browserType);
- return (O2BrowserIE)control.add_O2_Browser_IE();
- }*/
-
- public static IO2Browser add_O2_Browser_IE(this Control control)
- {
- return (IO2Browser) control.invokeOnThread(
- () =>
- {
- var o2BrowserIE = new O2BrowserIE {Dock = DockStyle.Fill};
- control.Controls.Add(o2BrowserIE);
- return o2BrowserIE;
- });
- }
- public static IO2Browser add_WebBrowserWithLocationBar(this Control control)
- {
- return control.add_WebBrowserWithLocationBar("");
- }
-
- public static IO2Browser add_WebBrowserWithLocationBar(this Control control, string startUrl)
- {
- return control.add_WebBrowserWithLocationBar(startUrl,(webBrowser, url) => webBrowser.open(url));
- }
-
- public static IO2Browser add_WebBrowserWithLocationBar(this Control control, string startUrl, Action<IO2Browser,string> onEnter)
- {
- return control.add_WebBrowserWithLocationBar(startUrl,
- (keys, webBrowser, url) =>
- {
- if (keys == Keys.Enter)
- onEnter(webBrowser, url);
- });
- }
-
- public static IO2Browser add_WebBrowserWithLocationBar(this Control control, string startUrl, Action<Keys, IO2Browser, string> onKeyUp)
- {
- return (IO2Browser)control.invokeOnThread(
- () =>
- {
- var splitControl = control.add_SplitContainer(
- false, //setOrientationToVertical
- true, // setDockStyleoFill
- false); // setBorderStyleTo3D
- splitControl.FixedPanel = FixedPanel.Panel1;
- splitControl.Panel1MinSize = 20;
- splitControl.SplitterDistance = 20;
- control.Controls.Add(splitControl);
- var textBox = splitControl.Panel1.add_TextBox();
- //textBox.Multiline = false;
- textBox.Dock = DockStyle.Fill;
- var webBrowser = splitControl.Panel2.add_O2_Browser_IE();
-
- webBrowser.onDocumentCompleted +=
- htmlPage => textBox.set_Text(htmlPage.PageUri.ToString());
- //textBox.TextChanged += (sender, e) => webBrowser.open(textBox.Text);
- textBox.KeyUp += (sender, e) => onKeyUp(e.KeyCode, webBrowser, textBox.Text);
- textBox.Text = startUrl;
- if (startUrl != "")
- webBrowser.open(startUrl);
- return webBrowser;
- });
- }
-
- public static IO2HtmlFormField formField(this IO2HtmlForm form, object data)
- {
- /*"form field type: {0}".format(data.comTypeName()).error();
- foreach(var prop in data.type().properties())
- " p: {0}".format(prop.Name).debug();\*/
- try
- {
- object name = null;
- object type = null;
- object value = null;
- object disabled = null;
- if (data is HTMLSelectElementClass)
- {
- name = data.prop("name");
- type = data.prop("type");
- value = data.prop("value");
- disabled = data.prop("disabled");
- }
- else if (data is DispHTMLInputElement)
- {
- name = ((DispHTMLInputElement)data).name;
- type = ((DispHTMLInputElement)data).type;
- value = ((DispHTMLInputElement)data).value;
- disabled = !((DispHTMLInputElement)data).disabled;
- }
- else
- {
- name = data.prop("name");
- type = data.prop("type");
- value = data.prop("value");
- disabled = data.prop("disabled");
- }
- return new IE_Form_Field
- {
- Form = form,
- Name = (name != null) ? name.ToString() : "",
- Type = (type != null) ? type.ToString() : "",
- Value = (value != null) ? value.ToString() : "",
- Enabled = (disabled != null) ? ! bool.Parse(disabled.ToString()) : false
- };
- }
- catch (Exception ex)
- {
- ex.log("in formField");
- return null;
- }
- }
-
- public static IO2HtmlFormField formField(this IO2HtmlForm form, string name, string type, string value, bool enabled)
- {
- return new IE_Form_Field
- {
- Form = form,
- Name = name,
- Type = type,
- Value = value,
- Enabled = enabled
- };
- }
-
- public static O2BrowserIE onTextChange(this O2BrowserIE o2BrowserIE, Action<string> callback)
- {
- return o2BrowserIE.onEditedHtmlChange(callback);
- }
-
- public static O2BrowserIE onEditedHtmlChange(this O2BrowserIE o2BrowserIE, Action<string> onHtmlChange)
- {
- return (O2BrowserIE)o2BrowserIE.invokeOnThread(() =>
- {
- if (o2BrowserIE.Document != null)
- {
- var markupContainer2 = (mshtml.IMarkupContainer2)o2BrowserIE.Document.DomDocument;
-
- uint pdwCookie;
- markupContainer2.RegisterForDirtyRange(
- new IEChangeSink(() => onHtmlChange(o2BrowserIE.html())), out pdwCookie);
- }
- return o2BrowserIE;
- });
- }
-
- public static HtmlDocument document(this O2BrowserIE o2BrowserIE)
- {
- return (HtmlDocument)o2BrowserIE.invokeOnThread(() => o2BrowserIE.Document);
- }
-
- public static string html(this O2BrowserIE o2BrowserIE)
- {
- return o2BrowserIE.text();
- }
-
- public static string text(this O2BrowserIE o2BrowserIE)
- {
- return (string)o2BrowserIE.invokeOnThread(() => o2BrowserIE.DocumentText);
- }
-
- public static bool contains(this O2BrowserIE o2BrowserIE, string stringToFind)
- {
- return o2BrowserIE.text().contains(stringToFind);
- }
-
- public static bool contains(this O2BrowserIE o2BrowserIE, List<string> stringsToFind)
- {
- foreach (var stringToFind in stringsToFind)
- if (o2BrowserIE.text().contains(stringToFind))
- return true;
- return false;
- }
-
- public static ExtendedWebBrowser.IWebBrowser2 activeX(this O2BrowserIE o2BrowserIE)
- {
- return (ExtendedWebBrowser.IWebBrowser2)o2BrowserIE.ActiveXInstance;
- }
-
- public static O2BrowserIE openBlank(this O2BrowserIE o2BrowserIE)
- {
- o2BrowserIE.openSync("about:blank");
- return o2BrowserIE;
- }
-
- public static void logBeforeNavigate(this O2BrowserIE o2BrowserIE)
- {
- o2BrowserIE.BeforeNavigate +=
- (URL, flags, postData, headers)
- =>
- {
- "on before Navigate for {0}".format(URL).debug();
- if (postData != null)
- {
- "post flags: {0}".format(flags).info();
- "post headers: {0}".format(headers).info();
- "post url: {0}".format(URL).info();
- "post data: {0}".format(((byte[])postData).ascii()).info();
- }
- };
- }
-
-
- public static IO2HtmlPage open(this Uri uri)
- {
- var browser = "WebBrowser".popupWindow().add_Control<O2BrowserIE>();
- return browser.openSync(uri);
- }
-
- public static O2BrowserIE set_Text(this O2BrowserIE o2BrowserIE, string text)
- {
- return (O2BrowserIE)o2BrowserIE.invokeOnThread(
- () =>
- {
- o2BrowserIE.DocumentText = text;
- return o2BrowserIE;
- });
-
- }
-
- public static O2BrowserIE editMode(this O2BrowserIE o2BrowserIE)
- {
- return (O2BrowserIE)o2BrowserIE.invokeOnThread(
- () =>
- {
- o2BrowserIE.HtmlEditMode = true;
- return o2BrowserIE;
- });
- }
-
- }
-}
48 O2_External_IE/ExtensionMethods/IE_Http_ExtensionMethods.cs
View
@@ -1,48 +0,0 @@
-using System.Collections.Generic;
-using O2.External.IE.Interfaces;
-
-namespace O2.External.IE.ExtensionMethods
-{
- public static class IE_Http_ExtensionMethods
- {
- public static IO2HtmlPage GET(this IO2Browser webBrowser, string url)
- {
- return webBrowser.submitRequest_GET_Sync(url, "", "");
- }
-
- public static IO2HtmlPage GET(this IO2Browser webBrowser, string url, string parametersString)
- {
- return webBrowser.submitRequest_GET_Sync(url, "", parametersString);
- }
-
- public static IO2HtmlPage GET(this IO2Browser webBrowser, string url, Dictionary<string, string> parameters)
- {
- return webBrowser.submitRequest_GET_Sync(url, "", parameters);
- }
-
- public static IO2HtmlPage GET(this IO2Browser webBrowser, string url, string targetFrame, Dictionary<string, string> parameters)
- {
- return webBrowser.submitRequest_GET_Sync(url, targetFrame, parameters);
- }
-
- public static IO2HtmlPage POST(this IO2Browser webBrowser, string url)
- {
- return webBrowser.submitRequest_POST_Sync(url, "", "");
- }
-
- public static IO2HtmlPage POST(this IO2Browser webBrowser, string url, string postString)
- {
- return webBrowser.submitRequest_POST_Sync(url, "", postString);
- }
-
- public static IO2HtmlPage POST(this IO2Browser webBrowser, string url, Dictionary<string, string> parameters)
- {
- return webBrowser.submitRequest_POST_Sync(url, "", parameters);
- }
-
- public static IO2HtmlPage POST(this IO2Browser webBrowser, string url, string targetFrame, Dictionary<string, string> parameters)
- {
- return webBrowser.submitRequest_POST_Sync(url, targetFrame, parameters);
- }
- }
-}
30 O2_External_IE/Interfaces/IO2Browser.cs
View
@@ -1,30 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-namespace O2.External.IE.Interfaces
-{
-
- public interface IO2Browser
- {
- event Action<IO2HtmlPage> onDocumentCompleted;
- bool HtmlEditMode { get; set; }
- void open(string url);
- void open(Uri uri);
- IO2HtmlPage openSync(string url);
-
- void submitRequest_GET(string url);
- void submitRequest_GET(string url, string targetFrame, Dictionary<string, string> parameters);
- void submitRequest_GET(string url, string targetFrame, string parametersString);
-
- IO2HtmlPage submitRequest_GET_Sync(string url, string targetFrame, string parametersString);
- IO2HtmlPage submitRequest_GET_Sync(string url, string targetFrame, Dictionary<string, string> parameters);
-
- void submitRequest_POST(string url, string targetFrame, Dictionary<string, string> parameters);
- void submitRequest_POST(string url, string targetFrame, string postString);
- void submitRequest_POST(string url, string targetFrame, byte[] postData);
-
- IO2HtmlPage submitRequest_POST_Sync(string url, string targetFrame, Dictionary<string, string> parameters);
- IO2HtmlPage submitRequest_POST_Sync(string url, string targetFrame, string postString);
- IO2HtmlPage submitRequest_POST_Sync(string url, string targetFrame, byte[] postData);
- }
-}
7 O2_External_IE/Interfaces/IO2HtmlAnchor.cs
View
@@ -1,7 +0,0 @@
-namespace O2.External.IE.Interfaces
-{
- public interface IO2HtmlAnchor
- {
- string OuterHtml { get; set; }
- }
-}
22 O2_External_IE/Interfaces/IO2HtmlForm.cs
View
@@ -1,22 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-namespace O2.External.IE.Interfaces
-{
- public interface IO2HtmlForm
- {
- Uri PageUri { get; set; }
- string OuterHtml { get; set; }
- string Action { get; set; }
- string Dir { get; set; }
- string Encoding { get; set; }
- string Id { get; set; }
- int Length { get; set; }
- string Method { get; set; }
- string Name { get; set; }
- string Target { get; set; }
- string AcceptCharset { get; set; }
- string OnSubmit { get; set; }
- List<IO2HtmlFormField> FormFields { get; set; }
- }
-}
11 O2_External_IE/Interfaces/IO2HtmlFormField.cs
View
@@ -1,11 +0,0 @@
-namespace O2.External.IE.Interfaces
-{
- public interface IO2HtmlFormField
- {
- IO2HtmlForm Form { get; set; }
- string Name { get; set; }
- string Type { get; set; }
- string Value { get; set; }
- bool Enabled { get; set; }
- }
-}
7 O2_External_IE/Interfaces/IO2HtmlImg.cs
View
@@ -1,7 +0,0 @@
-namespace O2.External.IE.Interfaces
-{
- public interface IO2HtmlImg
- {
- string OuterHtml { get; set; }
- }
-}
11 O2_External_IE/Interfaces/IO2HtmlLink.cs
View
@@ -1,11 +0,0 @@
-namespace O2.External.IE.Interfaces
-{
- public interface IO2HtmlLink
- {
- string Href { get; set; }
- string InnerText { get; set; }
- string InnerHtml { get; set; }
- string OuterHtml { get; set; }
- string Target { get; set; }
- }
-}
17 O2_External_IE/Interfaces/IO2HtmlPage.cs
View
@@ -1,17 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-namespace O2.External.IE.Interfaces
-{
- public interface IO2HtmlPage
- {
- Uri PageUri { get; set; }
- string PageSource { get; set; }
- List<IO2HtmlAnchor> Anchors { get; set; }
- List<IO2HtmlForm> Forms { get; set; }
- List<IO2HtmlImg> Images { get; set; }
- List<IO2HtmlLink> Links { get; set; }
- List<IO2HtmlScript> Scripts { get; set; }
-
- }
-}
13 O2_External_IE/Interfaces/IO2HtmlScript.cs
View
@@ -1,13 +0,0 @@
-namespace O2.External.IE.Interfaces
-{
- public interface IO2HtmlScript
- {
- string CharSet { get; set; }
- string Event { get; set; }
- bool Defer { get; set; }
- string HtmlFor { get; set; }
- string Src { get; set; }
- string Text { get; set; }
- string OuterHtml { get; set; }
- }
-}
123 O2_External_IE/O2_External_IE.csproj
View
@@ -1,123 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{F6942664-5E64-4182-B3EB-11F481F461FB}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>O2.External.IE</RootNamespace>
- <AssemblyName>O2_External_IE</AssemblyName>
- <FileAlignment>512</FileAlignment>
- <FileUpgradeFlags>
- </FileUpgradeFlags>
- <UpgradeBackupLocation>
- </UpgradeBackupLocation>
- <OldToolsVersion>3.5</OldToolsVersion>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>..\..\O2_Platform_ReferencedAssemblies\O2_Assemblies\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\_3rdPartyDlls\FilesWithNoCode\Microsoft.mshtml.dll</HintPath>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.Core">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Drawing" />
- <Reference Include="System.Windows.Forms" />
- <Reference Include="System.Xml.Linq">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Data.DataSetExtensions">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="BruteForceEngines\FormBruteForm.cs" />
- <Compile Include="BruteForceEngines\FormBruteForm_v2.cs" />
- <Compile Include="DI.cs" />
- <Compile Include="ExtensionMethods\Html_ExtensionMethods.cs" />
- <Compile Include="ExtensionMethods\IEChangeSink.cs" />
- <Compile Include="ExtensionMethods\IEScreenshot_ExtensionMethods.cs" />
- <Compile Include="ExtensionMethods\IE_Http_ExtensionMethods.cs" />
- <Content Include="open.cs.txt" />
- <Content Include="show.cs.txt" />
- <Compile Include="Wrapper\ExtendedWebBrowser.cs">
- <SubType>Component</SubType>
- </Compile>
- <Compile Include="ExtensionMethods\IE_Controls_ExtensionMethods.cs" />
- <Compile Include="Interfaces\IO2Browser.cs" />
- <Compile Include="Interfaces\IO2HtmlAnchor.cs" />
- <Compile Include="Interfaces\IO2HtmlForm.cs" />
- <Compile Include="Interfaces\IO2HtmlFormField.cs" />
- <Compile Include="Interfaces\IO2HtmlImg.cs" />
- <Compile Include="Interfaces\IO2HtmlLink.cs" />
- <Compile Include="Interfaces\IO2HtmlPage.cs" />
- <Compile Include="Interfaces\IO2HtmlScript.cs" />
- <Compile Include="Wrapper\O2BrowserIE.cs">
- <SubType>Component</SubType>
- </Compile>
- <Compile Include="WebObjects\IE_HtmlPage.cs" />
- <Compile Include="WebObjects\IE_Anchor.cs" />
- <Compile Include="WebObjects\IE_Form.cs" />
- <Compile Include="WebObjects\IE_Form_Field.cs" />
- <Compile Include="WebObjects\IE_Img.cs" />
- <Compile Include="WebObjects\IE_Script.cs" />
- <Compile Include="WebObjects\old\O2Form.cs" />
- <Compile Include="WebObjects\old\O2FormInputField.cs" />
- <Compile Include="WebObjects\old\O2HtmlPage.cs" />
- <Compile Include="WebObjects\old\O2JavaScript.cs" />
- <Compile Include="WebObjects\IE_Link.cs" />
- <Compile Include="Wrapper\O2BrowserIE_Screenshot.cs">
- <SubType>Component</SubType>
- </Compile>
- <EmbeddedResource Include="_External_Dlls\Microsoft.mshtml.dll" />
- </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>
- </ProjectReference>
- <ProjectReference Include="..\..\O2.FluentSharp\O2.FluentSharp.REPL\O2.FluentSharp.REPL.csproj">
- <Project>{D742BBEF-BFDC-477F-9880-5E0E2C89B6B2}</Project>
- <Name>O2.FluentSharp.REPL</Name>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
-</Project>
38 O2_External_IE/O2_External_IE.sln
View
@@ -1,38 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "O2_External_IE", "O2_External_IE.csproj", "{F6942664-5E64-4182-B3EB-11F481F461FB}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "O2.FluentSharp.BCL", "..\..\O2.FluentSharp\O2.FluentSharp.BCL\O2.FluentSharp.BCL.csproj", "{DF7E73CB-02AC-4689-BB8C-AC21FFCCDDC5}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "O2.FluentSharp.REPL", "..\..\O2.FluentSharp\O2.FluentSharp.REPL\O2.FluentSharp.REPL.csproj", "{D742BBEF-BFDC-477F-9880-5E0E2C89B6B2}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "O2.FluentSharp.CoreLib", "..\..\O2.FluentSharp\O2.FluentSharp.CoreLib\O2.FluentSharp.CoreLib.csproj", "{0A7CE0E0-B092-43B5-AB80-99BA909019C9}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {F6942664-5E64-4182-B3EB-11F481F461FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {F6942664-5E64-4182-B3EB-11F481F461FB}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {F6942664-5E64-4182-B3EB-11F481F461FB}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {F6942664-5E64-4182-B3EB-11F481F461FB}.Release|Any CPU.Build.0 = Release|Any CPU
- {DF7E73CB-02AC-4689-BB8C-AC21FFCCDDC5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {DF7E73CB-02AC-4689-BB8C-AC21FFCCDDC5}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {DF7E73CB-02AC-4689-BB8C-AC21FFCCDDC5}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {DF7E73CB-02AC-4689-BB8C-AC21FFCCDDC5}.Release|Any CPU.Build.0 = Release|Any CPU
- {D742BBEF-BFDC-477F-9880-5E0E2C89B6B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {D742BBEF-BFDC-477F-9880-5E0E2C89B6B2}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {D742BBEF-BFDC-477F-9880-5E0E2C89B6B2}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {D742BBEF-BFDC-477F-9880-5E0E2C89B6B2}.Release|Any CPU.Build.0 = Release|Any CPU
- {0A7CE0E0-B092-43B5-AB80-99BA909019C9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {0A7CE0E0-B092-43B5-AB80-99BA909019C9}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {0A7CE0E0-B092-43B5-AB80-99BA909019C9}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {0A7CE0E0-B092-43B5-AB80-99BA909019C9}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
36 O2_External_IE/Properties/AssemblyInfo.cs
View
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("O2_External_IE")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Microsoft")]
-[assembly: AssemblyProduct("O2_External_IE")]
-[assembly: AssemblyCopyright("Copyright © Microsoft 2010")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("a9ef7240-8a98-4658-bdc4-c7b29bd77b82")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("4.1.0.*")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
29 O2_External_IE/WebObjects/IE_Anchor.cs
View
@@ -1,29 +0,0 @@
-using mshtml;
-using O2.External.IE.Interfaces;
-using O2.DotNetWrappers.ExtensionMethods;
-
-namespace O2.External.IE.WebObjects
-{
- public class IE_Anchor : IO2HtmlAnchor
- {
- public string OuterHtml { get; set; }
-
- public IE_Anchor(object _object)
- {
- if (_object is DispHTMLAnchorElement)
- loadData((DispHTMLAnchorElement)_object);
- else
- "In IE_Anchor, not supported type: {0}".format(_object.comTypeName()).error();
- }
-
- public IE_Anchor(DispHTMLAnchorElement anchor)
- {
- loadData(anchor);
- }
-
- public void loadData(DispHTMLAnchorElement anchor)
- {
- OuterHtml = anchor.outerHTML;
- }
- }