Home
last modified time | relevance | path

Searched refs:paragraphStyle (Results 1 - 25 of 35) sorted by relevance

12

/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/skia_txt/
H A Dparagraph_style_test.cpp33 auto paragraphStyle = std::make_shared<OHOS::Rosen::SPText::ParagraphStyle>(); in HWTEST_F() local
34 auto result = paragraphStyle->ConvertToTextStyle(); in HWTEST_F()
35 EXPECT_EQ(result.fontSize, paragraphStyle->fontSize); in HWTEST_F()
45 auto paragraphStyle = std::make_shared<OHOS::Rosen::SPText::ParagraphStyle>(); in HWTEST_F() local
47 paragraphStyle->textAlign = OHOS::Rosen::SPText::TextAlign::START; in HWTEST_F()
48 auto result1 = paragraphStyle->GetEquivalentAlign(); in HWTEST_F()
51 paragraphStyle->textAlign = OHOS::Rosen::SPText::TextAlign::END; in HWTEST_F()
52 auto result2 = paragraphStyle->GetEquivalentAlign(); in HWTEST_F()
55 paragraphStyle->textAlign = OHOS::Rosen::SPText::TextAlign::JUSTIFY; in HWTEST_F()
56 auto result3 = paragraphStyle in HWTEST_F()
[all...]
H A Dtext_line_base_test.cpp46 ParagraphStyle paragraphStyle; in SetUp() local
47 paragraphStyle.maxLines = maxLines_; in SetUp()
51 std::shared_ptr<ParagraphBuilder> paragraphBuilder = ParagraphBuilder::Create(paragraphStyle, fontCollection); in SetUp()
H A Drun_test.cpp46 ParagraphStyle paragraphStyle; in SetUp() local
50 std::shared_ptr<ParagraphBuilder> paragraphBuilder = ParagraphBuilder::Create(paragraphStyle, fontCollection); in SetUp()
H A Dparagraph_test.cpp49 ParagraphStyle paragraphStyle; in SetUp() local
53 std::shared_ptr<ParagraphBuilder> paragraphBuilder = ParagraphBuilder::Create(paragraphStyle, fontCollection); in SetUp()
H A Dparagraph_builder_test.cpp40 ParagraphStyle paragraphStyle; in SetUp() local
42 paragraphBuilder_ = std::make_shared<ParagraphBuilderImpl>(paragraphStyle, fontCollection); in SetUp()
/foundation/arkui/ace_engine/test/unittest/core/pattern/rich_editor/
H A Drich_editor_click_testone_ng.cpp70 ParagraphStyle paragraphStyle; in HWTEST_F() local
71 auto paragraph = Paragraph::Create(paragraphStyle, FontCollection::Current()); in HWTEST_F()
72 richEditorPattern->pManager_->AddParagraph({ .paragraph = paragraph, .paragraphStyle = paragraphStyle }); in HWTEST_F()
102 ParagraphStyle paragraphStyle; in HWTEST_F() local
103 auto paragraph = Paragraph::Create(paragraphStyle, FontCollection::Current()); in HWTEST_F()
104 richEditorPattern->pManager_->AddParagraph({ .paragraph = paragraph, .paragraphStyle = paragraphStyle }); in HWTEST_F()
H A Drich_editor_pattern_test_ng.cpp1023 struct UpdateParagraphStyle paragraphStyle; in HWTEST_F() local
1024 paragraphStyle.textAlign = TextAlign::END; in HWTEST_F()
1025 paragraphStyle.leadingMargin = std::make_optional<NG::LeadingMargin>(); in HWTEST_F()
1026 paragraphStyle.leadingMargin->size = LeadingMarginSize(Dimension(5.0), Dimension(10.0)); in HWTEST_F()
1027 richEditorPattern->UpdateParagraphStyle(0, 6, paragraphStyle); in HWTEST_F()
1028 std::optional<struct UpdateParagraphStyle> spanParaStyle = paragraphStyle; in HWTEST_F()
1091 struct UpdateParagraphStyle paragraphStyle; in HWTEST_F() local
1092 paragraphStyle.textAlign = TextAlign::END; in HWTEST_F()
1093 paragraphStyle.leadingMargin = std::make_optional<NG::LeadingMargin>(); in HWTEST_F()
1094 paragraphStyle in HWTEST_F()
1127 struct UpdateParagraphStyle paragraphStyle; HWTEST_F() local
[all...]
H A Drich_editor_click_test_ng.cpp86 ParagraphStyle paragraphStyle; in HWTEST_F() local
87 auto paragraph = Paragraph::Create(paragraphStyle, FontCollection::Current()); in HWTEST_F()
88 richEditorPattern->pManager_->AddParagraph({ .paragraph = paragraph, .paragraphStyle = paragraphStyle }); in HWTEST_F()
633 struct UpdateParagraphStyle paragraphStyle; in HWTEST_F() local
634 paragraphStyle.wordBreak = WordBreak::NORMAL; in HWTEST_F()
635 paragraphStyle.textAlign = TextAlign::END; in HWTEST_F()
636 options.paraStyle = paragraphStyle; in HWTEST_F()
/foundation/arkui/ace_engine/test/unittest/core/pattern/text/
H A Dtext_testfour_ng.cpp155 auto paragraphStyle = firstParagraph.paragraphStyle; in HWTEST_F() local
156 EXPECT_EQ(paragraphStyle.align, TextAlign::START); in HWTEST_F()
157 EXPECT_EQ(paragraphStyle.maxLines, UINT32_MAX); in HWTEST_F()
162 paragraphStyle = secondParagraph.paragraphStyle; in HWTEST_F()
163 EXPECT_EQ(paragraphStyle.align, TextAlign::END); in HWTEST_F()
164 EXPECT_EQ(paragraphStyle.indent, Dimension(20.0f)); in HWTEST_F()
165 EXPECT_EQ(paragraphStyle.wordBreak, WordBreak::BREAK_ALL); in HWTEST_F()
166 EXPECT_EQ(paragraphStyle in HWTEST_F()
339 ParagraphStyle paragraphStyle; HWTEST_F() local
528 ParagraphStyle paragraphStyle; HWTEST_F() local
617 ParagraphStyle paragraphStyle; HWTEST_F() local
663 ParagraphStyle paragraphStyle; HWTEST_F() local
703 ParagraphStyle paragraphStyle; HWTEST_F() local
754 ParagraphStyle paragraphStyle; HWTEST_F() local
805 ParagraphStyle paragraphStyle; HWTEST_F() local
851 ParagraphStyle paragraphStyle; HWTEST_F() local
897 ParagraphStyle paragraphStyle; HWTEST_F() local
943 ParagraphStyle paragraphStyle; HWTEST_F() local
1002 ParagraphStyle paragraphStyle; HWTEST_F() local
1061 ParagraphStyle paragraphStyle; HWTEST_F() local
1120 ParagraphStyle paragraphStyle; HWTEST_F() local
1181 ParagraphStyle paragraphStyle; HWTEST_F() local
1243 ParagraphStyle paragraphStyle; HWTEST_F() local
1305 ParagraphStyle paragraphStyle; HWTEST_F() local
1366 ParagraphStyle paragraphStyle; HWTEST_F() local
1427 ParagraphStyle paragraphStyle; HWTEST_F() local
1488 ParagraphStyle paragraphStyle; HWTEST_F() local
1543 ParagraphStyle paragraphStyle; HWTEST_F() local
1598 ParagraphStyle paragraphStyle; HWTEST_F() local
1653 ParagraphStyle paragraphStyle; HWTEST_F() local
1705 ParagraphStyle paragraphStyle; HWTEST_F() local
1757 ParagraphStyle paragraphStyle; HWTEST_F() local
1809 ParagraphStyle paragraphStyle; HWTEST_F() local
1870 ParagraphStyle paragraphStyle; HWTEST_F() local
1931 ParagraphStyle paragraphStyle; HWTEST_F() local
[all...]
H A Dtext_testtwo_ng.cpp93 ParagraphStyle paragraphStyle; in HWTEST_F() local
94 RefPtr<Paragraph> paragraph = Paragraph::Create(paragraphStyle, FontCollection::Current()); in HWTEST_F()
898 ParagraphStyle paragraphStyle; in HWTEST_F() local
899 RefPtr<Paragraph> paragraph = Paragraph::Create(paragraphStyle, FontCollection::Current()); in HWTEST_F()
968 ParagraphStyle paragraphStyle; in HWTEST_F() local
969 RefPtr<Paragraph> paragraph = Paragraph::Create(paragraphStyle, FontCollection::Current()); in HWTEST_F()
1144 ParagraphStyle paragraphStyle; in HWTEST_F() local
1145 RefPtr<Paragraph> paragraph = Paragraph::Create(paragraphStyle, FontCollection::Current()); in HWTEST_F()
1290 ParagraphStyle paragraphStyle; in HWTEST_F() local
1291 RefPtr<Paragraph> paragraph = Paragraph::Create(paragraphStyle, FontCollectio in HWTEST_F()
1360 ParagraphStyle paragraphStyle; HWTEST_F() local
1397 ParagraphStyle paragraphStyle; HWTEST_F() local
1490 ParagraphStyle paragraphStyle; HWTEST_F() local
1776 ParagraphStyle paragraphStyle; HWTEST_F() local
2020 ParagraphStyle paragraphStyle; HWTEST_F() local
2109 ParagraphStyle paragraphStyle; HWTEST_F() local
2283 ParagraphStyle paragraphStyle; HWTEST_F() local
[all...]
H A Dtext_testfive_ng.cpp51 ParagraphStyle paragraphStyle; in HWTEST_F() local
52 RefPtr<Paragraph> paragraph = Paragraph::Create(paragraphStyle, FontCollection::Current()); in HWTEST_F()
112 ParagraphStyle paragraphStyle; in HWTEST_F() local
113 RefPtr<Paragraph> paragraph = Paragraph::Create(paragraphStyle, FontCollection::Current()); in HWTEST_F()
173 ParagraphStyle paragraphStyle; in HWTEST_F() local
174 RefPtr<Paragraph> paragraph = Paragraph::Create(paragraphStyle, FontCollection::Current()); in HWTEST_F()
234 ParagraphStyle paragraphStyle; in HWTEST_F() local
235 RefPtr<Paragraph> paragraph = Paragraph::Create(paragraphStyle, FontCollection::Current()); in HWTEST_F()
286 ParagraphStyle paragraphStyle; in HWTEST_F() local
287 RefPtr<Paragraph> paragraph = Paragraph::Create(paragraphStyle, FontCollectio in HWTEST_F()
338 ParagraphStyle paragraphStyle; HWTEST_F() local
1059 ParagraphStyle paragraphStyle; HWTEST_F() local
2559 ParagraphStyle paragraphStyle; HWTEST_F() local
2610 ParagraphStyle paragraphStyle; HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/interfaces/native/node/
H A Dstyled_string.h35 void* paragraphStyle = nullptr; member
H A Dnative_node_extented.cpp529 storage->paragraphStyle = typographyStyle; in OH_ArkUI_StyledString_Create()
550 OH_Drawing_TypographyStyle* paragraphStyle = in OH_ArkUI_StyledString_Destroy() local
551 reinterpret_cast<OH_Drawing_TypographyStyle*>(storage->paragraphStyle); in OH_ArkUI_StyledString_Destroy()
552 OH_Drawing_DestroyTypographyStyle(paragraphStyle); in OH_ArkUI_StyledString_Destroy()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/style_string/
H A Djs_span_object.cpp1214 SpanParagraphStyle paragraphStyle; in Constructor() local
1215 span = AceType::MakeRefPtr<ParagraphStyleSpan>(paragraphStyle); in Constructor()
1232 SpanParagraphStyle paragraphStyle; in ParseJsParagraphStyleSpan() local
1233 ParseJsTextAlign(obj, paragraphStyle); in ParseJsParagraphStyleSpan()
1234 ParseJsTextIndent(obj, paragraphStyle); in ParseJsParagraphStyleSpan()
1235 ParseJsMaxLines(obj, paragraphStyle); in ParseJsParagraphStyleSpan()
1236 ParseJsTextOverflow(obj, paragraphStyle); in ParseJsParagraphStyleSpan()
1237 ParseJsWordBreak(obj, paragraphStyle); in ParseJsParagraphStyleSpan()
1238 ParseJsLeadingMargin(obj, paragraphStyle); in ParseJsParagraphStyleSpan()
1239 return AceType::MakeRefPtr<ParagraphStyleSpan>(paragraphStyle); in ParseJsParagraphStyleSpan()
1242 ParseJsTextAlign(const JSRef<JSObject>& obj, SpanParagraphStyle& paragraphStyle) ParseJsTextAlign() argument
1258 ParseJsTextIndent(const JSRef<JSObject>& obj, SpanParagraphStyle& paragraphStyle) ParseJsTextIndent() argument
1284 ParseJsMaxLines(const JSRef<JSObject>& obj, SpanParagraphStyle& paragraphStyle) ParseJsMaxLines() argument
1299 ParseJsTextOverflow(const JSRef<JSObject>& obj, SpanParagraphStyle& paragraphStyle) ParseJsTextOverflow() argument
1314 ParseJsWordBreak(const JSRef<JSObject>& obj, SpanParagraphStyle& paragraphStyle) ParseJsWordBreak() argument
1343 ParseJsLeadingMargin(const JSRef<JSObject>& obj, SpanParagraphStyle& paragraphStyle) ParseJsLeadingMargin() argument
[all...]
H A Djs_span_object.h75 static void ParseJsTextAlign(const JSRef<JSObject>& obj, SpanParagraphStyle& paragraphStyle);
76 static void ParseJsTextIndent(const JSRef<JSObject>& obj, SpanParagraphStyle& paragraphStyle);
77 static void ParseJsMaxLines(const JSRef<JSObject>& obj, SpanParagraphStyle& paragraphStyle);
78 static void ParseJsTextOverflow(const JSRef<JSObject>& obj, SpanParagraphStyle& paragraphStyle);
79 static void ParseJsWordBreak(const JSRef<JSObject>& obj, SpanParagraphStyle& paragraphStyle);
80 static void ParseJsLeadingMargin(const JSRef<JSObject>& obj, SpanParagraphStyle& paragraphStyle);
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/adapter/skia_txt/
H A Dtypography_create.cpp36 auto paragraphStyle = Convert(style); in TypographyCreate() local
38 builder_ = SPText::ParagraphBuilder::Create(paragraphStyle, txtFontCollection); in TypographyCreate()
/foundation/arkui/ace_engine/frameworks/core/components/text_field/
H A Drosen_render_text_field.h121 const std::unique_ptr<txt::ParagraphStyle>& paragraphStyle, std::unique_ptr<txt::TextStyle>& txtStyle);
124 const std::unique_ptr<Rosen::TypographyStyle>& paragraphStyle, std::unique_ptr<Rosen::TextStyle>& txtStyle);
135 void SetShaderIfNeeded(std::unique_ptr<txt::ParagraphStyle> paragraphStyle,
138 void SetShaderIfNeeded(std::unique_ptr<Rosen::TypographyStyle> paragraphStyle,
H A Drosen_render_text_field.cpp724 auto paragraphStyle = CreateParagraphStyle(); local
730 double textAreaWidth = MeasureParagraph(paragraphStyle, txtStyle);
770 SetShaderIfNeeded(std::move(paragraphStyle), std::move(txtStyle), textAreaWidth);
777 const std::unique_ptr<txt::ParagraphStyle>& paragraphStyle, std::unique_ptr<txt::TextStyle>& txtStyle)
780 const std::unique_ptr<Rosen::TypographyStyle>& paragraphStyle, std::unique_ptr<Rosen::TextStyle>& txtStyle)
868 txt::ParagraphBuilder::CreateTxtBuilder(*paragraphStyle, GetFontCollection());
871 Rosen::TypographyCreate::Create(*paragraphStyle, GetFontCollection());
894 (*paragraphStyle).max_lines = 1;
896 (*paragraphStyle).maxLines = 1;
903 txt::ParagraphBuilder::CreateTxtBuilder(*paragraphStyle, GetFontCollectio
776 MeasureParagraph( const std::unique_ptr<txt::ParagraphStyle>& paragraphStyle, std::unique_ptr<txt::TextStyle>& txtStyle) global() argument
1082 SetShaderIfNeeded( std::unique_ptr<txt::ParagraphStyle> paragraphStyle, std::unique_ptr<txt::TextStyle> txtStyle, double textAreaWidth) global() argument
1667 auto paragraphStyle = CreateParagraphStyle(); global() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dmultiple_paragraph_layout_algorithm.cpp561 .paragraphStyle = spanParagraphStyle, in UpdateParagraphBySpan()
710 ParagraphStyle& paragraphStyle, const RefPtr<Paragraph>& paragraph, double width, const TextStyle& textStyle) in ApplyIndent()
712 auto indentValue = paragraphStyle.indent; in ApplyIndent()
724 paragraphStyle.indent = Dimension(value); in ApplyIndent()
730 if (paragraphStyle.leadingMargin.has_value()) { in ApplyIndent()
731 leadingMarginValue = paragraphStyle.leadingMargin->size.Width().ConvertToPxDistribute( in ApplyIndent()
709 ApplyIndent( ParagraphStyle& paragraphStyle, const RefPtr<Paragraph>& paragraph, double width, const TextStyle& textStyle) ApplyIndent() argument
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/
H A Dparagraph_manager.h32 ParagraphStyle paragraphStyle; member
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/
H A Dspan_object.cpp666 ParagraphStyleSpan::ParagraphStyleSpan(SpanParagraphStyle paragraphStyle) in ParagraphStyleSpan() argument
667 : SpanBase(0, 0), paragraphStyle_(std::move(paragraphStyle)) in ParagraphStyleSpan()
670 ParagraphStyleSpan::ParagraphStyleSpan(SpanParagraphStyle paragraphStyle, int32_t start, int32_t end) in ParagraphStyleSpan() argument
671 : SpanBase(start, end), paragraphStyle_(std::move(paragraphStyle)) in ParagraphStyleSpan()
728 auto paragraphStyle = paragraphSpan->GetParagraphStyle(); in IsAttributesEqual() local
729 return paragraphStyle_.Equal(paragraphStyle); in IsAttributesEqual()
H A Dspan_string.cpp1127 SpanParagraphStyle paragraphStyle; in ToParagraphStyleSpan() local
1128 paragraphStyle.align = spanItem->textLineStyle->GetTextAlign(); in ToParagraphStyleSpan()
1129 paragraphStyle.maxLines = spanItem->textLineStyle->GetMaxLines(); in ToParagraphStyleSpan()
1130 paragraphStyle.textOverflow = spanItem->textLineStyle->GetTextOverflow(); in ToParagraphStyleSpan()
1131 paragraphStyle.leadingMargin = spanItem->textLineStyle->GetLeadingMargin(); in ToParagraphStyleSpan()
1132 paragraphStyle.wordBreak = spanItem->textLineStyle->GetWordBreak(); in ToParagraphStyleSpan()
1133 paragraphStyle.textIndent = spanItem->textLineStyle->GetTextIndent(); in ToParagraphStyleSpan()
1134 return AceType::MakeRefPtr<ParagraphStyleSpan>(paragraphStyle, start, end); in ToParagraphStyleSpan()
/foundation/arkui/ace_engine/adapter/ohos/capability/html/
H A Dspan_to_html.cpp542 auto paragraphStyle = ParagraphStyleToHtml(*item->textLineStyle); in ToHtml() local
543 if (newLine && !paragraphStyle.empty()) { in ToHtml()
544 out += "<p " + paragraphStyle + ">"; in ToHtml()
/foundation/arkui/ace_engine/test/unittest/adapter/ohos/capability/
H A Dhtml_convert_test.cpp347 auto paragraphStyle = AceType::MakeRefPtr<ParagraphStyleSpan>(spanParagraphStyle, 0, 5); in HWTEST_F() local
348 spanString->AddSpan(paragraphStyle); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/adapter/skia_txt/
H A Dconvert_test.cpp156 SPText::ParagraphStyle paragraphStyle = AdapterTxt::Convert(typographyStyle); in HWTEST_F() local
157 EXPECT_EQ(paragraphStyle.fontSize, typographyStyle.fontSize); in HWTEST_F()

Completed in 29 milliseconds

12