Files
core/Test/Applications/DocxFormatCodeGen/codegen/Utils.cs
Sergey.Konovalov 85035b1aa0 (2.0.0.163): ASCOfficeDocxFile2
(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
2016-05-20 22:49:33 +03:00

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;
}
}
}