textrendering/texthandling/stext/TXTUTIL.CPP
changeset 0 1fb32624e06b
equal deleted inserted replaced
-1:000000000000 0:1fb32624e06b
       
     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 #include "TXTSTD.H"
       
    20 #include "TXTINDEX.H"
       
    21 #include "TXTFRMAT.H"
       
    22 
       
    23 
       
    24 // Allows CParaAttribs on the CleanupStack to be destroyed correctly when included as a PushL(TCleanupItem).
       
    25 GLDEF_C void ReleaseOnCleanup(TAny* aParaAttribs)
       
    26 	{
       
    27 	((CParaAttribs*)aParaAttribs)->Release();
       
    28 	}
       
    29 	
       
    30 // Allows CParaFormat on the CleanupStack to be destroyed correctly when included as a PushL(TCleanupItem).
       
    31 void ResetOnCleanup(TAny* aParaFormat)
       
    32 	{
       
    33 	reinterpret_cast<CParaFormat*>(aParaFormat)->Strip();
       
    34 	}
       
    35 	
       
    36 GLDEF_C void Panic(TETextPanic aPanic)
       
    37 	{
       
    38 	_LIT(KETextPanic,"ETEXT");
       
    39 	User::Panic(KETextPanic,aPanic);
       
    40 	}
       
    41 
       
    42