X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fmarkup-processor-strikethrough.h;h=fca6d3443cfe5898d0494235c3f12b33d753d26e;hb=ba1c6fea08ea39ca92356ae4b39a952919398e7e;hp=6c0a520b26ad9aa4f1b6e8ac16e8735c2d696322;hpb=e029ad17187a0cc3749982788e16e5a5bbb65301;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/markup-processor-strikethrough.h b/dali-toolkit/internal/text/markup-processor-strikethrough.h index 6c0a520..fca6d34 100644 --- a/dali-toolkit/internal/text/markup-processor-strikethrough.h +++ b/dali-toolkit/internal/text/markup-processor-strikethrough.h @@ -18,6 +18,12 @@ * */ +// EXTERNAL INCLUDES +#include + +// INTERNAL INCLUDES +#include + namespace Dali { namespace Toolkit @@ -25,9 +31,26 @@ namespace Toolkit namespace Text { struct Tag; +struct Attribute; struct StrikethroughCharacterRun; /** + * @brief Fill the strikethrough character run with the color attribute value. + * + * @param[in] attribute the color attribute. + * @param[out] strikethroughCharacterRun The strikethrough character run + */ +void ProcessColorAttribute(const Attribute& attribute, StrikethroughCharacterRun& strikethroughCharacterRun); + +/** + * @brief Fill the strikethrough character run with the height attribute value. + * + * @param[in] attribute the height attribute. + * @param[out] strikethroughRun The strikethrough character run + */ +void ProcessHeightAttribute(const Attribute& attribute, StrikethroughCharacterRun& strikethroughRun); + +/** * @brief Retrieves the strikethrough run info from the tag and sets it to the strikethrough run. * * @param[in] tag The strikethrough tag and its attributes. @@ -35,6 +58,13 @@ struct StrikethroughCharacterRun; */ void ProcessStrikethroughTag(const Tag& tag, StrikethroughCharacterRun& strikethroughRun); +/** + * @brief Override the run's attributes which contained in the previous run. This is to handle the nested tags. + * + * @param[in,out] strikethroughCharacterRun The list of strikethrough character run + */ +void OverrideNestedStrikethroughCharacterRuns(Vector& strikethroughCharacterRun); + } // namespace Text } // namespace Toolkit