os/textandloc/textrendering/textformatting/test/tbandformat/inc/testenvironment.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/textandloc/textrendering/textformatting/test/tbandformat/inc/testenvironment.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,62 @@
1.4 +/*
1.5 +* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +*
1.19 +*/
1.20 +
1.21 +
1.22 +#ifndef __TESTENVIRONMENT_H
1.23 +#define __TESTENVIRONMENT_H
1.24 +
1.25 +#include <badesca.h>
1.26 +#include <txtglobl.h>
1.27 +#include <frmtview.h>
1.28 +#include <txtfmlyr.h>
1.29 +#include <txtrich.h>
1.30 +#include <frmtlay.h>
1.31 +
1.32 +/**
1.33 +@file
1.34 +@internalComponent
1.35 +*/
1.36 +class CCoeEnv;
1.37 +
1.38 +/**
1.39 +The test environment
1.40 +This manages the screen device and fonts
1.41 +*/
1.42 +class CBandTestEnvironment : public CBase
1.43 + {
1.44 +public:
1.45 + IMPORT_C static CBandTestEnvironment* NewLC(CCoeEnv& aCoeEnv, const TDesC& aFont, TInt aFontSize);
1.46 + IMPORT_C ~CBandTestEnvironment();
1.47 + IMPORT_C CParaFormatLayer* ParaFormat();
1.48 + IMPORT_C CCharFormatLayer* CharFormat();
1.49 + IMPORT_C CFbsScreenDevice& Device();
1.50 +private:
1.51 + CBandTestEnvironment(CCoeEnv& aCoeEnv);
1.52 + void ConstructL(const TDesC& aFont, TInt aFontSize);
1.53 +
1.54 + CCoeEnv& iCoeEnv;
1.55 + CParaFormatLayer* iParaFormatLayer;
1.56 + CCharFormatLayer* iCharFormatLayer;
1.57 + CFbsBitGc* iGc;
1.58 + CFbsScreenDevice* iDev;
1.59 + CFbsFont* iStandardFont;
1.60 + TTmCharFormat iStandardCharFormat;
1.61 + };
1.62 +
1.63 +#endif
1.64 +
1.65 +