textrendering/textformatting/tbox/FRMPARAM.CPP
changeset 0 1fb32624e06b
equal deleted inserted replaced
-1:000000000000 0:1fb32624e06b
       
     1 /*
       
     2 * Copyright (c) 1999-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 * FORM global parameters; held in thread-local storage.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include "FRMPARAM.H"
       
    21 #include <e32base.h>
       
    22 
       
    23 /** Sets the thread-local storage to aParam.
       
    24 @param aParam
       
    25 	Pointer to the MFormParam implementation, or null, to cancel using system
       
    26 	colours.
       
    27 */
       
    28 EXPORT_C void MFormParam::Set(const MFormParam* aParam)
       
    29 	{
       
    30 	Dll::SetTls((void*)aParam);
       
    31 	};
       
    32 
       
    33 /** Gets the thread-local storage value.
       
    34 @return Pointer to the MFormParam implementation. */
       
    35 EXPORT_C const MFormParam* MFormParam::Get()
       
    36 	{
       
    37 	return (const MFormParam*)Dll::Tls();
       
    38 	}
       
    39 
       
    40 EXPORT_C void MFormParam::Reserved()
       
    41 	{
       
    42 	}