sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
*
|
sl@0
|
16 |
*/
|
sl@0
|
17 |
|
sl@0
|
18 |
|
sl@0
|
19 |
#ifndef __FNTBODY_OLD_H__
|
sl@0
|
20 |
#define __FNTBODY_OLD_H__
|
sl@0
|
21 |
|
sl@0
|
22 |
#include <e32std.h>
|
sl@0
|
23 |
#include "FNTSTD.H"
|
sl@0
|
24 |
#include "FNTBODY.H"
|
sl@0
|
25 |
|
sl@0
|
26 |
class TBitmapCodeSectionOld : public TCodeSection
|
sl@0
|
27 |
{
|
sl@0
|
28 |
public:
|
sl@0
|
29 |
TBitmapCodeSectionOld(RHeap* aHeap);
|
sl@0
|
30 |
void InternalizeL(RReadStream& aStream);
|
sl@0
|
31 |
void RestoreComponentsL(const CStreamStore& aStreamStore);
|
sl@0
|
32 |
void FixUpComponents(TInt aFileAddress);
|
sl@0
|
33 |
void DeleteComponents();
|
sl@0
|
34 |
void operator delete(TAny*);
|
sl@0
|
35 |
void operator delete(TAny*,TAny*) {} // To prevent compiler warning
|
sl@0
|
36 |
TBitmapFontCharacterOffset* CharacterOffsetsList() const;
|
sl@0
|
37 |
TUint8* Bitmap() const;
|
sl@0
|
38 |
|
sl@0
|
39 |
private:
|
sl@0
|
40 |
void InternalizeOffsetsL(RReadStream& aStream);
|
sl@0
|
41 |
void InternalizeBitmapL(RReadStream& aStream);
|
sl@0
|
42 |
|
sl@0
|
43 |
RHeap* iHeap;
|
sl@0
|
44 |
TStreamId iOffsetsId;
|
sl@0
|
45 |
TInt iCharacterOffsetsListOffset;
|
sl@0
|
46 |
TStreamId iBitmapId;
|
sl@0
|
47 |
TInt iBitmapOffset;
|
sl@0
|
48 |
};
|
sl@0
|
49 |
|
sl@0
|
50 |
class CFontBitmapOld : public CBase
|
sl@0
|
51 |
{
|
sl@0
|
52 |
public:
|
sl@0
|
53 |
CFontBitmapOld(RHeap* aHeap,CFontStoreFile* aFontStoreFile);
|
sl@0
|
54 |
void InternalizeL(RReadStream &aStream);
|
sl@0
|
55 |
void UseL();
|
sl@0
|
56 |
void Release();
|
sl@0
|
57 |
TBitmapFontCharacterMetrics CharacterMetrics(TInt aCode,const TUint8*& aBytes) const;
|
sl@0
|
58 |
void operator delete(TAny*);
|
sl@0
|
59 |
void operator delete(TAny*,TAny*) {} // To prevent compiler warning
|
sl@0
|
60 |
void SetPosture(TFontPosture aPosture);
|
sl@0
|
61 |
TFontPosture Posture();
|
sl@0
|
62 |
void SetStrokeWeight(TFontStrokeWeight aStrokeWeight);
|
sl@0
|
63 |
TFontStrokeWeight StrokeWeight();
|
sl@0
|
64 |
void SetIsProportional(TBool aIsProportional);
|
sl@0
|
65 |
TBool IsProportional();
|
sl@0
|
66 |
CFontStoreFile* FontStoreFile() const;
|
sl@0
|
67 |
protected:
|
sl@0
|
68 |
~CFontBitmapOld();
|
sl@0
|
69 |
void RestoreComponentsL(); // Has reference to FontStoreFile
|
sl@0
|
70 |
void DeleteComponents();
|
sl@0
|
71 |
TBitmapCodeSectionOld* CodeSectionList() const;
|
sl@0
|
72 |
TCharacterMetricsTable* MetricsTable() const;
|
sl@0
|
73 |
public:
|
sl@0
|
74 |
RHeap* iHeap;
|
sl@0
|
75 |
TInt iFontStoreFileOffset;
|
sl@0
|
76 |
TUid iUid;
|
sl@0
|
77 |
protected:
|
sl@0
|
78 |
TInt8 iPosture;
|
sl@0
|
79 |
TInt8 iStrokeWeight;
|
sl@0
|
80 |
TInt8 iIsProportional;
|
sl@0
|
81 |
TBool iIsInRAM;
|
sl@0
|
82 |
TInt iUsageCount;
|
sl@0
|
83 |
public:
|
sl@0
|
84 |
TInt8 iCellHeightInPixels;
|
sl@0
|
85 |
TInt8 iAscentInPixels;
|
sl@0
|
86 |
TInt8 iMaxCharWidthInPixels;
|
sl@0
|
87 |
TInt8 iMaxNormalCharWidthInPixels;
|
sl@0
|
88 |
TInt iBitmapEncoding;
|
sl@0
|
89 |
TInt iNumCodeSections;
|
sl@0
|
90 |
TInt iCodeSectionListOffset;
|
sl@0
|
91 |
private:
|
sl@0
|
92 |
TCharacterMetricsTable iCharacterMetricsTable;
|
sl@0
|
93 |
};
|
sl@0
|
94 |
|
sl@0
|
95 |
#endif // __FNTBODY_OLD_H__
|