X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Frendering%2Fview-model.h;h=e51a0759fd202ffd5c56ac2df26b6e6eb7d7e6b2;hp=1b81e7a7332bf4aab87a1b2d1e516d7e1c2ea5c5;hb=1bf8666355ccc3b6ca6dde1cf4be9f0bc6e35875;hpb=debd4ef5b35507bac4579dfbb8983b743872c70b diff --git a/dali-toolkit/internal/text/rendering/view-model.h b/dali-toolkit/internal/text/rendering/view-model.h old mode 100755 new mode 100644 index 1b81e7a..e51a075 --- a/dali-toolkit/internal/text/rendering/view-model.h +++ b/dali-toolkit/internal/text/rendering/view-model.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_TEXT_VIEW_MODEL_H /* - * Copyright (c) 2018 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 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. @@ -22,19 +22,16 @@ #include // INTERNAL INCLUDES -#include -#include #include +#include +#include namespace Dali { - namespace Toolkit { - namespace Text { - /** * @brief Responsible of creating and store temporary modifications of the text model. * i.e. The elide of text. @@ -49,7 +46,7 @@ public: * * @param[in] model Pointer to the text's model interface. */ - ViewModel( const ModelInterface* const model ); + ViewModel(const ModelInterface* const model); /** * @brief Virtual destructor. @@ -149,6 +146,11 @@ public: const ColorIndex* const GetBackgroundColorIndices() const override; /** + * @copydoc ModelInterface::IsMarkupBackgroundColorSet() + */ + bool const IsMarkupBackgroundColorSet() const override; + + /** * @copydoc ModelInterface::GetDefaultColor() */ const Vector4& GetDefaultColor() const override; @@ -191,7 +193,7 @@ public: /** * @copydoc ModelInterface::GetUnderlineRuns() */ - void GetUnderlineRuns( GlyphRun* underlineRuns, UnderlineRunIndex index, Length numberOfRuns ) const override; + void GetUnderlineRuns(GlyphRun* underlineRuns, UnderlineRunIndex index, Length numberOfRuns) const override; /** * @copydoc ModelInterface::GetOutlineColor() @@ -213,7 +215,27 @@ public: */ bool IsBackgroundEnabled() const override; -/** + /** + * @copydoc ModelInterface::IsMarkupProcessorEnabled() + */ + bool IsMarkupProcessorEnabled() const override; + + /** + * @copydoc ModelInterface::GetHyphens() + */ + const GlyphInfo* GetHyphens() const override; + + /** + * @copydoc ModelInterface::GetHyphens() + */ + const Length* GetHyphenIndices() const override; + + /** + * @copydoc ModelInterface::GetHyphens() + */ + Length GetHyphensCount() const override; + + /** * @brief Does the text elide. * * It stores a copy of the visible glyphs and removes as many glyphs as needed