public string ProcessFile(string FileName, UI.Skins.SkinParser ParseOption) { string strMessage = SkinController.FormatMessage(FILE_BEGIN, Path.GetFileName(FileName), 0, false); SkinFile objSkinFile = new SkinFile(this.SkinRoot, FileName, this.SkinAttributes); switch (objSkinFile.FileExtension) { case ".htm": case ".html": string contents = objSkinFile.Contents; strMessage += this.ObjectFactory.Parse(ref contents); strMessage += this.PathFactory.Parse(ref contents, this.PathFactory.HTMLList, objSkinFile.SkinRootPath, ParseOption); strMessage += this.ControlFactory.Parse(ref contents, objSkinFile.Attributes); objSkinFile.Contents = contents; ArrayList Registrations = new ArrayList(); Registrations.AddRange(this.ControlFactory.Registrations); Registrations.AddRange(this.ObjectFactory.Registrations); strMessage += objSkinFile.PrependASCXDirectives(Registrations); break; } objSkinFile.Write(); strMessage += objSkinFile.Messages; strMessage += SkinController.FormatMessage(FILE_END, Path.GetFileName(FileName), 1, false); return(strMessage); }
public string ProcessSkin(string SkinSource, XmlDocument SkinAttributes, UI.Skins.SkinParser ParseOption) { SkinFile objSkinFile = new SkinFile(SkinSource, SkinAttributes); string contents = objSkinFile.Contents; this.Message += this.ControlFactory.Parse(ref contents, objSkinFile.Attributes); this.Message += objSkinFile.PrependASCXDirectives(this.ControlFactory.Registrations); return(contents); }
public string ProcessList(ArrayList FileList, UI.Skins.SkinParser ParseOption) { foreach (string FileName in FileList) { this.Message += ProcessFile(FileName, ParseOption); } this.Message += SkinController.FormatMessage(FILES_END, this.SkinRoot + " :: " + this.SkinName, 0, false); return(this.Message); }
public string Parse(ref string Source, ArrayList RegexList, string SkinPath, UI.Skins.SkinParser ParseOption) { m_Messages = ""; this.SkinPath = SkinPath; this.ParseOption = ParseOption; int i; for (i = 0; i <= RegexList.Count - 1; i++) { Source = ((Regex)RegexList[i]).Replace(Source, this.Handler); } return(m_Messages); }
public string Parse(ref string Source, ArrayList RegexList, string SkinPath, UI.Skins.SkinParser ParseOption) { m_Messages = ""; this.SkinPath = SkinPath; this.ParseOption = ParseOption; int i; for (i = 0; i <= RegexList.Count - 1; i++) { Source = ((Regex)RegexList[i]).Replace(Source, this.Handler); } return m_Messages; }