X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fbidirectional-support.h;h=39ec9d61dc250f7f437a84aaaeb23b690c9e8632;hp=2f3b251e7c36b2d5c876f1a2e8595a71c0aa413e;hb=e2916ba0e2e9c92f2254d19f0890589cf77b2221;hpb=2d1ba388f9a941d273e95d729b9662cc1cdad822 diff --git a/dali-toolkit/internal/text/bidirectional-support.h b/dali-toolkit/internal/text/bidirectional-support.h index 2f3b251..39ec9d6 100644 --- a/dali-toolkit/internal/text/bidirectional-support.h +++ b/dali-toolkit/internal/text/bidirectional-support.h @@ -36,20 +36,21 @@ namespace Toolkit namespace Text { -class LogicalModel; -class VisualModel; - /** * Sets the bidirectional info into the logical model. * * @param[in] text Vector of UTF-32 characters. * @param[in] scripts Vector containing the script runs for the whole text. * @param[in] lineBreakInfo The line break info. + * @param[in] startIndex The character from where the bidirectional info is set. + * @param[in] numberOfCharacters The number of characters. * @param[out] bidirectionalInfo Vector with the bidirectional infor for each paragraph. */ void SetBidirectionalInfo( const Vector& text, const Vector& scripts, const Vector& lineBreakInfo, + CharacterIndex startIndex, + Length numberOfCharacters, Vector& bidirectionalInfo ); /** @@ -63,22 +64,34 @@ void SetBidirectionalInfo( const Vector& text, * @pre The @p visualModel needs to have the laid-out lines info set. * * @param[in] bidirectionalInfo Vector with the bidirectional infor for each paragraph. + * @param[in] startIndex The character from where the bidirectional info is set. + * @param[in] numberOfCharacters The number of characters. * @param[in,out] lineRuns The line runs converted to characters. * @param[out] lineInfoRuns line runs with the visual to logical conversion maps. */ void ReorderLines( const Vector& bidirectionalInfo, + CharacterIndex startIndex, + Length numberOfCharacters, Vector& lineRuns, Vector& lineInfoRuns ); /** - * @brief Replaces any character which could be mirrored. + * @brief Replaces any character in the right to left paragraphs which could be mirrored. * * @param[in] text The text. - * @param[in] mirroredText The mirroredText. + * @param[in] directions Vector with the direction of each paragraph. + * @param[in] bidirectionalInfo Vector with the bidirectional infor for each paragraph. + * @param[in] startIndex The character from where the text is mirrored. + * @param[in] numberOfCharacters The number of characters. + * @param[out] mirroredText The mirroredText. * * @return @e true if a character has been replaced. */ bool GetMirroredText( const Vector& text, + const Vector& directions, + const Vector& bidirectionalInfo, + CharacterIndex startIndex, + Length numberOfCharacters, Vector& mirroredText ); /** @@ -88,9 +101,15 @@ bool GetMirroredText( const Vector& text, * @pre The @p logicalModel needs to have the bidirectional info indices for each paragraph set. * * @param[in] bidirectionalInfo Vector with the bidirectional infor for each paragraph. + * @param[in] totalNumberOfCharacters The number of characters of the whole text. + * @param[in] startIndex The character from where the direction info is set. + * @param[in] numberOfCharacters The number of characters. * @param[out] directions The direction, @e false is left to right and @e true is right to left, of each character of the paragraph. */ void GetCharactersDirection( const Vector& bidirectionalInfo, + Length totalNumberOfCharacters, + CharacterIndex startIndex, + Length numberOfCharacters, Vector& directions ); } // namespace Text