} // 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
} // 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
} // 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
protected override void DoParseBegin() { _openGroupStack.Clear(); _curGroup = null; _structureRoot = null; } // DoParseBegin