CEikEdwin Class Reference

class CEikEdwin : public CEikBorderedControl

Base class for controls that display and allow manipulation of text.

The properties of a particular Edwin object can be set using bitwise flags, which are defined in member enums (see TFlags for example).

Edwins support Front End Processors, and so are a highly effective way of getting textual data from the user. The text currently being composed by the user is called the composition text.

Nested Classes and Structures

Public Member Functions
CEikEdwin()
CEikEdwin(const TGulBorder &)
~CEikEdwin()
IMPORT_C voidActivateL()
IMPORT_C voidAddEdwinObserverL(MEikEdwinObserver *)
IMPORT_C voidAddFlagToUserFlags(TUint32)
TBool AdjustCursorForSmileyL(TInt, TCursorSelection &)
TRect AdjustDrawRectForSmiley(const TRect &)
IMPORT_C TIntAknEditorCurrentInputMode()
IMPORT_C TIntAknEditorFlags()
IMPORT_C TIntAknEdwinFlags()
TInt AvgCharsPerLine()
TInt AvgLinesInViewRect()
IMPORT_C voidCalculateWidth(TInt)
IMPORT_C TBoolCanUndo()
IMPORT_C voidCancelFepTransaction()
IMPORT_C TBoolCcpuCanCopy()
IMPORT_C TBoolCcpuCanCut()
IMPORT_C TBoolCcpuCanPaste()
IMPORT_C TBoolCcpuCanUndo()
IMPORT_C voidCcpuCopyL()
IMPORT_C voidCcpuCutL()
IMPORT_C TBoolCcpuIsFocused()
IMPORT_C voidCcpuPasteL()
IMPORT_C voidCcpuUndoL()
IMPORT_C voidCheckNotReadOnlyL()
IMPORT_C voidCheckRemovePictures(TInt, TInt)
IMPORT_C voidCheckValidityOfChars(TInt, TInt)
IMPORT_C voidClearSelectionL()
IMPORT_C voidClearUndo()
IMPORT_C voidClipboardL(TClipboardFunc)
IMPORT_C voidConstructFromResourceL(TResourceReader &)
IMPORT_C voidConstructL(TInt, TInt, TInt, TInt)
TBool ContentFitsToViewRect()
voidConvertSmileyIconToTextL(TInt, TDes &)
voidConvertVisibleTextForSmileyL(TBool)
IMPORT_C voidCopyToStoreL(CStreamStore &, CStreamDictionary &)
IMPORT_C TIntCountWords()
CEikScrollBarFrame *CreatePreAllocatedScrollBarFrameL()
IMPORT_C CEikScrollBarFrame *CreateScrollBarFrameL()
IMPORT_C voidCreateTextViewL()
IMPORT_C TIntCursorPos()
IMPORT_C voidDraw(const TRect &)
voidDrawSmileyInTextL(RRegion &, const TRect &, CBitmapContext &, CFont &, const TDesC &, const TPoint &)
voidDrawTextView()
voidDrawViewBackground(TBool)
TRgb EditorBackgroundColor(TRgb &)
CAknEdwinState *EditorState()
IMPORT_C voidEnableCcpuSupportL(TBool)
IMPORT_C voidEnableKineticScrollingL(TBool)
IMPORT_C voidEnableKineticScrollingL(CAknPhysics *)
voidEnableSmileySupportL(TBool)
HBufC *ExtractTextLC(TCursorSelection)
IMPORT_C TBoolFindL(const TDesC *, TInt)
IMPORT_C TIntFindTextL(const TDesC *, TInt, TInt)
IMPORT_C voidFocusChanged(TDrawNow)
IMPORT_C voidForceScrollBarUpdateL()
IMPORT_C voidGetColorUseListL(CArrayFix< TCoeColorUse > &)
IMPORT_C voidGetFindText(TDes *)
IMPORT_C voidGetText(TDes &)
IMPORT_C HBufC *GetTextInHBufL()
IMPORT_C TRectGetTextLinesRect()
IMPORT_C voidGetWordInfo(TInt, TInt &, TInt &)
IMPORT_C voidHandlePointerEventL(const TPointerEvent &)
IMPORT_C voidHandleResourceChange(TInt)
IMPORT_C voidHandleScrollEventL(CEikScrollBar *, TEikScrollEvent)
voidHandleScrollEventWithPhysics(CEikScrollBar *)
IMPORT_C voidHandleTextChangedL()
TAknsHighlightStyle HighlightStyle()
IMPORT_C TIntIdleL(TAny *)
IMPORT_C TCoeInputCapabilitiesInputCapabilities()
IMPORT_C voidInsertDeleteCharsL(TInt, const TDesC &, const TCursorSelection &)
IMPORT_C voidInsertFieldL(CTextField *, TUid)
IMPORT_C voidInsertFromTextFileL(const TFileName &, const CPlainText::TTextOrganisation)
IMPORT_C TBoolIsBackgroundDrawingSuppressed()
IMPORT_C TBoolIsReadOnly()
TBool IsSmileyEnabled()
TBool KineticScrollingEnabled()
IMPORT_C TIntLayoutWidth()
IMPORT_C TIntLineCursorWidth()
IMPORT_C TIntLowerPartialFormattingLength()
IMPORT_C TMargins8Margins()
TInt MaxLength()
IMPORT_C TIntMaximumHeight()
IMPORT_C TIntMaximumHeightInLines()
IMPORT_C TIntMinimumHeight()
IMPORT_C TSizeMinimumSize()
IMPORT_C voidMoveCursorL(TCursorPosition::TMovementType, TBool)
IMPORT_C voidMoveDisplayL(TCursorPosition::TMovementType)
IMPORT_C TNonPrintingCharVisibilityNonPrintingCharsVisibility()
IMPORT_C voidNotifyEditorStateObserverOfStateChangeL()
IMPORT_C voidNotifyNewDocumentL()
IMPORT_C voidNotifyNewFormatL()
IMPORT_C TKeyResponseOfferKeyEventL(const TKeyEvent &, TEventCode)
voidOnEditorStateFlagChange(TInt, TInt)
IMPORT_C voidOnReformatL(const CTextView *)
IMPORT_C TBoolOnlyASCIIChars()
IMPORT_C voidPasteFromStoreL(CStreamStore &, CStreamDictionary &)
const TCallBack &PictographAnimationCallBack()
TInt PixelsOutOfBorder()
IMPORT_C voidReceiveDataOverIrL()
IMPORT_C voidRemoveEdwinObserver(MEikEdwinObserver *)
IMPORT_C voidRemoveFlagFromUserFlags(TUint32)
IMPORT_C voidReplaceAllL(SEdwinFindModel *)
IMPORT_C voidReplaceL(SEdwinFindModel *)
voidReportChinesePopupEventL(TBool)
voidRestoreCursorState()
IMPORT_C voidRunCharMapDialogL()
CEikScrollBarFrame *ScrollBarFrame()
TInt ScrollView(TInt, TBool &, TInt &)
TInt ScrollViewWithBounce(TInt, TBool &, TInt &)
IMPORT_C voidSelectAllL()
IMPORT_C TCursorSelectionSelection()
IMPORT_C TIntSelectionLength()
IMPORT_C voidSendDataOverIrL()
IMPORT_C voidSetAknEditorAllowedInputModes(TInt)
IMPORT_C voidSetAknEditorCase(TInt)
IMPORT_C voidSetAknEditorCurrentCase(TInt)
IMPORT_C voidSetAknEditorCurrentInputMode(TInt)
IMPORT_C voidSetAknEditorFlags(TInt)
IMPORT_C voidSetAknEditorInputMode(TInt)
IMPORT_C voidSetAknEditorLocalLanguage(TLanguage)
IMPORT_C voidSetAknEditorNumericKeymap(TAknEditorNumericKeymap)
IMPORT_C voidSetAknEditorPermittedCaseModes(TInt)
IMPORT_C voidSetAknEditorSpecialCharacterTable(TInt)
IMPORT_C voidSetAlignment(TInt)
IMPORT_C voidSetAllowPictures(TBool)
IMPORT_C voidSetAllowUndo(TBool)
IMPORT_C voidSetAmountToFormatL(TBool)
IMPORT_C voidSetAmountToFormatL(TBool, TBool)
voidSetAvgCharsPerLine(TInt)
voidSetAvgLinesInViewRect(TInt)
IMPORT_C voidSetAvkonWrap(TBool)
IMPORT_C voidSetBackgroundColorL(TRgb)
IMPORT_C voidSetBorderViewMargins(TMargins8)
IMPORT_C voidSetCharFormatLayer(CCharFormatLayer *)
IMPORT_C voidSetContainerWindowL()
IMPORT_C voidSetContainerWindowL(const CCoeControl &)
IMPORT_C voidSetCursorPosL(TInt, TBool)
IMPORT_C voidSetCursorVisible(TBool)
IMPORT_C voidSetDimmed(TBool)
IMPORT_C voidSetDocumentContentL(CGlobalText &, TSetContent)
IMPORT_C voidSetDocumentOwnership(TOwnershipType)
IMPORT_C voidSetEdwinObserver(MEikEdwinObserver *)
IMPORT_C voidSetEdwinSizeObserver(MEikEdwinSizeObserver *)
IMPORT_C voidSetHighlightStyleL(TAknsHighlightStyle)
IMPORT_C voidSetInputCapabilitiesL(const TCoeInputCapabilities &)
voidSetMaxLength(TInt)
IMPORT_C voidSetMaximumHeight(TInt)
IMPORT_C voidSetMaximumHeightInLines(TInt)
IMPORT_C voidSetMinimumHeight(TInt)
IMPORT_C voidSetNonPrintingCharsVisibility(TNonPrintingCharVisibility)
IMPORT_C voidSetOnlyASCIIChars(TBool)
IMPORT_C voidSetParaFormatLayer(CParaFormatLayer *)
IMPORT_C voidSetPasteFromIrStore(TBool)
IMPORT_C voidSetPictographAnimationCallBack(TCallBack &)
IMPORT_C voidSetReadOnly(TBool)
IMPORT_C voidSetRightWrapGutter(TInt)
IMPORT_C voidSetScrollRect(const TRect &)
IMPORT_C voidSetSelectionL(TInt, TInt)
IMPORT_C voidSetSkinBackgroundControlContextL(MAknsControlContext *)
IMPORT_C voidSetSuppressBackgroundDrawing(TBool)
IMPORT_C voidSetSuppressFormatting(TBool)
IMPORT_C voidSetSuppressNotifyDraw(TBool)
IMPORT_C voidSetTextL(const TDesC *)
IMPORT_C voidSetTextLimit(TInt)
IMPORT_C voidSetTextLinesRect(const TRect &)
IMPORT_C voidSetTextSkinColorIdL(TInt)
IMPORT_C TBoolSetUndoBufferL(const TCursorSelection &)
IMPORT_C voidSetUndoableText(const TCursorSelection &)
IMPORT_C voidSetUpperFullFormattingLength(TInt)
IMPORT_C voidSetWordDelimiters(TBool, TBool)
IMPORT_C voidSetWordWrapL(TBool)
IMPORT_C voidSetWysiwygModeOff()
IMPORT_C voidSetWysiwygModeOn(TInt, MGraphicsDeviceMap *)
IMPORT_C voidSetZoomFactorL(TZoomFactor *)
MAknsControlContext *SkinBackgroundControlContext()
TInt SkinColorId()
TBool SkinEnabled()
TBool SkipBackgroundDrawer()
voidStoreCursorState()
IMPORT_C TBoolSupportsUndo()
IMPORT_C CPlainText *Text()
IMPORT_C CTextLayout *TextLayout()
IMPORT_C TIntTextLength()
IMPORT_C CTextView *TextView()
IMPORT_C voidUndoL()
IMPORT_C voidUpdateAllFieldsL()
IMPORT_C voidUpdateCurrentFieldL()
IMPORT_C voidUpdateLayoutWidth(TInt)
IMPORT_C voidUpdateScrollBarsL()
IMPORT_C TIntUpperFullFormattingLength()
IMPORT_C TUint32UserFlags()
IMPORT_C voidWriteInternalStateL(RWriteStream &)
Protected Member Functions
IMPORT_C voidBaseConstructL()
IMPORT_C voidCancelInsertCharFormat()
IMPORT_C voidCancelSelectionL(TEnd)
IMPORT_C voidCheckEdwinExtensionL()
IMPORT_C voidCopyDocumentContentL(CGlobalText &, CGlobalText &)
IMPORT_C CLafEdwinCustomDrawBase *CreateCustomDrawL()
IMPORT_C voidCreateLayoutL(MLayDoc *)
IMPORT_C voidCreateTextAndLayoutL(CParaFormatLayer *, CCharFormatLayer *)
IMPORT_C TIntDeleteHighlightL(TBool &, TBool, TBool)
IMPORT_C voidDeleteL(TBool &, const TCursorSelection &, TBool, TBool)
IMPORT_C voidDisplayFindTextNotFound(TDes &)
IMPORT_C voidDrawContents()
IMPORT_C voidEditObserver(TInt, TInt)
IMPORT_C CEikEdwinExtension *EdwinExtension()
IMPORT_C voidFormatTextL()
IMPORT_C voidHandleSizeChangedL()
IMPORT_C voidHandleTextPastedL(TInt, TInt &)
IMPORT_C TTypeUid::PtrMopSupplyObject(TTypeUid)
IMPORT_C voidMoveCursorToChunkStartL(TBool, TChunkSize, TEnd)
IMPORT_C TBoolOkToDeleteSelectionL()
IMPORT_C voidPlaceDataOnClipboardL()
IMPORT_C voidReadAknResourceL(TResourceReader &)
IMPORT_C voidReportEdwinEventL(MEikEdwinObserver::TEdwinEvent)
IMPORT_C voidSetLineCursorDetailsL()
IMPORT_C voidTrappedDraw(const TRect &)
IMPORT_C voidTrappedSizeChanged()
Private Member Functions
TBool AdjustCursorPosByMovementL(TCursorPosition::TMovementType, TBool)
TRect AdjustedViewRect()
CAknEdwinDrawingModifier *AknEdwinDrawingModifier()
voidApplyAutoSelectionL()
voidBuildEdwinFepSupport()
TInt CalcMinimumHeightFromNumOfLinesL()
voidCalculateLineMetricsForBandFormattingL()
TBool CharIsNeutral(TInt)
TInt CheckAllowedCharsL(const TDesC &, CClipboard &, TBool)
voidCheckEdwinHeight()
voidCheckIfEdwinIsResizable()
IMPORT_C CCoeControl *ComponentControl(TInt)
TBool ConvertSmileyForDeleteL(TInt, TBool)
voidConvertSmileyForDeleteL(const TCursorSelection &)
voidConvertTextForSmileyL(TCursorSelection, TBool, TBool)
IMPORT_C TIntCountComponentControls()
IMPORT_C CEikScrollBarFrame *CreateScrollBarFrameL(TBool)
voidCreateScrollBarFrameLayout(TEikScrollBarFrameLayout &)
TInt CurrentAlignment()
TFontSpec CursorFontSpec()
TInt CursorWidth()
voidDeleteExtraParasL(TInt, TInt)
voidDoAlignment()
voidDoCcpuCanPasteL()
voidDoCreateCustomDrawL()
TKeyResponse DoOfferKeyEventL(const TKeyEvent &, TEventCode)
voidDoPasteFromStoreL(const CStreamStore &, const CStreamDictionary &)
voidDoReplaceAllL(SEdwinFindModel *, TBool &, TBool &)
voidDoReportEventL(MCoeControlObserver::TCoeEvent)
voidDoSetUndoBufferL(const TCursorSelection &)
voidDrawBackgroundAroundTextView(CWindowGc &, const TRect &, const TRect &, const TRgb &)
voidDrawFirstLineTextL()
TBool EditorSupportsNeutralProtection()
voidEnableRateScrolling(TBool)
voidExtendedRangeForSmiley(TCursorSelection &)
IMPORT_C void *ExtensionInterface(TUid)
HBufC *GetAllowedCharsLC()
TBool GetExposedDirectionOfText(TInt, TBool, TBool &)
TBool GetExposedDirectionOfTextInDescriptor(const TDesC &, TBool, TBool &)
TBool GetStrongDirectionality(TChar, TBool &)
TCursorSelection GetVisibleTextRangeL()
voidHandleSelectionForSmiley(TCursorSelection)
TBool IsNewHeightWithinMinimumAndMaximum(TInt)
TBool IsPurePhoneNumberEditor()
TBool IsSelectionVisible()
TBool IsValidChar(TInt)
TInt LocateChar(TChar, TInt, TInt)
voidMakeCharFormatLayerMatchL(CCharFormatLayer *)
voidMakeParaFormatLayerMatchL(CParaFormatLayer *)
NONSHARABLE_CLASS(CEikEdwinExtension)
TBool NeedToChangeFormattingModeL()
TBool NeedsNeutralProtection(TInt, TInt, TDes &, TBool &)
voidNewParagraphL()
IMPORT_C voidNotifyInvalidOperationOnReadOnlyL()
TBool OwnsScrollBars()
voidPerformRecordedOperationL()
voidReplaceParaDelimitersL(TInt, TInt)
voidReplaceSelectionWithTextL(const TDesC &, TInt, TBool &)
IMPORT_C voidReserved_2()
IMPORT_C voidReserved_3()
voidRetrieveDataFromClipboardL()
voidScrollIfAtTopOrBottomL()
TKeyResponse ScrollReadOnlyNoCursorDisplayL(TUint)
voidScrollViewToCursorLineL()
voidSetCursorSizeAndType()
voidSetCursorVisibilityL(TBool)
voidSetEdwinHeight(TInt)
voidSetHeightForNumOfLinesL()
voidSetKeyboardRepeatRate(TTimeIntervalMicroSeconds32)
voidSetKineticScrollingScrollBarModel(TEikScrollBarModel &)
voidSetKineticScrollingScrollBarsL()
voidSetScrollBarsL()
voidSetSelectionVisibilityL(TBool)
voidSetVKBStatus()
voidSetVertScrollBarModelByCharactersL(TEikScrollBarModel &)
voidSetVirtualCursorStateL(TBool)
IMPORT_C voidSizeChanged()
voidTrimText(TDes &)
voidUpdateCache(TInt)
voidUpdateHorizScrollBarThumb()
voidUpdateVertScrollBarThumbL()
Inherited Functions
CAknControl::CAknControl()
CAknControl::~CAknControl()
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CCoeControl::AccumulatedZoom()const
CCoeControl::ActivateGc()const
CCoeControl::BackedUpWindow()const
CCoeControl::Background()const
CCoeControl::CCoeControl()
CCoeControl::CCoeControl(CCoeEnv *)
CCoeControl::CCoeControl(const CCoeControl &)
CCoeControl::CapturesPointer()const
CCoeControl::ClaimPointerGrab(TBool)
CCoeControl::ClaimPointerGrab(TInt,TBool)
CCoeControl::CloseWindow()
CCoeControl::ComponentArrayExists()const
CCoeControl::Components()
CCoeControl::Components()const
CCoeControl::ControlContext()const
CCoeControl::ControlEnv()const
CCoeControl::CopyControlContextFrom(const CCoeControl *)
CCoeControl::CreateBackedUpWindowL(RWindowTreeNode &)
CCoeControl::CreateBackedUpWindowL(RWindowTreeNode &,TDisplayMode)
CCoeControl::CreateWindowL()
CCoeControl::CreateWindowL(RWindowGroup *)
CCoeControl::CreateWindowL(RWindowTreeNode &)
CCoeControl::CreateWindowL(const CCoeControl *)
CCoeControl::CustomGc()const
CCoeControl::DeactivateGc()const
CCoeControl::DrawBackground(const TRect &)const
CCoeControl::DrawDeferred()const
CCoeControl::DrawForeground(const TRect &)const
CCoeControl::DrawNow()const
CCoeControl::DrawNow(const TRect &)const
CCoeControl::DrawableWindow()const
CCoeControl::EnableDragEvents()
CCoeControl::EnableReportControlStateChange(TBool)
CCoeControl::EnableWindowTransparency()
CCoeControl::FindBackground()const
CCoeControl::FindFontProvider()const
CCoeControl::GetColor(TInt,TRgb &)const
CCoeControl::GetGc()const
CCoeControl::GetHelpContext(TCoeHelpContext &)const
CCoeControl::GrabbingComponent()const
CCoeControl::GrabbingComponent(TInt)const
CCoeControl::HandleComponentControlsResourceChange(TInt)
CCoeControl::HandleControlArrayEventL(CCoeControlArray::TEvent,const CCoeControlArray *,CCoeControl *,TInt)
CCoeControl::HandlePointerBufferReadyL()
CCoeControl::HandleRedrawEvent(const TRect &)const
CCoeControl::HitTest()const
CCoeControl::IgnoreEventsUntilNextPointerUp()
CCoeControl::Index(const CCoeControl *)const
CCoeControl::InitComponentArrayL()
CCoeControl::IsActivated()const
CCoeControl::IsBackedUp()const
CCoeControl::IsBeingDestroyed()const
CCoeControl::IsBlank()const
CCoeControl::IsDimmed()const
CCoeControl::IsFocused()const
CCoeControl::IsNonFocusing()const
CCoeControl::IsReadyToDraw()const
CCoeControl::IsVisible()const
CCoeControl::LayoutManager()const
CCoeControl::MakeVisible(TBool)
CCoeControl::MaximumWidth()const
CCoeControl::NotifyFontChange(const CCoeFontProvider *)
CCoeControl::Observer()const
CCoeControl::OverrideColorL(TInt,TRgb)
CCoeControl::OwnsWindow()const
CCoeControl::Parent()
CCoeControl::Parent()const
CCoeControl::Position()const
CCoeControl::PositionChanged()
CCoeControl::PositionRelativeToScreen()const
CCoeControl::PrepareForFocusGainL()
CCoeControl::PrepareForFocusLossL()
CCoeControl::ProcessPointerBufferReadyL()
CCoeControl::ProcessPointerEventL(const TPointerEvent &)
CCoeControl::Rect()const
CCoeControl::RecursivelyMergeInputCapabilities(TCoeInputCapabilities &)const
CCoeControl::RecursivelyMergedInputCapabilities()const
CCoeControl::RefetchPixelMappingL()
CCoeControl::RemoveFromParent()
CCoeControl::ReportEventL(MCoeControlObserver::TCoeEvent)
CCoeControl::RequestRelayout(const CCoeControl *)
CCoeControl::ResetGc()const
CCoeControl::ScreenFont(const TCoeFont &)const
CCoeControl::SetAllowStrayPointers()
CCoeControl::SetBackground(const MCoeControlBackground *)
CCoeControl::SetBlank()
CCoeControl::SetCanDrawOutsideRect()
CCoeControl::SetComponentsToInheritVisibility(TBool)
CCoeControl::SetContainerWindowL(RBackedUpWindow &)
CCoeControl::SetContainerWindowL(RWindow &)
CCoeControl::SetControlContext(MCoeControlContext *)
CCoeControl::SetCornerAndSize(TGulAlignment,const TSize &)
CCoeControl::SetCustomGc(CWindowGc *)
CCoeControl::SetExtent(const TPoint &,const TSize &)
CCoeControl::SetExtentToWholeScreen()
CCoeControl::SetFocus(TBool,TDrawNow)
CCoeControl::SetFocusing(TBool)
CCoeControl::SetFontProviderL(const CCoeFontProvider &)
CCoeControl::SetGc(CWindowGc *)const
CCoeControl::SetGloballyCapturing(TBool)
CCoeControl::SetHitTest(const MCoeControlHitTest *)
CCoeControl::SetLayoutManagerL(MCoeLayoutManager *)
CCoeControl::SetMaximumWidth(TInt)
CCoeControl::SetMopParent(MObjectProvider *)
CCoeControl::SetNeighbor(CCoeControl *)
CCoeControl::SetNonFocusing()
CCoeControl::SetObserver(MCoeControlObserver *)
CCoeControl::SetParent(CCoeControl *)
CCoeControl::SetPointerCapture(TBool)
CCoeControl::SetPosition(const TPoint &)
CCoeControl::SetRect(const TRect &)
CCoeControl::SetSize(const TSize &)
CCoeControl::SetSizeWithoutNotification(const TSize &)
CCoeControl::SetTextBaselineSpacing(TInt)
CCoeControl::SetUniqueHandle(TInt)
CCoeControl::SetZoomFactorL(TInt,TZoomType)
CCoeControl::Size()const
CCoeControl::SystemGc()const
CCoeControl::TextBaselineOffset(const TSize &)const
CCoeControl::TextDrawer(TInt)const
CCoeControl::UniqueHandle()const
CCoeControl::Window()const
CCoeControl::WriteInternalStateNowL(RWriteStream &)const
CCoeControl::ZoomWithType()const
CCoeControl::operator=(const CCoeControl &)
CCoeControl::~CCoeControl()
CEikBorderedControl::Border()const
CEikBorderedControl::CEikBorderedControl()
CEikBorderedControl::CEikBorderedControl(const TGulBorder &)
CEikBorderedControl::HasBorder()const
CEikBorderedControl::SetAdjacent(TInt)
CEikBorderedControl::SetBorder(TGulBorder::TBorderType)
CEikBorderedControl::SetBorder(TInt)
Public Member Enumerations
enumTClipboardFunc { ENoClipboard, ECut, ECopy, EPaste }
enumTEdwinHotKeys {
EHotKeyCut, EHotKeyCopy, EHotKeyPaste, EHotKeyUndo, EHotKeyFind, EHotKeyInsertChar, EHotKeyBold, EHotKeyItalic, EHotKeyUnderline, EHotKeyFont, EHotKeyInsertObject, EHotKeyEditObject, EHotKeyFormatObject
}
enumTFindFlags {
EFindDirectionUp = 0x01, EFindWholeWord = 0x02, EFindCaseSensitive = 0x04, EFindAgain = 0x08, ENoBusyMessage = 0x10, EReadOnlyFile = 0x20
}
enumTFlags {
EZeroEnumValue = 0x00000000, EKeepDocument = 0x00000001, ESegmentedStorage = 0x00000002, EWidthInPixels = 0x00000004, ENoAutoSelection = 0x00000008, EJustAutoCurEnd = 0x00000010, ENoWrap = 0x00000020, ELineCursor = 0x00000040, ENoHorizScrolling = 0x00000080, EInclusiveSizeFixed = 0x00000100, EUserSuppliedText = 0x00000200, EOwnsWindow = 0x00000400, EDisplayOnly = 0x00000800, EAlwaysShowSelection = 0x00001000, EReadOnly = 0x00002000, EAllowPictures = 0x00004000, EAllowUndo = 0x00008000, ENoLineOrParaBreaks = 0x00010000, EOnlyASCIIChars = 0x00020000, EResizable = 0x00040000, EIgnoreVirtualCursor = 0x00080000, ENoCustomDraw = 0x01000000, EAvkonEditor = 0x02000000, EAvkonDisableCursor = 0x04000000, EAvkonNotEditable = 0x08000000, EEdwinAlternativeWrapping = 0x10000000, EAvkonTabsEnabled = 0x20000000, EAvkonDisableVKB = 0x40000000, EAvkonEnableSmileySupport = 0x80000000
}
enumTOwnershipType { EOwnsText, EDoesNotOwnText }
enumTSetContent { EUseText, ECopyText }
Protected Member Enumerations
enumTChunkSize { EChunkWord, EChunkPara }
enumTEikEdwinFlags {
ERichText = 0x00000001, EDragDouble = 0x00000002, ELeftDownInViewRect = 0x00000004, ENumericCharacters = 0x00000008, EHasOneLineOnly = 0x00000010, EPhoneNumberGrouping = 0x00000020, ESuppressNotifyDraw = 0x00000040, ESuppressFormatting = 0x00000080, ESkipBackgroundDrawer = 0x00000100
}
enumTEnd { EStart, EEnd }
Private Member Enumerations
enumanonymous {
EWysiwygOn = 0x00000010, EUnderOneScreenFormattedText = 0x00000020, EPictureDelimits = 0x00000040, EPunctuationDelimits = 0x00000080, EPasteFromIrStore = 0x00000100, ELockScrollBarState = 0x00000200, EOnReformatting = 0x00000400
}
Inherited Enumerations
CCoeControl:TZoomType
Protected Attributes
TUint32 iEdwinInternalFlags
TUint32 iEdwinUserFlags
TInt iLastPointerDocPos
CTextLayout *iLayout
TMargins8 iMargins
TInt iNumberOfLines
CPlainText *iText
TInt iTextLimit
CTextView *iTextView
MGraphicsDeviceMap *iZoomFactor
Private Attributes
TInt iAvgCharsPerLine
TInt iAvgLinesInViewRect
CAknCcpuSupport *iCcpuSupport
CCharFormatLayer *iCharFormatLayer
CLafEdwinCustomDrawBase *iCustomDrawer
CEikEdwinExtension *iEdwinExtension
CEikEdwinFepSupport *iEdwinFepSupport
MEikEdwinObserver *iEdwinObserver
MEikEdwinSizeObserver *iEdwinSizeObserver
TInt iLastPointerAnchorPos
TInt iLayoutWidth
TInt iMaximumHeight
TInt iMaximumHeightInLines
TInt iMinimumHeight
CArrayPtr< MEikEdwinObserver > *iObserverArray
CParaFormatLayer *iParaFormatLayer
TInt iRightWrapGutter
CEikScrollBarFrame *iSBFrame
TInt iSpare_1
TInt iSpare_2
CUndoBuffer *iUndoStore
Inherited Attributes
CCoeControl::iCoeEnv
CCoeControl::iContext
CCoeControl::iPosition
CCoeControl::iSize
CEikBorderedControl::iBorder

Constructor & Destructor Documentation

CEikEdwin()

IMPORT_CCEikEdwin()

C++ default constructor.

Creates a new Edwin, FEP support for the new editor will not be present if there is insufficient memory.

CEikEdwin(const TGulBorder &)

IMPORT_CCEikEdwin(const TGulBorder &aBorder)

Constructor.

Creates a new Edwin, specifying the border to use. As with the default constructor, FEP support for the new editor will not be present if there is insufficient memory. S60 Edwin does not support / draw any borders.

Parameters

const TGulBorder & aBorderThe Edwin border.

~CEikEdwin()

IMPORT_C~CEikEdwin()

Destructor.

Deletes objects and frees resources owned by this object. The Edwin s editable text is freed if the EKeepDocument flag is not set.

Member Functions Documentation

ActivateL()

IMPORT_C voidActivateL()[virtual]

From CCoeControl.

Sets the Edwin as ready for drawing.

leave
KErrNoMemory.

AddEdwinObserverL(MEikEdwinObserver *)

IMPORT_C voidAddEdwinObserverL(MEikEdwinObserver *aEdwinObserver)

Adds an observer of standard Edwin events to the list of observers, creating the list if necessary. May be called any number of times and is independent of calls to SetEdwinObserver.

Add an observer of standard edwin events. May be called any number of times and is independant of calls to SetEdwinObserver.

Parameters

MEikEdwinObserver * aEdwinObserverThe observer to add to the list of observers.

AddFlagToUserFlags(TUint32)

IMPORT_C voidAddFlagToUserFlags(TUint32aFlag)

Adds user flags. See TFlags.

Parameters

TUint32 aFlagFlags to add.

AdjustCursorForSmileyL(TInt, TCursorSelection &)

TBool AdjustCursorForSmileyL(TIntaOldCursor,
TCursorSelection &aSelect
)

Parameters

TInt aOldCursor
TCursorSelection & aSelect

AdjustCursorPosByMovementL(TCursorPosition::TMovementType, TBool)

TBool AdjustCursorPosByMovementL(TCursorPosition::TMovementTypeaMovement,
TBoolaSelect
)[private]

Parameters

TCursorPosition::TMovementType aMovement
TBool aSelect

AdjustDrawRectForSmiley(const TRect &)

TRect AdjustDrawRectForSmiley(const TRect &aRect)const

Parameters

const TRect & aRect

AdjustedViewRect()

TRect AdjustedViewRect()const [private]

AknEditorCurrentInputMode()

IMPORT_C TIntAknEditorCurrentInputMode()

Returns the input mode that has been saved to editor state.

Since
S60 2.6

AknEditorFlags()

IMPORT_C TIntAknEditorFlags()

Gets editor flags from the editor.

AknEdwinDrawingModifier()

CAknEdwinDrawingModifier *AknEdwinDrawingModifier()[private]

AknEdwinFlags()

IMPORT_C TIntAknEdwinFlags()const

Gets edwin's flags from CAknEdwinState.

ApplyAutoSelectionL()

voidApplyAutoSelectionL()[private]

AvgCharsPerLine()

TInt AvgCharsPerLine()const [inline]

Gets the average number of characters on a line.

AvgLinesInViewRect()

TInt AvgLinesInViewRect()const [inline]

Gets the average number of lines shown in Edwin s view.

BaseConstructL()

IMPORT_C voidBaseConstructL()[protected]

Completes the second-phase construction of a CEikEdwin object. This protected function is called by ConstructL() and ConstructFromResourceL() after the Edwin s size, flags and text limit have been set. Derived classes should call either this function or CEikEdwin s ConstructL() or ConstructFromResourceL() functions during their construction before initialising their own members.

BuildEdwinFepSupport()

voidBuildEdwinFepSupport()[private]

CalcMinimumHeightFromNumOfLinesL()

TInt CalcMinimumHeightFromNumOfLinesL()const [private]

CalculateLineMetricsForBandFormattingL()

voidCalculateLineMetricsForBandFormattingL()[private]

When Band formatting is started, this should be called to update the cached metrics used for the scroll bar calculations.

CalculateWidth(TInt)

IMPORT_C voidCalculateWidth(TIntaWidthInChars)

Recalculates the screen width of an Edwin from the specified number of character widths. This is called during construction. If the Edwin only allows editing of numbers, the width of the zero character (0) is used; otherwise CFont::MaxNormalCharWidthInPixels() is used.

If the EWidthInPixels flag has been set, the aWidthInChars argument is measured in pixels, not characters.

Parameters

TInt aWidthInCharsWidth in either pixels or characters.

CanUndo()

IMPORT_C TBoolCanUndo()const

Tests whether an undo is possible. Returns ETrue only if the undo store is available to Edwin.

CancelFepTransaction()

IMPORT_C voidCancelFepTransaction()

Cancels any current transaction with the Edwin s front-end processor. Any front-end input windows are removed, and any highlighted text being edited in the Edwin is removed. The Edwin is rolled back to the state it was in before the FEP transaction started. This function is called by CEikEdwin itself when the document content, the cursor position or the current selection is changed.

Cancelling outstanding FEP transactions before performing operations on the text programmatically is particularly important when the front-end processor is inline-editing an Edwin.

CancelInsertCharFormat()

IMPORT_C voidCancelInsertCharFormat()[protected]

Cancels the insertion of a character format. This can be used for rich text only.

CancelSelectionL(TEnd)

IMPORT_C voidCancelSelectionL(TEndaEndOfSelectionToLeaveCursor)[protected]

Cancels the selection and any FEP composition text. This function then repositions the cursor at the specified end of the currently selected text.

Parameters

TEnd aEndOfSelectionToLeaveCursorThe end of the current selection at which the cursor is repositioned.

CcpuCanCopy()

IMPORT_C TBoolCcpuCanCopy()const

Tests whether the selected text can be copied.

CcpuCanCut()

IMPORT_C TBoolCcpuCanCut()const

Tests whether the selected text can be cut.

CcpuCanPaste()

IMPORT_C TBoolCcpuCanPaste()const

Tests whether text can be pasted from the clipboard.

CcpuCanUndo()

IMPORT_C TBoolCcpuCanUndo()const

Tests is it possible to undo previous operation.

CcpuCopyL()

IMPORT_C voidCcpuCopyL()

Copies selected text.

CcpuCutL()

IMPORT_C voidCcpuCutL()

Cuts selected text.

CcpuIsFocused()

IMPORT_C TBoolCcpuIsFocused()const

Tests whether the editor is focused.

CcpuPasteL()

IMPORT_C voidCcpuPasteL()

Pastes text from the clipboard to the editor.

CcpuUndoL()

IMPORT_C voidCcpuUndoL()

Undoes the most recent text operation when the Edwin supports this feature and when the undo store is not empty

CharIsNeutral(TInt)

TBool CharIsNeutral(TIntaPos)const [private]

Returns ETrue if the character at aPos is neutral

Parameters

TInt aPosindex in editor; must be a valid index

CheckAllowedCharsL(const TDesC &, CClipboard &, TBool)

TInt CheckAllowedCharsL(const TDesC &aChars,
CClipboard &aClipboard,
TBoolaRichText
)const [private]

Parameters

const TDesC & aChars
CClipboard & aClipboard
TBool aRichText

CheckEdwinExtensionL()

IMPORT_C voidCheckEdwinExtensionL()[protected]

Checks that is Edwin's extension created. If not, it will be created.

leave
KErrNoMemory If the Edwin FEP support pointer is NULL.

CheckEdwinHeight()

voidCheckEdwinHeight()[private]

CheckIfEdwinIsResizable()

voidCheckIfEdwinIsResizable()[private]

CheckNotReadOnlyL()

IMPORT_C voidCheckNotReadOnlyL()

Determines whether the document being edited is read only. Displays a message with CEikonEnv::InfoMsg() if the document is set as read-only.

CheckRemovePictures(TInt, TInt)

IMPORT_C voidCheckRemovePictures(TIntaStartPos,
TIntaLength
)

Removes unwanted pictures. If EAllowPictures has been set, returns immediately. Otherwise, this function checks the document text between two bounds and removes all pictures in that range.

Parameters

TInt aStartPosWhere to start looking for unwanted pictures.
TInt aLengthWhere to stop.

CheckValidityOfChars(TInt, TInt)

IMPORT_C voidCheckValidityOfChars(TIntaStartPos,
TIntaLength
)

Removes all non-ASCII characters from the specified text. This can be used to remove Unicode characters where they are not valid characters for example.

Parameters

TInt aStartPosThe start position in the text.
TInt aLengthThe number of characters, beginning with aStartPos to check.

ClearSelectionL()

IMPORT_C voidClearSelectionL()

Removes the selection and any composition text. The cursor position is unaffected. If there is no selected region, this function has no effect.

ClearUndo()

IMPORT_C voidClearUndo()

Deletes the undo store.

ClipboardL(TClipboardFunc)

IMPORT_C voidClipboardL(TClipboardFuncaClipboardFunc)

Handles cut, copy and paste commands. This function also reports a change of state of the control to the observer when necessary.

Parameters

TClipboardFunc aClipboardFuncClipboard operation.

ComponentControl(TInt)

IMPORT_C CCoeControl *ComponentControl(TIntaIndex)const [private, virtual]

Parameters

TInt aIndex

ConstructFromResourceL(TResourceReader &)

IMPORT_C voidConstructFromResourceL(TResourceReader &aReader)[virtual]

From CCoeControl.

Completes the construction of a new Edwin. This function initialises the heap-stored members from an EDWIN resource.

Parameters

TResourceReader & aReaderA reader positioned for reading from an EDWIN resource.

ConstructL(TInt, TInt, TInt, TInt)

IMPORT_C voidConstructL(TIntaEdwinFlags = 0,
TIntaWidthInChars = 0,
TIntaTextLimit = 0,
TIntaNumberOfLines = 0
)

Handles Symbian 2nd phase construction. Completes construction of a new Edwin, initialising its heap-stored members from the supplied arguments.

Parameters

TInt aEdwinFlags = 0Bitwise ORed combination of flags from TFlags. Default value is 0.
TInt aWidthInChars = 0Specifies the width for the Edwin, in characters or pixels: see the EWidthInPixels flag. Default value is 0.
TInt aTextLimit = 0Maximum length for the text to present as editable. Default value is 0.
TInt aNumberOfLines = 0Height for the Edwin, in lines. Default value is 0.

ContentFitsToViewRect()

TBool ContentFitsToViewRect()const

Returns ETrue if editor content fits to view rect.

ConvertSmileyForDeleteL(TInt, TBool)

TBool ConvertSmileyForDeleteL(TIntaDocPos,
TBoolaBackSpace
)[private]

Parameters

TInt aDocPos
TBool aBackSpace

ConvertSmileyForDeleteL(const TCursorSelection &)

voidConvertSmileyForDeleteL(const TCursorSelection &aSelect)[private]

Parameters

const TCursorSelection & aSelect

ConvertSmileyIconToTextL(TInt, TDes &)

voidConvertSmileyIconToTextL(TIntaStartPos,
TDes &aText
)

Parameters

TInt aStartPos
TDes & aText

ConvertTextForSmileyL(TCursorSelection, TBool, TBool)

voidConvertTextForSmileyL(TCursorSelectionaSelect,
TBoolaTextToCode,
TBoolaRedraw = ETrue
)[private]

Parameters

TCursorSelection aSelect
TBool aTextToCode
TBool aRedraw = ETrue

ConvertVisibleTextForSmileyL(TBool)

voidConvertVisibleTextForSmileyL(TBoolaTextToCode)

Parameters

TBool aTextToCode

CopyDocumentContentL(CGlobalText &, CGlobalText &)

IMPORT_C voidCopyDocumentContentL(CGlobalText &aInText,
CGlobalText &aOutText
)[protected, virtual]

Replaces the current Edwin text.

Parameters

CGlobalText & aInTextText with which the current text is replaced.
CGlobalText & aOutTextOn return, the replaced text.

CopyToStoreL(CStreamStore &, CStreamDictionary &)

IMPORT_C voidCopyToStoreL(CStreamStore &aStore,
CStreamDictionary &aDict
)

Copies the highlighted text into a stream store.

Parameters

CStreamStore & aStoreStore to write to.
CStreamDictionary & aDictStream dictionary.

CountComponentControls()

IMPORT_C TIntCountComponentControls()const [private, virtual]

CountWords()

IMPORT_C TIntCountWords()

Counts and returns the number of words in the document.

CreateCustomDrawL()

IMPORT_C CLafEdwinCustomDrawBase *CreateCustomDrawL()[protected, virtual]

Creates a new CLafEdwinCustomDrawBase instance.

CreateLayoutL(MLayDoc *)

IMPORT_C voidCreateLayoutL(MLayDoc *aLayDoc)[protected]

Creates new text layout.

Parameters

MLayDoc * aLayDocPointer to the MLayDoc implementation that is the source of the text and formatting information.

CreatePreAllocatedScrollBarFrameL()

CEikScrollBarFrame *CreatePreAllocatedScrollBarFrameL()[inline]

Creates a pre-allocated scroll bar frame.

CreateScrollBarFrameL()

IMPORT_C CEikScrollBarFrame *CreateScrollBarFrameL()

Creates the Edwin scroll bar frame with no pre-allocation of memory for scroll bars.

CreateScrollBarFrameL(TBool)

IMPORT_C CEikScrollBarFrame *CreateScrollBarFrameL(TBoolaPreAlloc)[private]

Parameters

TBool aPreAlloc

CreateScrollBarFrameLayout(TEikScrollBarFrameLayout &)

voidCreateScrollBarFrameLayout(TEikScrollBarFrameLayout &aLayout)const [private]

Parameters

TEikScrollBarFrameLayout & aLayout

CreateTextAndLayoutL(CParaFormatLayer *, CCharFormatLayer *)

IMPORT_C voidCreateTextAndLayoutL(CParaFormatLayer *aParaFormatLayer,
CCharFormatLayer *aCharFormatLayer
)[protected]

Creates new instance of CGlobalText and text layout based on it.

Parameters

CParaFormatLayer * aParaFormatLayerParagraph format layer pointer for CGlobalText constructor.
CCharFormatLayer * aCharFormatLayerCharacter format layer pointer for CGlobalText constructor.

CreateTextViewL()

IMPORT_C voidCreateTextViewL()

Allocates memory for the Edwin text view.

CurrentAlignment()

TInt CurrentAlignment()const [private]

CursorFontSpec()

TFontSpec CursorFontSpec()const [private]

CursorPos()

IMPORT_C TIntCursorPos()const

Gets the cursor s position within the document.

CursorWidth()

TInt CursorWidth()const [private]

DeleteExtraParasL(TInt, TInt)

voidDeleteExtraParasL(TIntaStartPos,
TIntaLength
)[private]

Parameters

TInt aStartPos
TInt aLength

DeleteHighlightL(TBool &, TBool, TBool)

IMPORT_C TIntDeleteHighlightL(TBool &aChanged,
TBoolaIsBackSpace = EFalse,
TBoolaPromptConfirmation = ETrue
)[protected]

Deletes the text under the cursor selection, also cancelling the selection. This function asks the user to confirm this action if aPromptConfirmation is ETrue.

Parameters

TBool & aChangedOn return, ETrue if the text was changed.
TBool aIsBackSpace = EFalseETrue if this is in response to backspace being pressed. Determines whether character formatting is preserved or not. Default value is EFalse.
TBool aPromptConfirmation = ETrueOptional. ETrue to ask the user to confirm this action. Default value is ETrue.

DeleteL(TBool &, const TCursorSelection &, TBool, TBool)

IMPORT_C voidDeleteL(TBool &aChanged,
const TCursorSelection &aSelection,
TBoolaIsBackSpace = EFalse,
TBoolaAllowUndo = ETrue
)[protected]

Deletes the cursor s selection. If no selection is made, this function deletes only one character. The argument aIsBackSpace determines whether to preserve the character formatting or not.

Parameters

TBool & aChangedOn return, ETrue if the text was changed.
const TCursorSelection & aSelectionThe cursor selection describing the position to be deleted.
TBool aIsBackSpace = EFalseETrue if this in response to backspace being pressed. Determines whether character formatting is preserved or not.
TBool aAllowUndo = ETrueETrue if the user is permitted to undo this change.

DisplayFindTextNotFound(TDes &)

IMPORT_C voidDisplayFindTextNotFound(TDes &aFindText)[protected]

Displays an information message to indicate that the specified text could not be found. The information message is constructed from R_EIK_TBUF_CANNOT_FIND_TEXT.

Parameters

TDes & aFindTextThe text that could not be found.

DoAlignment()

voidDoAlignment()[private]

DoCcpuCanPasteL()

voidDoCcpuCanPasteL()const [private]

DoCreateCustomDrawL()

voidDoCreateCustomDrawL()[private]

DoOfferKeyEventL(const TKeyEvent &, TEventCode)

TKeyResponse DoOfferKeyEventL(const TKeyEvent &aKeyEvent,
TEventCodeaType
)[private]

Parameters

const TKeyEvent & aKeyEvent
TEventCode aType

DoPasteFromStoreL(const CStreamStore &, const CStreamDictionary &)

voidDoPasteFromStoreL(const CStreamStore &aStore,
const CStreamDictionary &aDict
)[private]

Parameters

const CStreamStore & aStore
const CStreamDictionary & aDict

DoReplaceAllL(SEdwinFindModel *, TBool &, TBool &)

voidDoReplaceAllL(SEdwinFindModel *aModel,
TBool &aTextFound,
TBool &aReplaced
)[private]

Parameters

SEdwinFindModel * aModel
TBool & aTextFound
TBool & aReplaced

DoReportEventL(MCoeControlObserver::TCoeEvent)

voidDoReportEventL(MCoeControlObserver::TCoeEventaEvent)[private]

DoSetUndoBufferL(const TCursorSelection &)

voidDoSetUndoBufferL(const TCursorSelection &aSelection)[private]

Parameters

const TCursorSelection & aSelection

Draw(const TRect &)

IMPORT_C voidDraw(const TRect &aRect)const [virtual]

From CCoeControl.

Draws the control on request.

Parameters

const TRect & aRectIf supplied, the rectangle in which to draw the Edwin.

DrawBackgroundAroundTextView(CWindowGc &, const TRect &, const TRect &, const TRgb &)

voidDrawBackgroundAroundTextView(CWindowGc &gc,
const TRect &aOuterRect,
const TRect &aInnerRect,
const TRgb &aBackgroundColor
)const [private]

This routine performs draws in the area around the text view. Most of the work is to drive the custom drawer if present.

Parameters

CWindowGc & gc
const TRect & aOuterRect
const TRect & aInnerRect
const TRgb & aBackgroundColor

DrawContents()

IMPORT_C voidDrawContents()[protected]

Draws the visible text and the cursor.

DrawFirstLineTextL()

voidDrawFirstLineTextL()const [private]

DrawSmileyInTextL(RRegion &, const TRect &, CBitmapContext &, CFont &, const TDesC &, const TPoint &)

voidDrawSmileyInTextL(RRegion &rgn,
const TRect &aDrawRect,
CBitmapContext &aGc,
CFont &aFont,
const TDesC &aText,
const TPoint &aPt
)

Parameters

RRegion & rgn
const TRect & aDrawRect
CBitmapContext & aGc
CFont & aFont
const TDesC & aText
const TPoint & aPt

DrawTextView()

voidDrawTextView()const

Redraws text view. Used for pictograph animations.

DrawViewBackground(TBool)

voidDrawViewBackground(TBoolaStart)const

Draws background to the whole view area. Call with parameter value ETrue must be followed by a call with EFalse or otherwise window's redraw isn't ended properly and graphics context is not deactivated.

Parameters

TBool aStartIf true then window area occupied by editor's view is invalidated and redraw is began. Also graphics context is activated. EFalse ends the redraw and deactivates graphics context.

EditObserver(TInt, TInt)

IMPORT_C voidEditObserver(TIntaStartEdit,
TIntaEditLength
)[protected]

From MEditObserver.

Observer function called by the CRichText object when the object is edited to give notification of changes to its text buffer. In this way, the control knows how the text object has changed and can reformat and redraw the text object appropriately.

Parameters

TInt aStartEditThe start position of the edit.
TInt aEditLengthThe number of characters added or, if negative, deleted after this position.

EditorBackgroundColor(TRgb &)

TRgb EditorBackgroundColor(TRgb &aConditionalColor)const

Called to determine the background color to draw. It is not to be used if skinning is being used to draw the background.

This API can be used two ways:

i) If the caller has a default color to offer (to be used as a fallback if SetBackgroundColorL has not been called), then he should use the Input/Output parameter aConditionalColor, and ignore the return value. The output parameter will only be over-written by the set background color if SetBackgroundColorL has been called.

ii) If the caller does not have a default color to offer, then he should pass in a dummy input parameter and use the return value.

Parameters

TRgb & aConditionalColorOutput parameter. Returns a color set by SetBackgroundColorL. It is unchanged if background color has not been set by SetBackgroundColorL

EditorState()

CAknEdwinState *EditorState()const

Gets the editor state.

EditorSupportsNeutralProtection()

TBool EditorSupportsNeutralProtection()const [private]

EdwinExtension()

IMPORT_C CEikEdwinExtension *EdwinExtension()[protected]

Gets Edwin's extension.

EnableCcpuSupportL(TBool)

IMPORT_C voidEnableCcpuSupportL(TBoolaSupport)

Enables or disables CCPU interface provided functionalities (cut, copy, paste and undo).

Parameters

TBool aSupportCCPU support enabled if ETrue.

EnableKineticScrollingL(TBool)

IMPORT_C voidEnableKineticScrollingL(TBoolaEnable)

Enables kinetic scrolling in editor.

Note that when kinetic scrolling is enabled, it is no longer possible to disable it with this function.

Since
S60 v5.2

Parameters

TBool aEnableETrue if kinetic scrolling should be enabled.

EnableKineticScrollingL(CAknPhysics *)

IMPORT_C voidEnableKineticScrollingL(CAknPhysics *aPhysics)

Enables kinetic scrolling in editor with external CAknPhysics instance.

Note that when kinetic scrolling is enabled, it is no longer possible to disable it with this function.

Since
S60 v5.2

Parameters

CAknPhysics * aPhysicsPointer to external CAknPhysics instance.

EnableRateScrolling(TBool)

voidEnableRateScrolling(TBoolaEnable)[private]

Enables rate scrolling in editor.

Parameters

TBool aEnableETrue if rate scrolling should be enabled.

EnableSmileySupportL(TBool)

voidEnableSmileySupportL(TBoolaEnableSmiley)

Parameters

TBool aEnableSmiley

ExtendedRangeForSmiley(TCursorSelection &)

voidExtendedRangeForSmiley(TCursorSelection &aSelect)[private]

Parameters

TCursorSelection & aSelect

ExtensionInterface(TUid)

IMPORT_C void *ExtensionInterface(TUidaInterface)[private, virtual]

Parameters

TUid aInterface

ExtractTextLC(TCursorSelection)

HBufC *ExtractTextLC(TCursorSelectionaSelect)

Parameters

TCursorSelection aSelect

FindL(const TDesC *, TInt)

IMPORT_C TBoolFindL(const TDesC *aFindText,
TIntaFindFlags = 0
)

Gets true if a substring is present in the text being edited before or after the cursor position. If aFindText is NULL, then the current word or selection will be searched for again.

Parameters

const TDesC * aFindTextThe substring to search for.
TInt aFindFlags = 0See TFindFlags. Default value is 0.

FindTextL(const TDesC *, TInt, TInt)

IMPORT_C TIntFindTextL(const TDesC *aFindText,
TIntaPos,
TIntaFindFlags
)

Gets the cursor position of the matching text in the document. The search starts from aPos. If aFindText is NULL, then the current word or selection will be searched for. If the substring cannot be found, this function returns KErrNotFound.

Parameters

const TDesC * aFindTextThe substring to search for.
TInt aPosStarting position for the find.
TInt aFindFlagsSee TFindFlags.

FocusChanged(TDrawNow)

IMPORT_C voidFocusChanged(TDrawNowaDrawNow)[virtual]

From CCoeControl.

Responds to focus-changed events.

Parameters

TDrawNow aDrawNowNot used.

ForceScrollBarUpdateL()

IMPORT_C voidForceScrollBarUpdateL()

Forces the scrollbars to update now; this is a synchronous function.

FormatTextL()

IMPORT_C voidFormatTextL()[protected]

Formats all the text in the text view. Called by several functions, for example by CEikEdwin::HandleTextChangedL() and CEikEdwin::SetTextL().

GetAllowedCharsLC()

HBufC *GetAllowedCharsLC()const [private]

GetColorUseListL(CArrayFix< TCoeColorUse > &)

IMPORT_C voidGetColorUseListL(CArrayFix< TCoeColorUse > &aColorUseList)const [virtual]

From CCoeControl.

Gets the list of logical colours employed in the drawing of the control, paired with an explanation of how they are used. Appends the list to aColorUseList.

Gets the list of logical colors employed in the drawing of the control, paired with an explanation of how they are used. Appends the list to aColorUseList.

Since
ER5U

Parameters

CArrayFix< TCoeColorUse > & aColorUseListThe list of logical colours.

GetExposedDirectionOfText(TInt, TBool, TBool &)

TBool GetExposedDirectionOfText(TIntaPos,
TBoolaForward,
TBool &aIsRightToLeft
)const [private]

Looks through the editor's text starting at character aPos, looking for a strongly directional character. Direction of search can be set. Search is carried out until a strong character is found or the end (or beginning) of the editor text has been reached.

Start at pos and scan for strong characters. Stop at paragraph boundaries. Maximum of KMaxSearch of about 1 line...

Parameters

TInt aPosFirst character to look at
TBool aForwardIf EFalse, then search is backward (decreasing index) in logical buffer
TBool & aIsRightToLeftSet to ETrue on return if first strong character found is RTL

GetExposedDirectionOfTextInDescriptor(const TDesC &, TBool, TBool &)

TBool GetExposedDirectionOfTextInDescriptor(const TDesC &aText,
TBoolaForward,
TBool &aIsRightToLeft
)const [private]

Looks through the passed descriptor, looking for a strongly directional character. Direction of search can be set. Search starts at the begining if searching forward; starts at the end if searching backwards.

Search is carried out until a strong character is found or the end (or beginning) of the descriptor has been reached.

Parameters

const TDesC & aTextDescriptor to search.
TBool aForwardIf EFalse, then search is backward (decreasing index) in logical buffer
TBool & aIsRightToLeftSet to ETrue on return if first strong character found is RTL

GetFindText(TDes *)

IMPORT_C voidGetFindText(TDes *aFindText)

Gets the current word or selection and searches for it. This function is called by FindL() and FindTextL() when no text to search for is given.

Parameters

TDes * aFindTextAn empty descriptor.

GetStrongDirectionality(TChar, TBool &)

TBool GetStrongDirectionality(TCharaChar,
TBool &aRightToLeft
)const [private]

Returns whether the character is strongly directional

Parameters

TChar aCharcharacter to be examined
TBool & aRightToLeftThis is valid upon return only if EFalse is not returned. Value is EFalse if the strong directionality is Left-to-right

GetText(TDes &)

IMPORT_C voidGetText(TDes &aDes)const

Copies the entire document s content into a descriptor. It is the caller's responsibility to provide a large enough buffer.

Parameters

TDes & aDesAn initialised descriptor which on return contains a copy of the content of this Edwin.

GetTextInHBufL()

IMPORT_C HBufC *GetTextInHBufL()const

Gets a new buffer containing a copy of the whole text document.

GetTextLinesRect()

IMPORT_C TRectGetTextLinesRect()const

Gets the rectangle set for drawing only full lines. In case the feature is disabled, this returns an empty rect. This is intended for internal use.

GetVisibleTextRangeL()

TCursorSelection GetVisibleTextRangeL()[private]

GetWordInfo(TInt, TInt &, TInt &)

IMPORT_C voidGetWordInfo(TIntaCurrentPos,
TInt &aStartPos,
TInt &aLength
)const

Gets the start position and the length of the word in which the specified document position is located.

Parameters

TInt aCurrentPosA position within a word in the text.
TInt & aStartPosReturns the start position of the word.
TInt & aLengthReturns the word s length.

HandlePointerEventL(const TPointerEvent &)

IMPORT_C voidHandlePointerEventL(const TPointerEvent &aPointerEvent)[virtual]

From CCoeControl.

Handles pointer events.

Parameters

const TPointerEvent & aPointerEventPointer event to respond to.

HandleResourceChange(TInt)

IMPORT_C voidHandleResourceChange(TIntaType)[virtual]

From CCoeControl.

Handles a change to Edwin s resources which are shared across the environment. Colours or fonts for example.

Handles a change to the control's resources of type aType which are shared across the environment, e.g. colors or fonts. For this particular control aType can be a request of handling either the caps lock modifier or the virtual cursor state.

Since
ER5U

Parameters

TInt aTypeThe type of resource that was changed.

HandleScrollEventL(CEikScrollBar *, TEikScrollEvent)

IMPORT_C voidHandleScrollEventL(CEikScrollBar *aScrollBar,
TEikScrollEventaEventType
)

From MEikScrollBarObserver.

Handles scrollbar key events.

Parameters

CEikScrollBar * aScrollBarThe scrollbar.
TEikScrollEvent aEventTypeThe type of key event.

HandleScrollEventWithPhysics(CEikScrollBar *)

voidHandleScrollEventWithPhysics(CEikScrollBar *aScrollBar)

Handles scrollbar events with kinetic scrolling.

Parameters

CEikScrollBar * aScrollBarThe scrollbar.

HandleSelectionForSmiley(TCursorSelection)

voidHandleSelectionForSmiley(TCursorSelectionaSelect)[private]

Parameters

TCursorSelection aSelect

HandleSizeChangedL()

IMPORT_C voidHandleSizeChangedL()[protected]

Handles a change in Edwin s size. This function accounts for text wrap settings and whether the Edwin is ready to be redrawn and also calls functions to reformat text and to update the Edwin s scroll bars.

HandleTextChangedL()

IMPORT_C voidHandleTextChangedL()

Handles all modifications made by reformatting the entire document. Calls CEikEdwin::FormatText() and redraws Edwin contents and scroll bars if they are ready to be redrawn.

HandleTextPastedL(TInt, TInt &)

IMPORT_C voidHandleTextPastedL(TIntaStartPos,
TInt &aLength
)[protected, virtual]

Not implemented.

Parameters

TInt aStartPosNot used.
TInt & aLengthNot used.

HighlightStyle()

TAknsHighlightStyle HighlightStyle()const

Gets highlight style.

IdleL(TAny *)

IMPORT_C TIntIdleL(TAny *aPtr)[static]

Uses SetScrollBarsL() to set the scrollbars.

Parameters

TAny * aPtrPointer to CEikEdwin instance.

InputCapabilities()

IMPORT_C TCoeInputCapabilitiesInputCapabilities()const [virtual]

From CCoeControl.

Access to the input capabilities of the edwin.

If this function is overrided in a subclass, the subclass should obtain this class' InputCapabilities' object provider through TCoeInputCapabilities::ObjectProvider() and set that as a part of the subclass' InputCapabilities object provider chain to ensure maximum functionality.

InsertDeleteCharsL(TInt, const TDesC &, const TCursorSelection &)

IMPORT_C voidInsertDeleteCharsL(TIntaInsertPos,
const TDesC &aText,
const TCursorSelection &aDelete
)

Replaces the cursor selection with the identified text.

Parameters

TInt aInsertPosThe position at which text will be inserted.
const TDesC & aTextThe text to insert.
const TCursorSelection & aDeleteThe cursor-selected text that will be replaced by aText.

InsertFieldL(CTextField *, TUid)

IMPORT_C voidInsertFieldL(CTextField *aField,
TUidaFieldType
)

Inserts a field at the current cursor position. If a selection was made the field replaces that selection.

Parameters

CTextField * aFieldText field to insert.
TUid aFieldTypeType of the field.

InsertFromTextFileL(const TFileName &, const CPlainText::TTextOrganisation)

IMPORT_C voidInsertFromTextFileL(const TFileName &aFileName,
const CPlainText::TTextOrganisationaTextOrganisation = CPlainText::EOrganiseByLine
)

Inserts the contents of a text file into the text being edited at the current cursor position.

Parameters

const TFileName & aFileNameThe file to open and read.
const CPlainText::TTextOrganisation aTextOrganisation = CPlainText::EOrganiseByLineHow to handle line breaks. Default value is CPlainText::EOrganiseByLine.

IsBackgroundDrawingSuppressed()

IMPORT_C TBoolIsBackgroundDrawingSuppressed()const

Tests if the background drawing is suppressed.

IsNewHeightWithinMinimumAndMaximum(TInt)

TBool IsNewHeightWithinMinimumAndMaximum(TIntaNewHeight)const [private]

Parameters

TInt aNewHeight

IsPurePhoneNumberEditor()

TBool IsPurePhoneNumberEditor()const [private]

Returns EFalse iff ( phone number had only numeric input modes AND the keymap is a phone number type keymap ). Phone number type keymaps are: EAknEditorStandardNumberModeKeymap EAknEditorFixedDiallingNumberModeKeymap

IsReadOnly()

IMPORT_C TBoolIsReadOnly()const

Determines whether the document being edited with Edwin is read-only.

IsSelectionVisible()

TBool IsSelectionVisible()[private]

check the selection content is visible character or not

IsSmileyEnabled()

TBool IsSmileyEnabled()const

IsValidChar(TInt)

TBool IsValidChar(TIntaChar)const [private]

Parameters

TInt aChar

KineticScrollingEnabled()

TBool KineticScrollingEnabled()const

Returns ETrue if kinetic scrolling is enabled.

LayoutWidth()

IMPORT_C TIntLayoutWidth()const

Gets the width used for laying out the text inside the Edwin in pixels. This may be larger or smaller than the width of the Edwin itself. See SetWysiwygModeOn() for example.

LineCursorWidth()

IMPORT_C TIntLineCursorWidth()const [virtual]

Gets the width of a line cursor in pixels.

LocateChar(TChar, TInt, TInt)

TInt LocateChar(TCharaChar,
TIntaStartPos,
TIntaLength
)[private]

Parameters

TChar aChar
TInt aStartPos
TInt aLength

LowerPartialFormattingLength()

IMPORT_C TIntLowerPartialFormattingLength()const

Gets the lower limit for formatting. This returns the value of KPartialFormattingLowerThreshold which determines when a switch is made from formatting only visible text to formatting all text. When the text length exceeds the KFullFormattingUpperThreshold only visible text is formatted. If some characters are deleted so that the text length is less than KFullFormattingUpperThreshold the entire text is still not formatted. Instead, reformatting occurs only when the number of characters is less than the value of KPartialFormattingLowerThreshold.

MakeCharFormatLayerMatchL(CCharFormatLayer *)

voidMakeCharFormatLayerMatchL(CCharFormatLayer *aCharFormatLayer)[private]

Parameters

CCharFormatLayer * aCharFormatLayer

MakeParaFormatLayerMatchL(CParaFormatLayer *)

voidMakeParaFormatLayerMatchL(CParaFormatLayer *aParaFormatLayer)[private]

Parameters

CParaFormatLayer * aParaFormatLayer

Margins()

IMPORT_C TMargins8Margins()const

Gets the text view margins.

MaxLength()

TInt MaxLength()const [inline]

Gets the editor maximum length.

MaximumHeight()

IMPORT_C TIntMaximumHeight()const

Gets the maximum Edwin height.

Please do not use the following method for deciding heights if you are using edwins with Maximum Heights in forms. Use MaximumHeightInLines instead.

Returns the maximum edwin height.

MaximumHeightInLines()

IMPORT_C TIntMaximumHeightInLines()const

Gets editor maximum height in lines.

MinimumHeight()

IMPORT_C TIntMinimumHeight()const

Gets the minimum Edwin height.

Returns the minimum edwin height.

MinimumSize()

IMPORT_C TSizeMinimumSize()[virtual]

From CCoeControl.

Gets the minimum size of this Edwin for automatic-layout control contexts such as dialogs.

MopSupplyObject(TTypeUid)

IMPORT_C TTypeUid::PtrMopSupplyObject(TTypeUidaId)[protected]

From MObjectProvider.

Retrieves an object of the same type as that encapsulated in aId.

This function is used to allow controls to ask their owners for access to other objects that they own.

Other than in the case where NULL is returned, the object returned must be of the same object type - that is, the ETypeId member of the object pointed to by the pointer returned by this function must be equal to the iUid member of aId.

Parameters

TTypeUid aIdAn encapsulated object type ID.

MoveCursorL(TCursorPosition::TMovementType, TBool)

IMPORT_C voidMoveCursorL(TCursorPosition::TMovementTypeaMovement,
TBoolaSelect
)

Sets the new cursor position. If the cursor is no longer visible the document is scrolled to display the line containing the new cursor position. Scrollbars are also updated if present.

Parameters

TCursorPosition::TMovementType aMovementThe cursor movement.
TBool aSelectIf ETrue, the selection is extended. This corresponds to holding down the Shift key on a machine keyboard.

MoveCursorToChunkStartL(TBool, TChunkSize, TEnd)

IMPORT_C voidMoveCursorToChunkStartL(TBoolaSelect,
TChunkSizeaChunkSize,
TEndaEndScanningTowards
)[protected]

Moves the cursor to the beginning of the next word or paragraph. This function cancels any front end processing transaction currently in progress for the Edwin.

Parameters

TBool aSelectIf ETrue the chunk is selected, otherwise EFalse.
TChunkSize aChunkSizeThe chunk size, this can be either a word or a paragraph. See TChunkSize enum.
TEnd aEndScanningTowardsWhich direction to scan towards, the start or the end of the document.

MoveDisplayL(TCursorPosition::TMovementType)

IMPORT_C voidMoveDisplayL(TCursorPosition::TMovementTypeaMovement)

Scrolls the text either horizontally or vertically without affecting the cursor s position.

Parameters

TCursorPosition::TMovementType aMovementThe cursor's movement.

NONSHARABLE_CLASS(CEikEdwinExtension)

NONSHARABLE_CLASS(CEikEdwinExtension)[private, inline]

Parameters

CEikEdwinExtension

NeedToChangeFormattingModeL()

TBool NeedToChangeFormattingModeL()const [private]

Standard check on upper and lower formatting thresholds versus current textview formatting mode.

NeedsNeutralProtection(TInt, TInt, TDes &, TBool &)

TBool NeedsNeutralProtection(TIntaPosOfLowEndOfDelete,
TIntaLengthToDelete,
TDes &aNewText,
TBool &aForwardProtectionNeeded
)[private]

Main routine for neutral protection. This routine returns a boolean stating if there is a requirement for protection, but also returns the text that should replace the to-be-deleted text.

Parameters

TInt aPosOfLowEndOfDelete
TInt aLengthToDeletelength the text to be deleted
TDes & aNewTextneutral protection characters to replace the delete
TBool & aForwardProtectionNeededEFalse if only reverse protection needed; data valid only if method does not return EFalse.

NewParagraphL()

voidNewParagraphL()[private]

NonPrintingCharsVisibility()

IMPORT_C TNonPrintingCharVisibilityNonPrintingCharsVisibility()const

Sets non-printing characters?visibility.

NotifyEditorStateObserverOfStateChangeL()

IMPORT_C voidNotifyEditorStateObserverOfStateChangeL()

This call causes FEP to reset current editing state and new editing state is fetched from CAknEdwinState object.

NotifyInvalidOperationOnReadOnlyL()

IMPORT_C voidNotifyInvalidOperationOnReadOnlyL()[private, virtual]

NotifyNewDocumentL()

IMPORT_C voidNotifyNewDocumentL()

Formats and draws a new document, updates scrollbars if necessary.

NotifyNewFormatL()

IMPORT_C voidNotifyNewFormatL()

Reformats and redraws the document, updates scrollbars if necessary.

OfferKeyEventL(const TKeyEvent &, TEventCode)

IMPORT_C TKeyResponseOfferKeyEventL(const TKeyEvent &aKeyEvent,
TEventCodeaType
)[virtual]

From CCoeControl.

Handles key events.

Parameters

const TKeyEvent & aKeyEventThe key event.
TEventCode aTypeThe type of the event: EEventKeyDown, EEventKeyUp or EEventKey.

OkToDeleteSelectionL()

IMPORT_C TBoolOkToDeleteSelectionL()[protected]

Confirms whether the deletion of the user s selection is required.

If the user s selection is less than KBlockDeleteWarningSize and does not contain a picture, this function returns ETrue.

If the user s selection is greater than KBlockDeleteWarningSize or contains a picture, this function asks the user to confirm deletion of their selection and then returns the user s response.

OnEditorStateFlagChange(TInt, TInt)

voidOnEditorStateFlagChange(TIntaOldFlag,
TIntaNewFlag
)

Parameters

TInt aOldFlag
TInt aNewFlag

OnReformatL(const CTextView *)

IMPORT_C voidOnReformatL(const CTextView *aTextView)

From CTextView::MObserver.

Called after reformatting but before redisplay so that edit windows etc. can be resized.

Reports the event EEventSizeChanging to the observer every time the text view height changes.

This routine has been significantly changed for AVKON: (TimW Aug 2000)
  • It deals in numbers of lines rather than pixels for height.

  • It is triggers the oberver when the height reduces as well as when it increases.

  • It updates iNumberOfLInes

Parameters

const CTextView * aTextViewNot used.

OnlyASCIIChars()

IMPORT_C TBoolOnlyASCIIChars()const

Tests whether the EOnlyASCIIChars flag is set.

OwnsScrollBars()

TBool OwnsScrollBars()const [private]

PasteFromStoreL(CStreamStore &, CStreamDictionary &)

IMPORT_C voidPasteFromStoreL(CStreamStore &aStore,
CStreamDictionary &aDict
)

Copies the contents of a stream store to the current cursor position, replacing any selected text. This function is used to paste data from the clipboard.

Parameters

CStreamStore & aStoreStore from which to read.
CStreamDictionary & aDictStream dictionary.

PerformRecordedOperationL()

voidPerformRecordedOperationL()[private]

PictographAnimationCallBack()

const TCallBack &PictographAnimationCallBack()const

Returns pictograph animation callback. If it is not set, the function pointer is NULL.

PixelsOutOfBorder()

TInt PixelsOutOfBorder()const

Returns amount of pixels how much we are out of borders.

PlaceDataOnClipboardL()

IMPORT_C voidPlaceDataOnClipboardL()[protected]

Copies the contents of the cursor selection onto the clipboard.

ReadAknResourceL(TResourceReader &)

IMPORT_C voidReadAknResourceL(TResourceReader &aReader)[protected]

Used in ConstructFromResourceL(). Sets Avkon editor properties.

Parameters

TResourceReader & aReaderA reader positioned for reading from an EDWIN resource.

ReceiveDataOverIrL()

IMPORT_C voidReceiveDataOverIrL()

Receives an Edwin document using an infra red beamer. This function will leave if the data received is not a suitable type to be pasted into the Edwin.

RemoveEdwinObserver(MEikEdwinObserver *)

IMPORT_C voidRemoveEdwinObserver(MEikEdwinObserver *aEdwinObserver)

Removes the specified observer from the list of observers. Does nothing if aEdwinObserver is not an observer.

Removes aEdwinObserver form the list of observers. Does nothing if aEdwinObserver isn't an observer.

Parameters

MEikEdwinObserver * aEdwinObserverThe observer to remove from the list of observers.

RemoveFlagFromUserFlags(TUint32)

IMPORT_C voidRemoveFlagFromUserFlags(TUint32aFlag)

Removes user flags. See TFlags.

Parameters

TUint32 aFlagFlags to remove.

ReplaceAllL(SEdwinFindModel *)

IMPORT_C voidReplaceAllL(SEdwinFindModel *aFindModel)

Replaces all occurrences of a string with new text. Both old and new text are held in aFindModel.

leave
This function will leave if the replace operation fails unexpectedly.

Parameters

SEdwinFindModel * aFindModelPointer to the replacement text.

ReplaceL(SEdwinFindModel *)

IMPORT_C voidReplaceL(SEdwinFindModel *aFindModel)

Replaces the highlighted text. See SEdwinFindModel struct.

Parameters

SEdwinFindModel * aFindModelPointer to the replacement text.

ReplaceParaDelimitersL(TInt, TInt)

voidReplaceParaDelimitersL(TIntaStartPos,
TIntaLength
)[private]

Parameters

TInt aStartPos
TInt aLength

ReplaceSelectionWithTextL(const TDesC &, TInt, TBool &)

voidReplaceSelectionWithTextL(const TDesC &aNewText,
TIntaCursorPosInNewText,
TBool &aFormatHasChanged
)[private]

Routine to perform the operation of replacing a selection with new text. This is intended for internal use.

The current selection, if non-zero length is deleted, and replace with aNewText if non-zero length iTextView must be set.

Parameters

const TDesC & aNewTextReplacement text. May be zero length.
TInt aCursorPosInNewTextThis is the position, relative to the beginning of the newtext, that you want the cursor to be at when the operation is complete
TBool & aFormatHasChangedSet this to ETrue if you want the reformatting to start at the beginning of the paragraph. EFalse if just to reformat the line. This variable may also be set by the call to DeleteHighlight that this code executes, so it may be set to ETrue upon return, even if EFalse was passed.

ReportChinesePopupEventL(TBool)

voidReportChinesePopupEventL(TBoolaChinesePopupOpen)

Parameters

TBool aChinesePopupOpen

ReportEdwinEventL(MEikEdwinObserver::TEdwinEvent)

IMPORT_C voidReportEdwinEventL(MEikEdwinObserver::TEdwinEventaEventType)[protected]

Reports an Edwin event of the specified type. The Edwin event is passed first to the Edwin observer and then to the list of observers, even if the first Edwin observer is not set. If the Edwin has a custom drawer, and the event is of type EEventFormatChanged, the event is passed to the custom drawer. If the Edwin has an observer the event is passed to that observer. If no observer is set for the Edwin, this function passes the event to each observer in the observer list.

Parameters

MEikEdwinObserver::TEdwinEvent aEventTypeThe type of event to report.

Reserved_2()

IMPORT_C voidReserved_2()[private, virtual]

Reserved_3()

IMPORT_C voidReserved_3()[private, virtual]

RestoreCursorState()

voidRestoreCursorState()

Show cursor again if needed (based on stored cursor visibility info).

RetrieveDataFromClipboardL()

voidRetrieveDataFromClipboardL()[private]

RunCharMapDialogL()

IMPORT_C voidRunCharMapDialogL()

Displays a dialog allowing the user to choose a character from the character map. The selected character is inserted into the Edwin at the current cursor position.

ScrollBarFrame()

CEikScrollBarFrame *ScrollBarFrame()[inline]

Gets the scroll bar frame surrounding this Edwin.

ScrollIfAtTopOrBottomL()

voidScrollIfAtTopOrBottomL()[private]

ScrollReadOnlyNoCursorDisplayL(TUint)

TKeyResponse ScrollReadOnlyNoCursorDisplayL(TUintaKeyCode)[private]

Parameters

TUint aKeyCode

ScrollView(TInt, TBool &, TInt &)

TInt ScrollView(TIntaPixelsToScroll,
TBool &aBorderExceeded,
TInt &aRestOfPixels
)

Scrolls view by amount of pixels. Stops scrolling when beginning or end of content exceeded. This function should be used when scrolling starts from inside content (in other words in normal situation when begin- or end-border has not yet exceeded)

Parameters

TInt aPixelsToScrollAmount of pixels to scroll
TBool & aBorderExceededreturns ETrue if border was exceeded
TInt & aRestOfPixelsAmount of pixels not scrolled because border was exceeded

ScrollViewToCursorLineL()

voidScrollViewToCursorLineL()[private]

ScrollViewWithBounce(TInt, TBool &, TInt &)

TInt ScrollViewWithBounce(TIntaPixelsToScroll,
TBool &aEndOfBounce,
TInt &aRestOfPixels
)

Scrolls view by amount of pixels.

This function should be used to scroll when we have already exceeded begin- or end-border (we are out of borders). This function supports scrolling so that there can be empty space above or below the editor content (used in bounce effect). Stops scrolling when we return back to inside borders.

Parameters

TInt aPixelsToScrollAmount of pixels to scroll
TBool & aEndOfBouncereturns ETrue if content scrolled back to inside of borders
TInt & aRestOfPixelsAmount of pixels not scrolled

SelectAllL()

IMPORT_C voidSelectAllL()

Selects the entire document.

Selection()

IMPORT_C TCursorSelectionSelection()const

Gets the cursor selection. If no text view is associated to the Edwin this returns TCursorSelection(0,0).

SelectionLength()

IMPORT_C TIntSelectionLength()const

Gets the number of characters including non-printing characters within the selection.

SendDataOverIrL()

IMPORT_C voidSendDataOverIrL()

Sends the Edwin s document using an infra red beamer.

SetAknEditorAllowedInputModes(TInt)

IMPORT_C voidSetAknEditorAllowedInputModes(TIntaInputModes)

Sets allowed input modes for the editor. All input modes are allowed (EAknEditorAllInputModes) if the value is not set from EDWIN resource allowed_input_modes or with this API.

Parameters

TInt aInputModesInput modes that are allowed in the editor.

SetAknEditorCase(TInt)

IMPORT_C voidSetAknEditorCase(TIntaCase)

Sets default case for the editor. The case is used when the editor is focused first time. Available case flags from uikon.hrh are EAknEditorUpperCase, EAknEditorLowerCase and EAknEditorTextCase. EAknEditorTextCase is used if the initial case is not set from EDWIN resource default_case or with this API.

Parameters

TInt aCaseInitial case to be used in the editor.

SetAknEditorCurrentCase(TInt)

IMPORT_C voidSetAknEditorCurrentCase(TIntaCase)

Updates editor case. FEP is automatically notified of the case change in editor state and FEP takes new case to use immediately. Available case flags from uikon.hrh are EAknEditorUpperCase, EAknEditorLowerCase and EAknEditorTextCase. This method should not be used to set initial case for the editor. Use SetAknEditorCase() method instead for setting initial case.

Parameters

TInt aCaseNew case for the editor.

SetAknEditorCurrentInputMode(TInt)

IMPORT_C voidSetAknEditorCurrentInputMode(TIntaInputMode)

Updates editor input mode. FEP is automatically notified of the new input mode in editor state and FEP takes new input mode to use immediatelly. Current inline editing is reset. This method should not be used for setting initial input mode for the editor. Use SetAknEditorInputMode() method instead for setting initial input mode.

Parameters

TInt aInputModeNew input mode for the editor.

SetAknEditorFlags(TInt)

IMPORT_C voidSetAknEditorFlags(TIntaFlags)

Sets initial editor flags for the editor. This method can be used also to update editor flags after the editor is focused. FEP is automatically notified of the updated editor flags.

Parameters

TInt aFlagsAvkon editor flags for the editor.

SetAknEditorInputMode(TInt)

IMPORT_C voidSetAknEditorInputMode(TIntaInputMode)

Sets default input mode for the editor. The input mode is used when the editor is focused first time. EAknEditorTextInputMode is used if the initial input mode is not set from EDWIN resource default_input_mode or with this API.

Parameters

TInt aInputModeInitial input mode to be used in the editor.

SetAknEditorLocalLanguage(TLanguage)

IMPORT_C voidSetAknEditorLocalLanguage(TLanguageaLanguage)

Sets new local input language for the editor. Global input language changes have not effect for the input language but the user can still change the input language from the edit menu.

Parameters

TLanguage aLanguageEditor local input language.

SetAknEditorNumericKeymap(TAknEditorNumericKeymap)

IMPORT_C voidSetAknEditorNumericKeymap(TAknEditorNumericKeymapaNumericKeymap)

Sets number mode key mapping for '*' and '#' keys. The key mapping is used in editors when numeric input mode is used. Key mapping characters for '*' key are shown on special character table if also text input modes are allowed in the editor but the current input mode is numeric mode. EAknEditorStandardNumberModeKeymap is used in editors that allow only numeric input if the mapping is not set from EDWIN resource numeric_keymap or with this API. EAknEditorAlphanumericNumberModeKeymap is used as default if the editor allows also text input mode.

Parameters

TAknEditorNumericKeymap aNumericKeymapKey mapping used in an editor with number input mode.

SetAknEditorPermittedCaseModes(TInt)

IMPORT_C voidSetAknEditorPermittedCaseModes(TIntaPermittedCaseModes)

Sets permitted cases for the editor. Possible flags from uikon.hrh are EAknEditorAllCaseModes, EAknEditorUpperCase, EAknEditorLowerCase and EAknEditorTextCase. EAknEditorAllCaseModes is used if the value is not set from EDWIN resource allowed_case_modes or with this API.

Parameters

TInt aPermittedCaseModesCase modes that are available in the editor.

SetAknEditorSpecialCharacterTable(TInt)

IMPORT_C voidSetAknEditorSpecialCharacterTable(TIntaSCTResId)

Sets editor specific special character table.

Parameters

TInt aSCTResIdSpecial character table dialog resource.

SetAlignment(TInt)

IMPORT_C voidSetAlignment(TIntaAlignment)

Stores the alignment value for an editor.

Parameters

TInt aAlignmentEditor alignment to be stored - must be supplied as one of the values in Avkon editor alignment enum i.e.: EAknEditorAlignCenter, EAknEditorAlignLeft, EAknEditorAlignRight, EAknEditorAlignBidi

SetAllowPictures(TBool)

IMPORT_C voidSetAllowPictures(TBoolaAllow)

Sets whether the document accepts pictures.

Parameters

TBool aAllowETrue sets the document to accept pictures, EFalse sets the document to not accept pictures.

SetAllowUndo(TBool)

IMPORT_C voidSetAllowUndo(TBoolaAllow)

Sets whether the undo operation is permitted.

Parameters

TBool aAllowETrue to permit undo operations. EFalse to not permit undo operations.

SetAmountToFormatL(TBool)

IMPORT_C voidSetAmountToFormatL(TBoolaIsNewDoc = EFalse)

Controls the formatting mode of the editor.

The length of the text is compared against current formatting mode thresholds. (See method SetUpperFullFormattingLength). If the length is greater than the upper limit of full formatting, then the editor is set to "band" formatting, where the editor attempts to format as little as is needed, e.g. the visible part of the editor. If the text length is less than the lower limit of band formatting, then the formatting mode is switched to full document formatting.

This method performs an immediate re-formatting of all or part of the text with the new formatting mode.

Parameters

TBool aIsNewDoc = EFalseIf EFalse, attempts to perform re-formatting based upon current formatting If not EFalse, whole document it formatted from scratch Note: This parameter is ignored if aReFormat is EFalse

SetAmountToFormatL(TBool, TBool)

IMPORT_C voidSetAmountToFormatL(TBoolaIsNewDoc,
TBoolaReFormat
)

Controls the formatting mode of the editor.

The length of the text is compared against the current formatting mode thresholds. (See method SetUpperFullFormattingLength). If the length is greater than the upper limit of full formatting, then the editor is set to "band" formatting, where the editor attempts to format as little as is needed, e.g. the visible part of the editor. If the text length is less than the lower limit of band formatting, then the formatting mode is switched to full document formatting.

This method has a flag to allow any immediate re-formatting to be suppressed. Formatting text can be a time-consuming operation. If the client is able to ensure that no reformatting is needed, (for instance if a further re-formatting API is going to be called later) then the reformatting flag can be called with EFalse. Otherwise, a re-format will take place within this method.

Since
3.1

Parameters

TBool aIsNewDocIf EFalse, attempts to perform re-formatting based upon current formatting If not EFalse, whole document it formatted from scratch Note: This parameter is ignored if aReFormat is EFalse
TBool aReFormatIf EFalse, do not perform any re-formatting

SetAvgCharsPerLine(TInt)

voidSetAvgCharsPerLine(TIntaAvgChars)[inline]

Sets the average number of characters per line.

Parameters

TInt aAvgCharsThe average number of characters per line.

SetAvgLinesInViewRect(TInt)

voidSetAvgLinesInViewRect(TIntaAvgLines)[inline]

Sets the average number of lines displayed in Edwin s view.

Parameters

TInt aAvgLinesThe average number of lines to display.

SetAvkonWrap(TBool)

IMPORT_C voidSetAvkonWrap(TBoolaAvkonWrapIsOn)

Sets the EAvkonEditor flag.

Parameters

TBool aAvkonWrapIsOnIf ETrue EAvkonEditor flag is set.

SetBackgroundColorL(TRgb)

IMPORT_C voidSetBackgroundColorL(TRgbaBackground)

Sets the Edwin s background colour.

Parameters

TRgb aBackgroundNew value for the background colour.

SetBorderViewMargins(TMargins8)

IMPORT_C voidSetBorderViewMargins(TMargins8aMargins)

Sets the text view margins.

Parameters

TMargins8 aMarginsNew value for the view s margins.

SetCharFormatLayer(CCharFormatLayer *)

IMPORT_C voidSetCharFormatLayer(CCharFormatLayer *aCharFormatLayer)

Sets the character format layer for the editor. Ownership of the CCharFormatLayer is transferred.

Parameters

CCharFormatLayer * aCharFormatLayerPointer to the character format layer object.

SetContainerWindowL()

IMPORT_C voidSetContainerWindowL()

Creates the containing window for the Edwin if it does not already have one.

SetContainerWindowL(const CCoeControl &)

IMPORT_C voidSetContainerWindowL(const CCoeControl &aParent)[virtual]

From CCoeControl.

Sets the containing window for the Edwin by copying it from the specified parent. Also copies a control context from aParent if one has not been previously set.

Parameters

const CCoeControl & aParentThe control to set as this Edwin s parent.

SetCursorPosL(TInt, TBool)

IMPORT_C voidSetCursorPosL(TIntaCursorPos,
TBoolaSelect
)

Sets the cursor s position within the document. If the new position is not visible the text is scrolled so that the line containing the cursor is visible. This function also updates the scroll bar thumbs if present.

Parameters

TInt aCursorPosNew cursor position.
TBool aSelectETrue to extend the cursor s selection to the new position. EFalse otherwise.

SetCursorSizeAndType()

voidSetCursorSizeAndType()[private]

SetCursorVisibilityL(TBool)

voidSetCursorVisibilityL(TBoolaEmphasis)[private]

Parameters

TBool aEmphasis

SetCursorVisible(TBool)

IMPORT_C voidSetCursorVisible(TBoolaVisible)

Used to control cursor visibility

Parameters

TBool aVisible

SetDimmed(TBool)

IMPORT_C voidSetDimmed(TBoolaDimmed)[virtual]

From CCoeControl.

Dims or undims the Edwin.

Parameters

TBool aDimmedETrue to dim the Edwin. EFalse to undim the Edwin.

SetDocumentContentL(CGlobalText &, TSetContent)

IMPORT_C voidSetDocumentContentL(CGlobalText &aText,
TSetContentaContent = CEikEdwin::ECopyText
)

Sets the Edwin s editable content. Before calling this function you must get the iText pointer as iText is replaced by aText. You must also free the memory by deleting the previous iText contents.

Parameters

CGlobalText & aTextNew value for the content.
TSetContent aContent = CEikEdwin::ECopyTextSpecifies whether to use aText itself, or to copy its content. Default value is CEikEdwin::ECopyText.

SetDocumentOwnership(TOwnershipType)

IMPORT_C voidSetDocumentOwnership(TOwnershipTypeaOwner)

Sets whether the Edwin owns a document. Edwins can either be used as a standalone text editor control, or as an editor for text owned by another object. The document ownership setting determines whether the Edwin or another object owns the document.

Parameters

TOwnershipType aOwnerWhether Edwin or another object owns the document. See TOwnershipType.

SetEdwinHeight(TInt)

voidSetEdwinHeight(TIntaHeight)[private]

Parameters

TInt aHeight

SetEdwinObserver(MEikEdwinObserver *)

IMPORT_C voidSetEdwinObserver(MEikEdwinObserver *aEdwinObserver)

Sets the Edwin observer. The Edwin s observer will be called back with control events associated with the Edwin.

Parameters

MEikEdwinObserver * aEdwinObserverNew observer.

SetEdwinSizeObserver(MEikEdwinSizeObserver *)

IMPORT_C voidSetEdwinSizeObserver(MEikEdwinSizeObserver *aEdwinSizeObserver)

Sets the Edwin size observer. Does not imply transfer of ownership.

Sets the edwin size observer to aObserver. Does not imply transfer of ownership.

Parameters

MEikEdwinSizeObserver * aEdwinSizeObserverThe Edwin size observer.

SetHeightForNumOfLinesL()

voidSetHeightForNumOfLinesL()[private]

SetHighlightStyleL(TAknsHighlightStyle)

IMPORT_C voidSetHighlightStyleL(TAknsHighlightStyleaStyle)

Sets highlight style.

Parameters

TAknsHighlightStyle aStyleThe highlight style.

SetInputCapabilitiesL(const TCoeInputCapabilities &)

IMPORT_C voidSetInputCapabilitiesL(const TCoeInputCapabilities &aInputCapabilities)

From CCoeControl.

This method sets the input capabilities of the edwin. Ownership of the T-class is not transferred.

leave
KErrNoMemory Edwin FEB support object is not created.

Parameters

const TCoeInputCapabilities & aInputCapabilitiesReference to an input capabilities object on the heap.

SetKeyboardRepeatRate(TTimeIntervalMicroSeconds32)

voidSetKeyboardRepeatRate(TTimeIntervalMicroSeconds32aKeyRepeatRate)const [private]

Parameters

TTimeIntervalMicroSeconds32 aKeyRepeatRate

SetKineticScrollingScrollBarModel(TEikScrollBarModel &)

voidSetKineticScrollingScrollBarModel(TEikScrollBarModel &aVertModel)const [private]

Sets vertical scrollbar model with kinetic scrolling.

Parameters

TEikScrollBarModel & aVertModelVertical scrollbar model

SetKineticScrollingScrollBarsL()

voidSetKineticScrollingScrollBarsL()[private]

Sets scrollbars with kinetic scrolling.

SetLineCursorDetailsL()

IMPORT_C voidSetLineCursorDetailsL()[protected]

Sets margin widths and line cursor width.

SetMaxLength(TInt)

voidSetMaxLength(TIntaLength)[inline]

Sets maximum length for the editor.

Parameters

TInt aLengthMaximum length for the editor.

SetMaximumHeight(TInt)

IMPORT_C voidSetMaximumHeight(TIntaHeight)

Sets the maximum Edwin height. This function also decreases the minimum Edwin height if its value is greater than aHeight.

Please do not use the following method for setting maximum heights if you are using edwins with maximum heights in forms. Use MaximumHeightInLines instead.

Sets the maximum edwin height to be aHeight. It also adjustes the minimum edwin height when its values is bigger than aHeight.

Parameters

TInt aHeightThe maximum Edwin height.

SetMaximumHeightInLines(TInt)

IMPORT_C voidSetMaximumHeightInLines(TIntaLines)

Sets editor's maximum height in lines.

Parameters

TInt aLinesMaximum height in lines.

SetMinimumHeight(TInt)

IMPORT_C voidSetMinimumHeight(TIntaHeight)

Sets the minimum Edwin height. This function also increases the maximum Edwin height if its value is less than aHeight.

Sets the minimum edwin height to be aHeight. It also adjustes the maximum edwin height when its values is smaller than aHeight.

Parameters

TInt aHeight

SetNonPrintingCharsVisibility(TNonPrintingCharVisibility)

IMPORT_C voidSetNonPrintingCharsVisibility(TNonPrintingCharVisibilityaVisibility)

Sets non-printing characters?visibility.

Parameters

TNonPrintingCharVisibility aVisibilityNon-printing characters?visibility.

SetOnlyASCIIChars(TBool)

IMPORT_C voidSetOnlyASCIIChars(TBoolaASCIIOnly)

Sets the EOnlyASCIIChars flag.

Parameters

TBool aASCIIOnlyIf ETrue the EOnlyASCIIChars flag will be set. If EFalse the EOnlyASCIIChars flag will be removed.

SetParaFormatLayer(CParaFormatLayer *)

IMPORT_C voidSetParaFormatLayer(CParaFormatLayer *aParaFormatLayer)

Sets the paragraph format layer for the editor. Ownership of the CParaFormatLayer is transferred.

Parameters

CParaFormatLayer * aParaFormatLayerPointer to the paragraph format layer object.

SetPasteFromIrStore(TBool)

IMPORT_C voidSetPasteFromIrStore(TBoolaPasteFromIrStore)

Sets the EPasteFromIrStore flag.

Parameters

TBool aPasteFromIrStoreETrue to set the EPasteFromIrStore flag. EFalse to remove the EPasteFromIrStore flag.

SetPictographAnimationCallBack(TCallBack &)

IMPORT_C voidSetPictographAnimationCallBack(TCallBack &aCallBack)

Sets the callback, which the editor calls after having redrawn itself for animated pictographs. CEikCaptionedControl uses it to draw the highlight frame on top of the editor.

Since
S60 2.6

Parameters

TCallBack & aCallBackThe callback.

SetReadOnly(TBool)

IMPORT_C voidSetReadOnly(TBoolaReadOnly)

Sets the Edwin s read-only flag so that documents displayed by Edwin cannot be edited by users.

Parameters

TBool aReadOnlyETrue to set Edwin to display documents as read-only. EFalse otherwise.

SetRightWrapGutter(TInt)

IMPORT_C voidSetRightWrapGutter(TIntaGap)

Sets the minimum gap between text and the right hand edge of the Edwin when text is wrapped. This value is used to calculate the layout area for text.

Parameters

TInt aGapSize of the gutter in pixels.

SetScrollBarsL()

voidSetScrollBarsL()[private]

SetScrollRect(const TRect &)

IMPORT_C voidSetScrollRect(const TRect &aRect)

Used to determine which area is used for scrolling

Parameters

const TRect & aRect

SetSelectionL(TInt, TInt)

IMPORT_C voidSetSelectionL(TIntaCursorPos,
TIntaAnchorPos
)

Sets the text selection. Highlights the selected area and makes the new cursor position visible. Any previous selection is cancelled. This function also updates the scroll bar thumbs if present.

Parameters

TInt aCursorPosThe cursor s position.
TInt aAnchorPosThe anchor s position.

SetSelectionVisibilityL(TBool)

voidSetSelectionVisibilityL(TBoolaIsVisable)[private]

Parameters

TBool aIsVisable

SetSkinBackgroundControlContextL(MAknsControlContext *)

IMPORT_C voidSetSkinBackgroundControlContextL(MAknsControlContext *aContext)

Sets within in the editor an externally owned Skins background control context. This background control context will then be used by the editor to draw background.

If this API is not called, then the editor IS skin enabled, (that is CEikEdwins are skin enabled by default) but it will try to find a control context with which to perform background drawing from the Control Environment, via the Object Provider.

Setting this control context to NULL will have the effect of turning off background skinning.

Parameters

MAknsControlContext * aContextControl context to store. Not owned. Can be NULL.

SetSuppressBackgroundDrawing(TBool)

IMPORT_C voidSetSuppressBackgroundDrawing(TBoolaSuppress)

Used for suppressing all editor's background drawing. This is intended for internal use.

Note that when this is set, the background is not drawn with skin nor cleared, so the background MUST be drawn by the parent control every time the editor changes.

Parameters

TBool aSuppressIf ETrue, suppress background drawing

SetSuppressFormatting(TBool)

IMPORT_C voidSetSuppressFormatting(TBoolaSuppressed)

Can be called to inhibit formatting of the editor. Care is required to ensure that the necessary reformatting is carried out later on if this API is used.

Note: When called with EFalse, it does not automatically trigger reformatting.

Since
3.1

Parameters

TBool aSuppressedIf ETrue, inhibit formatting from now on, if EFalse, re-enable formatting from now on.

SetSuppressNotifyDraw(TBool)

IMPORT_C voidSetSuppressNotifyDraw(TBoolaEnabled)

Can be called to inhibit redrawing of the editor when NotifyNewFormatL() is called.

Parameters

TBool aEnabledIf ETrue, inhibit redrawing when notified of new format from now on.

SetTextL(const TDesC *)

IMPORT_C voidSetTextL(const TDesC *aDes)

Sets the document text of this Edwin from the contents of a descriptor. This function removes any pictures, any invalid characters and cancels any previous selection.

Parameters

const TDesC * aDesDescriptor from which to copy.

SetTextLimit(TInt)

IMPORT_C voidSetTextLimit(TIntaLimit)

Sets the maximum number of characters that can be inserted.

Parameters

TInt aLimitNew maximum for the number of characters that can be inserted.

SetTextLinesRect(const TRect &)

IMPORT_C voidSetTextLinesRect(const TRect &aRect)

Used to prevent partial text lines from being drawn. The client is responsible for giving a sane value. An empty rect disables this feature. This is intended for internal use.

Parameters

const TRect & aRectThe rect which contains text lines to be drawn

SetTextSkinColorIdL(TInt)

IMPORT_C voidSetTextSkinColorIdL(TIntaAknSkinIdForTextColor)

Sets skin id for text.

Parameters

TInt aAknSkinIdForTextColorThe skin id.

SetUndoBufferL(const TCursorSelection &)

IMPORT_C TBoolSetUndoBufferL(const TCursorSelection &aSelection)

Sets undo buffer for the Edwin.

Parameters

const TCursorSelection & aSelectionThe current selection.

SetUndoableText(const TCursorSelection &)

IMPORT_C voidSetUndoableText(const TCursorSelection &aSelection)

Sets new undoable text to the undo buffer.

Parameters

const TCursorSelection & aSelectionThe current selection.

SetUpperFullFormattingLength(TInt)

IMPORT_C voidSetUpperFullFormattingLength(TIntaUpperFullFormattingLimit)

This method sets the upper limit of full document formatting.

At construction, the mode is full document formatting, where the text formatter processes the whole document to determine its layout.

When the text content is set, or when user input causes the length of text to exceed this value, the formatting mode switches to "Band" formatting, where the text formatter attempts to format as little as possible - optimally just the visible screen.

A lower limit is calculated from the passed-in value, by the subtraction of a constant. When the text becomes smaller than this lower limit, the formatting switches to full document formatting.

Internally-imposed limits prevent the client setting too small a value for proper operation of the text formatting.

If this method is not called, the upper and lower limts are set to a large default values.

Access to the actual limits is available via the methods UpperFullFormattingLength() and LowerPartialFormattingLength().

Since
3.0

Parameters

TInt aUpperFullFormattingLimitThe upper limit of full document formatting.

SetVKBStatus()

voidSetVKBStatus()[private]

SetVertScrollBarModelByCharactersL(TEikScrollBarModel &)

voidSetVertScrollBarModelByCharactersL(TEikScrollBarModel &aVertModel)const [private]

Parameters

TEikScrollBarModel & aVertModel

SetVirtualCursorStateL(TBool)

voidSetVirtualCursorStateL(TBoolaIsFocused)const [private]

Parameters

TBool aIsFocused

SetWordDelimiters(TBool, TBool)

IMPORT_C voidSetWordDelimiters(TBoolaPicture,
TBoolaPunctuation
)

Sets whether picture characters and/or punctuation should be treated as word delimiters in addition to whitespace.

Parameters

TBool aPictureETrue if picture characters should be treated as delimiters for words.
TBool aPunctuationETrue if punctuation should be treated as delimiters for words.

SetWordWrapL(TBool)

IMPORT_C voidSetWordWrapL(TBoolaWrapIsOn)

Sets word wrapping on or off.

Parameters

TBool aWrapIsOnETrue enables word wrapping, EFalse disables word wrapping.

SetWysiwygModeOff()

IMPORT_C voidSetWysiwygModeOff()

Switches off the WYSIWYG mode. This function sets the new format mode to be EFScreenMode.

SetWysiwygModeOn(TInt, MGraphicsDeviceMap *)

IMPORT_C voidSetWysiwygModeOn(TIntaLayoutWidth,
MGraphicsDeviceMap *aDevice
)

Sets the format mode to be WYSIWYG.

Parameters

TInt aLayoutWidthFormatting width in twips.
MGraphicsDeviceMap * aDeviceMapping between twips and pixels on the target device.

SetZoomFactorL(TZoomFactor *)

IMPORT_C voidSetZoomFactorL(TZoomFactor *aZoomFactor)

Sets the zoom factor of the document and reformats the document.

Parameters

TZoomFactor * aZoomFactorNew value for the zooming factor.

SizeChanged()

IMPORT_C voidSizeChanged()[private, virtual]

SkinBackgroundControlContext()

MAknsControlContext *SkinBackgroundControlContext()const

Access to Skins background control context that is potentially being used by the Editor.

This API will first check to see if an control context has been set by API, and if so, return that. If the background control context has been set to NULL by API, then it will return NULL. If the background control context has never been set by API, then this returns the control context (if one exists) that the object obtains from Object Provider.

SkinColorId()

TInt SkinColorId()const

Gets skin id.

SkinEnabled()

TBool SkinEnabled()const

Access to disposition of the editor to perform Skinning. This does not take into account whether the application is skin enabled or whether the environment is providing a background control context. It is only a function of whether editor's (default) disposition to skin has been countered by calls on the editor API.

SkipBackgroundDrawer()

TBool SkipBackgroundDrawer()const

Can be used by custom drawers to check if background drawing should be performed. This is meant to be used only if editor has MCoeControlBackground object attached.

StoreCursorState()

voidStoreCursorState()

If cursor is visible, disables it and stores cursor visibility info.

SupportsUndo()

IMPORT_C TBoolSupportsUndo()const

Gets whether Edwin is set to support the undo command.

Text()

IMPORT_C CPlainText *Text()const

Gets a pointer to the Edwin s document contents.

TextLayout()

IMPORT_C CTextLayout *TextLayout()const

Gets Edwins text layout.

TextLength()

IMPORT_C TIntTextLength()const

Gets the number of characters in the document.

TextView()

IMPORT_C CTextView *TextView()const

Gets Edwin text view.

TrappedDraw(const TRect &)

IMPORT_C voidTrappedDraw(const TRect &aRect)const [protected]

Draws the visible text and the cursor for DrawL(), but does not draw the border. The DrawL() function is trapped to handle problems due to insufficient resources being available.

Parameters

const TRect & aRectRectangle in which to draw.

TrappedSizeChanged()

IMPORT_C voidTrappedSizeChanged()[protected]

Handles errors that occur when handling a change in Edwin s size. Calls CEikonEnv::NotifyIdleErrorWhileRedrawing().

TrimText(TDes &)

voidTrimText(TDes &aText)[private]

Parameters

TDes & aText

UndoL()

IMPORT_C voidUndoL()

Undoes the most recent text operation when the Edwin supports this feature and when the undo store is not empty.

UpdateAllFieldsL()

IMPORT_C voidUpdateAllFieldsL()

Updates all the fields in the document.

UpdateCache(TInt)

voidUpdateCache(TIntaId)[private]

Parameters

TInt aId

UpdateCurrentFieldL()

IMPORT_C voidUpdateCurrentFieldL()

Updates any text field at the current cursor position. Updating involves calculating the new value for the field, and replacing the field s existing text content with the new text.

This function does nothing if the cursor is not within a text field.

UpdateHorizScrollBarThumb()

voidUpdateHorizScrollBarThumb()[private]

UpdateLayoutWidth(TInt)

IMPORT_C voidUpdateLayoutWidth(TIntaLayoutWidth)

Updates the text wrap width. This function is for use in WYSIWYG mode only.

Parameters

TInt aLayoutWidthNew width to wrap text at in WYSIWYG mode in twips.

UpdateScrollBarsL()

IMPORT_C voidUpdateScrollBarsL()

Updates scrollbars.

UpdateVertScrollBarThumbL()

voidUpdateVertScrollBarThumbL()[private]

UpperFullFormattingLength()

IMPORT_C TIntUpperFullFormattingLength()const

Gets the upper limit for formatting. This returns the value of KFullFormattingUpperThreshold which determines the maximum number of characters that can be formatted, if it is exceeded then only visible text is formatted. This is used with KPartialFormattingLowerThreshold to control the extent of text formatting.

UserFlags()

IMPORT_C TUint32UserFlags()const

Gets user flags. See TFlags.

WriteInternalStateL(RWriteStream &)

IMPORT_C voidWriteInternalStateL(RWriteStream &aWriteStream)const [virtual]

From CCoeControl.

In debug mode writes the internal state to the given stream. Does nothing in release mode.

Writes the internal state of the control and its components to aStream. Does nothing in release mode. Designed to be overidden and base called by subclasses.

Parameters

RWriteStream & aWriteStreamA stream for writing the internal state.

Member Enumerations Documentation

Enum anonymous

Enumerators

EWysiwygOn = 0x00000010
EUnderOneScreenFormattedText = 0x00000020
EPictureDelimits = 0x00000040
EPunctuationDelimits = 0x00000080
EPasteFromIrStore = 0x00000100
ELockScrollBarState = 0x00000200
EOnReformatting = 0x00000400

Enum TChunkSize

Specifies the chunk size as either a word, or a paragraph.

Enumerators

EChunkWord

A word.

EChunkPara

A paragraph.

Enum TClipboardFunc

Defines the possible commands for ClipboardL().

Enumerators

ENoClipboard

Do nothing.

ECut

Cut.

ECopy

Copy.

EPaste

Paste.

Enum TEdwinHotKeys

Enumerates the hotkeys that are defined an r_eik_edwin_ctrl_hotkeys or r_eik_edwin_shift_ctrl_hotkeys resource.

Not all are applicable to plain text editors.

Enumerators

EHotKeyCut

Cut.

EHotKeyCopy

Copy.

EHotKeyPaste

Paste.

EHotKeyUndo

Undo.

EHotKeyFind

Find.

EHotKeyInsertChar

Insert a character.

EHotKeyBold

Bold.

EHotKeyItalic

Italic.

EHotKeyUnderline

Underline.

EHotKeyFont

Font.

EHotKeyInsertObject

Insert an object.

EHotKeyEditObject

Edit an object.

EHotKeyFormatObject

Format an object.

Enum TEikEdwinFlags

Specifies the chunk size as either a word, or a paragraph.

Enumerators

ERichText = 0x00000001

Rich text editor used.

EDragDouble = 0x00000002

For double item dragging.

ELeftDownInViewRect = 0x00000004

If set, indicates the pointer being pressed inside the editor rectangle.

ENumericCharacters = 0x00000008

Used to calculate initial width.

EHasOneLineOnly = 0x00000010

Edwin has one line and is not resizable.

EPhoneNumberGrouping = 0x00000020

Custom formatter is installed to find and format phone numbers (CEikRichTextEditor only).

ESuppressNotifyDraw = 0x00000040
ESuppressFormatting = 0x00000080
ESkipBackgroundDrawer = 0x00000100

Enum TEnd

Specifies the end points of the editable area.

Enumerators

EStart

The start of the editable area.

EEnd

The end of the editable area.

Enum TFindFlags

The following flags may be ORed together for text searches (see FindL() for example).

Enumerators

EFindDirectionUp = 0x01

Search progresses up the screen.

EFindWholeWord = 0x02

Only whole-word matches count.

EFindCaseSensitive = 0x04

Search is case-sensitive.

EFindAgain = 0x08

Finds again.

ENoBusyMessage = 0x10

Does not display a busy message.

EReadOnlyFile = 0x20

Enum TFlags

The following flags may be combined with a bitwise OR to form the aEdwinFlags argument to ConstructL(TInt, ...) or the flags field of an EDWIN resource structure run through ConstructFromResourceL().

These flags are duplicated in uikon.hrh (see EEikEdwinKeepDocument etc.)

Enumerators

EZeroEnumValue = 0x00000000
EKeepDocument = 0x00000001

If set, CEikEdwin does not destroy its content on destruction.

ESegmentedStorage = 0x00000002

If set, the content buffer uses segmented storage (see CEditableText::ESegmentedStorage).

EWidthInPixels = 0x00000004

The size specified in the resource used to construct the object is given in pixels, not character widths.

ENoAutoSelection = 0x00000008

No automatic selection takes place. Normally the entire text is selected whenever the Edwin is created, resized or has its text set as one operation.

EJustAutoCurEnd = 0x00000010

If set, then whenever the control is activated the cursor is moved to the end of the text.

ENoWrap = 0x00000020

Does not wrap the text being edited.

ELineCursor = 0x00000040

Uses a line cursor instead of a block cursor.

ENoHorizScrolling = 0x00000080

Does not perform horizontal scrolling.

EInclusiveSizeFixed = 0x00000100

If set, scroll bars required to edit long documents appear inside the Edwin. This reduces the area used to display the Edwin.

If not set, scroll bars appear outside the Edwin.

EUserSuppliedText = 0x00000200

Sets the Edwin s height according to the number of lines of text supplied by the user.

EOwnsWindow = 0x00000400

The Edwin is a window-owning control.

EDisplayOnly = 0x00000800

The Edwin does not respond to input at all.

EAlwaysShowSelection = 0x00001000

Does not hide the selection if the Edwin loses focus.

EReadOnly = 0x00002000

The Edwin is read-only so users cannot add text to any document it displays.

EAllowPictures = 0x00004000

If set, no special attempt will be made to delete the embedded pictures cleanly.

This flag does not apply to Edwins which do not edit rich text.

EAllowUndo = 0x00008000

The Edwin supports undo operations.

ENoLineOrParaBreaks = 0x00010000

Does not allow line or paragraph breaks in the text being edited.

EOnlyASCIIChars = 0x00020000

Allows only ASCII characters.

EResizable = 0x00040000

The Edwin is resizable.

EIgnoreVirtualCursor = 0x00080000

The Edwin ignores the virtual cursor.

ENoCustomDraw = 0x01000000

No custom draw is done.

EAvkonEditor = 0x02000000

Changes layout to Avkon style.

EAvkonDisableCursor = 0x04000000

Hides cursor.

EAvkonNotEditable = 0x08000000

Changes text editor to non-editable mode.

EEdwinAlternativeWrapping = 0x10000000

Sets the Avkon wrapping rules ON.

EAvkonTabsEnabled = 0x20000000

Enables tab key handling

EAvkonDisableVKB = 0x40000000

Disable VKB input

EAvkonEnableSmileySupport = 0x80000000

Enable Smiley Support

Enum TOwnershipType

Specifies whether the Edwin owns the document it is being used to edit.

If the Edwin owns the document, the document object is destroyed on destruction.

Enumerators

EOwnsText

Document is owned by the Edwin.

EDoesNotOwnText

Document is owned by some other object.

Enum TSetContent

When content is supplied to an Edwin using SetDocumentContentL(), this defines whether the new content is added to or has replaced the existing content.

Enumerators

EUseText

Replaces the Edwin s existing content.

ECopyText

Copies the supplied content into the existing content.

Member Data Documentation

TInt iAvgCharsPerLine

TInt iAvgCharsPerLine[private]

TInt iAvgLinesInViewRect

TInt iAvgLinesInViewRect[private]

CAknCcpuSupport * iCcpuSupport

CAknCcpuSupport *iCcpuSupport[private]

CCharFormatLayer * iCharFormatLayer

CCharFormatLayer *iCharFormatLayer[private]

CLafEdwinCustomDrawBase * iCustomDrawer

CLafEdwinCustomDrawBase *iCustomDrawer[private]

CEikEdwinExtension * iEdwinExtension

CEikEdwinExtension *iEdwinExtension[private]

CEikEdwinFepSupport * iEdwinFepSupport

CEikEdwinFepSupport *iEdwinFepSupport[private]

TUint32 iEdwinInternalFlags

TUint32 iEdwinInternalFlags[protected]

Internal Edwin flags.

MEikEdwinObserver * iEdwinObserver

MEikEdwinObserver *iEdwinObserver[private]

MEikEdwinSizeObserver * iEdwinSizeObserver

MEikEdwinSizeObserver *iEdwinSizeObserver[private]

TUint32 iEdwinUserFlags

TUint32 iEdwinUserFlags[protected]

Edwin user flags.

TInt iLastPointerAnchorPos

TInt iLastPointerAnchorPos[private]

TInt iLastPointerDocPos

TInt iLastPointerDocPos[protected]

Cursor position.

CTextLayout * iLayout

CTextLayout *iLayout[protected]

Edwin's text layout.

TInt iLayoutWidth

TInt iLayoutWidth[private]

TMargins8 iMargins

TMargins8 iMargins[protected]

Edwin's margins.

TInt iMaximumHeight

TInt iMaximumHeight[private]

TInt iMaximumHeightInLines

TInt iMaximumHeightInLines[private]

TInt iMinimumHeight

TInt iMinimumHeight[private]

TInt iNumberOfLines

TInt iNumberOfLines[protected]

Number of lines in Edwin.

CArrayPtr< MEikEdwinObserver > * iObserverArray

CArrayPtr< MEikEdwinObserver > *iObserverArray[private]

CParaFormatLayer * iParaFormatLayer

CParaFormatLayer *iParaFormatLayer[private]

TInt iRightWrapGutter

TInt iRightWrapGutter[private]

CEikScrollBarFrame * iSBFrame

CEikScrollBarFrame *iSBFrame[private]

TInt iSpare_1

TInt iSpare_1[private]

TInt iSpare_2

TInt iSpare_2[private]

CPlainText * iText

CPlainText *iText[protected]

Edwin's text content.

TInt iTextLimit

TInt iTextLimit[protected]

Maximum length ot the edwin.

CTextView * iTextView

CTextView *iTextView[protected]

Edwin's text view.

CUndoBuffer * iUndoStore

CUndoBuffer *iUndoStore[private]

MGraphicsDeviceMap * iZoomFactor

MGraphicsDeviceMap *iZoomFactor[protected]

Current zoom factor.