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