X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fmarkup-processor.h;h=3ef7a2d6275adec8a48ea68f2e25ab2acefbea82;hb=9f41a0812c57d92f166e0ecbb8bf3c8801834b89;hp=ec45957cc2faa6ea717f49618bd546d989ed758e;hpb=6ea2f17f49c9c694a24d951160a7389c844d7889;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/markup-processor.h b/dali-toolkit/internal/text/markup-processor.h index ec45957..3ef7a2d 100644 --- a/dali-toolkit/internal/text/markup-processor.h +++ b/dali-toolkit/internal/text/markup-processor.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_H /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,9 +24,11 @@ // INTERNAL INCLUDES #include +#include #include #include #include +#include #include namespace Dali @@ -40,26 +42,35 @@ namespace Text */ struct MarkupProcessData { - MarkupProcessData(Vector& colorRuns, - Vector& fontRuns, - Vector& items, - Vector& anchors, - Vector& underlinedCharacterRuns) + MarkupProcessData(Vector& colorRuns, + Vector& fontRuns, + Vector& items, + Vector& anchors, + Vector& underlinedCharacterRuns, + Vector& backgroundColorRuns, + Vector& strikethroughCharacterRuns, + Vector& boundedParagraphRuns) : colorRuns(colorRuns), fontRuns(fontRuns), items(items), anchors(anchors), underlinedCharacterRuns(underlinedCharacterRuns), + backgroundColorRuns(backgroundColorRuns), + strikethroughCharacterRuns(strikethroughCharacterRuns), + boundedParagraphRuns(boundedParagraphRuns), markupProcessedText() { } - Vector& colorRuns; ///< The color runs. - Vector& fontRuns; ///< The font description runs. - Vector& items; ///< The embedded items. - Vector& anchors; ///< The anchors. - Vector& underlinedCharacterRuns; ///< The underlined character runs. - std::string markupProcessedText; ///< The mark-up string. + Vector& colorRuns; ///< The color runs. + Vector& fontRuns; ///< The font description runs. + Vector& items; ///< The embedded items. + Vector& anchors; ///< The anchors. + Vector& underlinedCharacterRuns; ///< The underlined character runs. + Vector& backgroundColorRuns; ///< The background color runs. + Vector& strikethroughCharacterRuns; ///< The strikethrough character runs. + Vector& boundedParagraphRuns; ///< The bounded paragraph runs + std::string markupProcessedText; ///< The mark-up string. }; /**