|
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 the License "Symbian Foundation License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/sfl-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_DataGraphicsContext |
|
23 */ |
|
24 |
|
25 #if (!defined __T_DATA_GRAPHICS_CONTEXT_H__) |
|
26 #define __T_DATA_GRAPHICS_CONTEXT_H__ |
|
27 |
|
28 // epoc32 includes |
|
29 #include <gdi.h> |
|
30 |
|
31 // User Includes |
|
32 #include "DataWrapperBase.h" |
|
33 |
|
34 class CT_DataGraphicsContext : public CDataWrapperBase |
|
35 { |
|
36 public: |
|
37 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
38 |
|
39 protected: |
|
40 CT_DataGraphicsContext(); |
|
41 virtual CGraphicsContext* GetGraphicsContext() const = 0; |
|
42 |
|
43 void DoCmdCancelClippingRect(); |
|
44 void DoCmdCancelClippingRegion(); |
|
45 void DoCmdDeviceL(const TDesC& aSection); |
|
46 void DoCmdDiscardBrushPattern(); |
|
47 void DoCmdDiscardFont(); |
|
48 void DoCmdDrawArc(const TDesC& aSection); |
|
49 void DoCmdDrawBitmapL(const TDesC& aSection); |
|
50 void DoCmdDrawBitmapMaskedL(const TDesC& aSection); |
|
51 void DoCmdDrawEllipse(const TDesC& aSection); |
|
52 void DoCmdDrawLine(const TDesC& aSection); |
|
53 void DoCmdDrawLineBy(const TDesC& aSection); |
|
54 void DoCmdDrawLineTo(const TDesC& aSection); |
|
55 void DoCmdDrawPie(const TDesC& aSection); |
|
56 void DoCmdDrawPolygonL(const TDesC& aSection); |
|
57 void DoCmdDrawPolyLineL(const TDesC& aSection); |
|
58 void DoCmdDrawRect(const TDesC& aSection); |
|
59 void DoCmdDrawRoundRect(const TDesC& aSection); |
|
60 void DoCmdDrawText(const TDesC& aSection); |
|
61 void DoCmdDrawTextExtendedL(const TDesC& aSection); |
|
62 void DoCmdDrawTextVertical(const TDesC& aSection); |
|
63 void DoCmdGetShadowColor(const TDesC& aSection); |
|
64 void DoCmdGetUnderlineMetrics(const TDesC& aSection); |
|
65 void DoCmdJustificationInPixels(const TDesC& aSection); |
|
66 void DoCmdMapColorsL(const TDesC& aSection); |
|
67 void DoCmdMoveBy(const TDesC& aSection); |
|
68 void DoCmdMoveTo(const TDesC& aSection); |
|
69 void DoCmdPlot(const TDesC& aSection); |
|
70 void DoCmdReserved(); |
|
71 void DoCmdReset(); |
|
72 void DoCmdSetBrushColor(const TDesC& aSection); |
|
73 void DoCmdSetBrushOrigin(const TDesC& aSection); |
|
74 void DoCmdSetBrushStyle(const TDesC& aSection); |
|
75 void DoCmdSetClippingRegion(const TDesC& aSection); |
|
76 void DoCmdSetCharJustification(const TDesC& aSection); |
|
77 void DoCmdSetClippingRect(const TDesC& aSection); |
|
78 void DoCmdSetDrawMode(const TDesC& aSection); |
|
79 void DoCmdSetOrigin(const TDesC& aSection); |
|
80 void DoCmdSetPenColor(const TDesC& aSection); |
|
81 void DoCmdSetPenSize(const TDesC& aSection); |
|
82 void DoCmdSetPenStyle(const TDesC& aSection); |
|
83 void DoCmdSetShadowColor(const TDesC& aSection); |
|
84 void DoCmdSetStrikethroughStyle(const TDesC& aSection); |
|
85 void DoCmdSetUnderlineStyle(const TDesC& aSection); |
|
86 void DoCmdSetWordJustification(const TDesC& aSection); |
|
87 void DoCmdUseBrushPatternL(const TDesC& aSection); |
|
88 void DoCmdUseFontL(const TDesC& aSection); |
|
89 }; |
|
90 |
|
91 #endif /* __T_DATA_GRAPHICS_CONTEXT_H__ */ |