projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated all header files to new format
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
text
/
markup-processor.h
diff --git
a/dali-toolkit/internal/text/markup-processor.h
b/dali-toolkit/internal/text/markup-processor.h
index
86ec1a6
..
fee7ae1
100644
(file)
--- 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) 20
15
Samsung Electronics Co., Ltd.
+ * Copyright (c) 20
21
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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-19,27
+19,39
@@
*/
// EXTERNAL INCLUDES
*/
// EXTERNAL INCLUDES
+#include <dali/public-api/common/dali-vector.h>
#include <string>
#include <string>
+// INTERNAL INCLUDES
+#include <dali-toolkit/internal/text/color-run.h>
+#include <dali-toolkit/internal/text/embedded-item.h>
+#include <dali-toolkit/internal/text/font-description-run.h>
+
namespace Dali
{
namespace Dali
{
-
namespace Toolkit
{
namespace Toolkit
{
-
namespace Text
{
namespace Text
{
-
/**
* @brief Keeps the plain text and references to vectors from the model which stores runs with text styles.
*/
struct MarkupProcessData
{
/**
* @brief Keeps the plain text and references to vectors from the model which stores runs with text styles.
*/
struct MarkupProcessData
{
- MarkupProcessData()
- : markupProcessedText()
- {}
+ MarkupProcessData(Vector<ColorRun>& colorRuns,
+ Vector<FontDescriptionRun>& fontRuns,
+ Vector<EmbeddedItem>& items)
+ : colorRuns(colorRuns),
+ fontRuns(fontRuns),
+ items(items),
+ markupProcessedText()
+ {
+ }
- std::string markupProcessedText;
+ Vector<ColorRun>& colorRuns; ///< The color runs.
+ Vector<FontDescriptionRun>& fontRuns; ///< The font description runs.
+ Vector<EmbeddedItem>& items; ///< The embedded items.
+ std::string markupProcessedText; ///< The mark-up string.
};
/**
};
/**
@@
-48,7
+60,7
@@
struct MarkupProcessData
* @param[in] markupString The mark-up string.
* @param[out] markupProcessData The plain text and the style.
*/
* @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
} // namespace Text
@@
-56,4
+68,4
@@
void ProcessMarkupString( const std::string& markupString, MarkupProcessData& ma
} // namespace Dali
} // namespace Dali
-#endif //
__DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_H__
+#endif //
DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_H