mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
(1.0.0.110): XlsxSerializerCom Serialize полной структуры chart, с помощью генератора кода из xsd переход на один StringWriter из xmlutils при записи c_oSerCellTypes::RefRowCol индексы начинаются от 0. git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@55323 954022d7-b5bf-4e40-9824-e11837661b57
30 lines
1.1 KiB
C#
30 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Xml.Schema;
|
|
|
|
namespace codegen
|
|
{
|
|
class Program
|
|
{
|
|
static string sDirIn = @"..\..\Resource\";
|
|
static string sDirCppXmlOut = @"D:\Subversion\AVS\Sources\TeamlabOffice\trunk\ServerComponents\Common\DocxFormat\Source\XlsxFormat\Chart\";
|
|
static string sDirCppBinOut = @"D:\Subversion\AVS\Sources\TeamlabOffice\trunk\ServerComponents\XlsxSerializerCom\Reader\";
|
|
static string sDirJsBinOut = @"D:\Subversion\AVS\Sources\TeamlabOffice\trunk\OfficeWeb\Common\";
|
|
static void Main(string[] args)
|
|
{
|
|
(new codegen.CodeGen()).Start(sDirIn, sDirCppXmlOut, sDirCppBinOut, sDirJsBinOut, ValidationCallback);
|
|
}
|
|
static void ValidationCallback(object sender, ValidationEventArgs args)
|
|
{
|
|
if (args.Severity == XmlSeverityType.Warning)
|
|
Console.Write("WARNING: ");
|
|
else if (args.Severity == XmlSeverityType.Error)
|
|
Console.Write("ERROR: ");
|
|
|
|
Console.WriteLine(args.Message);
|
|
}
|
|
}
|
|
}
|