|
1 /* |
|
2 * Copyright (c) 2005-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 @test |
|
20 @internalComponent |
|
21 |
|
22 This contains CT_DataBitmapDevice |
|
23 */ |
|
24 |
|
25 #if (!defined __T_DATA_BITMAP_DEVICE_H__) |
|
26 #define __T_DATA_BITMAP_DEVICE_H__ |
|
27 |
|
28 // User includes |
|
29 #include "T_DataGraphicsDevice.h" |
|
30 |
|
31 class CT_DataBitmapDevice : public CT_DataGraphicsDevice |
|
32 { |
|
33 public: |
|
34 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
35 |
|
36 protected: |
|
37 CT_DataBitmapDevice(); |
|
38 ~CT_DataBitmapDevice(); |
|
39 |
|
40 virtual CBitmapDevice* GetBitmapDevice() const = 0; |
|
41 |
|
42 void DoCmdAddFileL(const TDesC& aSection); |
|
43 void DoCmdCreateBitmapContextL(const TDesC& aSection); |
|
44 void DoCmdFontHeightInPixels(const TDesC& aSection); |
|
45 void DoCmdGetNearestFontInPixelsL(const TDesC& aSection); |
|
46 void DoCmdGetNearestFontToDesignHeightInPixelsL(const TDesC& aSection); |
|
47 void DoCmdGetNearestFontToMaxHeightInPixelsL(const TDesC& aSection); |
|
48 void DoCmdGetPixel(const TDesC& aSection); |
|
49 void DoCmdGetScanLineL(const TDesC& aSection); |
|
50 void DoCmdRemoveFile(const TDesC& aSection); |
|
51 |
|
52 void CheckScanLine(const TDesC& aSection,TDes8 &aBuf); |
|
53 |
|
54 private: |
|
55 RArray<TPtrC> iFile; |
|
56 RArray<TInt> iId; |
|
57 }; |
|
58 |
|
59 #endif /* __T_DATA_BITMAP_DEVICE_H__ */ |