os/textandloc/textrendering/textformatting/tbox/FRMPARAM.CPP
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 	}