X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fmarkup-processor-underline.cpp;h=08b9f1ee679780dc42507c58fafbbc77c13a41ae;hb=d19410c023c18c050ae226c72c6d79ebf9b0de80;hp=8f19b5a871d6335107d9922b870cb713940cbac5;hpb=22451f7abe0230b418d551d9eac0c685273e72f1;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/markup-processor-underline.cpp b/dali-toolkit/internal/text/markup-processor-underline.cpp index 8f19b5a..08b9f1e 100644 --- a/dali-toolkit/internal/text/markup-processor-underline.cpp +++ b/dali-toolkit/internal/text/markup-processor-underline.cpp @@ -24,6 +24,7 @@ // INTERNAL INCLUDES #include #include +#include #include #include @@ -35,12 +36,6 @@ namespace Text { namespace { -const std::string XHTML_COLOR_ATTRIBUTE("color"); -const std::string XHTML_HEIGHT_ATTRIBUTE("height"); -const std::string XHTML_TYPE_ATTRIBUTE("type"); -const std::string XHTML_DASH_GAP_ATTRIBUTE("dash-gap"); -const std::string XHTML_DASH_WIDTH_ATTRIBUTE("dash-width"); - const unsigned int MAX_TYPE_ATTRIBUTE_SIZE = 7u; ///< The maximum length of any of the possible 'type' values. } // namespace @@ -85,23 +80,23 @@ void ProcessUnderlineTag(const Tag& tag, UnderlinedCharacterRun& underlinedChara { const Attribute& attribute(*it); - if(TokenComparison(XHTML_COLOR_ATTRIBUTE, attribute.nameBuffer, attribute.nameLength)) + if(TokenComparison(MARKUP::UNDERLINE_ATTRIBUTES::COLOR, attribute.nameBuffer, attribute.nameLength)) { ProcessColorAttribute(attribute, underlinedCharacterRun); } - else if(TokenComparison(XHTML_HEIGHT_ATTRIBUTE, attribute.nameBuffer, attribute.nameLength)) + else if(TokenComparison(MARKUP::UNDERLINE_ATTRIBUTES::HEIGHT, attribute.nameBuffer, attribute.nameLength)) { ProcessHeightAttribute(attribute, underlinedCharacterRun); } - else if(TokenComparison(XHTML_TYPE_ATTRIBUTE, attribute.nameBuffer, attribute.nameLength)) + else if(TokenComparison(MARKUP::UNDERLINE_ATTRIBUTES::TYPE, attribute.nameBuffer, attribute.nameLength)) { ProcessTypeAttribute(attribute, underlinedCharacterRun); } - else if(TokenComparison(XHTML_DASH_GAP_ATTRIBUTE, attribute.nameBuffer, attribute.nameLength)) + else if(TokenComparison(MARKUP::UNDERLINE_ATTRIBUTES::DASH_GAP, attribute.nameBuffer, attribute.nameLength)) { ProcessDashGapAttribute(attribute, underlinedCharacterRun); } - else if(TokenComparison(XHTML_DASH_WIDTH_ATTRIBUTE, attribute.nameBuffer, attribute.nameLength)) + else if(TokenComparison(MARKUP::UNDERLINE_ATTRIBUTES::DASH_WIDTH, attribute.nameBuffer, attribute.nameLength)) { ProcessDashWidthAttribute(attribute, underlinedCharacterRun); }