textrendering/texthandling/stext/TXTRTPFL.H
changeset 32 8b9155204a54
parent 0 1fb32624e06b
equal deleted inserted replaced
31:b9ad20498fb4 32:8b9155204a54
       
     1 /*
       
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __TXTRTPFL_H__
       
    20 #define __TXTRTPFL_H__
       
    21 
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 
       
    25 
       
    26 //#define __ETEXT_PROFILE
       
    27 
       
    28 //
       
    29 // Macros for enabling profiling.
       
    30 
       
    31 #ifdef __ETEXT_PROFILE
       
    32 	#pragma message ("------------ N.B. profiling is enabled")
       
    33 	#include <e32svr.h>
       
    34 
       
    35 /**
       
    36 @internalComponent
       
    37 */
       
    38 	#define __ETEXT_WATCH(X) RDebug::ProfileStart(PROFILE_##X##);
       
    39 	#define __ETEXT_WATCH_END(X) RDebug::ProfileEnd(PROFILE_##X##);
       
    40 
       
    41 	#define FIRST_PROFILE_INDEX				10
       
    42 	#define PROFILE_APPLY_CHAR_FORMAT		10
       
    43 	#define PROFILE_REMOVE_PARA_FORMAT		11
       
    44 	#define PROFILE_APPEND_RICH_TEXT		12
       
    45 	#define PROFILE_GET_PARAGRAPH_FORMAT	13
       
    46 	#define PROFILE_INSERT_DESC				14
       
    47 	#define PROFILE_APPEND_PARAGRAPH		15
       
    48 	#define PROFILE_GET_SPECIFIC_CHARS		16
       
    49 	#define PROFILE_GET_CHARS				17
       
    50 	#define PROFILE_PICTURE_HANDLE			18
       
    51 	#define PROFILE_DETACH					19
       
    52 	#define PROFILE_DETACH_POS_LENGTH		20
       
    53 	#define PROFILE_RESTORE					21
       
    54 	#define PROFILE_COUNT					12
       
    55 #else
       
    56 	#define __ETEXT_WATCH(X)
       
    57 	#define __ETEXT_WATCH_END(X)
       
    58 #endif
       
    59 
       
    60 #endif