ReactOS 0.4.16-dev-983-g23ad936
|
#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 | NONAMELESSUNION |
#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 |
HANDLE | me_heap = NULL |
static struct paste_format | paste_formats [] |
#define MAX_PREFIX_LEN 9 |
Definition at line 3115 of file editor.c.
Referenced by editor_handle_message().
|
static |
Definition at line 2375 of file editor.c.
Referenced by editor_handle_message(), and ME_KeyDown().
|
static |
Definition at line 290 of file editor.c.
Referenced by copy_or_cut(), handle_enter(), handle_wm_char(), and paste_special().
|
static |
Definition at line 2325 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 2355 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 285 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 279 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 3256 of file editor.c.
Referenced by fnTextSrv_TxSendMessage().
void editor_set_cursor | ( | ME_TextEditor * | editor, |
int | x, | ||
int | y | ||
) |
Definition at line 2824 of file editor.c.
Referenced by fnTextSrv_OnTxSetCursor().
|
inlinestatic |
Definition at line 3104 of file editor.c.
Referenced by editor_handle_message().
|
static |
Definition at line 2139 of file editor.c.
Referenced by editor_handle_message().
|
static |
Definition at line 3195 of file editor.c.
Referenced by editor_handle_message().
|
static |
Definition at line 2416 of file editor.c.
Referenced by handle_wm_char(), and ME_KeyDown().
|
static |
Definition at line 2683 of file editor.c.
Referenced by editor_handle_message().
Definition at line 2262 of file editor.c.
Referenced by paste_special().
|
static |
Definition at line 1124 of file editor.c.
Referenced by ME_RTFReadPictGroup(), and paste_emf().
Definition at line 2819 of file editor.c.
Referenced by editor_set_cursor(), and link_notify().
Definition at line 4380 of file editor.c.
Referenced by ME_FindNextURLCandidate().
void link_notify | ( | ME_TextEditor * | editor, |
UINT | msg, | ||
WPARAM | wParam, | ||
LPARAM | lParam | ||
) |
Definition at line 3122 of file editor.c.
Referenced by editor_handle_message(), and fnTextSrv_OnTxSetCursor().
|
static |
Definition at line 402 of file editor.c.
Referenced by ME_RTFSpecialCharHook().
|
static |
Definition at line 2769 of file editor.c.
Referenced by editor_handle_message().
void ME_DestroyEditor | ( | ME_TextEditor * | editor | ) |
Definition at line 3066 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 4399 of file editor.c.
Referenced by ME_UpdateLinkAttribute().
|
static |
Definition at line 1844 of file editor.c.
Referenced by editor_handle_message().
|
static |
Definition at line 2872 of file editor.c.
Referenced by editor_handle_message(), and ME_ShowContextMenu().
|
static |
Definition at line 2087 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 4310 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 4498 of file editor.c.
Referenced by ME_UpdateLinkAttribute().
|
static |
Definition at line 2560 of file editor.c.
Referenced by editor_handle_message().
ME_TextEditor * ME_MakeEditor | ( | ITextHost * | texthost, |
BOOL | bEmulateVersion10 | ||
) |
Definition at line 2933 of file editor.c.
Referenced by create_text_services().
|
static |
Definition at line 259 of file editor.c.
Referenced by ME_MakeEditor().
|
static |
Definition at line 2185 of file editor.c.
Referenced by paste_rtf().
|
static |
|
static |
Definition at line 1816 of file editor.c.
Referenced by ME_StreamInRTFString().
Definition at line 3161 of file editor.c.
Referenced by editor_handle_message(), and ITextSelection_fnSetText().
Definition at line 428 of file editor.c.
Referenced by ControlClass().
Definition at line 559 of file editor.c.
Referenced by ControlClass().
Definition at line 1528 of file editor.c.
Referenced by ME_StreamIn().
Definition at line 1384 of file editor.c.
Referenced by ME_StreamIn().
Definition at line 1424 of file editor.c.
Referenced by ME_StreamIn().
Definition at line 1271 of file editor.c.
Referenced by ME_StreamIn().
Definition at line 1196 of file editor.c.
Referenced by ME_StreamIn().
Definition at line 946 of file editor.c.
Referenced by ControlClass(), and ME_StreamIn().
Definition at line 872 of file editor.c.
Referenced by ControlClass().
|
static |
Definition at line 3185 of file editor.c.
Referenced by editor_handle_message().
|
static |
Definition at line 2911 of file editor.c.
Referenced by editor_handle_message().
|
static |
Definition at line 1575 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 1566 of file editor.c.
Referenced by _RTFGetChar(), ME_StreamIn(), and ME_StreamInText().
|
static |
Definition at line 1829 of file editor.c.
Referenced by editor_handle_message().
|
static |
Definition at line 295 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 4547 of file editor.c.
Referenced by editor_handle_message(), ME_StreamIn(), and ME_UpdateSelectionLinkAttribute().
|
static |
Definition at line 2391 of file editor.c.
Referenced by editor_handle_message(), handle_enter(), handle_wm_char(), ME_KeyDown(), and ME_ReplaceSel().
|
static |
Definition at line 2232 of file editor.c.
|
static |
Definition at line 2202 of file editor.c.
|
static |
Definition at line 2278 of file editor.c.
Referenced by editor_handle_message(), and ME_KeyDown().
|
static |
Definition at line 2217 of file editor.c.
Definition at line 1225 of file editor.c.
Referenced by ME_RTFReadPictGroup().
int set_selection | ( | ME_TextEditor * | editor, |
int | to, | ||
int | from | ||
) |
WINE_DEFAULT_DEBUG_CHANNEL | ( | richedit | ) |
Definition at line 255 of file editor.c.
Referenced by DllMain(), and editor_set_cursor().
Definition at line 256 of file editor.c.
Referenced by draw_paragraph().
|
static |
Referenced by init_paste_formats(), and paste_special().