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
29 lines
988 B
C#
29 lines
988 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace codegen
|
|
{
|
|
class Utils
|
|
{
|
|
public static string gc_sBinaryChartReader = "BinaryChartReader";
|
|
public static string gc_sBinaryChartWriter = "BinaryChartWriter";
|
|
public static string gc_sFilePrefix = "//Generated code\r\n";
|
|
public static string gc_sMemberPrefix = "m_";
|
|
public static string gc_sSerToBinEnumPrefix = "c_oSer";
|
|
public static string GetEnumElemName(string sEnumName, string sElemName)
|
|
{
|
|
return sEnumName.ToLower() + sElemName.ToUpper();
|
|
}
|
|
public static string GetSerEnumElemName(string sEnumName, string sElemName)
|
|
{
|
|
return GetEnumElemName(gc_sSerToBinEnumPrefix + sEnumName, sElemName);
|
|
}
|
|
public static string GetMemberElemName(string sElemName)
|
|
{
|
|
return gc_sMemberPrefix + sElemName;
|
|
}
|
|
}
|
|
}
|