24 #ifndef __SnpTextAttrHelper_H_DEFINED__ 25 #define __SnpTextAttrHelper_H_DEFINED__ 29 namespace SnpTextAttrHelper {
44 template <
class TextAttrType,
class _Val_Type>
50 ErrorCode status = kFailure;
54 if (textRange.IsValid() == kFalse)
56 SNIPLOG(
"textRange is invalid - you must have some text selected first.");
62 RangeData rangeData = textRange.GetRange();
66 if (composeScanner == nil)
68 ASSERT(composeScanner);
break;
74 if (attrReport == nil)
76 SNIPLOG(
"Could not find text attribute with Class ID 0x%X on the selected text!", attrClassID.Get());
84 SNIPLOG(
"attr is nil! (Class ID 0x%X)", attrClassID.Get());
89 const _Val_Type tempValue = attr->Get();
133 template <
class TextAttrType,
class _Val_Type>
135 const _Val_Type& value)
143 ASSERT_FAIL(
"attr is nil!");
147 const _Val_Type tempValue = value;
148 attr->Set(tempValue);
151 attrReport = localAttrReport.forget();
179 const bool16& fontName);
213 #endif //#define __SnpTextAttrHelper_H_DEFINED__