Support align attribute for paragraph tag in markup 42/270442/10
authorssabah <s.sabah@samsung.com>
Wed, 2 Feb 2022 22:39:30 +0000 (00:39 +0200)
committerssabah <s.sabah@samsung.com>
Wed, 23 Feb 2022 10:23:59 +0000 (12:23 +0200)
commit82031ca68ee58a2f30f01af3992523d0bb8e5fa6
tree0006c1f130547550df4776b2175dd3c7960d12d1
parent29bbe2381a1cfdd96757dfd441e7f9747560b2c8
Support align attribute for paragraph tag in markup

<p align='center'> text </p>
Values: begin | center | end

//How to apply it:
textEditorMultiAlign.SetProperty(TextEditor::Property::TEXT, "text outside<p align='end'>Paragraph end</p><p align='center'>Paragraph center</p><p align='begin' >Paragraph begin</p><p>Paragraph property alignment</p>");
textEditorMultiAlign.SetProperty(TextEditor ::Property::ENABLE_MARKUP, true);
//The alignment on property level works on outside text or on a paragraph without the align attribute
textEditorMultiAlign.SetProperty(TextEditor::Property::HORIZONTAL_ALIGNMENT, Dali::Toolkit::Text::HorizontalAlignment::CENTER);

Change-Id: I3ccd6e6669a5887cdcbfa80be44998fd487e580c
automated-tests/src/dali-toolkit-internal/utc-Dali-TextEditor-internal.cpp
automated-tests/src/dali-toolkit-internal/utc-Dali-TextLabel-internal.cpp
dali-toolkit/internal/file.list
dali-toolkit/internal/text/bounded-paragraph-run.h
dali-toolkit/internal/text/markup-processor-helper-functions.cpp
dali-toolkit/internal/text/markup-processor-helper-functions.h
dali-toolkit/internal/text/markup-processor-paragraph.cpp [new file with mode: 0644]
dali-toolkit/internal/text/markup-processor-paragraph.h [new file with mode: 0644]
dali-toolkit/internal/text/markup-processor.cpp
dali-toolkit/internal/text/text-controller-relayouter.cpp
dali-toolkit/internal/text/text-controller-relayouter.h