Ejemplo n.º 1
0
        private InlineTag GetHighlight(EntryItemType type)
        {
            switch (type)
            {
            case EntryItemType.Type:
                return(InlineTag.Tex);

            case EntryItemType.Key:
                return(InlineTag.Code);

            case EntryItemType.Name:
                return(InlineTag.Emphasis);

            case EntryItemType.Value:
                return(InlineTag.String);
            }
            return(InlineTag.String);
        }
Ejemplo n.º 2
0
 private void AddItem(List <BibEntryItem> items, int start, int end, EntryItemType type)
 {
     items.Add(new BibEntryItem(start, end - start, type));
 }
Ejemplo n.º 3
0
 public BibEntryItem(int position, int length, EntryItemType type)
 {
     Type           = type;
     SourcePosition = position;
     SourceLength   = length;
 }