Home
last modified time | relevance | path

Searched refs:spanType (Results 1 - 18 of 18) sorted by relevance

/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
627 if (types.find(static_cast<SpanType>(spanType)) == types.end()) { in CheckSpanType()
1053 auto spanType = styleKeyObj->ToNumber<int32_t>(); in ReplaceSpan() local
1054 if (!CheckSpanType(spanType)) { in ReplaceSpan()
1059 auto type = static_cast<SpanType>(spanType); in ReplaceSpan()
1104 auto spanType = styleKeyObj->ToNumber<int32_t>(); in AddSpan() local
1105 CHECK_NULL_VOID(CheckSpanType(spanType)); in AddSpan()
1148 auto spanType = info[2]->ToNumber<int32_t>(); RemoveSpan() local
[all...]
H A Djs_span_string.h90 static bool CheckSpanType(int32_t spanType);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/
H A Dspan_string.cpp255 auto spanType = (*it)->GetSpanType(); in MergeIntervals() local
256 if (spanType == SpanType::Image || spanType == SpanType::CustomSpan) { in MergeIntervals()
545 auto spanType = spanBase->GetSpanType(); in CheckRange() local
546 auto len = spanType == SpanType::Image || spanType == SpanType::CustomSpan ? GetLength() + 1 : GetLength(); in CheckRange()
709 std::vector<RefPtr<SpanBase>> SpanString::GetSpans(int32_t start, int32_t length, SpanType spanType) const in GetSpans()
717 while ((span = GetSpan(start, length, spanType)) != nullptr) { in GetSpans()
725 RefPtr<SpanBase> SpanString::GetSpan(int32_t start, int32_t length, SpanType spanType) const in GetSpan()
727 if (!CheckRange(start, length) || spansMap_.find(spanType) in GetSpan()
[all...]
H A Dmutable_span_string.h69 int32_t end, const std::string& other, SpanStringOperation op, SpanType spanType);
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.cpp204 int32_t end, const std::string& other, SpanStringOperation op, SpanType spanType) in ProcessSpanBaseList()
215 if (spanType == SpanType::Image || spanType == SpanType::CustomSpan) { in ProcessSpanBaseList()
203 ProcessSpanBaseList(std::list<RefPtr<SpanBase>>& spans, int32_t start, int32_t end, const std::string& other, SpanStringOperation op, SpanType spanType) ProcessSpanBaseList() argument
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/
H A Drich_editor_event_hub.cpp83 void RichEditorAbstractSpanResult::SetSpanType(SpanResultType spanType) in SetSpanType() argument
85 spanType_ = spanType; in SetSpanType()
H A Drich_editor_event_hub.h89 void SetSpanType(SpanResultType spanType);
H A Drich_editor_pattern.cpp429 auto spanType = style->GetSpanType(); in BeforeStyledStringChange() local
430 if (spanType == SpanType::Image || spanType == SpanType::CustomSpan) { in BeforeStyledStringChange()
8999 jsonItem->Put("spanType", static_cast<int32_t>(TextSpanType::IMAGE)); in FillPreviewMenuInJson()
/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()>& buildFunc,
H A Dtext_model_ng.cpp603 void TextModelNG::BindSelectionMenu(TextSpanType& spanType, TextResponseType& responseType, in BindSelectionMenu() argument
610 pattern->BindSelectionMenu(spanType, responseType, buildFunc, menuParam.onAppear, menuParam.onDisappear); in BindSelectionMenu()
H A Dtext_pattern.cpp2693 auto& [spanType, responseType] = spanResponsePair; in GetBindSelectionMenuInJson()
2695 jsonItem->Put("spanType", static_cast<int32_t>(spanType)); in GetBindSelectionMenuInJson()
3708 void TextPattern::BindSelectionMenu(TextSpanType spanType, TextResponseType responseType, in BindSelectionMenu() argument
3712 auto key = std::make_pair(spanType, responseType); in BindSelectionMenu()
3726 std::make_shared<SelectionMenuParams>(spanType, menuBuilder, onAppear, onDisappear, responseType); in BindSelectionMenu()
3739 std::shared_ptr<SelectionMenuParams> TextPattern::GetMenuParams(TextSpanType spanType, TextResponseType responseType) in GetMenuParams() argument
3741 auto key = std::make_pair(spanType, responseType); in GetMenuParams()
H A Dtext_pattern.h516 void BindSelectionMenu(TextSpanType spanType, TextResponseType responseType, std::function<void()>& menuBuilder,
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_richeditor.h92 const JSCallbackInfo& args, UserGestureOptions& gestureOption, const std::string& spanType);
H A Djs_text.cpp977 auto spanType = argsSpanType->ToNumber<int32_t>(); in BindSelectionMenu() local
978 testSpanType = static_cast<NG::TextSpanType>(spanType); in BindSelectionMenu()
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()
1474 auto onClick = [execCtx = args.GetExecutionContext(), func = jsOnClickFunc, spanTypeInner = spanType, in ParseUserGesture()
1493 auto onLongPress = [execCtx = args.GetExecutionContext(), func = jsLongPressFunc, spanTypeInner = spanType, in ParseUserGesture()
1453 ParseUserGesture( const JSCallbackInfo& args, UserGestureOptions& gestureOption, const std::string& spanType) ParseUserGesture() argument
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DarkComponent.js8398 bindSelectionMenu(spanType, content, responseType, options) {

Completed in 61 milliseconds