Example #1
0
        public static string MakeCssScript(special_xml Sxml, type Mime_Type, string html_type, string type_name, css_variables[] Variables, string[] Values)
        {
            string tStrOpen   = "<" + EnumUtil.GetDescription(Sxml) + " type=" + EnumUtil.GetDescription(Mime_Type) + ">";
            string tStrMiddle = "";

            if (html_type != "#")
            {
                tStrMiddle = "" + html_type + "." + type_name + " {" + "\n";
            }
            else
            {
                tStrMiddle = "" + html_type + type_name + " {" + "\n";
            }
            int i = 0;

            foreach (css_variables str in Variables)
            {
                tStrMiddle += EnumUtil.GetDescription(str) + ":" + Values[i] + ";" + "\n";
                if (i == (Variables.Length - 1))
                {
                    tStrMiddle += "}";
                }
                i++;
            }

            string tStrEnd = "</" + EnumUtil.GetDescription(Sxml) + ">";

            return(tStrOpen + "\n" + tStrMiddle + "\n" + tStrEnd + "\n");
        }
Example #2
0
 public CssScript()
 {
     sxml      = new special_xml();
     mime_Type = new type();
     html_Type = "";
     type_Name = "";
     variables = new css_variables[] { };
     values    = new string[] { };
 }
Example #3
0
 public CssScript(special_xml Sxml, type Mime_Type, string html_type, string type_name, css_variables[] Variables, string[] Values)
 {
     sxml      = Sxml;
     mime_Type = Mime_Type;
     html_Type = html_type;
     type_Name = type_name;
     variables = Variables;
     values    = Values;
 }
Example #4
0
        public static string MakeCssScript(special_xml Sxml, type Mime_Type, string html_type, string type_name, css_variables[] Variables, string[] Values)
        {
            string tStrOpen = "<" + EnumUtil.GetDescription(Sxml) + " type=" + EnumUtil.GetDescription(Mime_Type) + ">";
            string tStrMiddle = "";
            if (html_type != "#")
            {
                tStrMiddle = "" + html_type + "." + type_name + " {"+"\n";
            }
            else
            {

                tStrMiddle = "" + html_type + type_name + " {"+"\n";
            }
            int i = 0;

            foreach (css_variables str in Variables)
            {
                tStrMiddle += EnumUtil.GetDescription(str) + ":" + Values[i] + ";" + "\n";
                if(i == (Variables.Length - 1))
                {
                    tStrMiddle += "}";
                }
                i++;
            }

            string tStrEnd = "</" + EnumUtil.GetDescription(Sxml) + ">";
            return tStrOpen + "\n" + tStrMiddle + "\n" + tStrEnd + "\n";
        }
Example #5
0
 public CssScript()
 {
     sxml = new special_xml();
     mime_Type = new type();
     html_Type = "";
     type_Name = "";
     variables = new css_variables[] { };
     values = new string[] { };
 }
Example #6
0
 public CssScript(special_xml Sxml, type Mime_Type, string html_type, string type_name, css_variables[] Variables, string[] Values)
 {
     sxml = Sxml;
     mime_Type = Mime_Type;
     html_Type = html_type;
     type_Name = type_name;
     variables = Variables;
     values = Values;
 }