示例#1
0
        public PODSectionItem(PODSectionBase Root, PODSectionBase Parent, SectionTag Tag)
        {
            this.Root = Root;
            this.Parent = Parent;

            this.Tag = Tag;

            switch (Tag.Tag)
            {
                case "head1": Render = new TagRenderHead(1, Tag.Text); break;
                case "head2": Render = new TagRenderHead(2, Tag.Text); break;
                case "head3": Render = new TagRenderHead(3, Tag.Text); break;
                case "head4": Render = new TagRenderHead(4, Tag.Text); break;

                case "over": Render = new TagRenderList(true).SetIndent(Tag.Type);break;
                case "item": Render = new TagRenderListItem(Tag.Text); break;
                case "back": Render = new TagRenderList(false).SetIndent(Tag.Type); break;

                case "for": Render = new TagRender(Tag.Tag); break;

                case "pod": Render = new TagRender(Tag.Tag); break;
                case "cut": Render = new TagRender(Tag.Tag); break;

                case "encoding": ; break;
            }
        }
示例#2
0
 public bool Equals(SectionTag t)
 {
     return Tag.Equals(t.Tag, StringComparison.InvariantCultureIgnoreCase);
 }
示例#3
0
 public bool IsEndingFor(SectionTag t)
 {
     return IsGroup && t.IsGroup && Type == t.Type && ((Tag.Equals("end") && t.Tag.Equals("begin")) || (t.Tag == Tag));
 }