From 99e69de57d94f4bcf8d72a69c9215684ee4152ee Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 22 Apr 2025 11:13:52 +1000 Subject: Move common IME code from platform layers to ScintillaBase. --- win32/ScintillaWin.cxx | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'win32') diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index bfa5dbb1f..c05dbd8fc 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -125,11 +125,6 @@ constexpr UINT SC_WIN_IDLE = 5001; // and delivering SCN_UPDATEUI constexpr UINT SC_WORK_IDLE = 5002; -constexpr int IndicatorInput = static_cast(Scintilla::IndicatorNumbers::Ime); -constexpr int IndicatorTarget = IndicatorInput + 1; -constexpr int IndicatorConverted = IndicatorInput + 2; -constexpr int IndicatorUnknown = IndicatorInput + 3; - using SetCoalescableTimerSig = UINT_PTR (WINAPI *)(HWND hwnd, UINT_PTR nIDEvent, UINT uElapse, TIMERPROC lpTimerFunc, ULONG uToleranceDelay); @@ -548,8 +543,6 @@ class ScintillaWin : sptr_t HandleCompositionWindowed(uptr_t wParam, sptr_t lParam); sptr_t HandleCompositionInline(uptr_t wParam, sptr_t lParam); static bool KoreanIME() noexcept; - void MoveImeCarets(Sci::Position offset) noexcept; - void DrawImeIndicator(int indicator, Sci::Position len); void SetCandidateWindowPos(); void SelectionToHangul(); void EscapeHanja(); @@ -1334,29 +1327,6 @@ bool ScintillaWin::KoreanIME() noexcept { return codePage == cp949 || codePage == cp1361; } -void ScintillaWin::MoveImeCarets(Sci::Position offset) noexcept { - // Move carets relatively by bytes. - for (size_t r=0; r IndicatorMax) { - return; - } - pdoc->DecorationSetCurrentIndicator(indicator); - for (size_t r=0; rDecorationFillRange(positionInsert - len, 1, len); - } -} - void ScintillaWin::SetCandidateWindowPos() { IMContext imc(MainHWND()); if (imc.hIMC) { -- cgit v1.2.3