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=e41f0faa85702dd161f47cb87554a0011db9c0b0;hp=7085d797cdea548bf49086776374798f5ae392d4;hb=0b2e209ecfb3cedba510f53a4af58d7d8a2b3876;hpb=269ef791ecea99b85d6241ad8e39769e1db312b3 diff --git a/dali-toolkit/internal/text/logical-model-impl.h b/dali-toolkit/internal/text/logical-model-impl.h index 7085d79..e41f0fa 100644 --- a/dali-toolkit/internal/text/logical-model-impl.h +++ b/dali-toolkit/internal/text/logical-model-impl.h @@ -29,6 +29,7 @@ #include #include #include +#include #include namespace Dali @@ -136,6 +137,30 @@ public: */ void ClearFontDescriptionRuns(); + // Paragraphs + + /** + * @brief Creates the paragraph info. + * + * @pre The line break info must be set. + * + * @param[in] startIndex The character from where the paragraph info is set. + * @param[in] numberOfCharacters The number of characters. + */ + void CreateParagraphInfo( CharacterIndex startIndex, + Length numberOfCharacters ); + + /** + * @brief Find the paragraphs which contains the given characters. + * + * @param[in] index The first character's index of the run. + * @param[in] numberOfCharacters The number of characters of the run. + * @param[out] paragraphs Indices to the paragraphs which contain the characters. + */ + void FindParagraphs( CharacterIndex index, + Length numberOfCharacters, + Vector& paragraphs ); + protected: /** @@ -165,6 +190,7 @@ public: Vector mFontDescriptionRuns; Vector mLineBreakInfo; Vector mWordBreakInfo; + Vector mParagraphInfo; Vector mBidirectionalParagraphInfo; Vector mCharacterDirections; ///< For each character, whether is right to left. ( @e flase is left to right, @e true right to left ). Vector mBidirectionalLineInfo;