|
Nokia N97 SDK Example Applications Guide |
#include <RichTextEditorAppUi.h>
Inheritance diagram for CRTEAppUi:

Definition at line 36 of file RichTextEditorAppUi.h.
Public Member Functions |
|
| void | ConstructL () |
| ~CRTEAppUi () | |
| void | HandleResourceChangeL (TInt aType) |
Private Member Functions |
|
| void | HandleCommandL (TInt aCommand) |
Private Attributes |
|
| CRTEContainer * | iAppContainer |
|
|
Destructor. Definition at line 55 of file RichTextEditorAppUi.cpp. References iAppContainer. 00056 { 00057 if (iAppContainer) 00058 { 00059 RemoveFromStack( iAppContainer ); 00060 delete iAppContainer; 00061 } 00062 }
|
|
|
EPOC default constructor. Definition at line 36 of file RichTextEditorAppUi.cpp. References CRTEContainer::ConstructL(), and iAppContainer. 00037 { 00038 #ifdef __SERIES60_3X__ 00039 BaseConstructL(EAknEnableSkin); 00040 #else 00041 BaseConstructL(KEnableSkinFlag | KLayoutAwareApp); 00042 #endif 00043 iAppContainer = new (ELeave) CRTEContainer; 00044 iAppContainer->SetMopParent(this); 00045 iAppContainer->ConstructL( ClientRect() ); 00046 AddToStackL( iAppContainer ); 00047 }
|
|
|
HandleResourceChangeL() Called by framework when layout is changed.
Definition at line 149 of file RichTextEditorAppUi.cpp. References iAppContainer. 00150 { 00151 // base-class call also 00152 CAknAppUi::HandleResourceChangeL(aType); 00153 if (aType == KEikDynamicLayoutVariantSwitch) 00154 { 00155 if(iAppContainer) 00156 iAppContainer->SetRect( ClientRect() ); 00157 } 00158 }
|
|
|
From CEikAppUi, takes care of command handling.
Definition at line 69 of file RichTextEditorAppUi.cpp. References CRTEContainer::DemoL(), iAppContainer, CRTEContainer::SetAlignment(), CRTEContainer::SetCharacterBIUAttribL(), CRTEContainer::SetColor(), CRTEContainer::SetFont(), and CRTEContainer::Strike(). 00070 { 00071 switch ( aCommand ) 00072 { 00073 case EAknSoftkeyBack: 00074 case EEikCmdExit: 00075 { 00076 Exit(); 00077 break; 00078 } 00079 case ERichTextCmdAppSetbold: 00080 iAppContainer->SetCharacterBIUAttribL(CEikGlobalTextEditor::EBold); 00081 break; 00082 case ERichTextCmdAppSetItalic: 00083 iAppContainer->SetCharacterBIUAttribL(CEikGlobalTextEditor::EItalic); 00084 break; 00085 case ERichTextCmdAppSetUnderline: 00086 iAppContainer->SetCharacterBIUAttribL(CEikGlobalTextEditor::EUnderline); 00087 break; 00088 // Font names defined at AknUtils.h in 1st and 2nd editions. 00089 // Font ids at avkon.hrh from 3rd Edition onwards. 00090 case ERichTextCmdAppFont1: 00091 #ifdef __SERIES60_3X__ 00092 iAppContainer->SetFont(EAknLogicalFontPrimaryFont); 00093 #else 00094 iAppContainer->SetFont(LatinPlain12()); 00095 #endif 00096 break; 00097 case ERichTextCmdAppFont2: 00098 #ifdef __SERIES60_3X__ 00099 iAppContainer->SetFont(EAknLogicalFontSecondaryFont); 00100 #else 00101 // default font at Typo application startup in 1st and 2nd edition. 00102 iAppContainer->SetFont(LatinBold12()); 00103 #endif 00104 break; 00105 case ERichTextCmdAppFont3: 00106 #ifdef __SERIES60_3X__ 00107 iAppContainer->SetFont(EAknLogicalFontPrimarySmallFont); 00108 #else 00109 iAppContainer->SetFont(LatinBold19()); 00110 #endif 00111 break; 00112 case ERichTextCmdAppSetStrikethrough: 00113 iAppContainer->Strike(); 00114 break; 00115 case ERichTextCmdAppLeft: 00116 iAppContainer->SetAlignment(CParaFormat::ELeftAlign); 00117 break; 00118 case ERichTextCmdAppCenter: 00119 iAppContainer->SetAlignment(CParaFormat::ECenterAlign); 00120 break; 00121 case ERichTextCmdAppRight: 00122 iAppContainer->SetAlignment(CParaFormat::ERightAlign); 00123 break; 00124 case ERichTextCmdAppSetRed: 00125 iAppContainer->SetColor(KRgbRed); 00126 break; 00127 case ERichTextCmdAppSetGreen: 00128 iAppContainer->SetColor(KRgbGreen); 00129 break; 00130 case ERichTextCmdAppSetBlue: 00131 iAppContainer->SetColor(KRgbBlue); 00132 break; 00133 case ERichTextCmdAppSetBlack: 00134 iAppContainer->SetColor(KRgbBlack); 00135 break; 00136 case ERichTextCmdAppDemo: 00137 iAppContainer->DemoL(); 00138 break; 00139 default: 00140 break; 00141 } 00142 }
|
|
© Nokia 2009 |