X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Flogical-model-impl.h;h=2db64a22b4abcf3040fc9ff5b0f080ad45360225;hb=8874f81d592c44c05a13e2e69e6f3ea26eb1cbea;hp=08c636d11fb620a2ab786809d82d1b4ceeefc7a8;hpb=e939bee76410eca241bda2ed4a732e0a13be00af;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/logical-model-impl.h b/dali-toolkit/internal/text/logical-model-impl.h index 08c636d..2db64a2 100644 --- a/dali-toolkit/internal/text/logical-model-impl.h +++ b/dali-toolkit/internal/text/logical-model-impl.h @@ -27,6 +27,8 @@ #include #include #include +#include +#include #include #include #include @@ -182,6 +184,34 @@ 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; + + /** + * @brief Retrieves the number of character-spacing runs. + * + * @return The number of character-spacing runs. + */ + Length GetNumberOfCharacterSpacingCharacterRuns() const; + + /** + * @brief Retrieves the reference for character-spacing runs. + * + * @return The reference for character-spacing runs. + */ + const Vector& GetCharacterSpacingCharacterRuns() const; + // Embedded images /** @@ -226,10 +256,17 @@ 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 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. + Vector mCharacterSpacingCharacterRuns; ///< The character-spacing character run from markup-processor. BidirectionalLineRunIndex mBidirectionalLineIndex; ///< The last fetched bidirectional line info. + bool mSpannedTextPlaced : 1; ///< Whether the spanned-text is placed. + + bool mUnderlineRunsUpdated : 1; /// Whether the UnderlinedCharacterRuns is updated. (Added for SpannedText) + bool mCharacterSpacingRunsUpdated : 1; // Flag for updating character-spacing. + bool mStrikethroughRunsUpdated : 1; /// Whether the StrikethroughCharacterRuns is updated. (Added for SpannedText) }; } // namespace Text