Home
last modified time | relevance | path

Searched refs:spanType (Results 1 – 24 of 24) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_richeditor.h92 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 Djs_richeditor.cpp971 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 Djs_text.cpp972 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 Djs_span_string.cpp266 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 Djs_span_string.h90 static bool CheckSpanType(int32_t spanType);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/
H A Dspan_string.cpp262 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 Dspan_string.h58 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 Dmutable_span_string.h69 int32_t end, const std::string& other, SpanStringOperation op, SpanType spanType);
H A Dmutable_span_string.cpp213 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 Drich_editor_event_hub.cpp84 void RichEditorAbstractSpanResult::SetSpanType(SpanResultType spanType) in SetSpanType() argument
86 spanType_ = spanType; in SetSpanType()
H A Drich_editor_event_hub.h89 void SetSpanType(SpanResultType spanType);
H A Drich_editor_pattern.cpp447 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 Dtext_model.h142 virtual void BindSelectionMenu(NG::TextSpanType& spanType, NG::TextResponseType& responseType, in BindSelectionMenu() argument
H A Dtext_model_ng.h78 …void BindSelectionMenu(TextSpanType& spanType, TextResponseType& responseType, std::function<void(…
H A Dtext_model_ng.cpp618 void TextModelNG::BindSelectionMenu(TextSpanType& spanType, TextResponseType& responseType, in BindSelectionMenu() argument
625 …pattern->BindSelectionMenu(spanType, responseType, buildFunc, menuParam.onAppear, menuParam.onDisa… in BindSelectionMenu()
H A Dtext_pattern.cpp2450 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 Dtext_pattern.h510 …void BindSelectionMenu(TextSpanType spanType, TextResponseType responseType, std::function<void()>…
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/src/
H A DArkRichEditor.ts345 …bindSelectionMenu(spanType: RichEditorSpanType, content: CustomBuilder, responseType: ResponseType…
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-basic-components-text.md569 bindSelectionMenu(spanType: TextSpanType, content: CustomBuilder, responseType: TextResponseType,
586 | spanType | [TextSpanType](#textspantype11枚举说明) | 是 | 选择菜单的类型。<br/>默认值:TextSpanType…
H A Dts-basic-components-richeditor.md77 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 Dts-basic-components-text.md569 bindSelectionMenu(spanType: TextSpanType, content: CustomBuilder, responseType: TextResponseType,
586 | spanType | [TextSpanType](#textspantype11) | Yes | Span type of the menu.<br>Defaul…
H A Dts-basic-components-richeditor.md77 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 DarkComponent.d.ts440 …bindSelectionMenu(spanType: RichEditorSpanType, content: CustomBuilder, responseType: ResponseType…
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DarkComponent.js8455 bindSelectionMenu(spanType, content, responseType, options) { argument