| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
ve.dm.DocumentSlice = function VeDmDocumentSlice( data, htmlDocument, parentDocument, internalList, originalRange, balancedRange, originalDocument ) { |
| 22 |
|
| 23 |
ve.dm.DocumentSlice.super.call( this, data, htmlDocument, parentDocument, internalList, undefined, undefined, undefined, originalDocument ); |
| 24 |
|
| 25 |
this.originalRange = originalRange; |
| 26 |
this.balancedRange = balancedRange; |
| 27 |
}; |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
OO.inheritClass( ve.dm.DocumentSlice, ve.dm.Document ); |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
ve.dm.DocumentSlice.prototype.getOriginalData = function () { |
| 36 |
return this.getData( this.originalRange ); |
| 37 |
}; |
| 38 |
|
| 39 |
ve.dm.DocumentSlice.prototype.getBalancedData = function () { |
| 40 |
return this.getData( this.balancedRange ); |
| 41 |
}; |