os/textandloc/textrendering/textformatting/tbox/FORMUTIL.H
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 * Header for private FORM stuff.
    16 *
    17 */
    18 
    19 
    20 #ifndef __FORMUTIL__
    21 #define __FORMUTIL__
    22 
    23 #include <frmtlay.h>
    24 
    25 /**
    26 @internalComponent
    27 */
    28 class FormUtil
    29 
    30 	{
    31 	public:
    32 	static void LogicalToActualColor(const MFormParam* aParam,TLogicalRgb& aColor)
    33 			{
    34 			if (aParam)
    35 				{
    36 				TUint index = aColor.SystemColorIndex();
    37 				if (index)
    38 					{
    39 					aColor &= 0xFFFFFF;
    40 					aColor = aParam->SystemColor(index,aColor);
    41 					}
    42 				}
    43 			}
    44 	static void SetPenColor(const MFormParam* aParam,CGraphicsContext* aGc,TLogicalRgb aColor);
    45 	static void SetBrushColor(const MFormParam* aParam,CGraphicsContext* aGc,TLogicalRgb aColor);
    46 	};
    47 
    48 #endif //__FORMUTIL__