Example #1
0
 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;
 }
Example #2
0
        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);
        }
Example #3
0
 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;
 }
Example #4
0
        //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);
        }
Example #5
0
 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());
         }
     }
 }
Example #6
0
 public Koren(string strNamespace, string strNazev, Atributy atAtributy)
 {
     matAtributy    = atAtributy;
     this.Namespace = strNamespace;
     this.Nazev     = strNazev;
 }