equal
deleted
inserted
replaced
66 // (other items were commented in a header) |
66 // (other items were commented in a header) |
67 // --------------------------------------------------------------------------- |
67 // --------------------------------------------------------------------------- |
68 // |
68 // |
69 void CAknFepUiSpellInputPane::ConstructL( CCoeControl* aParent, |
69 void CAknFepUiSpellInputPane::ConstructL( CCoeControl* aParent, |
70 const TInt aEditorFlag, const TInt aEditorCase, |
70 const TInt aEditorFlag, const TInt aEditorCase, |
71 const TInt aEditorSCTResID ) |
71 const TInt aEditorSCTResID, |
|
72 const TBool aIsSplitEditor ) |
72 { |
73 { |
73 // Create as a child window of the specified parent control's window. |
74 // Create as a child window of the specified parent control's window. |
74 CreateWindowL( aParent ); |
75 CreateWindowL( aParent ); |
75 |
76 |
76 SetMopParent(aParent); |
77 SetMopParent(aParent); |
81 iInputWin->SetContainerWindowL( *this ); |
82 iInputWin->SetContainerWindowL( *this ); |
82 iInputWin->ConstructL(0,0,0,KTouchSpellEditorMaxLine); |
83 iInputWin->ConstructL(0,0,0,KTouchSpellEditorMaxLine); |
83 |
84 |
84 iInputWin->SetAknEditorInputMode(EAknEditorTextInputMode); |
85 iInputWin->SetAknEditorInputMode(EAknEditorTextInputMode); |
85 iInputWin->SetAknEditorSpecialCharacterTable(aEditorSCTResID); |
86 iInputWin->SetAknEditorSpecialCharacterTable(aEditorSCTResID); |
86 iInputWin->SetAknEditorFlags(iInputWin->AknEdwinFlags() | |
87 if ( aIsSplitEditor ) |
87 aEditorFlag | EAknEditorFlagNoT9); |
88 { |
|
89 iInputWin->SetAknEditorFlags( iInputWin->AknEdwinFlags() | |
|
90 aEditorFlag | EAknEditorFlagNoT9 | |
|
91 EAknEditorFlagEnablePartialScreen ); |
|
92 } |
|
93 else |
|
94 { |
|
95 iInputWin->SetAknEditorFlags( iInputWin->AknEdwinFlags() | |
|
96 aEditorFlag | EAknEditorFlagNoT9 ); |
|
97 } |
88 iInputWin->SetAknEditorCase(aEditorCase); |
98 iInputWin->SetAknEditorCase(aEditorCase); |
89 iInputWin->SetMaxLength(KSpellMaxLength); |
99 iInputWin->SetMaxLength(KSpellMaxLength); |
90 iInputWin->SetMopParent(this); |
100 iInputWin->SetMopParent(this); |
91 iInputWin->SetFocus( EFalse ); |
101 iInputWin->SetFocus( EFalse ); |
92 |
102 |
100 // (other items were commented in a header) |
110 // (other items were commented in a header) |
101 // --------------------------------------------------------------------------- |
111 // --------------------------------------------------------------------------- |
102 // |
112 // |
103 CAknFepUiSpellInputPane* CAknFepUiSpellInputPane::NewL( |
113 CAknFepUiSpellInputPane* CAknFepUiSpellInputPane::NewL( |
104 CCoeControl* aParent, const TInt aEditorFlag, |
114 CCoeControl* aParent, const TInt aEditorFlag, |
105 const TInt aEditorCase, const TInt aEditorSCTResID) |
115 const TInt aEditorCase, const TInt aEditorSCTResID, |
|
116 const TBool aIsSplitEditor ) |
106 { |
117 { |
107 CAknFepUiSpellInputPane* self = new ( ELeave ) CAknFepUiSpellInputPane; |
118 CAknFepUiSpellInputPane* self = new ( ELeave ) CAknFepUiSpellInputPane; |
108 |
119 |
109 CleanupStack::PushL( self ); |
120 CleanupStack::PushL( self ); |
110 self->ConstructL( aParent, aEditorFlag, aEditorCase, aEditorSCTResID ); |
121 self->ConstructL( aParent, aEditorFlag, aEditorCase, aEditorSCTResID, aIsSplitEditor ); |
111 CleanupStack::Pop(); |
122 CleanupStack::Pop(); |
112 |
123 |
113 return self; |
124 return self; |
114 } |
125 } |
115 |
126 |