Lines Matching refs:m_SelState
681 m_SelState.Set(begin, end); in SetSelection()
682 SetCaret(m_SelState.EndPos); in SetSelection()
684 if (!m_SelState.IsEmpty()) in SetSelection()
695 if (m_SelState.IsEmpty()) { in GetSelection()
700 if (m_SelState.BeginPos < m_SelState.EndPos) { in GetSelection()
701 nStartChar = m_pVT->WordPlaceToWordIndex(m_SelState.BeginPos); in GetSelection()
702 nEndChar = m_pVT->WordPlaceToWordIndex(m_SelState.EndPos); in GetSelection()
705 nStartChar = m_pVT->WordPlaceToWordIndex(m_SelState.EndPos); in GetSelection()
706 nEndChar = m_pVT->WordPlaceToWordIndex(m_SelState.BeginPos); in GetSelection()
768 return GetRangeText(m_SelState.ConvertToWordRange()); in GetSelectedText()
783 return m_SelState.ConvertToWordRange(); in GetSelectWordRange()
916 m_SelState = CPWL_EditImpl_Select(GetWholeWordRange()); in SelectAll()
917 SetCaret(m_SelState.EndPos); in SelectAll()
924 if (!m_pVT->IsValid() || m_SelState.IsEmpty()) in SelectNone()
927 m_SelState.Reset(); in SelectNone()
932 return !m_SelState.IsEmpty(); in IsSelected()
1265 m_pNotify->SetCaret(m_SelState.IsEmpty(), VTToEdit(ptHead), in SetCaretInfo()
1279 m_SelState.Set(m_wpCaret, m_wpCaret); in OnMouseDown()
1295 m_SelState.SetEndPos(m_wpCaret); in OnMouseMove()
1308 if (m_SelState.IsEmpty()) in OnVK_UP()
1309 m_SelState.Set(m_wpOldCaret, m_wpCaret); in OnVK_UP()
1311 m_SelState.SetEndPos(m_wpCaret); in OnVK_UP()
1331 if (m_SelState.IsEmpty()) in OnVK_DOWN()
1332 m_SelState.Set(m_wpOldCaret, m_wpCaret); in OnVK_DOWN()
1334 m_SelState.SetEndPos(m_wpCaret); in OnVK_DOWN()
1358 if (m_SelState.IsEmpty()) in OnVK_LEFT()
1359 m_SelState.Set(m_wpOldCaret, m_wpCaret); in OnVK_LEFT()
1361 m_SelState.SetEndPos(m_wpCaret); in OnVK_LEFT()
1369 if (!m_SelState.IsEmpty()) { in OnVK_LEFT()
1370 if (m_SelState.BeginPos < m_SelState.EndPos) in OnVK_LEFT()
1371 SetCaret(m_SelState.BeginPos); in OnVK_LEFT()
1373 SetCaret(m_SelState.EndPos); in OnVK_LEFT()
1401 if (m_SelState.IsEmpty()) in OnVK_RIGHT()
1402 m_SelState.Set(m_wpOldCaret, m_wpCaret); in OnVK_RIGHT()
1404 m_SelState.SetEndPos(m_wpCaret); in OnVK_RIGHT()
1412 if (!m_SelState.IsEmpty()) { in OnVK_RIGHT()
1413 if (m_SelState.BeginPos > m_SelState.EndPos) in OnVK_RIGHT()
1414 SetCaret(m_SelState.BeginPos); in OnVK_RIGHT()
1416 SetCaret(m_SelState.EndPos); in OnVK_RIGHT()
1444 if (m_SelState.IsEmpty()) in OnVK_HOME()
1445 m_SelState.Set(m_wpOldCaret, m_wpCaret); in OnVK_HOME()
1447 m_SelState.SetEndPos(m_wpCaret); in OnVK_HOME()
1453 if (!m_SelState.IsEmpty()) { in OnVK_HOME()
1454 SetCaret(std::min(m_SelState.BeginPos, m_SelState.EndPos)); in OnVK_HOME()
1481 if (m_SelState.IsEmpty()) in OnVK_END()
1482 m_SelState.Set(m_wpOldCaret, m_wpCaret); in OnVK_END()
1484 m_SelState.SetEndPos(m_wpCaret); in OnVK_END()
1490 if (!m_SelState.IsEmpty()) { in OnVK_END()
1491 SetCaret(std::max(m_SelState.BeginPos, m_SelState.EndPos)); in OnVK_END()
1518 m_SelState.Set(m_wpCaret, m_wpCaret); in InsertWord()
1541 m_SelState.Set(m_wpCaret, m_wpCaret); in InsertReturn()
1574 m_SelState.Set(m_wpCaret, m_wpCaret); in Backspace()
1613 m_SelState.Set(m_wpCaret, m_wpCaret); in Delete()
1648 if (!m_pVT->IsValid() || m_SelState.IsEmpty()) in Clear()
1651 CPVT_WordRange range = m_SelState.ConvertToWordRange(); in Clear()
1659 m_SelState.Set(m_wpCaret, m_wpCaret); in Clear()
1682 m_SelState.Set(m_wpCaret, m_wpCaret); in InsertText()