ReactOS 0.4.16-dev-122-g325d74c
|
#include "editor.h"
Go to the source code of this file.
|
static |
Definition at line 72 of file undo.c.
Referenced by add_undo_delete_run(), add_undo_insert_run(), add_undo_join_paras(), add_undo_set_char_fmt(), add_undo_set_para_fmt(), add_undo_split_para(), ME_CommitCoalescingUndo(), ME_CommitUndo(), ME_Redo(), and ME_Undo().
BOOL add_undo_delete_run | ( | ME_TextEditor * | editor, |
int | pos, | ||
int | len | ||
) |
Definition at line 204 of file undo.c.
Referenced by ME_InsertRunAtCursor().
BOOL add_undo_insert_run | ( | ME_TextEditor * | editor, |
int | pos, | ||
const WCHAR * | str, | ||
int | len, | ||
int | flags, | ||
ME_Style * | style | ||
) |
Definition at line 131 of file undo.c.
Referenced by ME_InternalDeleteText().
BOOL add_undo_join_paras | ( | ME_TextEditor * | editor, |
int | pos | ||
) |
BOOL add_undo_set_char_fmt | ( | ME_TextEditor * | editor, |
int | pos, | ||
int | len, | ||
const CHARFORMAT2W * | fmt | ||
) |
Definition at line 164 of file undo.c.
Referenced by ME_SetCharFormat().
BOOL add_undo_set_para_fmt | ( | ME_TextEditor * | editor, |
const ME_Paragraph * | para | ||
) |
Definition at line 152 of file undo.c.
Referenced by ME_JoinParagraphs(), ME_PlayUndoItem(), and ME_SetParaFormat().
BOOL add_undo_split_para | ( | ME_TextEditor * | editor, |
const ME_Paragraph * | para, | ||
ME_String * | eol_str, | ||
const ME_Cell * | cell | ||
) |
Definition at line 185 of file undo.c.
Referenced by ME_JoinParagraphs().
Definition at line 25 of file undo.c.
Referenced by add_undo(), empty_redo_stack(), ME_ContinueCoalescingTransaction(), ME_EmptyUndoStack(), ME_Redo(), and ME_Undo().
|
static |
Definition at line 43 of file undo.c.
Referenced by add_undo(), and ME_EmptyUndoStack().
void ME_CommitCoalescingUndo | ( | ME_TextEditor * | editor | ) |
Commits preceding changes into a undo transaction that can be expanded.
This function allows the transaction to be reopened with ME_ContinueCoalescingTransaction in order to continue the transaction. If an undo item is added to the undo stack as a result of a change without the transaction being reopened, then the transaction will be ended, and the changes will become a part of the next transaction.
This is used to allow typed characters to be grouped together since each typed character results in a single event, and each event adding undo items must be committed. Using this function as opposed to ME_CommitUndo allows multiple events to be grouped, and undone together.
Definition at line 301 of file undo.c.
Referenced by handle_enter(), ME_Char(), and ME_KeyDown().
void ME_CommitUndo | ( | ME_TextEditor * | editor | ) |
Commits preceding changes into a transaction that can be undone together.
This should be called after all the changes occur associated with an event so that the group of changes can be undone atomically as a transaction.
This will have no effect the undo mode is set to ignore changes, or if no changes preceded calling this function before the last time it was called.
This can also be used to conclude a coalescing transaction (used for grouping typed characters).
Definition at line 227 of file undo.c.
Referenced by copy_or_cut(), handle_EM_SETCHARFORMAT(), handle_enter(), IRichEditOle_fnInsertObject(), ME_Char(), ME_HandleMessage(), ME_KeyDown(), ME_ReplaceSel(), ME_StreamIn(), ME_WmCreate(), and paste_emf().
void ME_ContinueCoalescingTransaction | ( | ME_TextEditor * | editor | ) |
Groups subsequent changes with previous ones for an undo if coalescing.
Has no effect if the previous changes were followed by a ME_CommitUndo. This function will only have an affect if the previous changes were followed by a call to ME_CommitCoalescingUndo, which allows the transaction to be continued.
This allows multiple consecutively typed characters to be grouped together to be undone by a single undo operation.
Definition at line 265 of file undo.c.
Referenced by handle_enter(), ME_Char(), and ME_KeyDown().
void ME_EmptyUndoStack | ( | ME_TextEditor * | editor | ) |
Definition at line 53 of file undo.c.
Referenced by add_undo_insert_run(), fnTextSrv_TxSetText(), ME_DestroyEditor(), ME_HandleMessage(), ME_ReplaceSel(), and ME_StreamIn().
|
static |
Definition at line 323 of file undo.c.
BOOL ME_Redo | ( | ME_TextEditor * | editor | ) |
Definition at line 453 of file undo.c.
Referenced by ME_HandleMessage(), and ME_KeyDown().
BOOL ME_Undo | ( | ME_TextEditor * | editor | ) |
Definition at line 414 of file undo.c.
Referenced by ME_HandleMessage(), and ME_KeyDown().
WINE_DEFAULT_DEBUG_CHANNEL | ( | richedit | ) |