os/textandloc/textrendering/textformatting/test/tbandformat/inc/testenvironment.h
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) 2006-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 #ifndef __TESTENVIRONMENT_H
    20 #define __TESTENVIRONMENT_H
    21 
    22 #include <badesca.h>
    23 #include <txtglobl.h>
    24 #include <frmtview.h>
    25 #include <txtfmlyr.h>
    26 #include <txtrich.h>
    27 #include <frmtlay.h>
    28 
    29 /**
    30 @file
    31 @internalComponent 
    32 */
    33 class CCoeEnv;
    34 
    35 /**
    36 The test environment
    37 This manages the screen device and fonts
    38 */
    39 class CBandTestEnvironment : public CBase
    40 	{
    41 public:
    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();
    47 private:
    48 	CBandTestEnvironment(CCoeEnv& aCoeEnv);
    49 	void ConstructL(const TDesC& aFont, TInt aFontSize);
    50 	
    51 	CCoeEnv& iCoeEnv;
    52 	CParaFormatLayer* iParaFormatLayer;
    53 	CCharFormatLayer* iCharFormatLayer; 	
    54 	CFbsBitGc* iGc;
    55 	CFbsScreenDevice* iDev;
    56 	CFbsFont* iStandardFont;
    57 	TTmCharFormat iStandardCharFormat;
    58 	};
    59 	
    60 #endif
    61 
    62