X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Flogical-model-impl.h;h=c54c5230767e55a88fad3ceb6c7eb435f5cf1c28;hp=921d9110df0ab1cd50fff61e4379b25e02e358ee;hb=29bbe2381a1cfdd96757dfd441e7f9747560b2c8;hpb=ee67cff961ec6b3003586c542dc473dd980c18c9 diff --git a/dali-toolkit/internal/text/logical-model-impl.h b/dali-toolkit/internal/text/logical-model-impl.h index 921d911..c54c523 100644 --- a/dali-toolkit/internal/text/logical-model-impl.h +++ b/dali-toolkit/internal/text/logical-model-impl.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_TEXT_LOGICAL_MODEL_IMPL_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. @@ -27,12 +27,15 @@ #include #include #include +#include #include #include #include #include #include #include +#include +#include namespace Dali { @@ -151,6 +154,11 @@ public: */ void ClearFontDescriptionRuns(); + /** + * @brief Clears the strikethrough runs. + */ + void ClearStrikethroughRuns(); + // Paragraphs /** @@ -175,6 +183,20 @@ public: Length numberOfCharacters, Vector& paragraphs); + /** + * @brief Retrieves the number of bounded paragraph runs. + * + * @return The number of bounded paragraph runs. + */ + Length GetNumberOfBoundedParagraphRuns() const; + + /** + * @brief Retrieves the reference for bounded paragraph runs. + * + * @return The reference for bounded paragraph runs. + */ + const Vector& GetBoundedParagraphRuns() const; + // Embedded images /** @@ -219,6 +241,9 @@ public: Vector mBidirectionalLineInfo; Vector mEmbeddedItems; Vector mAnchors; + Vector mUnderlinedCharacterRuns; ///< The underlined character run from markup-processor + Vector mStrikethroughCharacterRuns; ///< The strikethrough character run from markup-processor + Vector mBoundedParagraphRuns; ///< The bounded paragraph is used to handle a paragraph mark-up tag and it's attributes. Like TextAlign, TextDirection, TextIndent, LineHeight, etc. BidirectionalLineRunIndex mBidirectionalLineIndex; ///< The last fetched bidirectional line info. };