ReactOS 0.4.16-dev-1520-gb558596
|
#include "editor.h"
#include "commdlg.h"
#include "winreg.h"
#include "shlwapi.h"
#include "rtf.h"
#include "imm.h"
#include "res.h"
Go to the source code of this file.
Classes | |
struct | tagME_RTFStringStreamStruct |
struct | tagME_GlobalDestStruct |
struct | paste_format |
Macros | |
#define | NO_SHLWAPI_STREAM |
#define | STACK_SIZE_DEFAULT 100 |
#define | STACK_SIZE_MAX 1000 |
#define | TEXT_LIMIT_DEFAULT 32767 |
#define | UNSUPPORTED_MSG(e) |
#define | MAX_PREFIX_LEN 9 |
#define | X(str) str, ARRAY_SIZE(str) - 1 |
Typedefs | |
typedef struct tagME_RTFStringStreamStruct | ME_RTFStringStreamStruct |
typedef struct tagME_GlobalDestStruct | ME_GlobalDestStruct |
Variables | |
HINSTANCE | dll_instance = NULL |
BOOL | me_debug = FALSE |
static struct paste_format | paste_formats [] |
#define MAX_PREFIX_LEN 9 |
Definition at line 3126 of file editor.c.
Referenced by editor_handle_message().
|
static |
Definition at line 2382 of file editor.c.
Referenced by editor_handle_message(), and ME_KeyDown().
|
static |
Definition at line 287 of file editor.c.
Referenced by copy_or_cut(), handle_enter(), handle_wm_char(), and paste_special().
|
static |
Definition at line 2332 of file editor.c.
Referenced by editor_copy_or_cut().
HRESULT editor_copy_or_cut | ( | ME_TextEditor * | editor, |
BOOL | cut, | ||
ME_Cursor * | start, | ||
int | count, | ||
IDataObject ** | data_out | ||
) |
Definition at line 2362 of file editor.c.
Referenced by copy_or_cut(), and textrange_copy_or_cut().
ME_Paragraph * editor_end_para | ( | ME_TextEditor * | editor | ) |
Definition at line 282 of file editor.c.
Referenced by editor_handle_message(), editor_mark_rewrap_all(), ME_ArrowPageDown(), ME_GetTextW(), ME_InvalidateSelection(), and ME_SetCursorToEnd().
ME_Paragraph * editor_first_para | ( | ME_TextEditor * | editor | ) |
Definition at line 276 of file editor.c.
Referenced by cursor_from_char_ofs(), cursor_from_virtual_coords(), editor_draw(), editor_handle_message(), editor_mark_rewrap_all(), handle_enter(), ME_ArrowPageUp(), ME_InvalidateSelection(), ME_SetCursorToStart(), row_from_row_number(), and row_number_from_char_ofs().
LRESULT editor_handle_message | ( | ME_TextEditor * | editor, |
UINT | msg, | ||
WPARAM | wParam, | ||
LPARAM | lParam, | ||
HRESULT * | phresult | ||
) |
Definition at line 3266 of file editor.c.
Referenced by fnTextSrv_TxSendMessage().
void editor_set_cursor | ( | ME_TextEditor * | editor, |
int | x, | ||
int | y | ||
) |
Definition at line 2831 of file editor.c.
Referenced by fnTextSrv_OnTxSetCursor().
|
inlinestatic |
Definition at line 3115 of file editor.c.
Referenced by editor_handle_message().
|
static |
Definition at line 2144 of file editor.c.
Referenced by editor_handle_message().
|
static |
Definition at line 3205 of file editor.c.
Referenced by editor_handle_message().
|
static |
Definition at line 2423 of file editor.c.
Referenced by handle_wm_char(), and ME_KeyDown().
|
static |
Definition at line 2690 of file editor.c.
Referenced by editor_handle_message().
Definition at line 2269 of file editor.c.
Referenced by paste_special().
|
static |
Definition at line 1121 of file editor.c.
Referenced by ME_RTFReadPictGroup(), and paste_emf().
Definition at line 2826 of file editor.c.
Referenced by editor_set_cursor(), and link_notify().
Definition at line 4391 of file editor.c.
Referenced by ME_FindNextURLCandidate().
void link_notify | ( | ME_TextEditor * | editor, |
UINT | msg, | ||
WPARAM | wParam, | ||
LPARAM | lParam | ||
) |
Definition at line 3133 of file editor.c.
Referenced by editor_handle_message(), and fnTextSrv_OnTxSetCursor().
|
static |
Definition at line 399 of file editor.c.
Referenced by ME_RTFSpecialCharHook().
|
static |
Definition at line 2776 of file editor.c.
Referenced by editor_handle_message().
void ME_DestroyEditor | ( | ME_TextEditor * | editor | ) |
Definition at line 3077 of file editor.c.
Referenced by ITextServicesImpl_Release().
|
static |
This proc takes a selection, and scans it forward in order to select the span of a possible URL candidate. A possible URL candidate must start with isalnum or one of the following special characters: *|/+%#@ and must consist entirely of the characters allowed to start the URL, plus : (colon) which may occur at most once, and not at either end.
Definition at line 4410 of file editor.c.
Referenced by ME_UpdateLinkAttribute().
|
static |
Definition at line 1849 of file editor.c.
Referenced by editor_handle_message().
|
static |
Definition at line 2875 of file editor.c.
Referenced by editor_handle_message(), and ME_ShowContextMenu().
|
static |
Definition at line 2092 of file editor.c.
Referenced by editor_handle_message().
int ME_GetTextW | ( | ME_TextEditor * | editor, |
WCHAR * | buffer, | ||
int | buflen, | ||
const ME_Cursor * | start, | ||
int | srcChars, | ||
BOOL | bCRLF, | ||
BOOL | bEOP | ||
) |
Definition at line 4325 of file editor.c.
Referenced by fnTextSrv_TxGetText(), get_text_range(), get_unicode_text(), ITextRange_fnGetText(), ITextSelection_fnGetText(), ME_GetTextEx(), ME_IsCandidateAnURL(), ME_StreamIn(), and range_GetChar().
|
static |
This proc evaluates the selection and returns TRUE if it can be considered an URL
Definition at line 4509 of file editor.c.
Referenced by ME_UpdateLinkAttribute().
|
static |
Definition at line 2567 of file editor.c.
Referenced by editor_handle_message().
ME_TextEditor * ME_MakeEditor | ( | ITextHost * | texthost, |
BOOL | bEmulateVersion10 | ||
) |
Definition at line 2936 of file editor.c.
Referenced by create_text_services().
|
static |
Definition at line 256 of file editor.c.
Referenced by ME_MakeEditor().
|
static |
Definition at line 2192 of file editor.c.
Referenced by paste_rtf().
|
static |
|
static |
Definition at line 1821 of file editor.c.
Referenced by ME_StreamInRTFString().
Definition at line 3170 of file editor.c.
Referenced by editor_handle_message(), and ITextSelection_fnSetText().
Definition at line 425 of file editor.c.
Referenced by ControlClass().
Definition at line 556 of file editor.c.
Referenced by ControlClass().
Definition at line 1524 of file editor.c.
Referenced by ME_StreamIn().
Definition at line 1380 of file editor.c.
Referenced by ME_StreamIn().
Definition at line 1420 of file editor.c.
Referenced by ME_StreamIn().
Definition at line 1267 of file editor.c.
Referenced by ME_StreamIn().
Definition at line 1192 of file editor.c.
Referenced by ME_StreamIn().
Definition at line 943 of file editor.c.
Referenced by ControlClass(), and ME_StreamIn().
Definition at line 869 of file editor.c.
Referenced by ControlClass().
|
static |
Definition at line 3195 of file editor.c.
Referenced by editor_handle_message().
|
static |
Definition at line 2914 of file editor.c.
Referenced by editor_handle_message().
|
static |
Definition at line 1571 of file editor.c.
Referenced by editor_handle_message(), ME_StreamInRTFString(), paste_rtf(), and paste_text().
void ME_StreamInFill | ( | ME_InStream * | stream | ) |
Definition at line 1562 of file editor.c.
Referenced by _RTFGetChar(), ME_StreamIn(), and ME_StreamInText().
|
static |
Definition at line 1834 of file editor.c.
Referenced by editor_handle_message().
|
static |
Definition at line 292 of file editor.c.
Referenced by ME_StreamIn().
|
static |
This proc walks through the indicated selection and evaluates whether each section identified by ME_FindNextURLCandidate and in-between sections have their proper CFE_LINK attributes set or unset. If the CFE_LINK attribute is not what it is supposed to be, this proc sets or unsets it as appropriate.
Since this function can cause runs to be split, do not depend on the value of the start cursor at the end of the function.
nChars may be set to INT_MAX to update to the end of the text.
Returns TRUE if at least one section was modified.
Definition at line 4562 of file editor.c.
Referenced by editor_handle_message(), ME_StreamIn(), and ME_UpdateSelectionLinkAttribute().
|
static |
Definition at line 2398 of file editor.c.
Referenced by editor_handle_message(), handle_enter(), handle_wm_char(), ME_KeyDown(), and ME_ReplaceSel().
|
static |
Definition at line 2239 of file editor.c.
|
static |
Definition at line 2209 of file editor.c.
|
static |
Definition at line 2285 of file editor.c.
Referenced by editor_handle_message(), and ME_KeyDown().
|
static |
Definition at line 2224 of file editor.c.
Definition at line 1221 of file editor.c.
Referenced by ME_RTFReadPictGroup().
int set_selection | ( | ME_TextEditor * | editor, |
int | to, | ||
int | from | ||
) |
Definition at line 2151 of file editor.c.
WINE_DEFAULT_DEBUG_CHANNEL | ( | richedit | ) |
Definition at line 253 of file editor.c.
Referenced by DllMain(), and editor_set_cursor().
Definition at line 254 of file editor.c.
Referenced by draw_paragraph().
|
static |
Referenced by init_paste_formats(), and paste_special().