textrendering/texthandling/stext/TXTRTFLD.CPP
changeset 44 601ab138ba0b
parent 0 1fb32624e06b
child 55 336bee5c2d35
equal deleted inserted replaced
37:6be019398652 44:601ab138ba0b
    23 
    23 
    24 #include "TXTSTD.H"
    24 #include "TXTSTD.H"
    25 #include "TXTINDEX.H"
    25 #include "TXTINDEX.H"
    26 #include "ParseLst.h"
    26 #include "ParseLst.h"
    27 
    27 
       
    28 #include "OstTraceDefinitions.h"
       
    29 #ifdef OST_TRACE_COMPILER_IN_USE
       
    30 #include "TXTRTFLDTraces.h"
       
    31 #endif
       
    32 
    28 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
    33 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
    29 #include "TXTETEXT_INTERNAL.H"
    34 #include "TXTETEXT_INTERNAL.H"
    30 #endif 
    35 #endif 
    31 
    36 
    32 EXPORT_C void CRichText::UpdateFieldL(TInt aPos)
    37 EXPORT_C void CRichText::UpdateFieldL(TInt aPos)
    45 
    50 
    46 @param aPos A document position in the field to be updated. Must be a valid 
    51 @param aPos A document position in the field to be updated. Must be a valid 
    47 position, or a panic occurs. */
    52 position, or a panic occurs. */
    48 	{
    53 	{
    49 	__TEST_INVARIANT;
    54 	__TEST_INVARIANT;
       
    55 	if (aPos < 0 || aPos > DocumentLength())
       
    56 	    {
       
    57 	    OstTrace0( TRACE_DUMP, CRICHTEXT_UPDATEFIELDL, "ECharPosBeyondDocument" );
       
    58 	    }
    50 	__ASSERT_ALWAYS(aPos >= 0 && aPos <= DocumentLength(), Panic(ECharPosBeyondDocument));
    59 	__ASSERT_ALWAYS(aPos >= 0 && aPos <= DocumentLength(), Panic(ECharPosBeyondDocument));
    51 
    60 
    52  	TFindFieldInfo fieldInfo;
    61  	TFindFieldInfo fieldInfo;
    53 	if (iFieldSet->FindFields(fieldInfo, aPos))
    62 	if (iFieldSet->FindFields(fieldInfo, aPos))
    54 		{// a field exists at aPos, so update it.
    63 		{// a field exists at aPos, so update it.