os/textandloc/textrendering/textformatting/test/tbandformat/inc/testenvironment.h
First public contribution.
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 #ifndef __TESTENVIRONMENT_H
20 #define __TESTENVIRONMENT_H
37 This manages the screen device and fonts
39 class CBandTestEnvironment : public CBase
42 IMPORT_C static CBandTestEnvironment* NewLC(CCoeEnv& aCoeEnv, const TDesC& aFont, TInt aFontSize);
43 IMPORT_C ~CBandTestEnvironment();
44 IMPORT_C CParaFormatLayer* ParaFormat();
45 IMPORT_C CCharFormatLayer* CharFormat();
46 IMPORT_C CFbsScreenDevice& Device();
48 CBandTestEnvironment(CCoeEnv& aCoeEnv);
49 void ConstructL(const TDesC& aFont, TInt aFontSize);
52 CParaFormatLayer* iParaFormatLayer;
53 CCharFormatLayer* iCharFormatLayer;
55 CFbsScreenDevice* iDev;
56 CFbsFont* iStandardFont;
57 TTmCharFormat iStandardCharFormat;