os/textandloc/fontservices/fontstore/tfs/FNTBODY_OLD.H
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/textandloc/fontservices/fontstore/tfs/FNTBODY_OLD.H	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,95 @@
     1.4 +/*
     1.5 +* Copyright (c) 1996-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 __FNTBODY_OLD_H__
    1.23 +#define __FNTBODY_OLD_H__
    1.24 +
    1.25 +#include <e32std.h>
    1.26 +#include "FNTSTD.H"
    1.27 +#include "FNTBODY.H"
    1.28 +
    1.29 +class TBitmapCodeSectionOld : public TCodeSection
    1.30 +	{
    1.31 +	public:			  
    1.32 +	TBitmapCodeSectionOld(RHeap* aHeap);
    1.33 +	void InternalizeL(RReadStream& aStream);
    1.34 +	void RestoreComponentsL(const CStreamStore& aStreamStore);
    1.35 +	void FixUpComponents(TInt aFileAddress);
    1.36 +	void DeleteComponents();
    1.37 +	void operator delete(TAny*);
    1.38 +	void operator delete(TAny*,TAny*) {} // To prevent compiler warning
    1.39 +	TBitmapFontCharacterOffset* CharacterOffsetsList() const;
    1.40 +	TUint8* Bitmap() const;
    1.41 +
    1.42 +	private:
    1.43 +	void InternalizeOffsetsL(RReadStream& aStream);
    1.44 +	void InternalizeBitmapL(RReadStream& aStream);
    1.45 +
    1.46 +	RHeap* iHeap;
    1.47 +	TStreamId iOffsetsId;
    1.48 +	TInt iCharacterOffsetsListOffset;
    1.49 +	TStreamId iBitmapId;
    1.50 +	TInt iBitmapOffset;
    1.51 +	};
    1.52 +
    1.53 +class CFontBitmapOld : public CBase
    1.54 +	{
    1.55 +public:
    1.56 +	CFontBitmapOld(RHeap* aHeap,CFontStoreFile* aFontStoreFile);
    1.57 +	void InternalizeL(RReadStream &aStream);
    1.58 +	void UseL();
    1.59 +	void Release();
    1.60 +	TBitmapFontCharacterMetrics CharacterMetrics(TInt aCode,const TUint8*& aBytes) const;
    1.61 +	void operator delete(TAny*);
    1.62 +	void operator delete(TAny*,TAny*) {} // To prevent compiler warning
    1.63 +	void SetPosture(TFontPosture aPosture);
    1.64 +	TFontPosture Posture();
    1.65 +	void SetStrokeWeight(TFontStrokeWeight aStrokeWeight);
    1.66 +	TFontStrokeWeight StrokeWeight();
    1.67 +	void SetIsProportional(TBool aIsProportional);
    1.68 +	TBool IsProportional();
    1.69 +	CFontStoreFile* FontStoreFile() const;
    1.70 +protected:
    1.71 +	~CFontBitmapOld();
    1.72 +	void RestoreComponentsL();	 //  Has reference to FontStoreFile
    1.73 +	void DeleteComponents();   
    1.74 +	TBitmapCodeSectionOld* CodeSectionList() const;
    1.75 +	TCharacterMetricsTable* MetricsTable() const;
    1.76 +public:
    1.77 +	RHeap* iHeap;
    1.78 +	TInt iFontStoreFileOffset;
    1.79 +	TUid iUid;
    1.80 +protected:
    1.81 +	TInt8 iPosture;
    1.82 +	TInt8 iStrokeWeight;
    1.83 +	TInt8 iIsProportional;
    1.84 +	TBool iIsInRAM;
    1.85 +	TInt iUsageCount;
    1.86 +public:
    1.87 +	TInt8 iCellHeightInPixels;
    1.88 +	TInt8 iAscentInPixels;
    1.89 +	TInt8 iMaxCharWidthInPixels;
    1.90 +	TInt8 iMaxNormalCharWidthInPixels;
    1.91 +	TInt iBitmapEncoding;
    1.92 +	TInt iNumCodeSections;
    1.93 +	TInt iCodeSectionListOffset;
    1.94 +private:
    1.95 +	TCharacterMetricsTable iCharacterMetricsTable;
    1.96 +	};
    1.97 +
    1.98 +#endif // __FNTBODY_OLD_H__