Example #1
0
 public RTFNode(RTFToken token)
 {
     strKeyword      = token.Key;
     bolHasParameter = token.HasParam;
     intParameter    = token.Param;
     if (token.Type == RTFTokenType.Control)
     {
         intType = RTFNodeType.Control;
     }
     else if (token.Type == RTFTokenType.Control)
     {
         intType = RTFNodeType.Control;
     }
     else if (token.Type == RTFTokenType.Keyword)
     {
         intType = RTFNodeType.Keyword;
     }
     else if (token.Type == RTFTokenType.ExtKeyword)
     {
         intType = RTFNodeType.ExtKeyword;
     }
     else if (token.Type == RTFTokenType.Text)
     {
         intType = RTFNodeType.Text;
     }
     else
     {
         intType = RTFNodeType.Text;
     }
 }
Example #2
0
 public RTFNode(RTFToken token)
 {
     StrKeyword = token.Key;
     BolHasParameter = token.HasParam;
     IntParameter = token.Param;
     if (token.Type == RTFTokenType.Control)
         IntType = RTFNodeType.Control;
     else if (token.Type == RTFTokenType.Control)
         IntType = RTFNodeType.Control;
     else if (token.Type == RTFTokenType.Keyword)
         IntType = RTFNodeType.Keyword;
     else if (token.Type == RTFTokenType.ExtKeyword)
         IntType = RTFNodeType.ExtKeyword;
     else if (token.Type == RTFTokenType.Text)
         IntType = RTFNodeType.Text;
     else
         IntType = RTFNodeType.Text;
 }