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=3c01dc6f6f6a81c8ccbcd227feefa22f956c19be;hp=6ff820d0a30fb6340ab350cf9e0a2559151025d1;hb=6e79b1b333af799839c8e7b11a077f754132dc24;hpb=b936651d1ccf66163c2ed8e381229e8f3618cc7b diff --git a/dali-toolkit/internal/text/logical-model-impl.h b/dali-toolkit/internal/text/logical-model-impl.h old mode 100644 new mode 100755 index 6ff820d..3c01dc6 --- a/dali-toolkit/internal/text/logical-model-impl.h +++ b/dali-toolkit/internal/text/logical-model-impl.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_TEXT_LOGICAL_MODEL_IMPL_H__ -#define __DALI_TOOLKIT_TEXT_LOGICAL_MODEL_IMPL_H__ +#ifndef DALI_TOOLKIT_TEXT_LOGICAL_MODEL_IMPL_H +#define DALI_TOOLKIT_TEXT_LOGICAL_MODEL_IMPL_H /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 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,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -91,6 +92,9 @@ public: /** * @brief Retrieves the logical cursor index for the given visual cursor index. * + * @pre The method FetchBidirectionalLineInfo() must be called before. If the result of FetchBidirectionalLineInfo() is false, + * then the character is not in a bidirectional line and the result will be invalid. + * * @param[in] visualCursorIndex The visual cursor index. * * @return The logical cursor index. @@ -100,6 +104,9 @@ public: /** * @brief Retrieves the logical character index for the given visual character index. * + * @pre The method FetchBidirectionalLineInfo() must be called before. If the result of FetchBidirectionalLineInfo() is false, + * then the character is not in a bidirectional line and the result will be invalid. + * * @param[in] visualCharacterIndex The visual character index. * * @return The logical character index. @@ -171,6 +178,13 @@ public: Length numberOfCharacters, Vector& paragraphs ); + // Embedded images + + /** + * @brief Clears the embedded images. + */ + void ClearEmbeddedImages(); + protected: /** @@ -197,13 +211,14 @@ public: Vector mScriptRuns; Vector mFontRuns; Vector mColorRuns; + Vector mBackgroundColorRuns; 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; + Vector mEmbeddedItems; BidirectionalLineRunIndex mBidirectionalLineIndex; ///< The last fetched bidirectional line info. }; @@ -214,4 +229,4 @@ public: } // namespace Dali -#endif // __DALI_TOOLKIT_TEXT_LOGICAL_MODEL_IMPL_H__ +#endif // DALI_TOOLKIT_TEXT_LOGICAL_MODEL_IMPL_H