Skip to content
Permalink
Browse files

normalize to LF

  • Loading branch information...
Daniel Barowy
Daniel Barowy committed Apr 28, 2016
1 parent 7b5c4ac commit c6469ed93f1a4cc72c8b3aaa27c8a0206c11b6c5
Showing with 10,875 additions and 10,874 deletions.
  1. +1 −0 .gitattributes
  2. +91 −91 COMWrapper/Application.cs
  3. +75 −75 COMWrapper/COMWrapper.csproj
  4. +36 −36 COMWrapper/Properties/AssemblyInfo.cs
  5. +31 −31 COMWrapper/Workbook.cs
  6. +1 −1 Depends
  7. +141 −141 ExceLint.sln
  8. +233 −233 ExceLint/Analysis.fs
  9. +13 −13 ExceLint/App.config
  10. +40 −40 ExceLint/AssemblyInfo.fs
  11. +39 −39 ExceLint/BasicStats.fs
  12. +62 −62 ExceLint/Degree.fs
  13. +100 −100 ExceLint/ExceLint.fsproj
  14. +14 −14 ExceLint/Feature.fs
  15. +191 −191 ExceLint/FeatureConf.fs
  16. +19 −19 ExceLint/Formula.fs
  17. +23 −23 ExceLint/PerfUtils.fs
  18. +74 −74 ExceLint/Proximity.fs
  19. +28 −28 ExceLint/Scope.fs
  20. +300 −300 ExceLint/Vector.fs
  21. +5,690 −5,690 ExceLintInstaller/ExceLintInstaller.isl
  22. +36 −36 ExceLintInstaller/ExceLintInstaller.isproj
  23. +166 −166 ExceLintTests/BasicTests.cs
  24. +102 −102 ExceLintTests/ExceLintTests.csproj
  25. +36 −36 ExceLintTests/Properties/AssemblyInfo.cs
  26. +85 −85 ExceLintUI/CellFixForm.Designer.cs
  27. +40 −40 ExceLintUI/CellFixForm.cs
  28. +119 −119 ExceLintUI/CellFixForm.resx
  29. +362 −362 ExceLintUI/ExceLintRibbon.Designer.cs
  30. +343 −343 ExceLintUI/ExceLintRibbon.cs
  31. +584 −584 ExceLintUI/ExceLintRibbon.resx
  32. +283 −283 ExceLintUI/ExceLintUI.csproj
  33. +57 −57 ExceLintUI/ProgBar.Designer.cs
  34. +58 −58 ExceLintUI/ProgBar.cs
  35. +119 −119 ExceLintUI/ProgBar.resx
  36. +38 −38 ExceLintUI/Properties/AssemblyInfo.cs
  37. +123 −123 ExceLintUI/Properties/Resources.Designer.cs
  38. +138 −138 ExceLintUI/Properties/Resources.resx
  39. +26 −26 ExceLintUI/Properties/Settings.Designer.cs
  40. +7 −7 ExceLintUI/Properties/Settings.settings
  41. +43 −43 ExceLintUI/RibbonHelper.cs
  42. +237 −237 ExceLintUI/ThisAddIn.Designer.cs
  43. +4 −4 ExceLintUI/ThisAddIn.Designer.xml
  44. +36 −36 ExceLintUI/ThisAddIn.cs
  45. +607 −607 ExceLintUI/WorkbookState.cs
  46. +10 −10 LICENSE.txt
  47. +14 −14 PRQ/Visual Studio 2010 Tools for Office Runtime.prq
@@ -0,0 +1 @@
* text=auto
@@ -1,91 +1,91 @@
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;
using Excel = Microsoft.Office.Interop.Excel;

namespace COMWrapper
{
public class Application : IDisposable
{
Excel.Application _app;
List<Workbook> _wbs;

public Application()
{
_app = new Excel.Application();
_wbs = new List<Workbook>();
}

// All of the following private enums are poorly documented
private enum XlCorruptLoad
{
NormalLoad = 0,
RepairFile = 1,
ExtractData = 2
}

private enum XlUpdateLinks
{
Yes = 2,
No = 0
}

private enum XlPlatform
{
Macintosh = 1,
Windows = 2,
MSDOS = 3
}

public Workbook OpenWorkbook(string relpath)
{
// get the absolute path
var abspath = System.IO.Path.GetFullPath(relpath);

// we need to disable all alerts, e.g., password prompts, etc.
_app.DisplayAlerts = false;

// disable macros
_app.AutomationSecurity = Microsoft.Office.Core.MsoAutomationSecurity.msoAutomationSecurityForceDisable;

// This call is stupid. See:
// http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel.workbooks.open%28v=office.11%29.aspx
_app.Workbooks.Open(abspath, // FileName (String)
XlUpdateLinks.Yes, // UpdateLinks (XlUpdateLinks enum)
true, // ReadOnly (Boolean)
Missing.Value, // Format (int?)
"thisisnotapassword", // Password (String)
Missing.Value, // WriteResPassword (String)
true, // IgnoreReadOnlyRecommended (Boolean)
Missing.Value, // Origin (XlPlatform enum)
Missing.Value, // Delimiter; if the filetype is txt (String)
Missing.Value, // Editable; not what you think (Boolean)
false, // Notify (Boolean)
Missing.Value, // Converter(int)
false, // AddToMru (Boolean)
Missing.Value, // Local; really "use my locale?" (Boolean)
XlCorruptLoad.RepairFile); // CorruptLoad (XlCorruptLoad enum)

// init wrapped workbook
// TODO: the array index here really should depend on the number of open workbooks
var wb = new Workbook(_app.Workbooks[1], _app);

// add to list
_wbs.Add(wb);

return wb;
}

public void Dispose()
{
foreach (var wb in _wbs)
{
wb.Dispose();
}
_app.Quit();
Marshal.ReleaseComObject(_app);
_app = null;
}
}
}
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;
using Excel = Microsoft.Office.Interop.Excel;

namespace COMWrapper
{
public class Application : IDisposable
{
Excel.Application _app;
List<Workbook> _wbs;

public Application()
{
_app = new Excel.Application();
_wbs = new List<Workbook>();
}

// All of the following private enums are poorly documented
private enum XlCorruptLoad
{
NormalLoad = 0,
RepairFile = 1,
ExtractData = 2
}

private enum XlUpdateLinks
{
Yes = 2,
No = 0
}

private enum XlPlatform
{
Macintosh = 1,
Windows = 2,
MSDOS = 3
}

public Workbook OpenWorkbook(string relpath)
{
// get the absolute path
var abspath = System.IO.Path.GetFullPath(relpath);

// we need to disable all alerts, e.g., password prompts, etc.
_app.DisplayAlerts = false;

// disable macros
_app.AutomationSecurity = Microsoft.Office.Core.MsoAutomationSecurity.msoAutomationSecurityForceDisable;

// This call is stupid. See:
// http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel.workbooks.open%28v=office.11%29.aspx
_app.Workbooks.Open(abspath, // FileName (String)
XlUpdateLinks.Yes, // UpdateLinks (XlUpdateLinks enum)
true, // ReadOnly (Boolean)
Missing.Value, // Format (int?)
"thisisnotapassword", // Password (String)
Missing.Value, // WriteResPassword (String)
true, // IgnoreReadOnlyRecommended (Boolean)
Missing.Value, // Origin (XlPlatform enum)
Missing.Value, // Delimiter; if the filetype is txt (String)
Missing.Value, // Editable; not what you think (Boolean)
false, // Notify (Boolean)
Missing.Value, // Converter(int)
false, // AddToMru (Boolean)
Missing.Value, // Local; really "use my locale?" (Boolean)
XlCorruptLoad.RepairFile); // CorruptLoad (XlCorruptLoad enum)

// init wrapped workbook
// TODO: the array index here really should depend on the number of open workbooks
var wb = new Workbook(_app.Workbooks[1], _app);

// add to list
_wbs.Add(wb);

return wb;
}

public void Dispose()
{
foreach (var wb in _wbs)
{
wb.Dispose();
}
_app.Quit();
Marshal.ReleaseComObject(_app);
_app = null;
}
}
}
@@ -1,76 +1,76 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{D9BC52FF-2319-4216-96FD-6F9CF2D05539}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>COMWrapper</RootNamespace>
<AssemblyName>COMWrapper</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</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.Office.Interop.Excel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="Office, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Application.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Workbook.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Depends\Depends\Depends.csproj">
<Project>{34fa1bc2-cfd6-44ec-ac0c-dfc62313e4bf}</Project>
<Name>Depends</Name>
</ProjectReference>
<ProjectReference Include="..\Depends\ParcelCOMShim\ParcelCOMShim\ParcelCOMShim.fsproj">
<Project>{71e3af28-8088-4f9d-9392-858964d72947}</Project>
<Name>ParcelCOMShim</Name>
</ProjectReference>
<ProjectReference Include="..\Depends\parcel\Parcel\ExcelParser.fsproj">
<Project>{6de2a2b9-c029-4bdb-8992-d16276471d9f}</Project>
<Name>ExcelParser</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>
-->
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{D9BC52FF-2319-4216-96FD-6F9CF2D05539}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>COMWrapper</RootNamespace>
<AssemblyName>COMWrapper</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</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.Office.Interop.Excel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="Office, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Application.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Workbook.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Depends\Depends\Depends.csproj">
<Project>{34fa1bc2-cfd6-44ec-ac0c-dfc62313e4bf}</Project>
<Name>Depends</Name>
</ProjectReference>
<ProjectReference Include="..\Depends\ParcelCOMShim\ParcelCOMShim\ParcelCOMShim.fsproj">
<Project>{71e3af28-8088-4f9d-9392-858964d72947}</Project>
<Name>ParcelCOMShim</Name>
</ProjectReference>
<ProjectReference Include="..\Depends\parcel\Parcel\ExcelParser.fsproj">
<Project>{6de2a2b9-c029-4bdb-8992-d16276471d9f}</Project>
<Name>ExcelParser</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>

0 comments on commit c6469ed

Please sign in to comment.
You can’t perform that action at this time.