ReactOS 0.4.15-dev-7918-g2a2556c
|
#include "config.h"
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "imm.h"
#include "usp10.h"
#include "commctrl.h"
#include "uxtheme.h"
#include "vsstyle.h"
#include "wine/unicode.h"
#include "wine/debug.h"
#include "wine/heap.h"
Go to the source code of this file.
Classes | |
struct | tagLINEDEF |
struct | EDITSTATE |
Macros | |
#define | BUFLIMIT_INITIAL 30000 /* initial buffer size */ |
#define | GROWLENGTH 32 /* buffers granularity in bytes: must be power of 2 */ |
#define | ROUND_TO_GROW(size) (((size) + (GROWLENGTH - 1)) & ~(GROWLENGTH - 1)) |
#define | HSCROLL_FRACTION 3 /* scroll window by 1/3 width */ |
#define | EF_MODIFIED 0x0001 /* text has been modified */ |
#define | EF_FOCUSED 0x0002 /* we have input focus */ |
#define | EF_UPDATE 0x0004 /* notify parent of changed state */ |
#define | EF_VSCROLL_TRACK 0x0008 /* don't SetScrollPos() since we are tracking the thumb */ |
#define | EF_HSCROLL_TRACK 0x0010 /* don't SetScrollPos() since we are tracking the thumb */ |
#define | EF_AFTER_WRAP |
#define | EF_USE_SOFTBRK 0x0100 /* Enable soft breaks in text. */ |
#define | EF_DIALOGMODE 0x0200 /* Indicates that we are inside a dialog window */ |
#define | ID_CB_LISTBOX 1000 |
#define | SWAP_UINT32(x, y) do { UINT temp = (UINT)(x); (x) = (UINT)(y); (y) = temp; } while(0) |
#define | ORDER_UINT(x, y) do { if ((UINT)(y) < (UINT)(x)) SWAP_UINT32((x),(y)); } while(0) |
Typedefs | |
typedef struct tagLINEDEF | LINEDEF |
Enumerations | |
enum | LINE_END { END_0 = 0 , END_WRAP , END_HARD , END_SOFT , END_RICH , END_0 = 0 , END_WRAP , END_HARD , END_SOFT , END_RICH } |
#define EF_AFTER_WRAP |
#define EF_HSCROLL_TRACK 0x0010 /* don't SetScrollPos() since we are tracking the thumb */ |
#define EF_VSCROLL_TRACK 0x0008 /* don't SetScrollPos() since we are tracking the thumb */ |
#define ROUND_TO_GROW | ( | size | ) | (((size) + (GROWLENGTH - 1)) & ~(GROWLENGTH - 1)) |
typedef struct tagLINEDEF LINEDEF |
Definition at line 2261 of file edit.c.
Referenced by EDIT_EM_SetMargins(), and EDIT_SetRectNP().
|
static |
Definition at line 431 of file edit.c.
Referenced by EDIT_AdjustFormatRect(), EDIT_EM_ReplaceSel(), EDIT_EM_SetHandle(), EDIT_EM_SetWordBreakProc(), and EDIT_WM_SetFont().
Definition at line 763 of file edit.c.
Referenced by EDIT_EM_ReplaceSel(), and EDIT_WM_SetFont().
|
static |
Definition at line 296 of file edit.c.
Referenced by EDIT_BuildLineDefs_ML(), EDIT_MoveWordBackward(), EDIT_MoveWordForward(), and EDIT_WM_LButtonDblClk().
Definition at line 786 of file edit.c.
Referenced by EDIT_EM_CharFromPos(), EDIT_MoveDown_ML(), EDIT_MoveEnd(), EDIT_MoveHome(), EDIT_MovePageDown_ML(), EDIT_MovePageUp_ML(), EDIT_MoveUp_ML(), EDIT_WM_LButtonDown(), and EDIT_WM_MouseMove().
Definition at line 3256 of file edit.c.
Referenced by EDIT_WM_KeyDown(), and EDIT_WM_SysKeyDown().
Definition at line 3142 of file edit.c.
Referenced by EDIT_WM_ContextMenu().
Definition at line 183 of file edit.c.
Referenced by EDIT_WindowProc(), EDIT_WM_ContextMenu(), EDIT_WM_SysKeyDown(), and EditWndProc_common().
Definition at line 2356 of file edit.c.
Referenced by EDIT_WindowProc().
Definition at line 194 of file edit.c.
Referenced by EDIT_EM_ReplaceSel(), EDIT_EM_SetHandle(), EDIT_EM_Undo(), EDIT_WindowProc(), EDIT_WM_Create(), and EditWndProc_common().
Definition at line 2384 of file edit.c.
Referenced by EDIT_WindowProc(), and EditWndProc_common().
Definition at line 2406 of file edit.c.
Referenced by EDIT_WindowProc(), and EditWndProc_common().
Definition at line 2426 of file edit.c.
Referenced by EDIT_WindowProc(), and EditWndProc_common().
Definition at line 2464 of file edit.c.
Referenced by EDIT_WindowProc(), and EditWndProc_common().
Definition at line 4260 of file edit.c.
Referenced by EDIT_WindowProc(), and EditWndProc_common().
Definition at line 915 of file edit.c.
Referenced by EDIT_EM_CharFromPos(), EDIT_EM_LineLength(), EDIT_EM_PosFromChar(), EDIT_EM_ScrollCaret(), EDIT_ML_InvalidateText(), EDIT_MoveWordBackward(), EDIT_MoveWordForward(), EDIT_WindowProc(), EDIT_WM_LButtonDblClk(), and EditWndProc_common().
Definition at line 944 of file edit.c.
Referenced by EDIT_EM_GetLine(), EDIT_EM_LineLength(), EDIT_EM_PosFromChar(), EDIT_ML_InvalidateText(), EDIT_MoveWordBackward(), EDIT_MoveWordForward(), EDIT_PaintLine(), EDIT_PaintText(), EDIT_WindowProc(), EDIT_WM_LButtonDblClk(), and EditWndProc_common().
Definition at line 979 of file edit.c.
Referenced by EDIT_EM_GetLine(), EDIT_EM_LineLength(), EDIT_ML_InvalidateText(), EDIT_MoveWordBackward(), EDIT_MoveWordForward(), EDIT_PaintLine(), EDIT_WindowProc(), EDIT_WM_LButtonDblClk(), and EditWndProc_common().
Definition at line 1655 of file edit.c.
Referenced by EDIT_EM_Scroll(), EDIT_WindowProc(), EDIT_WM_VScroll(), and EditWndProc_common().
Definition at line 1599 of file edit.c.
Referenced by EDIT_EM_LineScroll(), EDIT_EM_ScrollCaret(), and EDIT_WM_HScroll().
Definition at line 1015 of file edit.c.
Referenced by EDIT_BuildLineDefs_ML(), EDIT_EM_LineScroll_internal(), EDIT_EM_ScrollCaret(), EDIT_GetLineRect(), EDIT_MoveDown_ML(), EDIT_MoveEnd(), EDIT_MoveHome(), EDIT_MovePageDown_ML(), EDIT_MovePageUp_ML(), EDIT_MoveUp_ML(), EDIT_PaintLine(), EDIT_SetCaretPos(), and EDIT_WindowProc().
|
static |
Definition at line 2485 of file edit.c.
Referenced by EDIT_EM_Undo(), EDIT_GetCompositionStr(), EDIT_GetResultStr(), EDIT_ImeComposition(), EDIT_WindowProc(), EDIT_WM_Char(), EDIT_WM_Clear(), EDIT_WM_Create(), EDIT_WM_Paste(), EDIT_WM_SetText(), and EditWndProc_common().
Definition at line 1670 of file edit.c.
Referenced by EDIT_WindowProc(), EDIT_WM_VScroll(), and EditWndProc_common().
Definition at line 1778 of file edit.c.
Referenced by EDIT_EM_ReplaceSel(), EDIT_EM_SetHandle(), EDIT_EM_Undo(), EDIT_MoveBackward(), EDIT_MoveDown_ML(), EDIT_MoveEnd(), EDIT_MoveForward(), EDIT_MoveHome(), EDIT_MovePageDown_ML(), EDIT_MovePageUp_ML(), EDIT_MoveUp_ML(), EDIT_MoveWordBackward(), EDIT_MoveWordForward(), EDIT_WindowProc(), EDIT_WM_Create(), EDIT_WM_LButtonDblClk(), EDIT_WM_LButtonDown(), EDIT_WM_SetText(), and EditWndProc_common().
Definition at line 2698 of file edit.c.
Referenced by EDIT_WindowProc(), and EditWndProc_common().
Definition at line 2737 of file edit.c.
Referenced by EDIT_WindowProc(), and EditWndProc_common().
|
static |
Definition at line 2773 of file edit.c.
Referenced by EDIT_WindowProc(), and EDIT_WM_SetFont().
Definition at line 2841 of file edit.c.
Referenced by EDIT_WindowProc(), and EditWndProc_common().
Definition at line 1487 of file edit.c.
Referenced by EDIT_EM_ReplaceSel(), EDIT_EM_Undo(), EDIT_MoveBackward(), EDIT_MoveDown_ML(), EDIT_MoveEnd(), EDIT_MoveForward(), EDIT_MoveHome(), EDIT_MovePageDown_ML(), EDIT_MovePageUp_ML(), EDIT_MoveUp_ML(), EDIT_MoveWordBackward(), EDIT_MoveWordForward(), EDIT_WindowProc(), EDIT_WM_Char(), EDIT_WM_KeyDown(), EDIT_WM_LButtonDblClk(), EDIT_WM_LButtonDown(), EDIT_WM_MouseMove(), EDIT_WM_SetText(), and EditWndProc_common().
Definition at line 2870 of file edit.c.
Referenced by EDIT_WindowProc(), and EditWndProc_common().
|
static |
Definition at line 2892 of file edit.c.
Referenced by EDIT_WindowProc(), and EditWndProc_common().
Definition at line 2911 of file edit.c.
Referenced by EDIT_WindowProc(), EDIT_WM_SysKeyDown(), and EditWndProc_common().
Definition at line 4272 of file edit.c.
Referenced by EDIT_ImeComposition().
Definition at line 1145 of file edit.c.
Referenced by EDIT_ML_InvalidateText(), EDIT_SL_InvalidateText(), and EDIT_WM_Paint().
Definition at line 4343 of file edit.c.
Referenced by EDIT_ImeComposition().
Definition at line 4378 of file edit.c.
Referenced by EDIT_WindowProc().
Definition at line 1457 of file edit.c.
Referenced by EDIT_EM_SetSel(), EDIT_WM_KillFocus(), and EDIT_WM_SetFocus().
Definition at line 317 of file edit.c.
Referenced by EDIT_EM_ReplaceSel(), EDIT_EM_SetPasswordChar(), EDIT_EM_SetTabStops(), EDIT_WM_NCCreate(), EDIT_WM_NCDestroy(), EDIT_WM_Paint(), EDIT_WM_SetFont(), EDIT_WM_SetText(), and text_buffer_changed().
Definition at line 308 of file edit.c.
Referenced by EDIT_BuildLineDefs_ML(), and EDIT_InvalidateUniscribeData().
Definition at line 1209 of file edit.c.
Referenced by EDIT_EM_SetHandle(), EDIT_MakeFit(), EDIT_WindowProc(), and EditWndProc_common().
Definition at line 1274 of file edit.c.
Referenced by EDIT_EM_ReplaceSel().
Definition at line 1315 of file edit.c.
Referenced by EDIT_EM_ReplaceSel().
Definition at line 1392 of file edit.c.
Referenced by EDIT_InvalidateText().
Definition at line 1848 of file edit.c.
Referenced by EDIT_WM_Char(), EDIT_WM_KeyDown(), and EDIT_WM_Timer().
Definition at line 1875 of file edit.c.
Referenced by EDIT_WM_Char(), and EDIT_WM_KeyDown().
Definition at line 1897 of file edit.c.
Referenced by EDIT_WM_KeyDown().
Definition at line 1918 of file edit.c.
Referenced by EDIT_WM_KeyDown(), and EDIT_WM_Timer().
Definition at line 1943 of file edit.c.
Referenced by EDIT_WM_Char(), and EDIT_WM_KeyDown().
Definition at line 1967 of file edit.c.
Referenced by EDIT_WM_KeyDown().
Definition at line 1995 of file edit.c.
Referenced by EDIT_WM_KeyDown().
Definition at line 2023 of file edit.c.
Referenced by EDIT_WM_KeyDown().
Definition at line 2045 of file edit.c.
Referenced by EDIT_WM_KeyDown().
Definition at line 2076 of file edit.c.
Referenced by EDIT_WM_KeyDown().
Definition at line 200 of file edit.c.
Referenced by EDIT_WM_Paint().
Definition at line 2180 of file edit.c.
Referenced by EDIT_WM_Paint().
|
static |
Definition at line 2106 of file edit.c.
Referenced by EDIT_PaintLine().
Definition at line 5175 of file edit.c.
Referenced by DllMain().
Definition at line 1748 of file edit.c.
Referenced by EDIT_AdjustFormatRect(), EDIT_EM_ScrollCaret(), EDIT_ImeComposition(), EDIT_WM_MouseMove(), EDIT_WM_SetFocus(), and EDIT_WM_SetFont().
Definition at line 2312 of file edit.c.
Referenced by EDIT_WindowProc(), EDIT_WM_Create(), EDIT_WM_SetFont(), EDIT_WM_Size(), and EditWndProc_common().
Definition at line 1374 of file edit.c.
Referenced by EDIT_InvalidateText().
Definition at line 1228 of file edit.c.
Referenced by EDIT_EM_GetHandle(), EDIT_EM_SetHandle(), and EDIT_MakeFit().
Definition at line 1558 of file edit.c.
Referenced by EDIT_AdjustFormatRect(), EDIT_EM_LineScroll_internal(), EDIT_EM_ReplaceSel(), EDIT_EM_SetHandle(), EDIT_WM_Create(), EDIT_WM_HScroll(), EDIT_WM_SetText(), and EDIT_WM_VScroll().
Definition at line 1357 of file edit.c.
Referenced by EDIT_EM_ReplaceSel(), EDIT_EM_ScrollCaret(), EDIT_EM_SetHandle(), EDIT_EM_SetMargins(), EDIT_EM_SetPasswordChar(), EDIT_EM_SetWordBreakProc(), EDIT_ML_InvalidateText(), EDIT_SL_InvalidateText(), EDIT_WindowProc(), EDIT_WM_SetFont(), EDIT_WM_Size(), and EditWndProc_common().
Definition at line 1342 of file edit.c.
Referenced by EDIT_EM_ReplaceSel().
|
static |
Definition at line 374 of file edit.c.
Referenced by EDIT_CalcLineWidth_SL(), EDIT_CharFromPos(), EDIT_EM_PosFromChar(), EDIT_PaintLine(), and EDIT_WM_Paint().
|
static |
Definition at line 332 of file edit.c.
Referenced by EDIT_BuildLineDefs_ML(), and EDIT_UpdateUniscribeData().
|
static |
Definition at line 4621 of file edit.c.
Referenced by EDIT_Register().
Definition at line 3055 of file edit.c.
Referenced by EDIT_WindowProc().
Definition at line 3028 of file edit.c.
Referenced by EDIT_WindowProc(), EDIT_WM_Char(), EDIT_WM_Cut(), and EDIT_WM_KeyDown().
Definition at line 3186 of file edit.c.
Referenced by EDIT_WindowProc().
Definition at line 2999 of file edit.c.
Referenced by EDIT_WindowProc(), EDIT_WM_Cut(), and EDIT_WM_KeyDown().
Definition at line 4537 of file edit.c.
Referenced by EDIT_WindowProc().
Definition at line 3043 of file edit.c.
Referenced by EDIT_WindowProc(), and EDIT_WM_KeyDown().
Definition at line 4008 of file edit.c.
Referenced by EDIT_EM_GetThumb(), and EDIT_WindowProc().
Definition at line 3318 of file edit.c.
Referenced by EDIT_WindowProc().
Definition at line 3457 of file edit.c.
Referenced by EDIT_WindowProc().
Definition at line 3485 of file edit.c.
Referenced by EDIT_WindowProc().
Definition at line 3514 of file edit.c.
Referenced by EDIT_WindowProc().
Definition at line 3540 of file edit.c.
Referenced by EDIT_WindowProc().
Definition at line 3556 of file edit.c.
Referenced by EDIT_WindowProc().
Definition at line 3568 of file edit.c.
Referenced by EDIT_WindowProc().
|
static |
Definition at line 4424 of file edit.c.
Referenced by EDIT_WindowProc().
Definition at line 4592 of file edit.c.
Referenced by EDIT_WindowProc().
Definition at line 3689 of file edit.c.
Referenced by EDIT_WindowProc().
Definition at line 3600 of file edit.c.
Referenced by EDIT_WindowProc(), and EDIT_WM_SetFocus().
Definition at line 2963 of file edit.c.
Referenced by EDIT_WindowProc(), and EDIT_WM_KeyDown().
Definition at line 3751 of file edit.c.
Referenced by EDIT_WindowProc().
Definition at line 3786 of file edit.c.
Referenced by EDIT_WindowProc(), and EDIT_WM_Create().
Definition at line 3856 of file edit.c.
Referenced by EDIT_WindowProc().
|
static |
Definition at line 3931 of file edit.c.
Referenced by EDIT_WindowProc().
Definition at line 3971 of file edit.c.
Referenced by EDIT_WindowProc().
Definition at line 3990 of file edit.c.
Referenced by EDIT_WindowProc().
Definition at line 4140 of file edit.c.
Referenced by EDIT_EM_GetThumb(), and EDIT_WindowProc().
Definition at line 238 of file edit.c.
Referenced by EDIT_CallWordBreakProc().
Definition at line 218 of file edit.c.
Referenced by EDIT_AdjustFormatRect(), EDIT_CharFromPos(), EDIT_EM_LineFromChar(), EDIT_EM_LineLength(), EDIT_EM_PosFromChar(), EDIT_EM_ReplaceSel(), EDIT_EM_ScrollCaret(), EDIT_EM_SetHandle(), EDIT_EM_SetSel(), EDIT_EM_SetWordBreakProc(), EDIT_InvalidateText(), EDIT_MoveEnd(), EDIT_UnlockBuffer(), EDIT_UpdateUniscribeData(), EDIT_WindowProc(), EDIT_WM_ContextMenu(), EDIT_WM_KeyDown(), EDIT_WM_SetFont(), and EDIT_WordBreakProc().
Definition at line 416 of file edit.c.
Referenced by EDIT_AdjustFormatRect(), EDIT_BuildLineDefs_ML(), EDIT_EM_ReplaceSel(), EDIT_EM_Scroll(), EDIT_EM_ScrollCaret(), EDIT_ML_InvalidateText(), EDIT_PaintLine(), EDIT_WM_Paint(), and EDIT_WM_VScroll().
Definition at line 168 of file edit.c.
Referenced by EDIT_EM_LineScroll_internal(), EDIT_EM_ReplaceSel(), EDIT_EM_Undo(), EDIT_MakeFit(), EDIT_UpdateText(), EDIT_UpdateTextRegion(), EDIT_WM_HScroll(), EDIT_WM_KeyDown(), EDIT_WM_KillFocus(), EDIT_WM_SetFocus(), EDIT_WM_SetText(), and EDIT_WM_VScroll().
Definition at line 1196 of file edit.c.
Referenced by EDIT_EM_ReplaceSel(), and EDIT_EM_SetHandle().
WINE_DEFAULT_DEBUG_CHANNEL | ( | edit | ) |