ReactOS 0.4.15-dev-8102-g108db8f
|
#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 |
Typedefs | |
typedef struct tagME_RTFStringStreamStruct | ME_RTFStringStreamStruct |
typedef struct tagME_GlobalDestStruct | ME_GlobalDestStruct |
Variables | |
static const WCHAR | REListBox20W [] = {'R','E','L','i','s','t','B','o','x','2','0','W', 0} |
static const WCHAR | REComboBox20W [] = {'R','E','C','o','m','b','o','B','o','x','2','0','W', 0} |
static HCURSOR | hLeft |
BOOL | me_debug = FALSE |
HANDLE | me_heap = NULL |
static BOOL | ME_ListBoxRegistered = FALSE |
static BOOL | ME_ComboBoxRegistered = FALSE |
static const WCHAR | rtfW [] = {'R','i','c','h',' ','T','e','x','t',' ','F','o','r','m','a','t',0} |
static struct paste_format | paste_formats [] |
static const char *const | edit_messages [] |
static const char *const | richedit_messages [] |
#define MAX_PREFIX_LEN 9 |
Definition at line 3280 of file editor.c.
Referenced by ME_HandleMessage().
|
static |
Definition at line 2364 of file editor.c.
Referenced by ME_HandleMessage(), and ME_KeyDown().
|
static |
Definition at line 4994 of file editor.c.
Referenced by RichEdit10ANSIWndProc(), and RichEditWndProc_common().
Definition at line 3238 of file editor.c.
|
inlinestatic |
Definition at line 3414 of file editor.c.
Referenced by REComboWndProc(), REListWndProc(), and RichEditWndProc_common().
|
static |
Definition at line 3543 of file editor.c.
Referenced by ME_HandleMessage().
|
static |
Definition at line 2438 of file editor.c.
Referenced by ME_Char(), and ME_KeyDown().
Definition at line 2276 of file editor.c.
Referenced by paste_special().
|
static |
Definition at line 1127 of file editor.c.
Referenced by ME_RTFReadPictGroup(), and paste_emf().
Definition at line 2892 of file editor.c.
Referenced by ME_LinkNotify(), and ME_SetCursor().
Definition at line 5368 of file editor.c.
Referenced by ME_FindNextURLCandidate().
|
static |
Definition at line 399 of file editor.c.
Referenced by ME_RTFSpecialCharHook().
|
static |
Definition at line 2842 of file editor.c.
Referenced by ME_HandleMessage().
|
static |
Definition at line 2745 of file editor.c.
Referenced by ME_HandleMessage().
|
static |
Definition at line 2340 of file editor.c.
Referenced by copy_or_cut().
void ME_DestroyEditor | ( | ME_TextEditor * | editor | ) |
Definition at line 3194 of file editor.c.
Referenced by ITextServicesImpl_Release(), and ME_HandleMessage().
|
static |
Definition at line 2390 of file editor.c.
Referenced by ME_HandleMessage().
|
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 5387 of file editor.c.
Referenced by ME_UpdateLinkAttribute().
|
static |
Definition at line 1856 of file editor.c.
Referenced by ME_HandleMessage().
|
static |
Definition at line 2997 of file editor.c.
Referenced by ME_HandleMessage(), and ME_ShowContextMenu().
|
static |
Definition at line 2088 of file editor.c.
Referenced by ME_HandleMessage().
|
static |
Definition at line 2140 of file editor.c.
Referenced by ME_HandleMessage().
int ME_GetTextW | ( | ME_TextEditor * | editor, |
WCHAR * | buffer, | ||
int | buflen, | ||
const ME_Cursor * | start, | ||
int | srcChars, | ||
BOOL | bCRLF, | ||
BOOL | bEOP | ||
) |
Definition at line 5192 of file editor.c.
Referenced by fnTextSrv_TxGetText(), get_unicode_text(), ITextRange_fnGetText(), ITextSelection_fnGetText(), ME_GetTextEx(), ME_GetTextRange(), ME_IsCandidateAnURL(), ME_StreamIn(), and range_GetChar().
LRESULT ME_HandleMessage | ( | ME_TextEditor * | editor, |
UINT | msg, | ||
WPARAM | wParam, | ||
LPARAM | lParam, | ||
BOOL | unicode, | ||
HRESULT * | phresult | ||
) |
Definition at line 3604 of file editor.c.
Referenced by fnTextSrv_TxSendMessage(), and RichEditWndProc_common().
|
static |
This proc evaluates the selection and returns TRUE if it can be considered an URL
Definition at line 5486 of file editor.c.
Referenced by ME_UpdateLinkAttribute().
|
static |
Definition at line 2614 of file editor.c.
Referenced by ME_HandleMessage().
|
static |
Definition at line 3423 of file editor.c.
Referenced by ME_HandleMessage().
ME_TextEditor * ME_MakeEditor | ( | ITextHost * | texthost, |
BOOL | bEmulateVersion10 | ||
) |
Definition at line 3056 of file editor.c.
Referenced by create_windowed_editor(), and CreateTextServices().
|
static |
Definition at line 271 of file editor.c.
Referenced by ME_MakeEditor().
|
static |
Definition at line 2197 of file editor.c.
Referenced by paste_rtf().
|
static |
|
static |
Definition at line 1828 of file editor.c.
Referenced by ME_StreamInRTFString().
Definition at line 5253 of file editor.c.
Referenced by DllMain().
Definition at line 3463 of file editor.c.
Referenced by ITextSelection_fnSetText(), and ME_HandleMessage().
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 1538 of file editor.c.
Referenced by ME_StreamIn().
Definition at line 1394 of file editor.c.
Referenced by ME_StreamIn().
Definition at line 1434 of file editor.c.
Referenced by ME_StreamIn().
Definition at line 1281 of file editor.c.
Referenced by ME_StreamIn().
Definition at line 1206 of file editor.c.
Referenced by ME_StreamIn().
Definition at line 948 of file editor.c.
Referenced by ControlClass(), and ME_StreamIn().
Definition at line 874 of file editor.c.
Referenced by ControlClass().
void ME_SendOldNotify | ( | ME_TextEditor * | editor, |
int | nCode | ||
) |
Definition at line 5175 of file editor.c.
Referenced by ME_HandleMessage(), ME_UpdateRepaint(), and RichEditWndProc_common().
|
static |
Definition at line 2897 of file editor.c.
Referenced by ME_HandleMessage().
|
static |
Definition at line 2989 of file editor.c.
Referenced by ME_HandleMessage(), and ME_WmCreate().
|
static |
Definition at line 3487 of file editor.c.
Referenced by ME_HandleMessage(), and ME_WmCreate().
|
static |
Definition at line 3038 of file editor.c.
Referenced by ME_HandleMessage().
|
static |
Definition at line 1585 of file editor.c.
Referenced by ME_HandleMessage(), ME_StreamInRTFString(), paste_rtf(), and paste_text().
void ME_StreamInFill | ( | ME_InStream * | stream | ) |
Definition at line 1576 of file editor.c.
Referenced by _RTFGetChar(), ME_StreamIn(), and ME_StreamInText().
|
static |
Definition at line 1841 of file editor.c.
Referenced by ME_HandleMessage().
|
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 5533 of file editor.c.
Referenced by ME_HandleMessage(), ME_StreamIn(), and ME_UpdateSelectionLinkAttribute().
|
static |
Definition at line 2410 of file editor.c.
Referenced by handle_enter(), ME_Char(), ME_HandleMessage(), ME_KeyDown(), and ME_ReplaceSel().
|
static |
Definition at line 3497 of file editor.c.
Referenced by ME_HandleMessage().
|
static |
Definition at line 2246 of file editor.c.
|
static |
Definition at line 2216 of file editor.c.
|
static |
Definition at line 2292 of file editor.c.
Referenced by ME_HandleMessage(), and ME_KeyDown().
|
static |
Definition at line 2231 of file editor.c.
Definition at line 1235 of file editor.c.
Referenced by ME_RTFReadPictGroup().
Definition at line 5301 of file editor.c.
Referenced by REExtendedRegisterClass().
Definition at line 5321 of file editor.c.
Definition at line 5308 of file editor.c.
Referenced by REExtendedRegisterClass().
Definition at line 5163 of file editor.c.
Referenced by RICHED32_Register().
Definition at line 5155 of file editor.c.
Referenced by RichEdit10ANSIWndProc().
|
static |
Definition at line 5018 of file editor.c.
Referenced by RichEditWndProcA(), and RichEditWndProcW().
Definition at line 5147 of file editor.c.
Referenced by ME_RegisterEditorClass(), and RichEditANSIWndProc().
Definition at line 5136 of file editor.c.
Referenced by ME_RegisterEditorClass().
int set_selection | ( | ME_TextEditor * | editor, |
int | to, | ||
int | from | ||
) |
WINE_DEFAULT_DEBUG_CHANNEL | ( | richedit | ) |
Definition at line 3287 of file editor.c.
Referenced by get_msg_name().
|
static |
Definition at line 258 of file editor.c.
Referenced by DllMain(), and ME_SetCursor().
Definition at line 264 of file editor.c.
Referenced by DllMain(), and REExtendedRegisterClass().
Definition at line 260 of file editor.c.
Referenced by ME_DrawParagraph().
Definition at line 263 of file editor.c.
Referenced by DllMain(), and REExtendedRegisterClass().
|
static |
Referenced by init_paste_formats(), and paste_special().
Definition at line 257 of file editor.c.
Referenced by DllMain(), and REExtendedRegisterClass().
Definition at line 256 of file editor.c.
Referenced by DllMain(), and REExtendedRegisterClass().
Definition at line 3332 of file editor.c.
Referenced by get_msg_name().