{
String copyText;
String cutText;
- String selectAllText;
GET_STRING_CONFIG(IDS_TPLATFORM_OPT_COPY, copyText);
GET_STRING_CONFIG(IDS_TPLATFORM_OPT_CUT, cutText);
- GET_STRING_CONFIG(IDS_TPLATFORM_OPT_SELECT_ALL, selectAllText);
- if (__pEditPresenter->IsViewModeEnabled())
- {
- __pCopyPastePopup->AddItem(selectAllText, COPY_PASTE_SELECT_ALL_ID, null, null, null);
- }
__pCopyPastePopup->AddItem(copyText, COPY_PASTE_COPY_ID, null, null, null);
if (!__pEditPresenter->IsViewModeEnabled())
{
__pEdit->SetFocused();
}
- if (GetTextLength() > 0 && __pEdit->IsViewModeEnabled())
- {
- FloatRectangle cursorBounds;
- int start = -1;
- int end = -1;
- int cursorPos = GetCursorPositionAt(touchInfo.GetCurrentPosition());
-
- if (cursorPos == -1)
- {
- cursorPos = __cursorPos;
- }
- else
- {
- int curCursorLine = __pTextObject->GetLineIndexAtTextIndex(cursorPos);
- int firstTextIndex = __pTextObject->GetFirstTextIndexAt(curCursorLine);
- if (cursorPos != 0 && cursorPos == firstTextIndex && __rowCursorIndex != curCursorLine)
- {
- cursorPos--;
- }
- }
-
- GetWordPosition(cursorPos, start, end);
- SetBlockRange(start, end);
- __pCopyPasteManager->CreateHandle();
- }
-
FadeOutScrollBar(); // Fade out scrollbar when copypaste popup is moving.
if (__needToCreateCopyPastePopup)
{