Class EditOperation
edit operation details for EditableContent
Inherits from
-
Object
(base class)
Constructors
Name | Description |
---|---|
this
|
|
this
|
|
this
|
|
this
|
Fields
Name | Type | Description |
---|---|---|
_action
|
EditAction |
|
_content
|
dstring[] |
new content for range (if required for this action )
|
_newRange
|
TextRange |
|
_oldContent
|
dstring[] |
old content for range
|
_oldEditMarks
|
EditStateMark[] |
line edit marks for old range
|
_range
|
TextRange |
Properties
Name | Type | Description |
---|---|---|
action
[get]
|
EditAction |
action performed
|
content
[get]
|
dstring[] |
|
isInsertNewLine
[get]
|
bool |
return true if it's insert new line operation |
newRange
[get]
|
TextRange |
new range after operation applied
|
newRange
[set]
|
TextRange |
|
oldContent
[get]
|
dstring[] |
|
oldContent
[set]
|
dstring[] |
|
oldEditMarks
[get]
|
EditStateMark[] |
|
oldEditMarks
[set]
|
EditStateMark[] |
|
range
[get]
|
TextRange |
source range to replace with new content
|
singleChar
[get]
|
dchar |
if new content is single char, return it, otherwise return 0
|
Methods
Name | Description |
---|---|
merge
|
try to merge two operations (simple entering of characters in the same line), return true if succeded
|
modified
|
Authors
Vadim Lopatin, coolreader.org@gmail.com
Copyright
Vadim Lopatin, 2014
License
Boost License 1.0