EditOperation

edit operation details for EditableContent

Constructors

this
this(EditAction action)
Undocumented in source.
this
this(EditAction action, TextPosition pos, dstring text)
Undocumented in source.
this
this(EditAction action, TextRange range, dstring text)
Undocumented in source.
this
this(EditAction action, TextRange range, dstring[] text)
Undocumented in source.

Members

Functions

merge
bool merge(EditOperation op)

try to merge two operations (simple entering of characters in the same line), return true if succeded

modified
void modified(bool all)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

action
EditAction action [@property getter]

action performed

content
dstring[] content [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isInsertNewLine
bool isInsertNewLine [@property getter]

return true if it's insert new line operation

newRange
TextRange newRange [@property getter]

new range after operation applied

newRange
TextRange newRange [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
oldContent
dstring[] oldContent [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
oldContent
dstring[] oldContent [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
oldEditMarks
EditStateMark[] oldEditMarks [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
oldEditMarks
EditStateMark[] oldEditMarks [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
range
TextRange range [@property getter]

source range to replace with new content

singleChar
dchar singleChar [@property getter]

if new content is single char, return it, otherwise return 0

Variables

_action
EditAction _action;
Undocumented in source.
_content
dstring[] _content;

new content for range (if required for this action)

_newRange
TextRange _newRange;
Undocumented in source.
_oldContent
dstring[] _oldContent;

old content for range

_oldEditMarks
EditStateMark[] _oldEditMarks;

line edit marks for old range

_range
TextRange _range;
Undocumented in source.

Meta