Inheritance: RtfElement, IRtfGroup
コード例 #1
0
ファイル: RtfGroup.cs プロジェクト: webs3c/ToDoList_Dev
        }         // DoVisit

        // ----------------------------------------------------------------------
        protected override bool IsEqual(object obj)
        {
            RtfGroup compare = obj as RtfGroup;             // guaranteed to be non-null

            return(compare != null && base.IsEqual(obj) &&
                   this.contents.Equals(compare.contents));
        }         // IsEqual
コード例 #2
0
 // ----------------------------------------------------------------------
 protected override void DoGroupBegin()
 {
     RtfGroup newGroup = new RtfGroup();
     if ( curGroup != null )
     {
         openGroupStack.Push( curGroup );
         curGroup.WritableContents.Add( newGroup );
     }
     curGroup = newGroup;
 }
コード例 #3
0
		} // 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
コード例 #4
0
 // ----------------------------------------------------------------------
 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;
     }
 }
コード例 #5
0
 // ----------------------------------------------------------------------
 protected override void DoParseBegin()
 {
     openGroupStack.Clear();
     curGroup = null;
     structureRoot = null;
 }