|
1 /* |
|
2 * Copyright (c) 2005-2006 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: Factory for creating CXnText -component |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef _XNTEXTFACTORY_H |
|
21 #define _XNTEXTFACTORY_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "xncomponentfactory.h" |
|
25 #include <e32base.h> |
|
26 #include <e32std.h> |
|
27 |
|
28 #include <ecom/ecom.h> |
|
29 #include <ecom/implementationproxy.h> |
|
30 |
|
31 |
|
32 // FORWARD DECLARATIONS |
|
33 class CXnComponent; |
|
34 |
|
35 // CLASS DECLARATION |
|
36 |
|
37 /** |
|
38 * @ingroup group_xntextfactory |
|
39 * |
|
40 * Component factory interface for creating UI representations of the elements. |
|
41 * This class is wrapper for containing CEikLabel |
|
42 * |
|
43 * @lib xn3textfactory.lib |
|
44 * @since Series 60 3.1 |
|
45 */ |
|
46 // inheritance order must be this, despite codescanner warnings |
|
47 class CXnTextFactory : public MXnComponentFactory, public CBase |
|
48 { |
|
49 public: // Data types |
|
50 |
|
51 public: // Constructors and destructor |
|
52 |
|
53 /** |
|
54 * Two-phased constructor. |
|
55 */ |
|
56 static CXnTextFactory* NewL(); |
|
57 |
|
58 /** |
|
59 * Destructor. |
|
60 */ |
|
61 virtual ~CXnTextFactory(); |
|
62 |
|
63 |
|
64 public: // Functions from base classes |
|
65 |
|
66 /** |
|
67 * Creates the Xuikon component for text component. |
|
68 * @param aNode Corresponding DOM-node |
|
69 * @param aTargetComponent Pointer reference to the component to be created. |
|
70 */ |
|
71 virtual TXnComponentFactoryResponse MakeXnComponentL( |
|
72 CXnNodePluginIf& aNode, |
|
73 CXnComponent*& aTargetComponent |
|
74 ); |
|
75 |
|
76 /** |
|
77 * Creates the control adapter for text component. |
|
78 * @param aNode Corresponding DOM-node |
|
79 */ |
|
80 virtual CXnControlAdapter* MakeXnControlAdapterL( |
|
81 CXnNodePluginIf& aNode, |
|
82 CXnControlAdapter* aParent |
|
83 ); |
|
84 |
|
85 private: |
|
86 |
|
87 /** |
|
88 * 2nd phase constructor. |
|
89 */ |
|
90 void ConstructL(); |
|
91 |
|
92 /** |
|
93 * C++ default constructor. |
|
94 */ |
|
95 CXnTextFactory(); |
|
96 |
|
97 }; |
|
98 |
|
99 // Exported factory function required by ECOM-framework |
|
100 IMPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount); |
|
101 |
|
102 #endif // _XNTEXTFACTORY_H |
|
103 |
|
104 // End of File |