/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 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 D | js_span_string.h | 90 static bool CheckSpanType(int32_t spanType);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/ |
H A D | span_string.cpp | 255 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 D | mutable_span_string.h | 69 int32_t end, const std::string& other, SpanStringOperation op, SpanType spanType);
|
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.cpp | 204 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 D | rich_editor_event_hub.cpp | 83 void RichEditorAbstractSpanResult::SetSpanType(SpanResultType spanType) in SetSpanType() argument 85 spanType_ = spanType; in SetSpanType()
|
H A D | rich_editor_event_hub.h | 89 void SetSpanType(SpanResultType spanType);
|
H A D | rich_editor_pattern.cpp | 429 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 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()>& buildFunc,
|
H A D | text_model_ng.cpp | 603 void TextModelNG::BindSelectionMenu(TextSpanType& spanType, TextResponseType& responseType, in BindSelectionMenu() argument 610 pattern->BindSelectionMenu(spanType, responseType, buildFunc, menuParam.onAppear, menuParam.onDisappear); in BindSelectionMenu()
|
H A D | text_pattern.cpp | 2693 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 D | text_pattern.h | 516 void BindSelectionMenu(TextSpanType spanType, TextResponseType responseType, std::function<void()>& menuBuilder,
|
/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);
|
H A D | js_text.cpp | 977 auto spanType = argsSpanType->ToNumber<int32_t>(); in BindSelectionMenu() local 978 testSpanType = static_cast<NG::TextSpanType>(spanType); in BindSelectionMenu()
|
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() 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 D | arkComponent.js | 8398 bindSelectionMenu(spanType, content, responseType, options) {
|