Resolve incorrect position for Ellipsis when mixed LTR & RTL languages and set layout...
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / text-io.h
index b65d917..3eaf9f0 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef __DALI_TEXT_ABSTRACTION_TEXT_IO_H__
-#define __DALI_TEXT_ABSTRACTION_TEXT_IO_H__
+#ifndef DALI_TEXT_ABSTRACTION_TEXT_IO_H
+#define DALI_TEXT_ABSTRACTION_TEXT_IO_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.
  */
 
 // EXTERNAL INCLUDES
-#include <iosfwd>
 #include <dali/public-api/common/dali-vector.h>
+#include <iosfwd>
 
 // INTERNAL INCLUDES
 #include <dali-toolkit/internal/text/font-run.h>
+#include <dali-toolkit/internal/text/line-run.h>
 #include <dali-toolkit/internal/text/script-run.h>
 #include <dali-toolkit/internal/text/text-definitions.h>
 
 namespace Dali
 {
-
 namespace Toolkit
 {
-
 namespace Text
 {
-
 /**
  * @brief Print a vector of characters.
  *
@@ -43,7 +41,7 @@ namespace Text
  * @param [in] text The text to print.
  * @return The output stream operator.
  */
-std::ostream& operator<< (std::ostream& o, const Vector<Character>& text);
+std::ostream& operator<<(std::ostream& o, const Vector<Character>& text);
 
 /**
  * @brief Print a vector of script runs.
@@ -52,7 +50,7 @@ std::ostream& operator<< (std::ostream& o, const Vector<Character>& text);
  * @param [in] scriptRuns The script runs to print.
  * @return The output stream operator.
  */
-std::ostream& operator<< (std::ostream& o, const Vector<ScriptRun>& scriptRuns);
+std::ostream& operator<<(std::ostream& o, const Vector<ScriptRun>& scriptRuns);
 
 /**
  * @brief Print a vector of font runs.
@@ -61,7 +59,16 @@ std::ostream& operator<< (std::ostream& o, const Vector<ScriptRun>& scriptRuns);
  * @param [in] fontRuns The font runs to print.
  * @return The output stream operator.
  */
-std::ostream& operator<< (std::ostream& o, const Vector<FontRun>& fontRuns);
+std::ostream& operator<<(std::ostream& o, const Vector<FontRun>& fontRuns);
+
+/**
+ * @brief Print a vector of line runs.
+ *
+ * @param [in] o The output stream operator.
+ * @param [in] lineRuns The line runs to print.
+ * @return The output stream operator.
+ */
+std::ostream& operator<<(std::ostream& o, const Vector<LineRun>& lineRuns);
 
 } // namespace Text
 
@@ -69,4 +76,4 @@ std::ostream& operator<< (std::ostream& o, const Vector<FontRun>& fontRuns);
 
 } // namespace Dali
 
-#endif // __DALI_TEXT_ABSTRACTION_TEXT_IO_H__
+#endif // DALI_TEXT_ABSTRACTION_TEXT_IO_H