Code Coverage Statistics for Source File
c:\Tools\SD3\src\Libraries\ICSharpCode.TextEditor\Project\Src\Document\LineManager\LineManagerEventArgs.cs
|
Sequence Point Coverage
N/A
0 of 0
|
Branch Coverage
N/A
0 of 0
|
Lines
97
|
Highlight:
Uncovered Code
Covered Code
| L | V | Source |
|---|---|---|
1 |
// <file> |
|
2 |
// <copyright see="prj:///doc/copyright.txt"/> |
|
3 |
// <license see="prj:///doc/license.txt"/> |
|
4 |
// <owner name="Mike Krüger" email="mike@icsharpcode.net"/> |
|
5 |
// <version>$Revision: 2691 $</version> |
|
6 |
// </file> |
|
7 |
||
8 |
using System; |
|
9 |
||
10 |
namespace ICSharpCode.TextEditor.Document |
|
11 |
{ |
|
12 |
public class LineCountChangeEventArgs : EventArgs |
|
13 |
{ |
|
14 |
IDocument document; |
|
15 |
int start; |
|
16 |
int moved; |
|
17 |
||
18 |
/// <returns> |
|
19 |
/// always a valid Document which is related to the Event. |
|
20 |
/// </returns> |
|
21 |
public IDocument Document { |
|
22 |
get { |
|
23 |
return document; |
|
24 |
} |
|
25 |
} |
|
26 |
||
27 |
/// <returns> |
|
28 |
/// -1 if no offset was specified for this event |
|
29 |
/// </returns> |
|
30 |
public int LineStart { |
|
31 |
get { |
|
32 |
return start; |
|
33 |
} |
|
34 |
} |
|
35 |
||
36 |
/// <returns> |
|
37 |
/// -1 if no length was specified for this event |
|
38 |
/// </returns> |
|
39 |
public int LinesMoved { |
|
40 |
get { |
|
41 |
return moved; |
|
42 |
} |
|
43 |
} |
|
44 |
||
45 |
public LineCountChangeEventArgs(IDocument document, int lineStart, int linesMoved) |
|
46 |
{ |
|
47 |
this.document = document; |
|
48 |
this.start = lineStart; |
|
49 |
this.moved = linesMoved; |
|
50 |
} |
|
51 |
} |
|
52 |
||
53 |
public class LineEventArgs : EventArgs |
|
54 |
{ |
|
55 |
IDocument document; |
|
56 |
LineSegment lineSegment; |
|
57 |
||
58 |
public IDocument Document { |
|
59 |
get { return document; } |
|
60 |
} |
|
61 |
||
62 |
public LineSegment LineSegment { |
|
63 |
get { return lineSegment; } |
|
64 |
} |
|
65 |
||
66 |
public LineEventArgs(IDocument document, LineSegment lineSegment) |
|
67 |
{ |
|
68 |
this.document = document; |
|
69 |
this.lineSegment = lineSegment; |
|
70 |
} |
|
71 |
||
72 |
public override string ToString() |
|
73 |
{ |
|
74 |
return string.Format("[LineEventArgs Document={0} LineSegment={1}]", this.document, this.lineSegment); |
|
75 |
} |
|
76 |
} |
|
77 |
||
78 |
public class LineLengthChangeEventArgs : LineEventArgs |
|
79 |
{ |
|
80 |
int lengthDelta; |
|
81 |
||
82 |
public int LengthDelta { |
|
83 |
get { return lengthDelta; } |
|
84 |
} |
|
85 |
||
86 |
public LineLengthChangeEventArgs(IDocument document, LineSegment lineSegment, int moved) |
|
87 |
: base(document, lineSegment) |
|
88 |
{ |
|
89 |
this.lengthDelta = moved; |
|
90 |
} |
|
91 |
||
92 |
public override string ToString() |
|
93 |
{ |
|
94 |
return string.Format("[LineLengthEventArgs Document={0} LineSegment={1} LengthDelta={2}]", this.Document, this.LineSegment, this.lengthDelta); |
|
95 |
} |
|
96 |
} |
|
97 |
} |