/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_richeditor.h | 92 const JSCallbackInfo& args, UserGestureOptions& gestureOption, const std::string& spanType); 201 const JSCallbackInfo& args, UserGestureOptions& gestureOption, const std::string& spanType); 203 UserGestureOptions& gestureOption, const std::string& spanType); 205 const JSCallbackInfo& args, UserMouseOptions& mouseOption, const std::string& spanType);
|
H A D | js_richeditor.cpp | 971 auto spanType = info[0]->ToNumber<int32_t>(); in BindSelectionMenu() local 972 editorType = static_cast<NG::TextSpanType>(spanType); in BindSelectionMenu() 1454 const JSCallbackInfo& args, UserGestureOptions& gestureOption, const std::string& spanType) in ParseUserGesture() argument 1466 ParseUserClickEvent(args, gestureObj, gestureOption, spanType); in ParseUserGesture() 1474 …ongPress = [execCtx = args.GetExecutionContext(), func = jsLongPressFunc, spanTypeInner = spanType, in ParseUserGesture() 1485 const JSCallbackInfo& args, UserMouseOptions& mouseOption, const std::string& spanType) in ParseUserMouseOption() argument 1501 …to onHover = [execCtx = args.GetExecutionContext(), func = jsOnHoverFunc, spanTypeInner = spanType, in ParseUserMouseOption() 1512 UserGestureOptions& gestureOption, const std::string& spanType) in ParseUserClickEvent() argument 1521 …to onClick = [execCtx = args.GetExecutionContext(), func = jsOnClickFunc, spanTypeInner = spanType, in ParseUserClickEvent() 1536 …eClick = [execCtx = args.GetExecutionContext(), func = jsDoubleClickFunc, spanTypeInner = spanType, in ParseUserClickEvent()
|
H A D | js_text.cpp | 972 auto spanType = argsSpanType->ToNumber<int32_t>(); in BindSelectionMenu() local 973 testSpanType = static_cast<NG::TextSpanType>(spanType); in BindSelectionMenu()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/style_string/ |
H A D | js_span_string.cpp | 266 auto spanType = info[2]->ToNumber<int32_t>(); in GetSpans() local 267 if (!CheckSpanType(spanType)) { in GetSpans() 270 auto type = static_cast<SpanType>(spanType); in GetSpans() 625 bool JSSpanString::CheckSpanType(int32_t spanType) in CheckSpanType() argument 1054 if (!CheckSpanType(spanType)) { in ReplaceSpan() 1059 auto type = static_cast<SpanType>(spanType); in ReplaceSpan() 1105 CHECK_NULL_VOID(CheckSpanType(spanType)); in AddSpan() 1108 auto type = static_cast<SpanType>(spanType); in AddSpan() 1148 auto spanType = info[2]->ToNumber<int32_t>(); in RemoveSpan() local 1149 if (!CheckSpanType(spanType)) { in RemoveSpan() [all …]
|
H A D | js_span_string.h | 90 static bool CheckSpanType(int32_t spanType);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/ |
H A D | span_string.cpp | 262 auto spanType = (*it)->GetSpanType(); in MergeIntervals() local 263 if (spanType == SpanType::Image || spanType == SpanType::CustomSpan) { in MergeIntervals() 552 auto spanType = spanBase->GetSpanType(); in CheckRange() local 553 …auto len = spanType == SpanType::Image || spanType == SpanType::CustomSpan ? GetLength() + 1 : Get… in CheckRange() 716 std::vector<RefPtr<SpanBase>> SpanString::GetSpans(int32_t start, int32_t length, SpanType spanType… in GetSpans() 724 while ((span = GetSpan(start, length, spanType)) != nullptr) { in GetSpans() 732 RefPtr<SpanBase> SpanString::GetSpan(int32_t start, int32_t length, SpanType spanType) const in GetSpan() 734 if (!CheckRange(start, length) || spansMap_.find(spanType) == spansMap_.end()) { in GetSpan() 738 auto spanBaseList = spansMap_.find(spanType)->second; in GetSpan()
|
H A D | span_string.h | 58 std::vector<RefPtr<SpanBase>> GetSpans(int32_t start, int32_t length, SpanType spanType) const; 89 RefPtr<SpanBase> GetSpan(int32_t start, int32_t length, SpanType spanType) const;
|
H A D | mutable_span_string.h | 69 int32_t end, const std::string& other, SpanStringOperation op, SpanType spanType);
|
H A D | mutable_span_string.cpp | 213 int32_t end, const std::string& other, SpanStringOperation op, SpanType spanType) in ProcessSpanBaseList() argument 224 if (spanType == SpanType::Image || spanType == SpanType::CustomSpan) { in ProcessSpanBaseList()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
H A D | rich_editor_event_hub.cpp | 84 void RichEditorAbstractSpanResult::SetSpanType(SpanResultType spanType) in SetSpanType() argument 86 spanType_ = spanType; in SetSpanType()
|
H A D | rich_editor_event_hub.h | 89 void SetSpanType(SpanResultType spanType);
|
H A D | rich_editor_pattern.cpp | 447 auto spanType = style->GetSpanType(); in BeforeStyledStringChange() local 448 if (spanType == SpanType::Image || spanType == SpanType::CustomSpan) { in BeforeStyledStringChange()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_model.h | 142 virtual void BindSelectionMenu(NG::TextSpanType& spanType, NG::TextResponseType& responseType, in BindSelectionMenu() argument
|
H A D | text_model_ng.h | 78 …void BindSelectionMenu(TextSpanType& spanType, TextResponseType& responseType, std::function<void(…
|
H A D | text_model_ng.cpp | 618 void TextModelNG::BindSelectionMenu(TextSpanType& spanType, TextResponseType& responseType, in BindSelectionMenu() argument 625 …pattern->BindSelectionMenu(spanType, responseType, buildFunc, menuParam.onAppear, menuParam.onDisa… in BindSelectionMenu()
|
H A D | text_pattern.cpp | 2450 auto& [spanType, responseType] = spanResponsePair; in GetBindSelectionMenuInJson() 2452 jsonItem->Put("spanType", static_cast<int32_t>(spanType)); in GetBindSelectionMenuInJson() 3515 void TextPattern::BindSelectionMenu(TextSpanType spanType, TextResponseType responseType, in BindSelectionMenu() argument 3519 auto key = std::make_pair(spanType, responseType); in BindSelectionMenu() 3533 … std::make_shared<SelectionMenuParams>(spanType, menuBuilder, onAppear, onDisappear, responseType); in BindSelectionMenu() 3546 std::shared_ptr<SelectionMenuParams> TextPattern::GetMenuParams(TextSpanType spanType, TextResponse… in GetMenuParams() argument 3548 auto key = std::make_pair(spanType, responseType); in GetMenuParams()
|
H A D | text_pattern.h | 510 …void BindSelectionMenu(TextSpanType spanType, TextResponseType responseType, std::function<void()>…
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/src/ |
H A D | ArkRichEditor.ts | 345 …bindSelectionMenu(spanType: RichEditorSpanType, content: CustomBuilder, responseType: ResponseType…
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-basic-components-text.md | 569 bindSelectionMenu(spanType: TextSpanType, content: CustomBuilder, responseType: TextResponseType, 586 | spanType | [TextSpanType](#textspantype11枚举说明) | 是 | 选择菜单的类型。<br/>默认值:TextSpanType…
|
H A D | ts-basic-components-richeditor.md | 77 bindSelectionMenu(spanType: RichEditorSpanType, content: CustomBuilder, responseType: ResponseType … 90 | spanType | [RichEditorSpanType](#richeditorspantype) | 是 | 菜单的类型。<br/> 默…
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-basic-components-text.md | 569 bindSelectionMenu(spanType: TextSpanType, content: CustomBuilder, responseType: TextResponseType, 586 | spanType | [TextSpanType](#textspantype11) | Yes | Span type of the menu.<br>Defaul…
|
H A D | ts-basic-components-richeditor.md | 77 bindSelectionMenu(spanType: RichEditorSpanType, content: CustomBuilder, responseType: ResponseType … 90 | spanType | [RichEditorSpanType](#richeditorspantype) | Yes | Menu type.<b…
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/export/ |
H A D | arkComponent.d.ts | 440 …bindSelectionMenu(spanType: RichEditorSpanType, content: CustomBuilder, responseType: ResponseType…
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/ |
H A D | arkComponent.js | 8455 bindSelectionMenu(spanType, content, responseType, options) { argument
|