Commit 14a5c8d8 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov
parent 4645689e
......@@ -7626,6 +7626,8 @@ DesktopEditor/raster/Metafile/Common svnc_tsvn_003alogminsize=5
DesktopEditor/raster/Metafile/Emf svnc_tsvn_003alogminsize=5
DesktopEditor/raster/Metafile/StarView svnc_tsvn_003alogminsize=5
DesktopEditor/raster/Metafile/Wmf svnc_tsvn_003alogminsize=5
DesktopEditor/test/Joiner svnc_tsvn_003alogminsize=5
DesktopEditor/test/Joiner/Properties svnc_tsvn_003alogminsize=5
DesktopEditor/xml svnc_tsvn_003alogminsize=5
DesktopEditor/xml/build svnc_tsvn_003alogminsize=5
DesktopEditor/xml/build/qt svnc_tsvn_003alogminsize=5
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.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>{8388ABB0-B083-46DE-8569-B09A00F551BC}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Joiner</RootNamespace>
<AssemblyName>Joiner</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<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' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<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.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</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>
\ No newline at end of file

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.30723.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Joiner", "Joiner.csproj", "{8388ABB0-B083-46DE-8569-B09A00F551BC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8388ABB0-B083-46DE-8569-B09A00F551BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8388ABB0-B083-46DE-8569-B09A00F551BC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8388ABB0-B083-46DE-8569-B09A00F551BC}.Debug|x86.ActiveCfg = Debug|x86
{8388ABB0-B083-46DE-8569-B09A00F551BC}.Debug|x86.Build.0 = Debug|x86
{8388ABB0-B083-46DE-8569-B09A00F551BC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8388ABB0-B083-46DE-8569-B09A00F551BC}.Release|Any CPU.Build.0 = Release|Any CPU
{8388ABB0-B083-46DE-8569-B09A00F551BC}.Release|x86.ActiveCfg = Release|x86
{8388ABB0-B083-46DE-8569-B09A00F551BC}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace Joiner
{
class Program
{
static void Main(string[] args)
{
for (int nType = 0; nType < 3; nType++)
{
string sPathConfig = "";
string sDstFile = "";
string sPathBase = Directory.GetCurrentDirectory() + "/../../../";
if (true)
sPathBase = Directory.GetCurrentDirectory() + "/";
if (nType == 0)
{
sPathConfig = sPathBase + "sdk_configs/webword.json";
sDstFile = sPathBase + "../../Word/sdk-all.js";
}
else if (nType == 1)
{
sPathConfig = sPathBase + "sdk_configs/webexcel.json";
sDstFile = sPathBase + "../../Excel/sdk-all.js";
}
else
{
sPathConfig = sPathBase + "sdk_configs/webpowerpoint.json";
sDstFile = sPathBase + "../../PowerPoint/sdk-all.js";
}
Dictionary<string, bool> map_files = new Dictionary<string, bool>();
StreamReader oReader = new StreamReader(sPathConfig);
string sConfigSource = oReader.ReadToEnd();
List<int> arCommon = new List<int>();
List<int> arWord = new List<int>();
List<int> arPowerPoint = new List<int>();
List<int> arExcel = new List<int>();
List<string> arFiles = new List<string>();
int nStart = 0;
nStart = 0;
while ((nStart = sConfigSource.IndexOf("/Common/", nStart + 1)) >= 0)
{
int nFind = sConfigSource.IndexOf('\"', nStart);
arCommon.Add(nStart);
string sFile = sConfigSource.Substring(nStart, nFind - nStart);
if (!map_files.ContainsKey(sFile))
{
arFiles.Add(sFile);
map_files.Add(sFile, true);
}
}
nStart = 0;
while ((nStart = sConfigSource.IndexOf("/Word/", nStart + 1)) >= 0)
{
int nFind = sConfigSource.IndexOf('\"', nStart);
arCommon.Add(nStart);
string sFile = sConfigSource.Substring(nStart, nFind - nStart);
if (!map_files.ContainsKey(sFile))
{
arFiles.Add(sFile);
map_files.Add(sFile, true);
}
}
nStart = 0;
while ((nStart = sConfigSource.IndexOf("/PowerPoint/", nStart + 1)) >= 0)
{
int nFind = sConfigSource.IndexOf('\"', nStart);
arWord.Add(nStart);
string sFile = sConfigSource.Substring(nStart, nFind - nStart);
if (!map_files.ContainsKey(sFile))
{
arFiles.Add(sFile);
map_files.Add(sFile, true);
}
}
nStart = 0;
while ((nStart = sConfigSource.IndexOf("/Excel/", nStart + 1)) >= 0)
{
int nFind = sConfigSource.IndexOf('\"', nStart);
arExcel.Add(nStart);
string sFile = sConfigSource.Substring(nStart, nFind - nStart);
if (!map_files.ContainsKey(sFile))
{
arFiles.Add(sFile);
map_files.Add(sFile, true);
}
}
StringBuilder oBuilder = new StringBuilder();
for (int i = 0; i < arFiles.Count; i++)
{
string sFileCandidate = arFiles[i];
if ((sFileCandidate.IndexOf("/Build/") >= 0) ||
(sFileCandidate.IndexOf("3rdparty") >= 0) ||
(sFileCandidate.IndexOf("-all.js") >= 0) ||
(sFileCandidate.IndexOf("apiExport.js") >= 0) ||
(sFileCandidate.LastIndexOf(".js") != (sFileCandidate.Length - 3)))
continue;
StreamReader oReader2 = new StreamReader(sPathBase + "../.." + arFiles[i]);
oBuilder.Append(oReader2.ReadToEnd());
oBuilder.Append("\n\n");
}
StreamWriter oWriter = new StreamWriter(sDstFile, false, Encoding.UTF8);
oWriter.Write(oBuilder.ToString());
oWriter.Close();
}
}
}
}
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("Joiner")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Joiner")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[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("28b23377-66b8-4807-bbaa-14783f545ab9")]
// 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("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment