Home
last modified time | relevance | path

Searched refs:GetTextStart (Results 1 – 22 of 22) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/
H A Drich_editor_paint_method.cpp46 …if (richEditorPattern->GetTextContentLength() > 0 && selection.GetTextStart() != selection.GetText… in UpdateOverlayModifier()
47 …overlayMod->SetSelectedRects(pManager_->GetRects(selection.GetTextStart(), selection.GetTextEnd())… in UpdateOverlayModifier()
61 …if (richEditorPattern->GetTextContentLength() > 0 && selection.GetTextStart() != selection.GetText… in UpdateOverlayModifier()
62 selectedRects = pManager_->GetRects(selection.GetTextStart(), selection.GetTextEnd()); in UpdateOverlayModifier()
H A Drich_editor_styled_string_controller.cpp49 auto start = std::max(richEditorPattern->GetTextSelector().GetTextStart(), 0); in GetSelection()
H A Drich_editor_pattern.cpp284 changeStart = textSelector_.GetTextStart(); in InsertValueInStyledString()
397 start = textSelector_.GetTextStart(); in DeleteValueInStyledString()
3566 auto selectStart = textSelector_.GetTextStart(); in HandleDoubleClickOrLongPress()
4317 changeStart = textSelector_.GetTextStart(); in InsertStyledStringByPaste()
4364 …DeleteForward(textSelector_.GetTextStart(), textSelector_.GetTextEnd() - textSelector_.GetTextStar… in AddSpansByPaste()
6691 auto selectStart = textSelector_.GetTextStart(); in OnBackPressed()
7205 auto selectStart = textSelector_.GetTextStart(); in OnBackPressed()
10414 return textSelector_.GetTextStart(); in OnBackPressed()
10693 if (start == textSelector_.GetTextStart()) { in OnBackPressed()
10942 info.selectStart = textSelector_.GetTextStart(); in OnBackPressed()
[all …]
H A Drich_editor_controller.cpp89 auto start = std::max(richEditorPattern->GetTextSelector().GetTextStart(), 0); in GetSelectionSpansInfo()
H A Drich_editor_select_overlay.cpp489 initSelector_ = { pattern->textSelector_.GetTextStart(), pattern->textSelector_.GetTextEnd() }; in OnHandleMoveStart()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text/
H A Dtext_testtwo_ng.cpp713 EXPECT_EQ(pattern->textSelector_.GetTextStart(), -1);
754 EXPECT_EQ(pattern->textSelector_.GetTextStart(), 0);
809 EXPECT_EQ(pattern->textSelector_.GetTextStart(), 0);
812 EXPECT_EQ(pattern->textSelector_.GetTextStart(), 0);
1321 EXPECT_EQ(pattern->textSelector_.GetTextStart(), 0);
1359 EXPECT_EQ(pattern->textSelector_.GetTextStart(), 0);
1368 EXPECT_EQ(pattern->textSelector_.GetTextStart(), 0);
1376 EXPECT_EQ(pattern->textSelector_.GetTextStart(), 0);
1384 EXPECT_EQ(pattern->textSelector_.GetTextStart(), 0);
1393 EXPECT_EQ(pattern->textSelector_.GetTextStart(), 0);
[all …]
H A Dtext_testthree_ng.cpp482 EXPECT_EQ(pattern->textSelector_.GetTextStart(), -2);
835 EXPECT_EQ(pattern->textSelector_.GetTextStart(), -1);
868 EXPECT_EQ(pattern->textSelector_.GetTextStart(), 0);
872 EXPECT_EQ(pattern->textSelector_.GetTextStart(), -1);
923 EXPECT_EQ(pattern->textSelector_.GetTextStart(), 0);
930 EXPECT_EQ(pattern->textSelector_.GetTextStart(), 0);
981 EXPECT_EQ(pattern->textSelector_.GetTextStart(), 0);
1039 EXPECT_EQ(pattern->textSelector_.GetTextStart(), 2);
1097 EXPECT_EQ(pattern->textSelector_.GetTextStart(), 5);
1360 EXPECT_EQ(pattern->textSelector_.GetTextStart(), -1);
H A Dtext_test_ng.cpp478 EXPECT_EQ(pattern->textSelector_.GetTextStart(), 0);
490 EXPECT_EQ(pattern->textSelector_.GetTextStart(), 0);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dtext_paint_method.cpp133 if (selection.GetTextStart() != selection.GetTextEnd()) { in UpdateOverlayModifier()
134 auto rects = pManager->GetParagraphsRects(selection.GetTextStart(), selection.GetTextEnd()); in UpdateOverlayModifier()
H A Dtext_accessibility_property.cpp53 return textSelector.GetTextStart(); in GetTextSelectionStart()
H A Dtext_base.h195 start = textSelector_.GetTextStart(); in GetSelectIndex()
H A Dtext_pattern.cpp520 auto start = textSelector_.GetTextStart(); in OnHandleMove()
527 return textSelector_.GetTextStart() == 0 && in IsSelectAll()
577 auto value = GetSelectedText(textSelector_.GetTextStart(), textSelector_.GetTextEnd()); in HandleOnCopy()
596 auto subSpanString = styledString_->GetSubSpanString(textSelector_.GetTextStart(), in HandleOnCopySpanString()
597 textSelector_.GetTextEnd() - textSelector_.GetTextStart()); in HandleOnCopySpanString()
1636 GreatNotEqual(textSelector_.GetTextEnd(), textSelector_.GetTextStart())) { in IsDraggable()
1661 auto selectStart = textSelector_.GetTextStart(); in OnDragStart()
1784 auto start = textSelector_.GetTextStart(); in OnDragStartNoChild()
2112 return pManager_->GetRects(textSelector_.GetTextStart(), textSelector_.GetTextEnd()); in GetTextBoxes()
2584 auto start = textSelector_.GetTextStart(); in UpdateSelectOverlayOrCreate()
[all …]
H A Dtext_select_overlay.cpp238 textPattern->UpdateSelectionSpanType(textSelector.GetTextStart(), textSelector.GetTextEnd()); in OnHandleMoveDone()
259 auto start = textPattern->GetTextSelector().GetTextStart(); in GetSelectedText()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/rich_editor/
H A Drich_editor_drag_test_ng.cpp108 EXPECT_EQ(pattern->textSelector_.GetTextStart(), -1);
162 EXPECT_EQ(pattern->textSelector_.GetTextStart(), 0);
H A Drich_editor_keyboard_shortcut_test_ng.cpp234 EXPECT_EQ(richEditorPattern->textSelector_.GetTextStart(), 19);
240 EXPECT_EQ(richEditorPattern->textSelector_.GetTextStart(), 19);
246 EXPECT_EQ(richEditorPattern->textSelector_.GetTextStart(), 0);
252 EXPECT_EQ(richEditorPattern->textSelector_.GetTextStart(), 0);
294 EXPECT_EQ(richEditorPattern->textSelector_.GetTextStart(), 0);
358 EXPECT_EQ(richEditorPattern->textSelector_.GetTextStart(), 4);
H A Drich_editor_overlay_test_ng.cpp1178 EXPECT_EQ(richEditorPattern->textSelector_.GetTextStart(), 0);
1227 EXPECT_EQ(richEditorPattern->textSelector_.GetTextStart(), 1);
1273 EXPECT_EQ(richEditorPattern->textSelector_.GetTextStart(), 0);
1290 EXPECT_EQ(richEditorPattern->textSelector_.GetTextStart(), 1);
H A Drich_editor_pattern_testone_ng.cpp210 EXPECT_EQ(richEditorPattern->textSelector_.GetTextStart(), 1);
1073 EXPECT_EQ(richEditorPattern->textSelector_.GetTextStart(), 1);
H A Drich_editor_pattern_testthree_ng.cpp182 …EXPECT_EQ(richEditorPattern->textSelector_.GetTextStart(), richEditorPattern->textSelector_.GetSta…
H A Drich_editor_pattern_testfour_ng.cpp143 EXPECT_EQ(richEditorPattern->textSelector_.GetTextStart(), 1);
H A Drich_editor_test_ng.cpp4163 EXPECT_EQ(pattern->textSelector_.GetTextStart(), -1);
4217 EXPECT_EQ(pattern->textSelector_.GetTextStart(), 0);
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/rich_editor_drag/
H A Drich_editor_drag_test_ng.cpp108 EXPECT_EQ(pattern->textSelector_.GetTextStart(), -1);
162 EXPECT_EQ(pattern->textSelector_.GetTextStart(), 0);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_selector.h131 inline int32_t GetTextStart() const in GetTextStart() function