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=72b147abe7cb0078897d44c9ce67a4bb440aebe5;hp=f51e5e7628a22da7d61a56ba4b8d844236379809;hb=06e563f8a982e25a0efe2d91c794657dc8e4bc4a;hpb=7aa9e3d716396348b89c913b306bbc1ce201db69 diff --git a/dali-toolkit/internal/text/bidirectional-support.h b/dali-toolkit/internal/text/bidirectional-support.h index f51e5e7..72b147a 100644 --- a/dali-toolkit/internal/text/bidirectional-support.h +++ b/dali-toolkit/internal/text/bidirectional-support.h @@ -53,25 +53,6 @@ void SetBidirectionalInfo( const Vector& text, Vector& bidirectionalInfo ); /** - * Replaces the bidirectional info from the logical model. - * - * @pre The @p model needs to have a text set. - * @pre The @p model needs to have the line break info set. - * - * If the @p numberOfCharactersToRemove is zero, this operation is like an insert. - * If the @p numberOfCharactersToInsert is zero, this operation is like a remove. - * - * @param[in,out] model The text's logical model. - * @param[in] characterIndex Index to the first character. - * @param[in] numberOfCharactersToRemove The number of characters removed from the text. - * @param[in] numberOfCharactersToInsert The number of characters inserted in the text. - */ -void ReplaceBidirectionalInfo( LogicalModel& model, - CharacterIndex characterIndex, - Length numberOfCharactersToRemove, - Length numberOfCharactersToInsert ); - -/** * Sets the visual to logical map tables. * * Any map tables previously set are removed. @@ -90,37 +71,17 @@ void ReorderLines( const Vector& bidirectionalInf Vector& lineInfoRuns ); /** - * Replaces the visual to logical and logical to visual map tables. - * - * @pre The @p logicalModel needs to have a text set. - * @pre The @p logicalModel needs to have the line break info set. - * @pre The @p visualModel needs to have the laid-out lines info set. - * - * If the @p numberOfCharactersToRemove is zero, this operation is like an insert. - * If the @p numberOfCharactersToInsert is zero, this operation is like a remove. - * - * @param[in,out] logicalModel The text's logical model. - * @param[in] visualModel The text's visual model. - * @param[in] characterIndex Index to the first character. - * @param[in] numberOfCharactersToRemove The number of characters removed from the text. - * @param[in] numberOfCharactersToInsert The number of characters inserted in the text. - */ -void ReorderLines( LogicalModel& logicalModel, - const VisualModel& visualModel, - CharacterIndex characterIndex, - Length numberOfCharactersToRemove, - Length numberOfCharactersToInsert ); - -/** - * @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] bidirectionalInfo Vector with the bidirectional infor for each paragraph. * * @return @e true if a character has been replaced. */ bool GetMirroredText( const Vector& text, - Vector& mirroredText ); + Vector& mirroredText, + const Vector& bidirectionalInfo ); /** * @brief Retrieves the character's directions.