X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fmarkup-processor.h;h=c75ca0ce77e64c2b82cf6d316b42a4c2db5a2586;hb=7018f61b640b6fcf9cb576b537bafcb6bb8240e8;hp=de66e7f56cb3a5159bef6ebb5029f24f2cabb650;hpb=d82494a77e405d5924cf1af3fe55b2d9b9577e3f;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/markup-processor.h b/dali-toolkit/internal/text/markup-processor.h old mode 100755 new mode 100644 index de66e7f..c75ca0c --- a/dali-toolkit/internal/text/markup-processor.h +++ b/dali-toolkit/internal/text/markup-processor.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_H /* - * Copyright (c) 2019 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. @@ -23,36 +23,38 @@ #include // INTERNAL INCLUDES +#include #include #include #include namespace Dali { - namespace Toolkit { - namespace Text { - /** * @brief Keeps the plain text and references to vectors from the model which stores runs with text styles. */ struct MarkupProcessData { -MarkupProcessData( Vector& colorRuns, - Vector& fontRuns, - Vector& items ) - : colorRuns( colorRuns ), - fontRuns( fontRuns ), + MarkupProcessData(Vector& colorRuns, + Vector& fontRuns, + Vector& items, + Vector& anchors) + : colorRuns(colorRuns), + fontRuns(fontRuns), items(items), + anchors(anchors), markupProcessedText() - {} + { + } Vector& colorRuns; ///< The color runs. Vector& fontRuns; ///< The font description runs. Vector& items; ///< The embedded items. + Vector& anchors; ///< The anchors. std::string markupProcessedText; ///< The mark-up string. }; @@ -62,7 +64,7 @@ MarkupProcessData( Vector& colorRuns, * @param[in] markupString The mark-up string. * @param[out] markupProcessData The plain text and the style. */ -void ProcessMarkupString( const std::string& markupString, MarkupProcessData& markupProcessData ); +void ProcessMarkupString(const std::string& markupString, MarkupProcessData& markupProcessData); } // namespace Text