public Tag(bool blnBezZnacky, bool blnIgnorovat, string strNamespace, string strNazev, bool blnPrazdnyElement, string strPredchoziStyl, bool blnSloucitSPredchozim, string strNasledujiciStyl, bool blnSloucitSNasledujcim, string strStyl, Atributy atAtributy, Nahrady nhNahrady) : this(blnBezZnacky, blnIgnorovat, strNamespace, strNazev, blnPrazdnyElement, strPredchoziStyl, blnSloucitSPredchozim, strStyl, atAtributy, nhNahrady) { this.SloucitSNasledujicim = blnSloucitSNasledujcim; this.NasledujiciStyl = strNasledujiciStyl; }
private Atributy PrevedAtributy(atribut[] atrs) { Atributy atr = new Atributy(); if (atrs == null) { return(atr); } foreach (atribut at in atrs) { atr.Add(new Atribut(at.nazev, at.hodnota)); } return(atr); }
public Tag(bool blnBezZnacky, bool blnIgnorovat, string strNamespace, string strNazev, bool blnPrazdnyElement, string strPredchoziStyl, bool blnSloucitSPredchozim, string strStyl, Atributy atAtributy, Nahrady nhNahrady) { this.BezZnacky = blnBezZnacky; this.Ignorovat = blnIgnorovat; this.Namespace = strNamespace; this.Nazev = strNazev; this.PrazdnyElement = blnPrazdnyElement; this.PredchoziStyl = strPredchoziStyl; this.SloucitSPredchozim = blnSloucitSPredchozim; this.Styl = strStyl; this.Atributy = atAtributy; this.Nahrady = nhNahrady; }
//private nahrada[] PrevedNahrady(Nahrady nhNahrady) { // if (nhNahrady == null || nhNahrady.Count == 0) // return null; // nahrada[] nhr = new nahrada[nhNahrady.Count]; // int j = -1; // foreach (Nahrada nh in nhNahrady) { // j++; // nhr[j] = new nahrada(); // nhr[j].co = nh.Co; // nhr[j].cim = nh.Cim; // } // return nhr; //} private List <atribut> PrevedAtributy(Atributy atAtributy) { if (atAtributy == null || atAtributy.Count == 0) { return(null); } List <atribut> atr = new List <atribut>(atAtributy.Count); foreach (Atribut at in atAtributy) { atribut a = new atribut(); a.nazev = at.Nazev; a.hodnota = at.Hodnota; atr.Add(a); } return(atr); }
private void GenerujAtributy(Atributy atrs, string sText) { foreach (Atribut at in atrs) { string sHodnota = at.Hodnota; if (sHodnota == csDelimitator + csObsah) { sHodnota = sText; } else { if (sHodnota.Contains(csDelimitator)) { //sHodnota = ZpracujHodnotu(sText); sHodnota = ZpracujHodnotu(sHodnota); } } if (!String.IsNullOrEmpty(sHodnota)) { mxwWriter.WriteAttributeString(at.Nazev, sHodnota.Trim()); } } }
public Koren(string strNamespace, string strNazev, Atributy atAtributy) { matAtributy = atAtributy; this.Namespace = strNamespace; this.Nazev = strNazev; }