Implements a part of a command.
See also
Constructor. |
|
Replaces the buffer paragraphs with the given fragment. |
|
Calculate arrays for refresh optimization. |
|
Performs the action. |
|
Returns the attributes, for single-object commands. |
|
Returns the container that this action refers to, using the container address and top-level buffer. |
|
Returns the address (nested position) of the container within the buffer being manipulated. |
|
Returns |
|
Returns the action name. |
|
Returns the new fragments. |
|
Returns the object to replace the one at the position defined by the container address and the action’s range start position. |
|
Returns the old fragments. |
|
Returns the position used for e.g. |
|
Returns the range for e.g. |
|
Makes an address from the given object. |
|
Sets the address (nested position) of the container within the buffer being manipulated. |
|
Instructs the first |
|
Sets the object to replace the one at the position defined by the container address and the action’s range start position. |
|
Sets the existing and new objects, for use with |
|
Sets the position used for e.g. |
|
Sets the range for e.g. |
|
Stores the object to replace the one at the position defined by the container address without making an address for it. |
|
Undoes the action. |
|
Updates the control appearance, optimizing if possible given information from the call to Layout. |
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
Possible constructors:
RichTextAction(cmd, name, id, buffer, container, ctrl,
ignoreFirstTime=False)
Implements a part of a command.
Constructor.
buffer is the top-level buffer, while container is the object within which the action is taking place. In the simplest case, they are the same.
cmd (wx.richtext.RichTextCommand) –
name (string) –
id (RichTextCommandId) –
buffer (wx.richtext.RichTextBuffer) –
container (wx.richtext.RichTextParagraphLayoutBox) –
ctrl (wx.richtext.RichTextCtrl) –
ignoreFirstTime (bool) –
Replaces the buffer paragraphs with the given fragment.
fragment (wx.richtext.RichTextParagraphLayoutBox) –
Calculate arrays for refresh optimization.
optimizationLineCharPositions (list of integers) –
optimizationLineYPositions (list of integers) –
Performs the action.
bool
Returns the attributes, for single-object commands.
Returns the container that this action refers to, using the container address and top-level buffer.
Returns the address (nested position) of the container within the buffer being manipulated.
Returns True
if the first Do
command should be skipped as it’s already been applied.
bool
Returns the action name.
string
Returns the new fragments.
Returns the object to replace the one at the position defined by the container address and the action’s range start position.
Returns the old fragments.
Returns the position used for e.g.
insertion.
long
Returns the range for e.g.
deletion.
Makes an address from the given object.
obj (wx.richtext.RichTextObject) –
Sets the address (nested position) of the container within the buffer being manipulated.
SetContainerAddress (self, address)
address (wx.richtext.RichTextObjectAddress) –
SetContainerAddress (self, container, obj)
container (wx.richtext.RichTextParagraphLayoutBox) –
obj (wx.richtext.RichTextObject) –
Instructs the first Do
command should be skipped as it’s already been applied.
b (bool) –
Sets the object to replace the one at the position defined by the container address and the action’s range start position.
obj (wx.richtext.RichTextObject) –
Sets the existing and new objects, for use with wx.richtext.RICHTEXT_CHANGE_OBJECT
.
oldObj (wx.richtext.RichTextObject) –
newObj (wx.richtext.RichTextObject) –
Sets the position used for e.g.
insertion.
pos (long) –
Sets the range for e.g.
deletion.
range (wx.richtext.RichTextRange) –
Stores the object to replace the one at the position defined by the container address without making an address for it.
obj (wx.richtext.RichTextObject) –
See also
SetObject
, MakeObject
).
Undoes the action.
bool
Updates the control appearance, optimizing if possible given information from the call to Layout.
caretPosition (long) –
sendUpdateEvent (bool) –
optimizationLineCharPositions (list of integers) –
optimizationLineYPositions (list of integers) –
isDoCmd (bool) –
See GetAttributes
See GetContainer
See GetIgnoreFirstTime
and SetIgnoreFirstTime
See GetNewParagraphs
See GetOldParagraphs
See GetPosition
and SetPosition