diff --git a/PROMS/Volian.Utils.Library/CvtFont/CvtFont.cs b/PROMS/Volian.Utils.Library/CvtFont/CvtFont.cs new file mode 100644 index 00000000..c79b907a --- /dev/null +++ b/PROMS/Volian.Utils.Library/CvtFont/CvtFont.cs @@ -0,0 +1,175 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Xml; + +namespace CvtFont +{ + // + + public static class CvtFont + { + private static string [] OldNames = { + "Elite", + "Pica", + "LnPrn", + "Condense", + "SanSerif", + "Pica12", + "Proportional", + "Propt12", + "HvlPt18", + "HvlPt25", + "SpecialChars", + "Pt14", + "SanSerif14", + "SanSerif17", + "HvlPt12", + "Narrator", + "MedUpUnivers", + "LgUpMed16", + "Propt10", + "Lg1275Hp4Si", + "HvlPt10", + "HvlPt8", + "HvlPt14", + "SanSerif25", + "EyeChart", + "Times11", + "SansCond", + "BigScript" + }; + private static string[] NewXML = { + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + }; + private static string[] NewFamily = { + "Prestige Elite Tall", + "Courier New", + "Times New Roman", + "Times New Roman", + "Letter Gothic", + "Courier New", + "Arial", + "Arial", + "Times New Roman", + "Times New Roman", + "VolianDraw XXXXXX", + "Letter Gothic", + "Arial", + "Arial", + "Times New Roman", + "Gothic Ultra", + "NA", + "Letter Gothic Tall", + "Arial", + "Letter Gothic Tall", + "Times New Roman", + "Times New Roman", + "Times New Roman", + "Arial", + "Gothic Ultra", + "Times New Roman", + "Letter Gothic", + "VolianScript" + }; + private static int[] NewSize = { + 10, + 12, + 7, + 7, + 10, + 12, + 18, + 11, + 18, + 25, + 12, + 12, + 14, + 17, + 12, + 12, + 0, + 7, + 0, + 10, + 10, + 8, + 14, + 25, + 14, + 11, + 7, + 32 + }; + + + private static Dictionary OldToNewStrings=null; + public static string ConvertToString(string oldstr) + { + if (OldToNewStrings == null) InitializeDictionary(); + return OldToNewStrings[oldstr]; + } + + public static string ConvertToFamily(string oldstr) + { + int i = 0; + foreach (string str in OldNames) + { + if (str == oldstr) return NewFamily[i]; + i++; + } + return null; + } + public static int ConvertToSize(string oldstr) + { + int i = 0; + foreach (string str in OldNames) + { + if (str == oldstr) return NewSize[i]; + i++; + } + return -1; + } + //public static XmlElement ConvertToXML(string oldstr) + //{ + // if (OldToNewStrings == null) InitializeDictionary(); + // XmlElement xml = new XmlElement(); + // xml.InnerXml = OldToNewStrings[oldstr]; + // return xml; + //} + private static void InitializeDictionary() + { + int i = 0; + foreach (string str in OldNames) + OldToNewStrings.Add(str, NewXML[i]); + } + } +} diff --git a/PROMS/Volian.Utils.Library/CvtFont/CvtFont.csproj b/PROMS/Volian.Utils.Library/CvtFont/CvtFont.csproj new file mode 100644 index 00000000..4d7ce5b6 --- /dev/null +++ b/PROMS/Volian.Utils.Library/CvtFont/CvtFont.csproj @@ -0,0 +1,55 @@ + + + Debug + AnyCPU + 8.0.50727 + 2.0 + {652EB5F6-18DD-4F22-9C0B-62EB46613C4D} + Library + Properties + CvtFont + CvtFont + + + + + + + + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + \ No newline at end of file diff --git a/PROMS/Volian.Utils.Library/CvtFont/CvtFont.csproj.vspscc b/PROMS/Volian.Utils.Library/CvtFont/CvtFont.csproj.vspscc new file mode 100644 index 00000000..b6d32892 --- /dev/null +++ b/PROMS/Volian.Utils.Library/CvtFont/CvtFont.csproj.vspscc @@ -0,0 +1,10 @@ +"" +{ +"FILE_VERSION" = "9237" +"ENLISTMENT_CHOICE" = "NEVER" +"PROJECT_FILE_RELATIVE_PATH" = "" +"NUMBER_OF_EXCLUDED_FILES" = "0" +"ORIGINAL_PROJECT_FILE_PATH" = "" +"NUMBER_OF_NESTED_PROJECTS" = "0" +"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" +} diff --git a/PROMS/Volian.Utils.Library/CvtFont/Properties/AssemblyInfo.cs b/PROMS/Volian.Utils.Library/CvtFont/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..06df2886 --- /dev/null +++ b/PROMS/Volian.Utils.Library/CvtFont/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +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("CvtFont")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Volian Enterprises, Inc.")] +[assembly: AssemblyProduct("CvtFont")] +[assembly: AssemblyCopyright("Copyright © Volian Enterprises, Inc. 2006")] +[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("d2266793-0f12-4f71-bbd4-0a1617554b27")] + +// 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 Revision and Build Numbers +// by using the '*' as shown below: +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/PROMS/fmtxml/Format, Genmac To XML, SVG.csproj b/PROMS/fmtxml/Format, Genmac To XML, SVG.csproj new file mode 100644 index 00000000..f2d274ee --- /dev/null +++ b/PROMS/fmtxml/Format, Genmac To XML, SVG.csproj @@ -0,0 +1,65 @@ + + + Debug + AnyCPU + {68A28293-001C-4726-AA1A-7783E0FA6439} + WinExe + false + Format, Genmac To XML, SVG + Format__Genmac_To_XML__SVG + + + true + full + false + .\bin\Debug\ + DEBUG;TRACE + + + pdbonly + true + .\bin\Release\ + TRACE + + + + + + + + + + + + + + + + + + + + Form + + + + + + + + + Form1.cs + Designer + + + + + {652EB5F6-18DD-4F22-9C0B-62EB46613C4D} + CvtFont + + + + + + + \ No newline at end of file diff --git a/PROMS/fmtxml/Format, Genmac To XML, SVG.csproj.vspscc b/PROMS/fmtxml/Format, Genmac To XML, SVG.csproj.vspscc new file mode 100644 index 00000000..6cb031bc --- /dev/null +++ b/PROMS/fmtxml/Format, Genmac To XML, SVG.csproj.vspscc @@ -0,0 +1,10 @@ +"" +{ +"FILE_VERSION" = "9237" +"ENLISTMENT_CHOICE" = "NEVER" +"PROJECT_FILE_RELATIVE_PATH" = "" +"NUMBER_OF_EXCLUDED_FILES" = "0" +"ORIGINAL_PROJECT_FILE_PATH" = "" +"NUMBER_OF_NESTED_PROJECTS" = "0" +"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROJECT" +}