Esempio n. 1
0
 public bool IsCommentedOrQuoted(DocumentLocation DL)
 {
     return(currentView.Document[DL.LineNumber].IsCommentedOrQuoted(DL.ColumnNumber));
 }
Esempio n. 2
0
 public int CharNum(DocumentLocation DL)
 {
     return(this[DL.LineNumber].StartIndex + DL.ColumnNumber);
 }
Esempio n. 3
0
 public string ToString(DocumentLocation DL)
 {
     return(currentView.ToString(DL));
 }
Esempio n. 4
0
 public void Insert(DocumentLocation DL, string Contents)
 {
     currentView.Insert(Contents, DL);
 }
Esempio n. 5
0
 public UndoElementDeleteChar(DocumentLocation DL, char c)
 {
     this.type = UndoType.DeleteChar;
     this.dl   = DL;
     this.c    = c;
 }
Esempio n. 6
0
 public UndoElementInsertChar(DocumentLocation DL, char c)
 {
     this.type = UndoType.InsertChar;
     this.dl   = DL;
     this.c    = c;
 }
Esempio n. 7
0
 public bool Contains(DocumentLocation DL)
 {
     return((start.LineNumber < DL.LineNumber && end.LineNumber > DL.LineNumber) ||
            (start.LineNumber == DL.LineNumber && start.ColumnNumber <= DL.ColumnNumber && (end.LineNumber > DL.LineNumber || end.ColumnNumber >= DL.ColumnNumber)) ||
            (start.LineNumber < DL.LineNumber && end.ColumnNumber >= DL.ColumnNumber));
 }
Esempio n. 8
0
 internal DocumentRange(DocumentLocation DL, DocumentRangeLength DRL, Document Document)
 {
     start = DL;
     end   = Document.EnsureValid(new DocumentLocation(DL.LineNumber + DRL.Lines, DL.ColumnNumber + DRL.Columns));
 }
Esempio n. 9
0
 static DocumentLocation()
 {
     BOF = new DocumentLocation(0, 0);
 }