X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali-toolkit%2Finternal%2Ftext%2Fmarkup-processor.h;h=c75ca0ce77e64c2b82cf6d316b42a4c2db5a2586;hb=8135447dde34dce2e12480c1290f48a4d1dfa702;hp=966622efd1d47c601bbfa8d61dfa774d65a569d1;hpb=213195730a51b211653cb6ad460b23a6e363b779;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 index 966622e..c75ca0c 100644 --- a/dali-toolkit/internal/text/markup-processor.h +++ b/dali-toolkit/internal/text/markup-processor.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_H__ -#define __DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_H__ +#ifndef DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_H +#define DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_H /* - * Copyright (c) 2015 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,30 +23,39 @@ #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 ) - : colorRuns( colorRuns ), + MarkupProcessData(Vector& colorRuns, + Vector& fontRuns, + Vector& items, + Vector& anchors) + : colorRuns(colorRuns), + fontRuns(fontRuns), + items(items), + anchors(anchors), markupProcessedText() - {} - - Vector& colorRuns; + { + } - std::string 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. }; /** @@ -55,7 +64,7 @@ struct MarkupProcessData * @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 @@ -63,4 +72,4 @@ void ProcessMarkupString( const std::string& markupString, MarkupProcessData& ma } // namespace Dali -#endif // __DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_H__ +#endif // DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_H