author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 13 Oct 2010 14:11:15 +0300 | |
branch | RCL_3 |
changeset 80 | 726fba06891a |
parent 64 | 3533d4323edc |
permissions | -rw-r--r-- |
64 | 1 |
/* |
2 |
* Copyright (c) 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: Response dialog's custom control implementation |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
#ifndef CESMRRESPONSEDIALOGVIEW_H |
|
20 |
#define CESMRRESPONSEDIALOGVIEW_H |
|
21 |
||
22 |
// INCLUDES |
|
23 |
#include <coecntrl.h> |
|
24 |
||
25 |
// FORWARD DECLARATIONS |
|
26 |
class CAknsBasicBackgroundControlContext; |
|
27 |
class CEikRichTextEditor; |
|
28 |
||
29 |
/** |
|
30 |
* View for response dialog. |
|
31 |
* |
|
32 |
* @lib esmrgui.lib |
|
33 |
*/ |
|
34 |
NONSHARABLE_CLASS( CESMRResponseDialogView ) : public CCoeControl |
|
35 |
{ |
|
36 |
public: |
|
37 |
/** |
|
38 |
* Two-phased constructor. |
|
39 |
*/ |
|
40 |
static CESMRResponseDialogView* NewL(); |
|
41 |
||
42 |
/** |
|
43 |
* Destructor. |
|
44 |
*/ |
|
45 |
~CESMRResponseDialogView(); |
|
46 |
||
47 |
/** |
|
48 |
* Fetches the text written to dialog, Ownership |
|
49 |
* is trasferred |
|
50 |
* @return HBufC Text in buffer |
|
51 |
*/ |
|
52 |
HBufC* GetTextL(); |
|
53 |
||
54 |
public:// From CCoeControl |
|
55 |
void Draw(const TRect& aRect) const; |
|
56 |
TInt CountComponentControls() const; |
|
57 |
CCoeControl* ComponentControl( TInt aInd ) const; |
|
58 |
void SetContainerWindowL(const CCoeControl& aContainer); |
|
59 |
TKeyResponse OfferKeyEventL(const TKeyEvent& aEvent, TEventCode aType); |
|
60 |
void HandleResourceChange( TInt aType ); |
|
61 |
TTypeUid::Ptr MopSupplyObject( TTypeUid aId ); |
|
62 |
void SizeChanged(); |
|
80
726fba06891a
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
63 |
TSize MinimumSize(); |
64 | 64 |
|
65 |
private: |
|
66 |
||
67 |
CESMRResponseDialogView(); |
|
68 |
void ConstructL(); |
|
80
726fba06891a
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
69 |
void SetFontL( const CFont* aFont ); |
726fba06891a
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
70 |
|
64 | 71 |
private: // Data |
72 |
/// Own: |
|
73 |
CEikRichTextEditor* iEditor; |
|
74 |
/// Own: bg context |
|
75 |
CAknsBasicBackgroundControlContext* iBgContext; |
|
76 |
}; |
|
77 |
||
78 |
#endif // CESMRRESPONSEDIALOGVIEW_H |