}         // DoParseBegin

        // ----------------------------------------------------------------------
        protected override void DoGroupBegin()
        {
            RtfGroup newGroup = new RtfGroup();

            if (this.curGroup != null)
            {
                this.openGroupStack.Push(this.curGroup);
                this.curGroup.WritableContents.Add(newGroup);
            }
            this.curGroup = newGroup;
        }         // DoGroupBegin
Exemple #2
0
        } // DoParseBegin

        protected override void DoGroupBegin()
        {
            var newGroup = new RtfGroup();

            if (_curGroup != null)
            {
                _openGroupStack.Push(_curGroup);
                _curGroup.WritableContents.Add(newGroup);
            }
            _curGroup = newGroup;
        } // DoGroupBegin
        }         // DoParseBegin

        // ----------------------------------------------------------------------
        protected override void DoGroupBegin()
        {
            RtfGroup newGroup = new RtfGroup();

            if (curGroup != null)
            {
                openGroupStack.Push(curGroup);
                curGroup.Contents.Add(newGroup);
            }
            curGroup = newGroup;
        }         // DoGroupBegin
Exemple #4
0
        } // DoTextFound

        protected override void DoGroupEnd()
        {
            if (_openGroupStack.Count > 0)
            {
                _curGroup = (RtfGroup)_openGroupStack.Pop();
            }
            else
            {
                if (_structureRoot != null)
                {
                    throw new RtfStructureException(Strings.MultipleRootLevelGroups);
                }
                _structureRoot = _curGroup;
                _curGroup      = null;
            }
        } // DoGroupEnd
Exemple #5
0
 protected override void DoParseBegin()
 {
     _openGroupStack.Clear();
     _curGroup      = null;
     _structureRoot = null;
 } // DoParseBegin