S60UIExamplePlayView.inc
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:1975k
源码类别:
Symbian
开发平台:
C/C++
- private:
- __declspec(dllexport) virtual void MFileObserver_Reserved_1();
- __declspec(dllexport) virtual void MFileObserver_Reserved_2();
- };
- public:
- inline static CFepFastFileAccessor* NewL(CCoeEnv& aConeEnvironment) {return NewL(aConeEnvironment, 0 );}
- inline static CFepFastFileAccessor* NewL(CCoeEnv& aConeEnvironment, MFileObserver& aFileObserver) {return NewL(aConeEnvironment, &aFileObserver);}
- inline static CFepFastFileAccessor* NewLC(CCoeEnv& aConeEnvironment) {return NewLC(aConeEnvironment, 0 );}
- inline static CFepFastFileAccessor* NewLC(CCoeEnv& aConeEnvironment, MFileObserver& aFileObserver) {return NewLC(aConeEnvironment, &aFileObserver);}
- __declspec(dllexport) virtual ~CFepFastFileAccessor();
- __declspec(dllexport) void AddFileL(const TDesC& aFullFileName);
- __declspec(dllexport) void RemoveFile(const TDesC& aFullFileName);
- inline void GetData(const TDesC& aFullFileName, const TUint8*& aData, TInt& aDataLength) const {GetData(aFullFileName, aData, aDataLength, 0 );}
- inline void GetData(const TDesC& aFullFileName, const TUint8*& aData, TInt& aDataLength, TBool& aIsRom) const {GetData(aFullFileName, aData, aDataLength, &aIsRom);}
- __declspec(dllexport) void FileHasChangedL(const TDesC& aFullFileName);
- private:
- enum {EGranularity=5};
- enum {EBroadcastUid=0x1000162a};
- struct SFile
- {
- HBufC* iFullName;
- TBool iIsRom;
- TUint8* iData;
- TInt iDataLength;
- };
- private:
- __declspec(dllexport) static CFepFastFileAccessor* NewL(CCoeEnv& aConeEnvironment, MFileObserver* aFileObserver);
- __declspec(dllexport) static CFepFastFileAccessor* NewLC(CCoeEnv& aConeEnvironment, MFileObserver* aFileObserver);
- CFepFastFileAccessor(CCoeEnv& aConeEnvironment, MFileObserver* aFileObserver);
- __declspec(dllexport) void GetData(const TDesC& aFullFileName, const TUint8*& aData, TInt& aDataLength, TBool* aIsRom) const;
- void LoadNonRomFileL(SFile& aFile);
- void CloseArrayIfEmpty();
- static void CloseFile(SFile& aFile);
- static TBool IsFullFileName(const TDesC& aFileName);
- private:
- CCoeEnv& iConeEnvironment;
- TInt iArrayLength;
- SFile* iArrayOfFiles;
- MFileObserver* iFileObserver;
- };
- class CFepGlobalDynamicFrequencyTable : public CBase
- {
- public:
- typedef TInt (*TCharacterCompareFunction)(TUint aCharacter1, TUint aCharacter2);
- enum TSortType
- {
- ESortByFrequencyThenByUserDefinedCompareFunction,
- ESortByUserDefinedCompareFunctionThenByFrequency
- };
- class MCharacterArray
- {
- public:
- virtual TInt NumberOfCharacters() const=0;
- virtual TUint CharacterAtIndex(TInt aIndex) const=0;
- virtual void SetCharacterAtIndex(TInt aIndex, TUint aCharacter)=0;
- private:
- __declspec(dllexport) virtual void MCharacterArray_Reserved_1();
- __declspec(dllexport) virtual void MCharacterArray_Reserved_2();
- };
- public:
- __declspec(dllexport) static CFepGlobalDynamicFrequencyTable* NewL(TInt aMaximumNumberOfCharacters);
- __declspec(dllexport) static CFepGlobalDynamicFrequencyTable* NewLC(TInt aMaximumNumberOfCharacters);
- __declspec(dllexport) virtual ~CFepGlobalDynamicFrequencyTable();
- __declspec(dllexport) void IncrementFrequencyOfCharacter(TUint aCharacter);
- __declspec(dllexport) void SortL(MCharacterArray& aCharacterArray, TCharacterCompareFunction aUserDefinedCharacterCompareFunction, TSortType aSortType);
- __declspec(dllexport) void Reset();
- private:
- struct SFrequencyCountedCharacter
- {
- TUint iCharacter;
- TInt iFrequencyCount;
- };
- struct SGlobalData
- {
- struct SArrayOfCharactersOrderedByAge
- {
- TInt iMaximumCount;
- TInt iCount;
- TInt iIndexOfOldest;
- TInt iOffsetToArray;
- };
- struct SArrayOfFrequencyCountedCharactersOrderedByCharacterEncoding
- {
- TInt iCount;
- TInt iOffsetToArray;
- };
- SArrayOfCharactersOrderedByAge iArrayOfCharactersOrderedByAge;
- SArrayOfFrequencyCountedCharactersOrderedByCharacterEncoding iArrayOfFrequencyCountedCharactersOrderedByCharacterEncoding;
- };
- struct SSortItem
- {
- SFrequencyCountedCharacter iFrequencyCountedCharacter;
- TInt iOriginalIndex;
- };
- typedef TBool (*TFirstParameterComesBeforeSecondFunction)(const SSortItem& aSortItem1, const SSortItem& aSortItem2, TCharacterCompareFunction aUserDefinedCharacterCompareFunction);
- private:
- CFepGlobalDynamicFrequencyTable();
- void ConstructL(TInt aMaximumNumberOfCharacters);
- void HeapSort(TInt aNumberOfSortItems, SSortItem* aArrayOfSortItems, TFirstParameterComesBeforeSecondFunction aFirstParameterComesBeforeSecondFunction, TCharacterCompareFunction aUserDefinedCharacterCompareFunction);
- TInt IndexInArrayOfFrequencyCountedCharactersOrderedByCharacterEncoding(TUint aCharacter, TBool& aExists);
- static TBool FirstParameterComesBeforeSecondWhenSortedByFrequencyThenByUserDefinedCompareFunction(const SSortItem& aSortItem1, const SSortItem& aSortItem2, TCharacterCompareFunction aUserDefinedCharacterCompareFunction);
- static TBool FirstParameterComesBeforeSecondWhenSortedByUserDefinedCompareFunctionThenByFrequency(const SSortItem& aSortItem1, const SSortItem& aSortItem2, TCharacterCompareFunction aUserDefinedCharacterCompareFunction);
- private:
- RMutex iMutex;
- RChunk iChunk;
- SGlobalData* iGlobalData;
- TAny* iSpareForFutureUse;
- };
- class MFepPointerEventHandlerDuringInlineEdit
- #line 756
- {
- public:
- #line 766
- virtual void HandlePointerEventInInlineTextL(TPointerEvent::TType aType, TUint aModifiers, TInt aPositionInInlineText)=0;
- private:
- __declspec(dllexport) virtual void MFepPointerEventHandlerDuringInlineEdit_Reserved_1();
- __declspec(dllexport) virtual void MFepPointerEventHandlerDuringInlineEdit_Reserved_2();
- };
- class TCharFormat;
- class TCursorSelection;
- class MFormCustomDraw;
- class MFepInlineTextFormatRetriever;
- class MCoeFepAwareTextEditor_Extension1;
- class MCoeFepAwareTextEditor
- #line 807
- {
- public:
- #line 837
- virtual void StartFepInlineEditL(const TDesC& aInitialInlineText, TInt aPositionOfInsertionPointInInlineText, TBool aCursorVisibility, const MFormCustomDraw* aCustomDraw, MFepInlineTextFormatRetriever& aInlineTextFormatRetriever, MFepPointerEventHandlerDuringInlineEdit& aPointerEventHandlerDuringInlineEdit)=0;
- #line 852
- virtual void UpdateFepInlineTextL(const TDesC& aNewInlineText, TInt aPositionOfInsertionPointInInlineText)=0;
- #line 861
- virtual void SetInlineEditingCursorVisibilityL(TBool aCursorVisibility)=0;
- __declspec(dllexport) void CommitFepInlineEditL(CCoeEnv& aConeEnvironment);
- virtual void CancelFepInlineEdit()=0;
- virtual TInt DocumentLengthForFep() const=0;
- virtual TInt DocumentMaximumLengthForFep() const=0;
- virtual void SetCursorSelectionForFepL(const TCursorSelection& aCursorSelection)=0;
- virtual void GetCursorSelectionForFep(TCursorSelection& aCursorSelection) const=0;
- virtual void GetEditorContentForFep(TDes& aEditorContent, TInt aDocumentPosition, TInt aLengthToRetrieve) const=0;
- #line 906
- virtual void GetFormatForFep(TCharFormat& aFormat, TInt aDocumentPosition) const=0;
- #line 921
- virtual void GetScreenCoordinatesForFepL(TPoint& aLeftSideOfBaseLine, TInt& aHeight, TInt& aAscent, TInt aDocumentPosition) const=0;
- __declspec(dllexport) MCoeFepAwareTextEditor_Extension1* Extension1();
- private:
- #line 932
- virtual void DoCommitFepInlineEditL()=0;
- __declspec(dllexport) virtual MCoeFepAwareTextEditor_Extension1* Extension1(TBool& aSetToTrue);
- __declspec(dllexport) virtual void MCoeFepAwareTextEditor_Reserved_2();
- };
- class MLayDoc;
- class MCoeFepLayDocExtension
- #line 951
- {
- public:
- virtual MLayDoc* GetCurrentMLayDoc() const = 0;
- virtual void SetMLayDoc(MLayDoc* aLayDoc) = 0;
- virtual void GetFepEditorState(TInt& aPositionInDocument, TInt& aCursorPositionInDocument, TInt& aSelectionLength) = 0;
- #line 967
- virtual void HandleInsertDeleteL(TCursorSelection aSelection,TInt aDeletedChars) = 0;
- private:
- __declspec(dllexport) virtual void MCoeFepLayDocExtension_Reserved_1();
- __declspec(dllexport) virtual void MCoeFepLayDocExtension_Reserved_2();
- };
- class MCoeFepAwareTextEditor_Extension1
- #line 1003
- {
- public:
- class CState : public CBase
- {
- protected:
- __declspec(dllexport) CState();
- __declspec(dllexport) void BaseConstructL();
- public:
- __declspec(dllexport) virtual ~CState();
- private:
- __declspec(dllexport) virtual void CState_Reserved_1();
- __declspec(dllexport) virtual void CState_Reserved_2();
- __declspec(dllexport) virtual void CState_Reserved_3();
- __declspec(dllexport) virtual void CState_Reserved_4();
- private:
- TAny* iSpareForFutureUse;
- };
- public:
- #line 1033
- virtual void SetStateTransferingOwnershipL(CState* aState, TUid aTypeSafetyUid)=0;
- #line 1045
- virtual CState* State(TUid aTypeSafetyUid)=0;
- public:
- __declspec(dllexport) virtual void StartFepInlineEditL(TBool& aSetToTrue, const TCursorSelection& aCursorSelection, const TDesC& aInitialInlineText, TInt aPositionOfInsertionPointInInlineText, TBool aCursorVisibility, const MFormCustomDraw* aCustomDraw, MFepInlineTextFormatRetriever& aInlineTextFormatRetriever, MFepPointerEventHandlerDuringInlineEdit& aPointerEventHandlerDuringInlineEdit);
- __declspec(dllexport) virtual void SetCursorType(TBool& aSetToTrue, const TTextCursor& aTextCursor);
- __declspec(dllexport) virtual MCoeFepLayDocExtension* GetFepLayDocExtension(TBool& aSetToTrue);
- private:
- __declspec(dllexport) virtual void MCoeFepAwareTextEditor_Extension1_Reserved_4();
- };
- class MCoeCaptionRetrieverForFep
- #line 1069
- {
- public:
- #line 1090
- virtual void GetCaptionForFep(TDes& aCaption) const=0;
- private:
- __declspec(dllexport) virtual void MCoeCaptionRetrieverForFep_Reserved_1();
- __declspec(dllexport) virtual void MCoeCaptionRetrieverForFep_Reserved_2();
- };
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikedwin.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmtview.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmframe.h" /* stack depth 5 */
- #line 28
- class TFrameOverlay
- {
- public:
- enum TEdges
- {
- ENoEdges=0x00,
- EEdgeLeft=0x01,
- EEdgeRight=0x02,
- EEdgeTop=0x04,
- EEdgeBottom=0x08
- };
- enum TFrameOverlayFlags
- {
- EFrameOverlayFlagBlobsInternal=0x01,
- EFrameOverlayFlagShowBorder=0x02,
- EFrameOverlayFlagTopBlobsDimmed=0x04,
- EFrameOverlayFlagBottomBlobsDimmed=0x08,
- EFrameOverlayFlagLeftBlobsDimmed=0x10,
- EFrameOverlayFlagRightBlobsDimmed=0x20
- };
- public:
- __declspec(dllexport) TFrameOverlay();
- __declspec(dllexport) void SetBlobWidthInPixels(const TInt aWidth);
- __declspec(dllexport) void SetVisibleBlobWidthInPixels(const TInt aWidth);
- __declspec(dllexport) void SetActiveBlobWidthInPixels(const TInt aWidth);
- __declspec(dllexport) void SetFlags(TInt aFlag);
- __declspec(dllexport) void ClearFlags(TInt aFlag);
- __declspec(dllexport) void SetRect(const TRect& aRect);
- __declspec(dllexport) void XorDraw(CGraphicsContext& aGc) const;
- __declspec(dllexport) TInt XyPosToEdges(const TPoint& aPos) const;
- inline TRect Rect() const;
- inline const TRect& RefRect() const;
- inline TInt Flags() const;
- private:
- TInt VisibleBlobWidth() const;
- TInt ActiveMarginWidth() const;
- TBool DrawLeftAndRight() const;
- TBool DrawTopAndBottom() const;
- void DrawDottedRectangle(CGraphicsContext& aGc,const TRect& aRect) const;
- private:
- TInt iFlags;
- TInt iVisibleBlobWidth;
- TInt iActiveBlobWidth;
- TRect iRect;
- };
- inline TRect TFrameOverlay::Rect() const
- {
- return(iRect);
- }
- inline const TRect& TFrameOverlay::RefRect() const
- {
- return(iRect);
- }
- TInt TFrameOverlay::Flags() const
- {
- return(iFlags);
- }
- #line 13 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmtview.h" /* stack depth 4 */
- class RScreenDisplay
- {
- public:
- enum TClippingRects
- {
- EFClipTextArea = 0x0001,
- EFClipLineCursor = 0x0002,
- EFClipExtendedTextArea = 0x0004,
- EFClipViewRect = 0x0008,
- EFClipExtendedViewRect = 0x0010,
- EFClipInvalid = 0x0200,
- EFClipAllFlags = 0xFFFF
- };
- public:
- RScreenDisplay(TDrawTextLayoutContext* const aDrawTextLayoutContext);
- void Close();
- void Destroy();
- void SetWindowsServer(RWsSession *aSession) { iSession = aSession; }
- void SetWindowGroup(RWindowGroup *aWin) { iGroupWin = aWin; }
- void SetWindow(RWindow *aWin);
- RWindow* Window() const { return iWin; }
- void SetBitmapContext(CBitmapContext* aGc) { iGc = aGc; }
- CBitmapContext* BitmapContext() const { return iGc; }
- RWsSession* WindowServerSession() { return iSession; }
- void SetGraphicsDeviceL(CBitmapDevice *aGd);
- CBitmapDevice* BitmapDevice() const {return iGd; }
- void CreateContextL(CBitmapDevice *aGd);
- void CreateContextL();
- void SetInvalidRect(const TRect& aRect);
- void SetInvalidRect(TInt aHeight);
- void SetInvalidRectHorizontal(TInt aWidth);
- void SetRects(TUint aRects);
- TRect LineCursorMargin() const;
- TPoint TopLeftTextArea() const;
- TBool IsLineCursor() const;
- void AddRects(TUint aRects);
- void SubRects(TUint aRects);
- TRect ClippingRect();
- void ResetClippingRect();
- void Scroll(TRect aRect,const TPoint& aBy,TBool aScrollBackground);
- void Flush();
- void ClearRect(const TRect& aRect);
- void InvertRect(TRect aRect,const TRgb aInvertColor);
- void SetTextCursor(TPoint aPos, const TTextCursor &aCursor);
- void RemoveTextCursor();
- void BlastBitmap(const TPoint& aPoint,const CFbsBitmap* aBitmap,const TRect& aRect);
- void DrawPictureFrame(TFrameOverlay* aPictureFrame,const TRect& aLineRect);
- void Invalidate(TRect aRect);
- void ActivateContext();
- void ActivateContext(CGraphicsContext *aGc);
- void DeactivateContext();
- void DeactivateContext(CGraphicsContext *aGc);
- void SetLayout(const CTextLayout* aLayout);
- private:
- void DestroyContexts();
- private:
- RWsSession *iSession;
- RWindowGroup *iGroupWin;
- RWindow *iWin;
- CBitmapContext *iGc;
- CBitmapDevice *iGd;
- TDrawTextLayoutContext* const iDrawTextLayoutContext;
- TUint iRects;
- TRect iInvalidRect;
- TLogicalRgb iBackground;
- const CTextLayout* iTextLayout;
- };
- class TCursor
- {
- public:
- enum TCursors
- {
- EFNeitherCursor = 0,
- EFTextCursor = 1,
- EFLineCursor = 2,
- EFBothCursors = EFTextCursor | EFLineCursor
- };
- enum TVisibility
- {
- EFCursorInvisible = 0,
- EFCursorVisible,
- EFCursorFlashing
- };
- TCursor(TCursorPosition& aCursorPos,RScreenDisplay& aDisplay);
- void SetLineCursorBitmap(const CFbsBitmap* aLineCursorBitmap);
- inline TUint LineCursorVisibility();
- inline TUint TextCursorVisibility();
- void Draw(TUint aCursors);
- void SetVisibility(TVisibility aLineCursor,TVisibility aTextCursor);
- void SetType(TTextCursor::EType aType);
- void SetPlacement(TTmCursorPlacement aPlacement);
- void SetAscentAndDescent(TInt aAscent,TInt aDescent);
- void SetWeight(TInt aWeight);
- void SetFlash(TBool aEnabled);
- void SetXorColor(TRgb aColor);
- void MatchCursorHeightToAdjacentChar();
- void SetExtensions(TInt aFirstExtension, TInt aSecondExtension);
- private:
- enum
- {
- ELineCursorToLabelGap = 2,
- ETextCursorWeight = 3,
- ETextCursorInvertColor = 0xFFFFFF
- };
- void DrawLineCursor(TInt aHeight);
- void RemoveLineCursor();
- void DrawTextCursor(TPoint aOrigin,TInt aWidth,TInt aAscent,TInt aDescent);
- void RemoveTextCursor();
- RScreenDisplay& iDisplay;
- TCursorPosition& iCursorPos;
- TBool iVisible;
- TBool iFlash;
- TVisibility iLineCursor;
- TVisibility iTextCursor;
- const CFbsBitmap* iLineCursorBitmap;
- TInt iAscent;
- TInt iDescent;
- TInt iWeight;
- TTextCursor::EType iType;
- TRgb iXorColor;
- TTmCursorPlacement iPlacement;
- TInt iFirstExtension;
- TInt iSecondExtension;
- TInt iReserved[2];
- };
- #line 230
- class CTextView : public CBase
- {
- friend class CTestTextView;
- public:
- enum TPriorities
- {
- EFBackgroundFormattingPriority = (CActive::EPriorityIdle + CActive::EPriorityLow) / 2
- };
- enum
- {
- EFFirstCharOnLine = -1000000,
- EFLastCharOnLine = 1000000
- };
- enum TBeforeAfter
- {
- EFCharacterBefore = ETrue,
- EFCharacterAfter = EFalse
- };
- enum TDiscard
- {
- EFViewDiscardAllFormat,
- EFViewDontDiscardFormat,
- EFViewDiscardAllNoRedraw,
- EFViewDontDiscardFullRedraw
- };
- #line 282
- class MObserver
- {
- public:
- virtual void OnReformatL(const CTextView* aTextView) = 0;
- };
- enum TDoHorizontalScroll
- {
- EFNoHorizontalScroll = EFalse,
- EFCheckForHorizontalScroll = ETrue
- };
- #line 311
- class TTagmaForwarder: public MTmTextLayoutForwarder
- {
- public:
- inline TTagmaForwarder();
- inline void InitL(CTextView* aView);
- private:
- inline const CTmTextLayout& TextLayout() const;
- inline void GetOrigin(TPoint& aPoint) const;
- CTextView* iView;
- };
- private:
- enum TDrawParameters
- {
- EFDrawAllWindow = CLayoutData::EFLargeNumber
- };
- enum
- {
- EFSelectionVisible = 1,
- EFPictureFrameEnabled = 2,
- EFEverythingVisible = 3,
- EFFlickerFreeRedraw = 4
- };
- enum THorizontalScrollJump
- {
- EFDefaultHorizontalScrollJump = 20
- ,EFUnreasonablyLargeHorizontalScrollJump = 10000
- };
- enum TPictureFrameBlobWidths
- {
- EFFrameVisibleBlobWidth = 10,
- EFFrameActiveBlobWidth = 20
- };
- enum THorizontalScroll
- {
- EFNoPreviousHorizontalScroll = 0,
- EFPreviousHorizontalScroll
- };
- enum TMemoryStatus
- {
- EFMemoryOK,
- EFOutOfMemory,
- EFRecovering
- };
- enum TExtendedHighlightRedraw
- {
- EFTopEdge = 0x0001,
- EFBottomEdge = 0x0002
- };
- public:
- __declspec(dllexport) static CTextView *NewL(CTextLayout* aLayout,const TRect &aDisplay,CBitmapDevice* aGd,
- MGraphicsDeviceMap* aDeviceMap,RWindow* aWin,RWindowGroup* aGroupWin,
- RWsSession* aSession);
- __declspec(dllexport) ~CTextView();
- __declspec(dllexport) void SetDisplayContextL(CBitmapDevice* aGd,RWindow* aWin,RWindowGroup* aGroupWin,RWsSession* aSession);
- __declspec(dllexport) void SetLayout(CTextLayout* aLayout);
- inline const CTextLayout* Layout() const;
- __declspec(dllexport) void SetViewRect(const TRect& aDisplay);
- __declspec(dllexport) void AlterViewRect(const TRect &aViewRect);
- __declspec(dllexport) void SetMarginWidths(TInt aLabels,TInt aLineCursor);
- __declspec(dllexport) void SetHorizontalScrollJump(TInt aScrollJump);
- __declspec(dllexport) void SetLineCursorBitmap(const CFbsBitmap* aLineCursorBitmap);
- __declspec(dllexport) void SetHighlightExtensions(TInt aLeftExtension, TInt aRightExtension, TInt aTopExtension, TInt aBottomExtension);
- __declspec(dllexport) void SetExcessHeightRequired(TInt aExcessHeightRequired);
- __declspec(dllexport) void SetBackgroundColor(TRgb aColor);
- __declspec(dllexport) void SetTextColorOverride(const TRgb* aOverrideColor = 0 );
- __declspec(dllexport) void SetCursorVisibilityL(TUint aLineCursor,TUint aTextCursor);
- __declspec(dllexport) void SetSelectionVisibilityL(TBool aSelectionVisible);
- __declspec(dllexport) TBool SelectionVisible() const;
- __declspec(dllexport) void EnablePictureFrameL(TBool aEnabled);
- __declspec(dllexport) const TRect& ViewRect() const;
- __declspec(dllexport) const TRect& AlteredViewRect() const;
- __declspec(dllexport) void MarginWidths(TInt& aLabels,TInt& aLineCursor) const;
- __declspec(dllexport) TInt HorizontalScrollJump() const;
- __declspec(dllexport) TInt LeftTextMargin() const;
- __declspec(dllexport) void SetLatentXPosition(TInt aLatentX);
- __declspec(dllexport) void SetParagraphFillTextOnly(TBool aFillTextOnly);
- __declspec(dllexport) void SetCursorWidthTypeL(TTextCursor::EType aType,TInt aWidth = 0);
- __declspec(dllexport) void SetCursorPlacement(TTmCursorPlacement aPlacement);
- __declspec(dllexport) void SetCursorWeight(TInt aWeight);
- __declspec(dllexport) void SetCursorFlash(TBool aEnabled);
- __declspec(dllexport) void SetCursorXorColor(TRgb aColor);
- __declspec(dllexport) void SetCursorExtensions(TInt aFirstExtension, TInt aSecondExtension);
- __declspec(dllexport) TCursorSelection Selection() const;
- __declspec(dllexport) TBool IsPictureFrameSelected(TRect& aPictureFrameRect,TInt& aDocPos) const;
- __declspec(dllexport) TBool GetPictureRectangleL(TInt aDocPos,TRect& aPictureRect,TBool* aCanScaleOrCrop = 0 ) const;
- __declspec(dllexport) TBool GetPictureRectangleL(TPoint aXyPos,TRect& aPictureRect,TBool* aCanScaleOrCrop = 0 );
- __declspec(dllexport) TBool FindXyPosL(const TPoint& aXyPos,TTmPosInfo2& aPosInfo,TTmLineInfo* aLineInfo = 0 );
- __declspec(dllexport) TInt XyPosToDocPosL(TPoint& aPoint);
- __declspec(dllexport) TBool FindDocPosL(const TTmDocPosSpec& aDocPos,TTmPosInfo2& aPosInfo,TTmLineInfo* aLineInfo = 0 );
- __declspec(dllexport) TBool DocPosToXyPosL(TInt aDocPos,TPoint& aPoint);
- __declspec(dllexport) TRect ParagraphRectL(TInt aDocPos) const;
- __declspec(dllexport) void CalculateHorizontalExtremesL(TInt& aLeftX,TInt& aRightX,TBool aOnlyVisibleLines);
- __declspec(dllexport) void MatchCursorHeightL(const TFontSpec& aFontSpec);
- __declspec(dllexport) void MatchCursorHeightToAdjacentChar(TBeforeAfter aBasedOn = EFCharacterBefore);
- __declspec(dllexport) TPoint SetSelectionL(const TCursorSelection& aSelection);
- __declspec(dllexport) void CancelSelectionL();
- __declspec(dllexport) void ClearSelectionL();
- __declspec(dllexport) TPoint SetDocPosL(const TTmDocPosSpec& aDocPos,TBool aDragSelectOn = EFalse);
- __declspec(dllexport) TPoint SetDocPosL(TInt aDocPos,TBool aDragSelectOn = EFalse);
- __declspec(dllexport) TPoint SetXyPosL(TPoint aPos,TBool aDragSelectOn,TRect*& aPictureRect,TInt& aPictureFrameEdges);
- __declspec(dllexport) TPoint MoveCursorL(TCursorPosition::TMovementType& aMovement,TBool aDragSelectOn);
- __declspec(dllexport) TInt ScrollDisplayL(TCursorPosition::TMovementType aMovement,
- CTextLayout::TAllowDisallow aScrollBlankSpace=CTextLayout::EFDisallowScrollingBlankSpace);
- __declspec(dllexport) TPoint SetViewLineAtTopL(TInt aLineNo);
- __declspec(dllexport) void ScrollDisplayPixelsL(TInt& aDeltaY);
- __declspec(dllexport) TInt ScrollDisplayLinesL(TInt& aDeltaLines,
- CTextLayout::TAllowDisallow aScrollBlankSpace = CTextLayout::EFDisallowScrollingBlankSpace);
- __declspec(dllexport) TInt ScrollDisplayParagraphsL(TInt& aDeltaParas,
- CTextLayout::TAllowDisallow aScrollBlankSpace = CTextLayout::EFDisallowScrollingBlankSpace);
- __declspec(dllexport) TPoint SetViewL(TInt aDocPos,TInt& aYPos,TViewYPosQualifier aYPosQualifier = TViewYPosQualifier(),
- TDiscard aDiscardFormat = EFViewDontDiscardFormat,
- TDoHorizontalScroll aDoHorizontalScroll = EFCheckForHorizontalScroll);
- __declspec(dllexport) void SetLeftTextMargin(TInt aLeftMargin);
- __declspec(dllexport) void DrawL(TRect aRect);
- __declspec(dllexport) void DrawL(TRect aRect,CBitmapContext& aGc);
- inline void SetObserver(MObserver* aObserver);
- __declspec(dllexport) void SetPendingSelection(const TCursorSelection& aSelection);
- inline void EnableFlickerFreeRedraw();
- inline void DisableFlickerFreeRedraw();
- inline TBool FlickerFreeRedraw() const;
- inline void GetOrigin(TPoint& aPoint) const;
- __declspec(dllexport) TCursorSelection GetForwardDeletePositionL();
- __declspec(dllexport) TCursorSelection GetBackwardDeletePositionL();
- __declspec(dllexport) void FormatTextL();
- __declspec(dllexport) TInt HandleCharEditL(TUint aType = CTextLayout::EFCharacterInsert,TBool aFormatChanged = EFalse);
- __declspec(dllexport) TPoint HandleRangeFormatChangeL(TCursorSelection aSelection,TBool aFormatChanged = EFalse);
- __declspec(dllexport) TPoint HandleInsertDeleteL(TCursorSelection aSelection,TInt aDeletedChars,TBool aFormatChanged = EFalse);
- __declspec(dllexport) void HandleGlobalChangeL(TViewYPosQualifier aYPosQualifier = TViewYPosQualifier());
- __declspec(dllexport) void HandleGlobalChangeNoRedrawL(TViewYPosQualifier aYPosQualifier = TViewYPosQualifier());
- __declspec(dllexport) void HandleAdditionalCharactersAtEndL();
- __declspec(dllexport) void FinishBackgroundFormattingL();
- __declspec(dllexport) CBitmapContext* BitmapContext();
- __declspec(dllexport) const TTmDocPos& VisualEndOfRunL(
- const TTmDocPos& aStart, const TTmDocPos& aEnd,
- TCursorPosition::TVisualEnd aDirection);
- __declspec(dllexport) void GetCursorPos(TTmDocPos& aPos) const;
- __declspec(dllexport) TPoint SetDocPosL(const TTmDocPos& aDocPos,TBool aDragSelectOn = EFalse);
- __declspec(dllexport) void SetCursorPositioningHintL(TCursorPosition::TPosHint aHint);
- __declspec(dllexport) void SetOpaque(TBool aDrawOpaque);
- private:
- __declspec(dllexport) static TInt IdleL(TAny *aSelf);
- __declspec(dllexport) CTextView();
- __declspec(dllexport) void ConstructL(CTextLayout* aLayout,const TRect &aDisplay,CBitmapDevice* aGd,MGraphicsDeviceMap* aDeviceMap,
- RWindow* aWin,RWindowGroup* aGroupWin,RWsSession* aSession);
- inline TInt TopViewRect() const;
- inline TBool IsFormatting() const;
- TBool NoMemoryCheckL();
- void StartIdleObject();
- inline void DrawWithPreviousHighlight();
- inline void DrawWithCurrentHighlight();
- TInt CalculateBaseLinePos(TTmDocPos& aDocPos);
- TInt DrawAfterCursorMoveL(TInt aScrollBy);
- TBool NextLineL();
- void ClearRectAtBottom(TInt aHeight);
- void DrawTextL(TInt aFromHeight = 0,TInt aToHeight = EFDrawAllWindow);
- void DisplayNewLinesL(TInt aFrom,TInt aTo);
- void DrawCursor(TUint aCursors = TCursor::EFBothCursors);
- TPoint DoMoveCursorL(TBool aDragSelectOn,TCursorPosition::TMovementType& aMovement,TBool aAllowPictureFrame);
- void ScrollTextL(TInt aScrollY,TInt aFrom,TInt aScrollX,TBool aScrollBackground);
- void ScrollRect(TRect& aRect,TInt aScrollY,TInt aFrom,TInt aScrollX,TBool aScrollBackground);
- void ScrollRect(TInt aScrollY,TInt& aFrom,TInt& aTo);
- TPoint HandleBlockChangeL(TCursorSelection aSelection,TInt aOldCharsChanged,TBool aFormatChanged);
- void CheckScrollUpL();
- TInt CheckHorizontalScroll(const TTmDocPos& aDocPos);
- TInt DoHorizontalScrollDisplayL(TCursorPosition::TMovementType aMovement,
- CTextLayout::TAllowDisallow aScrollBlankSpace);
- TInt DoScrollDisplayL(TCursorPosition::TMovementType aMovement,CTextLayout::TAllowDisallow aScrollBlankSpace);
- void ScrollDisplayL(TInt aPixels,TInt aHorizPixels = 0,TInt aYScrollLimit = EFDrawAllWindow);
- void ScrollUpperDisplayL(TInt aPixels);
- TPoint ViewTopOfLineL(const TTmDocPos& aDocPos,TInt& aYPos,
- CTextView::TDiscard aDiscardFormat = EFViewDontDiscardFormat,
- TDoHorizontalScroll aHorizontalScroll = EFCheckForHorizontalScroll);
- TPoint ViewL(const TTmDocPos& aDocPos,TInt& aYPos,TViewYPosQualifier aYPosQualifier = TViewYPosQualifier(),
- CTextView::TDiscard aDiscardFormat = EFViewDontDiscardFormat,
- TDoHorizontalScroll aHorizontalScroll = EFCheckForHorizontalScroll);
- TPoint DoHandleGlobalChangeL(TViewYPosQualifier aYPosQualifier,CTextView::TDiscard aDiscard);
- void UpdateHighlightL();
- void Highlight(CTextLayout::TRangeChange aRange);
- void HighlightUsingExtensions(CTextLayout::TRangeChange aOptimizedRange, CTextLayout::TRangeChange aOriginalRange);
- void InvertPictureFrameL(TInt aPos,TRect* aDrawRect = 0 );
- void DestroyWindowServerObjects();
- void NoMemoryL(TInt aErr);
- void RecoverNoMemoryL();
- void RecreateWindowServerObjectsL();
- void DrawTextSupportL(const TRect& aRect,const TCursorSelection* aHighlight);
- void DoDrawTextSupportL(const TRect& aRect,const TCursorSelection* aHighlight);
- void DoDrawTextSupportOpaqueL(const TRect& aRect,const TCursorSelection* aHighlight);
- void DrawPictureFrameL(TRect& aRc);
- void DisplayLineRangeL(TInt aFrom,TInt aTo);
- inline void NotifyReformatL();
- void CalculateHorizontalExtremes(TInt& aLeftX,TInt& aRightX,TBool aOnlyVisibleLines);
- TBool ExtendedHighlightExists() const;
- void DoClearSelectionL(const TCursorSelection& aSelection, TBool aIsPictureFrame);
- void UpdateExtendedHighlightL();
- void ClearHighlightRemnantsForScroll(const TRect& aScrollRect, TInt aScrollY, TInt aScrollX);
- void AdjustRectForScrolling(TRect &aRect, TInt aScrollY, TInt aScrollX) const;
- private:
- CIdle* iWrap;
- RScreenDisplay iDisplay;
- CTextLayout* iLayout;
- TDrawTextLayoutContext iDrawTextLayoutContext;
- TCursor iCursor;
- TCursorPosition iCursorPos;
- TFrameOverlay* iPictureFrame;
- TMemoryStatus iNoMemory;
- TUint iFlags;
- TUint iHorizontalScroll;
- TInt iGood;
- TInt iFormattedUpTo;
- TInt iHorizontalScrollJump;
- TInt iHeightNotDrawn;
- MObserver* iObserver;
- CBitmapContext* iOffScreenTestContext;
- TRect iReducedDrawingAreaRect;
- TUint iRedrawExtendedHighlight;
- TBool iContextIsNavigation;
- TBool iDrawOpaque;
- };
- inline TUint TCursor::LineCursorVisibility()
- {
- return iLineCursor;
- }
- inline TUint TCursor::TextCursorVisibility()
- {
- return iTextCursor;
- }
- inline const CTextLayout* CTextView::Layout() const
- {
- return iLayout;
- }
- inline void CTextView::SetObserver(MObserver* aObserver)
- {
- iObserver = aObserver;
- }
- inline void CTextView::EnableFlickerFreeRedraw()
- {
- iFlags |= EFFlickerFreeRedraw;
- }
- inline void CTextView::DisableFlickerFreeRedraw()
- {
- iFlags &= ~EFFlickerFreeRedraw;
- }
- inline TBool CTextView::FlickerFreeRedraw() const
- {
- return iFlags & EFFlickerFreeRedraw;
- }
- inline void CTextView::NotifyReformatL()
- {
- if (iObserver)
- iObserver->OnReformatL(this);
- }
- inline TBool CTextView::IsFormatting() const
- {
- return iLayout->IsBackgroundFormatting();
- }
- inline TInt CTextView::TopViewRect() const
- {
- return iDrawTextLayoutContext.iViewRect.iTl.iY;
- }
- inline void CTextView::DrawWithPreviousHighlight()
- {
- iCursorPos.SetToPreviousHighlight();
- }
- inline void CTextView::DrawWithCurrentHighlight()
- {
- iCursorPos.SetToCurrentHighlight();
- }
- inline void CTextView::GetOrigin(TPoint& aPoint) const
- {
- iLayout->GetOrigin(aPoint);
- aPoint += iDrawTextLayoutContext.TopLeftText();
- }
- inline CTextView::TTagmaForwarder::TTagmaForwarder():
- iView(0 )
- {
- }
- inline void CTextView::TTagmaForwarder::InitL(CTextView* aView)
- {
- iView = aView;
- iView->FinishBackgroundFormattingL();
- }
- inline const CTmTextLayout& CTextView::TTagmaForwarder::TextLayout() const
- {
- return iView->Layout()->TagmaTextLayout();
- }
- inline void CTextView::TTagmaForwarder::GetOrigin(TPoint& aPoint) const
- {
- iView->GetOrigin(aPoint);
- }
- #line 16 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikedwin.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikedwob.h" /* stack depth 4 */
- #line 9
- class CEikEdwin;
- class MEikEdwinObserver
- {
- public:
- enum TEdwinEvent
- {
- EEventFormatChanged,
- EEventNavigation,
- EEventTextUpdate
- };
- public:
- virtual void HandleEdwinEventL(CEikEdwin* aEdwin,TEdwinEvent aEventType)=0;
- };
- class MEikEdwinSizeObserver
- {
- public:
- enum TEdwinSizeEvent
- {
- EEventSizeChanging
- };
- public:
- virtual TBool HandleEdwinSizeEventL(CEikEdwin* aEdwin, TEdwinSizeEvent aEventType, TSize aDesirableEdwinSize)=0;
- };
- #line 20 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikedwin.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikccpu.h" /* stack depth 4 */
- #line 10
- class CEikButtonGroupContainer;
- class CEikMenuBar;
- class MEikCcpuEditor
- {
- public:
- virtual TBool CcpuIsFocused() const = 0;
- virtual TBool CcpuCanCut() const = 0;
- virtual void CcpuCutL() = 0;
- virtual TBool CcpuCanCopy() const = 0;
- virtual void CcpuCopyL() = 0;
- virtual TBool CcpuCanPaste() const = 0;
- virtual void CcpuPasteL() = 0;
- virtual TBool CcpuCanUndo() const = 0;
- virtual void CcpuUndoL() = 0;
- };
- class CAknCcpuSupport : public CAknControl, public MEikMenuObserver
- {
- public:
- __declspec(dllexport) CAknCcpuSupport(MEikCcpuEditor* aEditor);
- __declspec(dllexport) ~CAknCcpuSupport();
- __declspec(dllexport) void ConstructL();
- __declspec(dllexport) void HandleSelectionChangeL();
- __declspec(dllexport) void HandleFocusChangeL();
- __declspec(dllexport) TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- __declspec(dllexport) void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
- __declspec(dllexport) void ProcessCommandL(TInt aCommandId);
- private:
- void UpdateCBALabelsL();
- TBool UpdateCBALabelL(TInt aPosition, TInt aCommandId, TInt aTextResId);
- void SetEmphasis(CCoeControl* aMenuControl,TBool aEmphasis);
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- TBitFlags iFlags;
- CEikButtonGroupContainer* iCba;
- CEikMenuBar* iMenu;
- MEikCcpuEditor* iEditor;
- };
- #line 22 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikedwin.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiklay.h" /* stack depth 4 */
- class TAvkonEditorCustomWrap : public MFormCustomWrap
- {
- public:
- enum
- {
- EAvkSpaceLineBreakClass=MTmCustom::ELineBreakClasses,
- EAvkLineBreakClasses
- };
- public:
- TUint LineBreakClass(TUint aCode,TUint& aRangeStart,TUint& aRangeEnd) const;
- TBool LineBreakPossible(TUint aPrevClass,TUint aNextClass,TBool aHaveSpaces) const;
- };
- #line 23 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikedwin.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\AknPictographDrawerInterface.h" /* stack depth 4 */
- #line 31
- enum TAknPictographHeight
- {
- EHeight12 = 0,
- EHeight16 = 1,
- EHeight18 = 2,
- EHeight24 = 3,
- EHeight30 = 4
- };
- enum TAknPictographDrawingMode
- {
- EDrawingModeNormal = 0,
- EDrawingModeWhite = 1
- };
- class CBitmapContext;
- class CFont;
- class MAknPictographAnimatorCallBack
- {
- public:
- #line 67
- virtual void DrawPictographArea() = 0;
- };
- class MAknPictographDrawer
- {
- public:
- inline virtual ~MAknPictographDrawer() {};
- public:
- #line 97
- virtual HBufC* SupportedPictographCodesL() const = 0;
- #line 106
- virtual TBool IsPictograph( TText aCode ) const = 0;
- #line 115
- virtual TBool ContainsPictographs( const TDesC& aText ) const = 0;
- #line 127
- virtual void DrawPictograph(
- CBitmapContext& aGc,
- const TPoint& aTopLeft,
- TText aCode,
- TAknPictographHeight aHeight ) const = 0;
- #line 143
- virtual void DrawPictograph(
- CBitmapContext& aGc,
- const TRect& aRect,
- TText aCode,
- TAknPictographHeight aHeight ) const = 0;
- #line 161
- virtual void DrawPictograph(
- CBitmapContext& aGc,
- const TRect& aRect,
- const TRect& aClipRect,
- TText aCode,
- TAknPictographHeight aHeight ) const = 0;
- #line 185
- virtual void DrawText(
- CBitmapContext& aGc,
- const CFont& aFont,
- const TDesC& aText,
- const TPoint& aPosition ) const = 0;
- #line 213
- virtual void DrawText(
- CBitmapContext& aGc,
- const CFont& aFont,
- const TDesC& aText,
- const TRect& aBox,
- TInt aBaselineOffset,
- CGraphicsContext::TTextAlign aAlignment =
- CGraphicsContext::ELeft,
- TInt aLeftMargin = 0 ) const = 0;
- #line 234
- virtual void DrawPictographsInText(
- CBitmapContext& aGc,
- const CFont& aFont,
- const TDesC& aText,
- const TPoint& aPosition ) const = 0;
- #line 255
- virtual void DrawPictographsInText(
- CBitmapContext& aGc,
- const CFont& aFont,
- const TDesC& aText,
- const TRect& aBox,
- TInt aBaselineOffset,
- CGraphicsContext::TTextAlign aAlignment =
- CGraphicsContext::ELeft,
- TInt aLeftMargin = 0 ) const = 0;
- virtual TBool IsAnimated( TText aCode, TAknPictographHeight aHeight ) const = 0;
- #line 282
- virtual TInt SelectPictographHeightForFont(
- const CFont& aFont,
- TAknPictographHeight& aHeight
- ) const = 0;
- #line 298
- virtual TAknPictographDrawingMode SetPictographDrawingMode(
- TAknPictographDrawingMode aDrawingMode) = 0;
- };
- #line 25 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikedwin.h" /* stack depth 3 */
- class CGlobalText;
- class CParaFormatLayer;
- class CCharFormatLayer;
- class MLayDoc;
- class CEikEdwinFepSupport;
- class CLafEdwinCustomDrawBase;
- class CClipboard;
- class CAknEdwinFormAccessor;
- class CAknEdwinState;
- class CAknInputPolicyManager;
- class CFormCursorModifier;
- class CTextView;
- class MAknsControlContext;
- class CAknEdwinDrawingModifier;
- class CAknEdwinFormExtendedInterfaceProvider;
- class CAknPhoneNumberInlineTextSource;
- class CAknNoMatchesIndicatorInlineTextSource;
- class CAknInlineTextSource;
- class CAknPictographInterface;
- class CEikAvkonCustomDraw;
- class CEikAvkonCustomDraw;
- class CRichText;
- enum TReplaceOption
- {
- ENoReplace,
- EReplaceOnce,
- EReplaceAll,
- EReplaceSkip
- };
- struct SEdwinFindModel
- {
- TInt iFlags;
- TBuf<500 > iText;
- TBuf<500 > iReplaceText;
- TReplaceOption iReplaceOption;
- };
- enum TAknsHighlightStyle
- {
- EEikEdwinHighlightNormal = 0,
- EEikEdwinHighlightLink
- };
- class SAknRgb
- {
- TRgb iValue;
- TBool iIsSet;
- public:
- SAknRgb():iIsSet(EFalse){}
- TRgb Value(){return iValue;}
- SAknRgb& operator=(TRgb aRgb)
- {
- iValue = aRgb;
- iIsSet = ETrue;
- return *this;
- }
- TBool IsSet(){return iIsSet;}
- };
- class CEikEdwin : public CEikBorderedControl, public MEikScrollBarObserver, public CTextView::MObserver, public MEditObserver, public MEikCcpuEditor
- {
- private:
- class CUndoBuffer;
- class CEikEdwinExtension : public CBase
- {
- public:
- static CEikEdwinExtension* NewL(CEikEdwin* aEdwin);
- ~CEikEdwinExtension();
- __declspec(dllexport) CAknEdwinFormAccessor* FormAccessor() const;
- __declspec(dllexport) void SetFormAccessor(CAknEdwinFormAccessor* aFormAccessor);
- __declspec(dllexport) void SetScrollBarSetter(CIdle* aScrollBarSetter);
- __declspec(dllexport) CIdle* ScrollBarSetter();
- __declspec(dllexport) const TAvkonEditorCustomWrap& TextWrapper();
- __declspec(dllexport) CFormCursorModifier* FormCursorModifier() const;
- void SetSkinBackgroundControlContext( MAknsControlContext* aBackgroundControlContext );
- MAknsControlContext* SkinBackgroundControlContext() const;
- TBool SkinBackgroundControlContextHasBeenSet() const;
- void SetAlignment(TInt aAlignment);
- TInt CurrentAlignment() const;
- void SetPictoCallBack( TCallBack& aCallBack );
- const TCallBack& PictoCallBack() const;
- void CreateFormExtendedInterfaceProviderIfNeededL();
- CAknEdwinFormExtendedInterfaceProvider* FormExtendedInferfaceProvider() const;
- #line 183
- void CreatePurePhoneNumberFormatterL( CTextLayout& aTextLayout, const CPlainText& aText);
- #line 193
- void CreateNoMatchesIndicatorFormatterL( CTextLayout& aTextLayout );
- #line 204
- void CreateRichTextPhoneNumberFormatterL( CTextLayout& aTextLayout, const CRichText& aText );
- #line 213
- CAknInlineTextSource* InlineTextSource() const;
- CAknPictographInterface* PictographInterface() const;
- private:
- CEikEdwinExtension();
- void ConstructL(CEikEdwin* aEdwin);
- private:
- enum TFlagIndices
- {
- ESkinBackgroundControlContextHasBeenSetIndex = 0
- };
- class TAknEdwinPictographDrawer : public MAknPictographAnimatorCallBack
- {
- private:
- void DrawPictographArea();
- };
- private:
- CIdle* iSetScrollBar;
- TAvkonEditorCustomWrap iTextWrapper;
- CAknEdwinFormAccessor* iFormAccessor;
- CFormCursorModifier* iFormCursorModifier;
- MAknsControlContext* iSkinBackgroundControlContext;
- TBitFlags iFlags;
- TInt iAlignment;
- TCallBack iPictoCallBack;
- CAknEdwinFormExtendedInterfaceProvider* iFormExtendedInterfaceProvider;
- CAknInlineTextSource* iPhoneNumberFormatter;
- CAknNoMatchesIndicatorInlineTextSource* iNoMatchesIndicatorFormatter;
- TAknEdwinPictographDrawer iPictographDrawer;
- CAknPictographInterface* iPictographInterface;
- public:
- TInt iSkinIdForText;
- TAknsHighlightStyle iSkinHighlightStyle;
- SAknRgb iEditorBackgroundColor;
- TInt iUpperFullFormattingLength;
- };
- public:
- enum TFlags
- {
- 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
- };
- enum TClipboardFunc
- {
- ENoClipboard,
- ECut,
- ECopy,
- EPaste
- };
- enum TFindFlags
- {
- EFindDirectionUp =0x01,
- EFindWholeWord =0x02,
- EFindCaseSensitive =0x04,
- EFindAgain =0x08,
- ENoBusyMessage =0x10,
- EReadOnlyFile =0x20
- };
- enum TSetContent
- {
- EUseText,
- ECopyText
- };
- enum TOwnershipType
- {
- EOwnsText,
- EDoesNotOwnText
- };
- enum TEdwinHotKeys
- {
- EHotKeyCut,
- EHotKeyCopy,
- EHotKeyPaste,
- EHotKeyUndo,
- EHotKeyFind,
- EHotKeyInsertChar,
- EHotKeyBold,
- EHotKeyItalic,
- EHotKeyUnderline,
- EHotKeyFont,
- EHotKeyInsertObject,
- EHotKeyEditObject,
- EHotKeyFormatObject
- };
- public:
- __declspec(dllexport) ~CEikEdwin();
- __declspec(dllexport) CEikEdwin();
- __declspec(dllexport) CEikEdwin(const TGulBorder& aBorder);
- __declspec(dllexport) void ConstructL(TInt aEdwinFlags=0,TInt aWidthInChars=0,TInt aTextLimit=0,TInt aNumberOfLines=0);
- __declspec(dllexport) void SetEdwinObserver(MEikEdwinObserver* aEdwinObserver);
- __declspec(dllexport) void AddEdwinObserverL(MEikEdwinObserver* aEdwinObserver);
- __declspec(dllexport) void RemoveEdwinObserver(MEikEdwinObserver* aEdwinObserver);
- __declspec(dllexport) void SetContainerWindowL();
- __declspec(dllexport) void SetDocumentContentL(CGlobalText& aText,TSetContent aContent=CEikEdwin::ECopyText);
- public:
- __declspec(dllexport) TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
- __declspec(dllexport) void FocusChanged(TDrawNow aDrawNow);
- __declspec(dllexport) void ActivateL();
- __declspec(dllexport) void ConstructFromResourceL(TResourceReader& aReader);
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- __declspec(dllexport) TSize MinimumSize();
- __declspec(dllexport) void Draw(const TRect& aRect) const;
- __declspec(dllexport) void SetDimmed(TBool aDimmed);
- __declspec(dllexport) void SetContainerWindowL(const CCoeControl& aParent);
- __declspec(dllexport) virtual void GetColorUseListL(CArrayFix<TCoeColorUse>& aColorUseList) const;
- __declspec(dllexport) virtual void HandleResourceChange(TInt aType);
- __declspec(dllexport) TCoeInputCapabilities InputCapabilities() const;
- __declspec(dllexport) void SetInputCapabilitiesL(const TCoeInputCapabilities& aInputCapabilities);
- __declspec(dllexport) void WriteInternalStateL(RWriteStream& aWriteStream) const;
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- public:
- __declspec(dllexport) void HandleScrollEventL(CEikScrollBar* aScrollBar, TEikScrollEvent aEventType);
- public:
- __declspec(dllexport) void OnReformatL(const CTextView* aTextView);
- public:
- __declspec(dllexport) TInt TextLength() const;
- __declspec(dllexport) TInt CursorPos() const;
- __declspec(dllexport) TInt SelectionLength() const;
- __declspec(dllexport) TCursorSelection Selection() const;
- __declspec(dllexport) void ClearSelectionL();
- __declspec(dllexport) void SetSelectionL(TInt aCursorPos,TInt aAnchorPos);
- __declspec(dllexport) void SetCursorPosL(TInt aCursorPos,TBool aSelect);
- __declspec(dllexport) void SelectAllL();
- __declspec(dllexport) void CalculateWidth(TInt aWidthInChars);
- __declspec(dllexport) void GetText(TDes& aDes) const;
- __declspec(dllexport) HBufC* GetTextInHBufL() const;
- __declspec(dllexport) void SetTextL(const TDesC* aDes);
- __declspec(dllexport) void ClipboardL(TClipboardFunc aClipboardFunc);
- __declspec(dllexport) void InsertFieldL(CTextField* aField,TUid aFieldType);
- __declspec(dllexport) void UpdateAllFieldsL();
- __declspec(dllexport) void UpdateCurrentFieldL();
- __declspec(dllexport) TInt CountWords();
- __declspec(dllexport) void InsertFromTextFileL(const TFileName &aFileName,const CPlainText::TTextOrganisation aTextOrganisation=CPlainText::EOrganiseByLine);
- __declspec(dllexport) static TInt IdleL(TAny *aPtr);
- __declspec(dllexport) CPlainText* Text() const;
- __declspec(dllexport) void CancelFepTransaction();
- __declspec(dllexport) void HandleTextChangedL();
- __declspec(dllexport) TInt LayoutWidth() const;
- __declspec(dllexport) void NotifyNewDocumentL();
- __declspec(dllexport) void NotifyNewFormatL();
- __declspec(dllexport) TBool FindL(const TDesC* aFindText,TInt aFindFlags=0);
- __declspec(dllexport) TInt FindTextL(const TDesC* aFindText,TInt aPos,TInt aFindFlags);
- __declspec(dllexport) void ReplaceL(SEdwinFindModel* aFindModel);
- __declspec(dllexport) void ReplaceAllL(SEdwinFindModel* aFindModel);
- __declspec(dllexport) void GetFindText(TDes* aFindText);
- __declspec(dllexport) void UpdateScrollBarsL();
- __declspec(dllexport) CEikScrollBarFrame* CreateScrollBarFrameL();
- inline CEikScrollBarFrame* CreatePreAllocatedScrollBarFrameL();
- inline CEikScrollBarFrame* ScrollBarFrame();
- __declspec(dllexport) void SetWordWrapL(TBool aWrapIsOn);
- __declspec(dllexport) virtual TInt LineCursorWidth() const;
- __declspec(dllexport) void SetZoomFactorL(TZoomFactor* aZoomFactor);
- __declspec(dllexport) void SetBackgroundColorL(TRgb aBackground);
- __declspec(dllexport) void SetWysiwygModeOn(TInt aLayoutWidth,MGraphicsDeviceMap* aDevice);
- __declspec(dllexport) void SetWysiwygModeOff();
- __declspec(dllexport) void UpdateLayoutWidth(TInt aLayoutWidth);
- __declspec(dllexport) void SendDataOverIrL();
- __declspec(dllexport) void ReceiveDataOverIrL();
- __declspec(dllexport) void SetAmountToFormatL(TBool aIsNewDoc=EFalse);
- __declspec(dllexport) void SetPasteFromIrStore(TBool aPasteFromIrStore);
- __declspec(dllexport) void PasteFromStoreL(CStreamStore& aStore, CStreamDictionary& aDict);
- __declspec(dllexport) void CopyToStoreL(CStreamStore& aStore, CStreamDictionary& aDict);
- __declspec(dllexport) void SetBorderViewMargins(TMargins8 aMargins);
- __declspec(dllexport) void ForceScrollBarUpdateL();
- __declspec(dllexport) void SetDocumentOwnership(TOwnershipType aOwner);
- __declspec(dllexport) void SetTextLimit(TInt aLimit);
- __declspec(dllexport) void RunCharMapDialogL();
- __declspec(dllexport) TMargins8 Margins() const;
- __declspec(dllexport) TInt UpperFullFormattingLength() const;
- __declspec(dllexport) TInt LowerPartialFormattingLength() const;
- __declspec(dllexport) void SetReadOnly(TBool aReadOnly);
- __declspec(dllexport) TBool IsReadOnly() const;
- __declspec(dllexport) void CheckNotReadOnlyL();
- __declspec(dllexport) void SetAllowPictures(TBool aAllow);
- __declspec(dllexport) void CheckRemovePictures(TInt aStartPos,TInt aLength);
- __declspec(dllexport) void SetRightWrapGutter(TInt aGap);
- __declspec(dllexport) void UndoL();
- __declspec(dllexport) void ClearUndo();
- __declspec(dllexport) void SetAllowUndo(TBool aAllow);
- __declspec(dllexport) TBool SupportsUndo() const;
- __declspec(dllexport) TBool CanUndo() const;
- __declspec(dllexport) void SetWordDelimiters(TBool aPicture,TBool aPunctuation);
- __declspec(dllexport) void GetWordInfo(TInt aCurrentPos,TInt& aStartPos,TInt& aLength) const;
- __declspec(dllexport) void MoveCursorL(TCursorPosition::TMovementType aMovement,TBool aSelect);
- __declspec(dllexport) void MoveDisplayL(TCursorPosition::TMovementType aMovement);
- __declspec(dllexport) void CheckValidityOfChars(TInt aStartPos,TInt aLength);
- __declspec(dllexport) void SetOnlyASCIIChars(TBool aASCIIOnly);
- __declspec(dllexport) TBool OnlyASCIIChars() const;
- inline TInt AvgLinesInViewRect() const;
- inline TInt AvgCharsPerLine() const;
- inline void SetAvgLinesInViewRect(TInt aAvgLines);
- inline void SetAvgCharsPerLine(TInt aAvgChars);
- __declspec(dllexport) void SetEdwinSizeObserver(MEikEdwinSizeObserver* aEdwinSizeObserver);
- __declspec(dllexport) TInt MinimumHeight() const;
- __declspec(dllexport) TInt MaximumHeight() const;
- __declspec(dllexport) void SetMinimumHeight(TInt aHeight);
- __declspec(dllexport) void SetMaximumHeight(TInt aHeight);
- public:
- __declspec(dllexport) void InsertDeleteCharsL(TInt aInsertPos,const TDesC& aText,const TCursorSelection& aDelete);
- __declspec(dllexport) void SetNonPrintingCharsVisibility(TNonPrintingCharVisibility aVisibility);
- __declspec(dllexport) TNonPrintingCharVisibility NonPrintingCharsVisibility() const;
- public:
- __declspec(dllexport) void SetAvkonWrap(TBool aAvkonWrapIsOn);
- public:
- #line 482
- __declspec(dllexport) void SetAknEditorCase(TInt aCase);
- #line 493
- __declspec(dllexport) void SetAknEditorPermittedCaseModes(TInt aPermittedCaseModes);
- #line 507
- __declspec(dllexport) void SetAknEditorNumericKeymap(TAknEditorNumericKeymap aNumericKeymap);
- #line 517
- __declspec(dllexport) void SetAknEditorInputMode(TInt aInputMode);
- #line 526
- __declspec(dllexport) void SetAknEditorAllowedInputModes(TInt aInputModes);
- __declspec(dllexport) void SetAknEditorSpecialCharacterTable(TInt aSCTResId);
- #line 542
- __declspec(dllexport) void SetAknEditorFlags(TInt aFlags);
- __declspec(dllexport) void EnableCcpuSupportL(TBool aSupport);
- #line 555
- __declspec(dllexport) void SetAknEditorCurrentInputMode(TInt aInputMode);
- __declspec(dllexport) TInt AknEditorCurrentInputMode();
- #line 575
- __declspec(dllexport) void SetAknEditorCurrentCase(TInt aCase);
- #line 584
- __declspec(dllexport) void SetAknEditorLocalLanguage(TLanguage aLanguage);
- __declspec(dllexport) void NotifyEditorStateObserverOfStateChangeL();
- public:
- __declspec(dllexport) void SetMaximumHeightInLines(TInt aLines);
- __declspec(dllexport) TInt MaximumHeightInLines() const;
- public:
- __declspec(dllexport) TBool CcpuIsFocused() const;
- __declspec(dllexport) TBool CcpuCanCut() const;
- __declspec(dllexport) void CcpuCutL();
- __declspec(dllexport) TBool CcpuCanCopy() const;
- __declspec(dllexport) void CcpuCopyL();
- __declspec(dllexport) TBool CcpuCanPaste() const;
- __declspec(dllexport) void CcpuPasteL();
- __declspec(dllexport) TBool CcpuCanUndo() const;
- __declspec(dllexport) void CcpuUndoL();
- __declspec(dllexport) TInt AknEdwinFlags() const;
- public:
- __declspec(dllexport) void CreateTextViewL();
- __declspec(dllexport) CTextView* TextView() const;
- __declspec(dllexport) CTextLayout* TextLayout() const;
- __declspec(dllexport) TBool SetUndoBufferL(const TCursorSelection& aSelection);
- __declspec(dllexport) void SetUndoableText(const TCursorSelection& aSelection);
- CAknEdwinState* EditorState() const;
- inline void SetMaxLength(TInt aLength );
- inline TInt MaxLength() const;
- public:
- __declspec(dllexport) void AddFlagToUserFlags(TUint32 aFlag);
- __declspec(dllexport) void RemoveFlagFromUserFlags(TUint32 aFlag);
- __declspec(dllexport) TUint32 UserFlags() const ;
- public:
- __declspec(dllexport) void SetCharFormatLayer(CCharFormatLayer* aCharFormatLayer);
- __declspec(dllexport) void SetParaFormatLayer(CParaFormatLayer* aParaFormatLayer);
- public:
- #line 647
- __declspec(dllexport) void SetSkinBackgroundControlContextL( MAknsControlContext* aContext );
- #line 660
- MAknsControlContext* SkinBackgroundControlContext() const;
- #line 670
- TBool SkinEnabled() const;
- #line 682
- __declspec(dllexport) void SetAlignment(TInt aAlignment);
- public:
- void DrawTextView() const;
- #line 699
- __declspec(dllexport) void SetPictographAnimationCallBack( TCallBack& aCallBack );
- const TCallBack& PictographAnimationCallBack() const;
- #line 733
- __declspec(dllexport) void SetUpperFullFormattingLength( TInt aUpperFullFormattingLimit );
- protected:
- enum TEnd
- {
- EStart,
- EEnd
- };
- enum TChunkSize
- {
- EChunkWord,
- EChunkPara
- };
- enum TEikEdwinFlags
- {
- ERichText =0x00000001,
- EDragDouble =0x00000002,
- ELeftDownInViewRect =0x00000004,
- ENumericCharacters =0x00000008,
- EHasOneLineOnly =0x00000010,
- EPhoneNumberGrouping = 0x00000020
- };
- protected:
- __declspec(dllexport) void EditObserver(TInt aStartEdit,TInt aEditLength);
- protected:
- __declspec(dllexport) void TrappedDraw(const TRect& aRect) const;
- __declspec(dllexport) void DrawContents();
- __declspec(dllexport) void BaseConstructL();
- __declspec(dllexport) void FormatTextL();
- __declspec(dllexport) TInt DeleteHighlightL(TBool& aChanged,TBool aIsBackSpace=EFalse,TBool aPromptConfirmation=ETrue);
- __declspec(dllexport) TBool OkToDeleteSelectionL();
- __declspec(dllexport) void DeleteL(TBool& aChanged,const TCursorSelection& aSelection,TBool aIsBackSpace=EFalse,TBool aAllowUndo=ETrue);
- __declspec(dllexport) void TrappedSizeChanged();
- __declspec(dllexport) void HandleSizeChangedL();
- __declspec(dllexport) void CancelSelectionL(TEnd aEndOfSelectionToLeaveCursor);
- __declspec(dllexport) void MoveCursorToChunkStartL(TBool aSelect,TChunkSize aChunkSize,TEnd aEndScanningTowards);
- __declspec(dllexport) void CancelInsertCharFormat();
- __declspec(dllexport) void PlaceDataOnClipboardL();
- __declspec(dllexport) void ReportEdwinEventL(MEikEdwinObserver::TEdwinEvent aEventType);
- __declspec(dllexport) void SetLineCursorDetailsL();
- __declspec(dllexport) virtual void CopyDocumentContentL(CGlobalText& aInText,CGlobalText& aOutText);
- __declspec(dllexport) void DisplayFindTextNotFound(TDes& aFindText);
- __declspec(dllexport) virtual void HandleTextPastedL(TInt aStartPos,TInt& aLength);
- __declspec(dllexport) virtual CLafEdwinCustomDrawBase* CreateCustomDrawL();
- __declspec(dllexport) void ReadAknResourceL(TResourceReader& aReader);
- protected:
- __declspec(dllexport) void CreateLayoutL(MLayDoc* aLayDoc);
- __declspec(dllexport) void CreateTextAndLayoutL(CParaFormatLayer* aParaFormatLayer,CCharFormatLayer* aCharFormatLayer);
- __declspec(dllexport) void CheckEdwinExtensionL();
- __declspec(dllexport) CEikEdwinExtension* EdwinExtension();
- private:
- enum
- {
- EWysiwygOn =0x00000010,
- EUnderOneScreenFormattedText =0x00000020,
- EPictureDelimits =0x00000040,
- EPunctuationDelimits =0x00000080,
- EPasteFromIrStore =0x00000100,
- ELockScrollBarState =0x00000200,
- EOnReformatting =0x00000400
- };
- private:
- __declspec(dllexport) void SizeChanged();
- __declspec(dllexport) TInt CountComponentControls() const;
- __declspec(dllexport) CCoeControl* ComponentControl(TInt aIndex) const;
- __declspec(dllexport) void Reserved_2();
- private:
- __declspec(dllexport) virtual void Reserved_3();
- __declspec(dllexport) virtual void NotifyInvalidOperationOnReadOnlyL();
- __declspec(dllexport) CEikScrollBarFrame* CreateScrollBarFrameL(TBool aPreAlloc);
- void SetVirtualCursorStateL(TBool aIsFocused) const;
- void SetHeightForNumOfLinesL();
- void ApplyAutoSelectionL();
- void SetScrollBarsL();
- void SetVertScrollBarModelByCharactersL(TEikScrollBarModel& aVertModel) const;
- void RetrieveDataFromClipboardL();
- void SetCursorVisibilityL(TBool aEmphasis);
- TBool OwnsScrollBars() const;
- void CreateScrollBarFrameLayout(TEikScrollBarFrameLayout& aLayout) const;
- void UpdateHorizScrollBarThumb();
- void UpdateVertScrollBarThumbL();
- void DoSetUndoBufferL(const TCursorSelection& aSelection);
- void DoPasteFromStoreL(const CStreamStore& aStore,const CStreamDictionary& aDict);
- void DoReplaceAllL(SEdwinFindModel* aModel,TBool& aTextFound,TBool& aReplaced);
- void DeleteExtraParasL(TInt aStartPos,TInt aLength);
- TInt LocateChar(TChar aChar,TInt aStartPos,TInt aLength);
- TBool IsValidChar(TInt aChar) const;
- TInt CalcMinimumHeightFromNumOfLinesL() const;
- void CheckEdwinHeight();
- TBool IsNewHeightWithinMinimumAndMaximum(TInt aNewHeight) const;
- void SetEdwinHeight(TInt aHeight);
- void DoCreateCustomDrawL();
- void SetCursorSizeAndType();
- TKeyResponse DoOfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
- void DoCcpuCanPasteL() const;
- void DoReportEventL(MCoeControlObserver::TCoeEvent aEvent);
- void CheckIfEdwinIsResizable();
- void SetKeyboardRepeatRate(TTimeIntervalMicroSeconds32 aKeyRepeatRate) const;
- HBufC* GetAllowedCharsLC() const;
- TInt CheckAllowedCharsL(const TDesC& aChars, CClipboard& aClipboard, TBool aRichText) const;
- TInt CursorWidth() const;
- TFontSpec CursorFontSpec() const;
- void BuildEdwinFepSupport();
- void MakeCharFormatLayerMatchL(CCharFormatLayer* aCharFormatLayer);
- void MakeParaFormatLayerMatchL(CParaFormatLayer* aParaFormatLayer);
- void UpdateCache(TInt aId);
- void DrawBackgroundAroundTextView(
- CWindowGc& gc,
- const TRect& aOuterRect,
- const TRect& aInnerRect,
- const TRgb& aBackgroundColor ) const;
- TInt CurrentAlignment() const;
- void DoAlignment();
- void NewParagraphL();
- private:
- void DrawFirstLineTextL() const;
- CAknEdwinDrawingModifier* AknEdwinDrawingModifier();
- TBool EditorSupportsNeutralProtection() const;
- #line 868
- TBool NeedsNeutralProtection( TInt aPosOfLowEndOfDelete, TInt aLengthToDelete, TDes& aNewText, TBool& aForwardProtectionNeeded );
- #line 878
- TBool GetStrongDirectionality(TChar aChar, TBool& aRightToLeft ) const;
- TBool CharIsNeutral( TInt aPos ) const;
- #line 902
- TBool GetExposedDirectionOfTextInDescriptor( const TDesC& aText, TBool aForward, TBool& aIsRightToLeft ) const;
- #line 916
- TBool GetExposedDirectionOfText( TInt aPos, TBool aForward, TBool& aIsRightToLeft ) const;
- #line 934
- void ReplaceSelectionWithTextL( const TDesC& aNewText,
- TInt aCursorPosInNewText,
- TBool& aFormatHasChanged );
- #line 947
- TBool IsPurePhoneNumberEditor() const;
- TBool NeedToChangeFormattingModeL() const;
- protected:
- __declspec(dllexport) TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
- public:
- __declspec(dllexport) void SetTextSkinColorIdL(TInt aAknSkinIdForTextColor);
- __declspec(dllexport) void SetHighlightStyleL(TAknsHighlightStyle aStyle);
- TInt SkinColorId() const;
- TAknsHighlightStyle HighlightStyle() const;
- TRgb EditorBackgroundColor(TRgb& aConditionalColor) const;
- protected:
- TUint32 iEdwinUserFlags;
- TUint32 iEdwinInternalFlags;
- CPlainText* iText;
- protected:
- CTextView* iTextView;
- CTextLayout* iLayout;
- protected:
- TInt iTextLimit;
- TInt iNumberOfLines;
- MGraphicsDeviceMap* iZoomFactor;
- TInt iLastPointerDocPos;
- TMargins8 iMargins;
- private:
- friend class CEikEdwinFepSupport;
- friend class CEikEdwinExtension;
- CEikEdwinExtension* iEdwinExtension;
- CEikScrollBarFrame* iSBFrame;
- MEikEdwinObserver* iEdwinObserver;
- CArrayPtr<MEikEdwinObserver> * iObserverArray;
- CEikEdwinFepSupport* iEdwinFepSupport;
- CUndoBuffer* iUndoStore;
- TInt iAvgLinesInViewRect;
- TInt iAvgCharsPerLine;
- TInt iRightWrapGutter;
- TInt iLayoutWidth;
- MEikEdwinSizeObserver* iEdwinSizeObserver;
- TInt iMinimumHeight;
- TInt iMaximumHeight;
- #line 1024
- TInt iMaximumHeightInLines;
- CLafEdwinCustomDrawBase* iCustomDrawer;
- TInt iLastPointerAnchorPos;
- CAknCcpuSupport* iCcpuSupport;
- CCharFormatLayer* iCharFormatLayer;
- CParaFormatLayer* iParaFormatLayer;
- TInt iSpare_1;
- TInt iSpare_2;
- };
- inline CEikScrollBarFrame* CEikEdwin::CreatePreAllocatedScrollBarFrameL()
- { return CreateScrollBarFrameL(ETrue);}
- inline CEikScrollBarFrame* CEikEdwin::ScrollBarFrame()
- { return ((CEikScrollBarFrame* const)iSBFrame); }
- inline TInt CEikEdwin::AvgLinesInViewRect() const
- { return iAvgLinesInViewRect; }
- inline TInt CEikEdwin::AvgCharsPerLine() const
- { return iAvgCharsPerLine;}
- inline void CEikEdwin::SetAvgLinesInViewRect(TInt aAvgLines)
- { iAvgLinesInViewRect=aAvgLines; }
- inline void CEikEdwin::SetAvgCharsPerLine(TInt aAvgChars)
- { iAvgCharsPerLine=aAvgChars; }
- inline void CEikEdwin::SetMaxLength(TInt aLength )
- { SetTextLimit(aLength); }
- inline TInt CEikEdwin::MaxLength() const
- { return iTextLimit; }
- #line 29 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknquerycontrol.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikseced.h" /* stack depth 3 */
- #line 20
- class TResourceReader;
- class CEikSecretEditorExtension;
- class MAknsControlContext;
- class CEikSecretEditor : public CEikBorderedControl, public MCoeFepAwareTextEditor, public MCoeFepAwareTextEditor_Extension1
- {
- public:
- enum { EMaxSecEdBufLength=32, EMaxSecEdSecArrayLength = 255 };
- public:
- __declspec(dllexport) CEikSecretEditor();
- __declspec(dllexport) ~CEikSecretEditor();
- public:
- __declspec(dllexport) virtual void ConstructFromResourceL(TResourceReader& aReader);
- __declspec(dllexport) virtual TSize MinimumSize();
- __declspec(dllexport) virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
- __declspec(dllexport) virtual void GetColorUseListL(CArrayFix<TCoeColorUse>& aColorUseList) const;
- __declspec(dllexport) virtual void HandleResourceChange(TInt aType);
- __declspec(dllexport) virtual TCoeInputCapabilities InputCapabilities() const;
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- public:
- __declspec(dllexport) void GetText(TDes& aText) const;
- __declspec(dllexport) virtual void SetText(const TDesC& aText);
- __declspec(dllexport) virtual void InitializeDisplay(TInt aNumberOfChars);
- __declspec(dllexport) void Reset();
- __declspec(dllexport) void SetMaxLength(TInt aMaxLength);
- __declspec(dllexport) void AknSetFont(const CFont &aFont);
- __declspec(dllexport) void AknSetAlignment(const CGraphicsContext::TTextAlign &aAlign);
- #line 84
- __declspec(dllexport) void SetDefaultInputMode(TInt aInputMode);
- __declspec(dllexport) TInt MaxLength() const;
- __declspec(dllexport) const TDesC& Buffer() const;
- __declspec(dllexport) void RevealSecretText( TBool aReveal );
- #line 118
- __declspec(dllexport) void SetSkinBackgroundControlContextL( MAknsControlContext* aContext );
- protected:
- __declspec(dllexport) virtual void AppendCharacterL( TInt aKeyCode );
- __declspec(dllexport) virtual void Update();
- void InsertSecretChar();
- __declspec(dllexport) void SizeChanged();
- private:
- __declspec(dllexport) virtual void Draw(const TRect& aRect) const;
- private:
- __declspec(dllexport) void StartFepInlineEditL(const TDesC& aInitialInlineText, TInt aPositionOfInsertionPointInInlineText, TBool aCursorVisibility, const MFormCustomDraw* aCustomDraw, MFepInlineTextFormatRetriever& aInlineTextFormatRetriever, MFepPointerEventHandlerDuringInlineEdit& aPointerEventHandlerDuringInlineEdit);
- __declspec(dllexport) void UpdateFepInlineTextL(const TDesC& aNewInlineText, TInt aPositionOfInsertionPointInInlineText);
- __declspec(dllexport) void SetInlineEditingCursorVisibilityL(TBool aCursorVisibility);
- __declspec(dllexport) void CancelFepInlineEdit();
- __declspec(dllexport) TInt DocumentLengthForFep() const;
- __declspec(dllexport) TInt DocumentMaximumLengthForFep() const;
- __declspec(dllexport) void SetCursorSelectionForFepL(const TCursorSelection& aCursorSelection);
- __declspec(dllexport) void GetCursorSelectionForFep(TCursorSelection& aCursorSelection) const;
- __declspec(dllexport) void GetEditorContentForFep(TDes& aEditorContent, TInt aDocumentPosition, TInt aLengthToRetrieve) const;
- __declspec(dllexport) void GetFormatForFep(TCharFormat& aFormat, TInt aDocumentPosition) const;
- __declspec(dllexport) void GetScreenCoordinatesForFepL(TPoint& aLeftSideOfBaseLine, TInt& aHeight, TInt& aAscent, TInt aDocumentPosition) const;
- __declspec(dllexport) void DoCommitFepInlineEditL();
- __declspec(dllexport) MCoeFepAwareTextEditor_Extension1* Extension1(TBool& aSetToTrue);
- __declspec(dllexport) void SetStateTransferingOwnershipL(CState* aState, TUid aTypeSafetyUid);
- __declspec(dllexport) CState* State(TUid aTypeSafetyUid);
- private:
- void OverflowAlert();
- private:
- __declspec(dllexport) void Reserved_1();
- __declspec(dllexport) void Reserved_2();
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- __declspec(dllexport) void MCoeFepAwareTextEditor_Reserved_2();
- private:
- __declspec(dllexport) virtual void MCoeFepAwareTextEditor_Extension1_Reserved_2();
- __declspec(dllexport) virtual void MCoeFepAwareTextEditor_Extension1_Reserved_3();
- __declspec(dllexport) virtual void MCoeFepAwareTextEditor_Extension1_Reserved_4();
- private:
- void InsertChar();
- TInt CharsFitOnEditor() const;
- __declspec(dllexport) virtual MCoeFepAwareTextEditor_Extension1::CState* CreateFepStateL();
- void CalculateAscent();
- private:
- typedef TBuf<EMaxSecEdBufLength> TSecEdBuf;
- protected:
- HBufC* iSecCharArr;
- TInt iSecPos;
- TSecEdBuf iBuf;
- TInt iMaxLen;
- TInt iCharWidth;
- TInt iAscent;
- TBool iBufferFull;
- public:
- void StartTimer();
- private:
- static TInt TimerCallback(TAny* aThis);
- private:
- CPeriodic* iTimer;
- const CFont *iFont;
- CGraphicsContext::TTextAlign iAlign;
- TBool iRevealSecretText;
- CEikSecretEditorExtension* iExtension;
- CState* iFepState;
- HBufC* iInlineEditText;
- public:
- __declspec(dllexport) void SetSkinTextColorL(TInt aAknSkinIDForTextColor, TInt aAknSkinIdForBgColor=KErrNotFound);
- };
- #line 30 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknquerycontrol.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikmfne.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikcal.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikscbut.h" /* stack depth 5 */
- #line 12
- class CEikScrollButton : public CEikButtonBase
- {
- public:
- enum TType
- {
- ENudgeLeft=SLafScrollButton::ENudgeLeft,
- ENudgeUp=SLafScrollButton::ENudgeUp,
- ENudgeRight=SLafScrollButton::ENudgeRight,
- ENudgeDown=SLafScrollButton::ENudgeDown,
- EPageLeft=SLafScrollButton::EPageLeft,
- EPageUp=SLafScrollButton::EPageUp,
- EPageRight=SLafScrollButton::EPageRight,
- EPageDown=SLafScrollButton::EPageDown,
- EHome=SLafScrollButton::EHome,
- ETop=SLafScrollButton::ETop,
- EEnd=SLafScrollButton::EEnd,
- EBottom=SLafScrollButton::EBottom
- };
- public:
- enum TTypeOfScrollBar
- {
- ENormal =0x00,
- EArrowHead =0x01
- };
- public:
- __declspec(dllexport) ~CEikScrollButton();
- __declspec(dllexport) CEikScrollButton(TType aType);
- __declspec(dllexport) TType Type() const;
- public:
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- TInt iSpare;
- };
- class CEikArrowHeadScrollButton : public CEikScrollButton
- {
- public:
- __declspec(dllexport) static CEikArrowHeadScrollButton* NewL(const CCoeControl* aParent, TType aType);
- private:
- CEikArrowHeadScrollButton();
- };
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikcal.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikcmbut.h" /* stack depth 5 */
- #line 21
- class CEikLabel;
- class CEikImage;
- class CEikAlignedControl;
- class TResourceReader;
- class CEikCommandStack;
- class CEikCommandButtonBase : public CEikButtonBase, public MCoeControlContext
- {
- public:
- enum TWhichComponent
- {
- EFirst,
- ESecond
- };
- enum TDisplayContent
- {
- EFirstOnly =0x0100,
- ESecondOnly =0x0200,
- EBoth =0x0300
- };
- enum TLayout
- {
- EFirstRightSecondLeft=0x0000,
- EFirstBottomSecondTop=0x0001,
- EFirstTopSecondBottom=0x0002,
- EFirstLeftSecondRight=0x0003,
- EDenseFont =0x0008
- };
- enum TExcess
- {
- EShare =0x0000,
- EToFirst =0x0010,
- EToSecond =0x0020
- };
- public:
- __declspec(dllexport) ~CEikCommandButtonBase();
- __declspec(dllexport) void SetButtonLayout(TLayout aLayout);
- __declspec(dllexport) void SetExcessSpace(TExcess aExcess);
- __declspec(dllexport) void SetDisplayContent(TDisplayContent aContent);
- __declspec(dllexport) void LayoutComponents();
- __declspec(dllexport) void StartConstructFromResourceL(TResourceReader& aReader);
- __declspec(dllexport) void ConstructLabelFromResourceL(TResourceReader& aReader,TWhichComponent aWhich);
- __declspec(dllexport) void ConstructImageFromResourceL(TResourceReader& aReader,TWhichComponent aWhich);
- __declspec(dllexport) virtual void UpdateComponentAlignment();
- __declspec(dllexport) void SetDefault(TBool aIsDefault);
- public:
- __declspec(dllexport) void SetDimmed(TBool aDimmed);
- __declspec(dllexport) TSize MinimumSize();
- __declspec(dllexport) TInt CountComponentControls() const;
- __declspec(dllexport) CCoeControl* ComponentControl(TInt aIndex) const;
- __declspec(dllexport) void ActivateL();
- __declspec(dllexport) void SetContainerWindowL(const CCoeControl& aContainer);
- __declspec(dllexport) void FocusChanged(TDrawNow aDrawNow);
- __declspec(dllexport) TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode );
- __declspec(dllexport) virtual void GetColorUseListL(CArrayFix<TCoeColorUse>& aColorUseList) const;
- __declspec(dllexport) virtual void HandleResourceChange(TInt aType);
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- public:
- CEikCommandStack* CommandStack() const;
- TInt ButFlags() const;
- TBool IsDefault() const;
- protected:
- __declspec(dllexport) void StateChanged();
- protected:
- __declspec(dllexport) CEikCommandButtonBase();
- __declspec(dllexport) void SetTextL(const TDesC& aText,CEikAlignedControl*& aComponent);
- __declspec(dllexport) void SetPictureL(const CFbsBitmap* aMain,const CFbsBitmap* aMask,CEikAlignedControl*& aComponent);
- __declspec(dllexport) void SetPictureFromFileL(const TDesC& aFilename,TInt aMain,TInt aMask,CEikAlignedControl*& aComponent);
- inline void CheckCreateCommandStackL();
- protected:
- __declspec(dllexport) void Draw(const TRect& aRect) const;
- protected:
- void SetImageAttributes(CEikImage* aImage);
- inline TInt Behavior() const;
- protected:
- __declspec(dllexport) void WriteInternalStateL(RWriteStream& aWriteStream) const;
- private:
- __declspec(dllexport) void SizeChanged();
- __declspec(dllexport) void Reserved_2();
- private:
- __declspec(dllexport) void Reserved_3();
- private:
- __declspec(dllexport) void PrepareContext(CWindowGc& aGc) const;
- private:
- __declspec(dllexport) virtual void Reserved_4();
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- void SetComponentExtents(const TRect& aRect);
- void SetNewComponentExtentL();
- TBool LayoutIsVertical() const;
- protected:
- TMargins8 iMargins;
- CEikAlignedControl* iComponents[2];
- TInt iCmdFlags;
- private:
- TInt iDrawOffset;
- CEikCommandStack* iCommandStack;
- TInt iDummy;
- TBool iDefault;
- };
- class CEikCommandButton : public CEikCommandButtonBase
- {
- public:
- enum TLayout
- {
- ETextRightPictureLeft=0x000,
- ETextBottomPictureTop=0x001,
- ETextTopPictureBottom=0x002,
- ETextLeftPictureRight=0x003
- };
- enum TExcess
- {
- EShare =0x0000,
- EToText =0x0010,
- EToPicture =0x0020
- };
- enum TDisplayContent
- {
- ETextOnly =0x0100,
- EPictureOnly =0x0200,
- ETextAndPicture =0x0300
- };
- public:
- __declspec(dllexport) CEikCommandButton();
- __declspec(dllexport) ~CEikCommandButton();
- __declspec(dllexport) void SetTextL(const TDesC& aText);
- __declspec(dllexport) void SetPictureL(const CFbsBitmap* aMain,const CFbsBitmap* aMask=0 );
- __declspec(dllexport) void SetPictureFromFileL(const TDesC& aFilename,TInt aMain,TInt aMask=-1);
- __declspec(dllexport) CEikLabel* Label() const;
- __declspec(dllexport) CEikImage* Picture() const;
- __declspec(dllexport) void SetButtonLayout(TLayout aLayout);
- __declspec(dllexport) void SetExcessSpace(TExcess aExcess);
- __declspec(dllexport) void SetDisplayContent(TDisplayContent aContent);
- __declspec(dllexport) void SetCommandL(TInt aCommandId,const TDesC* aText,const CFbsBitmap* aBitmap,const CFbsBitmap* aMask);
- __declspec(dllexport) void AddCommandToStackL(TInt aCommandId,const TDesC* aText,const CFbsBitmap* aBitmap,const CFbsBitmap* aMask);
- __declspec(dllexport) TBool RemoveCommandFromStack(TInt aCommandId);
- __declspec(dllexport) TInt PopCommandFromStack();
- public:
- __declspec(dllexport) void ConstructFromResourceL(TResourceReader& aReader);
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- public:
- __declspec(dllexport) void UpdateComponentAlignment();
- private:
- void UpdateLabelReserveLengthL(const TDesC* aText);
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- TInt iDummy;
- };
- #line 187
- class CEikTwoPictureCommandButton : public CEikCommandButtonBase
- {
- public:
- enum TLayout
- {
- ETextRightPictureLeft=0x000,
- ETextBottomPictureTop=0x001,
- ETextTopPictureBottom=0x002,
- ETextLeftPictureRight=0x003
- };
- enum TExcess
- {
- EShare =0x0000,
- EToText =0x0010,
- EToPicture =0x0020
- };
- enum TDisplayContent
- {
- ETextOnly =0x0100,
- EPictureOnly =0x0200,
- ETextAndPicture =0x0300
- };
- private:
- enum TPictureButtonType
- {
- EPictureButWithBorders =0x0000,
- EPictureButWithoutBorders =0x1000
- };
- enum TExternalPicture
- {
- EPictureNotOwnedExternally =0x00,
- EPictureOwnedExternally =0x01
- };
- public:
- __declspec(dllexport) CEikTwoPictureCommandButton();
- __declspec(dllexport) ~CEikTwoPictureCommandButton();
- __declspec(dllexport) TBool IsSecondPictureOwnedExternally();
- __declspec(dllexport) CEikImage* Picture() const;
- __declspec(dllexport) void ConstructImagesFromResourceL(TResourceReader& aReader,TWhichComponent aWhich);
- __declspec(dllexport) void SetTextL(const TDesC& aText);
- __declspec(dllexport) void SetTwoPicturesL(const CFbsBitmap* aMain,const CFbsBitmap* aMask=0 ,const CFbsBitmap* aSecondMain=0 , const CFbsBitmap* aSecondMask=0 );
- __declspec(dllexport) void SetSecondPicture(const CFbsBitmap* aSecondMain, const CFbsBitmap* aSecondMask=0 );
- __declspec(dllexport) void SetPictureFromFileL(const TDesC& aFilename,TInt aMain,TInt aMask=-1);
- __declspec(dllexport) void SetSecondPictureFromFileL(const TDesC& aFilename,TInt aMain,TInt aMask=-1);
- __declspec(dllexport) void SetSecondPictureOwnedExternally(TBool aOwnership);
- public:
- __declspec(dllexport) void ConstructFromResourceL(TResourceReader& aReader);
- __declspec(dllexport) void ActivateL();
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- protected:
- __declspec(dllexport) void WriteInternalStateL(RWriteStream& aWriteStream) const;
- private:
- __declspec(dllexport) void Draw(const TRect& ) const;
- __declspec(dllexport) void StateChanged();
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- __declspec(dllexport) void PrepareContext(CWindowGc& aGc) const;
- private:
- void SwapPictures(CEikImage* aImage);
- private:
- const CFbsBitmap* iSecondBitmap;
- const CFbsBitmap* iSecondMaskBitmap;
- TInt iPictureFlags;
- TInt iDummy;
- };
- class CEikInverterCommandButton : public CEikCommandButton
- {
- public:
- __declspec(dllexport) CEikInverterCommandButton();
- __declspec(dllexport) ~CEikInverterCommandButton();
- public:
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- protected:
- __declspec(dllexport) void WriteInternalStateL(RWriteStream& aWriteStream) const;
- private:
- __declspec(dllexport) void PrepareContext(CWindowGc& aGc) const;
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- TInt iFlag;
- TInt iDummy;
- };
- class CEikTextButton : public CEikCommandButtonBase
- {
- public:
- __declspec(dllexport) CEikTextButton();
- __declspec(dllexport) ~CEikTextButton();
- __declspec(dllexport) void SetTextL(const TDesC& aText,TWhichComponent aWhich=EFirst);
- __declspec(dllexport) CEikLabel* Label(TWhichComponent aWhich=EFirst) const;
- public:
- __declspec(dllexport) void ConstructFromResourceL(TResourceReader& aReader);
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- TInt iDummy;
- };
- class CEikBitmapButton : public CEikCommandButtonBase
- {
- public:
- __declspec(dllexport) CEikBitmapButton();
- __declspec(dllexport) ~CEikBitmapButton();
- __declspec(dllexport) void SetPictureL(const CFbsBitmap* aMain,const CFbsBitmap* aMask=0 ,TWhichComponent aWhich=EFirst);
- __declspec(dllexport) void SetPictureFromFileL(const TDesC& aFilename,TInt aMain,TInt aMask=-1,TWhichComponent aWhich=EFirst);
- __declspec(dllexport) CEikImage* Picture(TWhichComponent aWhich=EFirst) const;
- public:
- __declspec(dllexport) void ConstructFromResourceL(TResourceReader& aReader);
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- TInt iDummy;
- };
- #line 18 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikcal.h" /* stack depth 4 */
- class MEikCalendarObserver
- {
- public:
- virtual void GetMinimumAndMaximumAndInitialDatesForCalendarL(TTime& aMinimumDate, TTime& aMaximumDate, TTime& aInitialDate) const=0;
- virtual void SetDateFromCalendarAndDrawNow(const TTime& aDate)=0;
- };
- #line 23 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikmfne.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\AknMfneCommandObserver.h" /* stack depth 4 */
- #line 38
- class MAknMfneCommandObserver
- {
- public:
- enum TMfneCommand
- {
- EMfneIncrementCurrentFieldValue,
- EMfneDecrementCurrentFieldValue
- };
- #line 59
- virtual void HandleMfneCommandL(TInt aCommand) = 0;
- };
- #line 36 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikmfne.h" /* stack depth 3 */
- class CEikonEnv;
- class CTimeEditor;
- class CDateEditor;
- class MAknsControlContext;
- class CEikMfneExtension;
- class CEikMfneField : public CBase
- {
- public:
- enum THighlightType
- {
- EInverseVideo,
- ECursor
- };
- protected:
- __declspec(dllexport) CEikMfneField();
- public:
- void Draw(CWindowGc& aGc, const CFont& aFont, const TPoint& aTopLeft) const;
- TInt WidthInPixels(const CFont& aFont) const;
- TInt DistanceFromStartOfFieldToEndOfTextInPixels(const CFont& aFont) const;
- virtual TInt MaximumWidthInPixels(const CFont& aFont, TBool aShrinkToMinimumSize)=0;
- virtual TCoeInputCapabilities InputCapabilities() const=0;
- __declspec(dllexport) virtual TBool IsEditable() const;
- __declspec(dllexport) virtual TBool IsValid() const;
- __declspec(dllexport) virtual THighlightType HighlightType() const;
- __declspec(dllexport) virtual void HandleKey(const CFont& aFont, const TKeyEvent& aKeyEvent, TBool aInterpretLeftAndRightAsEarEvents, TBool& aDataAltered, TInt& aHighlightIncrement);
- __declspec(dllexport) virtual void HandleDeHighlight(const CFont& aFont, CEikonEnv& aEikonEnv, TBool& aDataAltered, TBool& aError);
- protected:
- __declspec(dllexport) void HandleLeftOrRightArrow(TChar aKey, TBool& aDataAltered, TInt& aHighlightIncrement);
- TInt AdditionalWidthForHighlights(const CFont& aFont) const;
- private:
- virtual const TDesC& Text() const=0;
- protected:
- TInt iMinimumWidthInPixels;
- };
- class CEikMfneSeparator : public CEikMfneField
- {
- private:
- CEikMfneSeparator(HBufC* aText);
- public:
- __declspec(dllexport) virtual ~CEikMfneSeparator();
- __declspec(dllexport) static CEikMfneSeparator* NewL(TResourceReader& aResourceReader);
- __declspec(dllexport) static CEikMfneSeparator* NewL(HBufC* aText);
- __declspec(dllexport) void SetText(HBufC* aText);
- private:
- virtual TInt MaximumWidthInPixels(const CFont& aFont, TBool aShrinkToMinimumSize);
- virtual TCoeInputCapabilities InputCapabilities() const;
- virtual const TDesC& Text() const;
- private:
- HBufC* iText;
- };
- class CEikMfneNumber : public CEikMfneField
- {
- public:
- enum
- {
- EFillWithLeadingZeros =0x1,
- EPreserveOldWidthBeforeEditing =0x2,
- ERepresentsYear =0x4,
- EPublicallySettableFlags =EFillWithLeadingZeros|EPreserveOldWidthBeforeEditing|ERepresentsYear
- };
- private:
- enum
- {
- EIsBeingEditedWithCursor =0x8,
- EIsUninitialised =0x10
- };
- private:
- CEikMfneNumber(TInt aMinimumValue, TInt aMaximumValue, TUint32 aFlags);
- void ConstructL();
- public:
- __declspec(dllexport) virtual ~CEikMfneNumber();
- __declspec(dllexport) static CEikMfneNumber* NewL(const CFont& aFont, TResourceReader& aResourceReader);
- __declspec(dllexport) static CEikMfneNumber* NewL(const CFont& aFont, TInt aMinimumValue, TInt aMaximumValue, TInt aInitialValue, TUint32 aFlags);
- __declspec(dllexport) void SetMinimumAndMaximum(TInt aMinimumValue, TInt aMaximumValue, const CFont& aFont);
- __declspec(dllexport) void GetMinimumAndMaximum(TInt& aMinimumValue, TInt& aMaximumValue) const;
- __declspec(dllexport) void SetValue(TInt aValue, const CFont& aFont);
- __declspec(dllexport) TInt Value() const;
- __declspec(dllexport) virtual TBool IsValid() const;
- __declspec(dllexport) void SetUninitialised(TBool aUninitialised);
- __declspec(dllexport) TBool IsUninitialised() const;
- public:
- void SetDigitType(TDigitType aDigitType, const CFont& aFont);
- TDigitType DigitType() const;
- void RefreshDigitType(const CFont& aFont);
- public:
- TBool IsTextNull() const;
- private:
- virtual TInt MaximumWidthInPixels(const CFont& aFont, TBool aShrinkToMinimumSize);
- virtual TCoeInputCapabilities InputCapabilities() const;
- virtual TBool IsEditable() const;
- virtual THighlightType HighlightType() const;
- virtual void HandleKey(const CFont& aFont, const TKeyEvent& aKeyEvent, TBool aInterpretLeftAndRightAsEarEvents, TBool& aDataAltered, TInt& aHighlightIncrement);
- virtual void HandleDeHighlight(const CFont& aFont, CEikonEnv& aEikonEnv, TBool& aDataAltered, TBool& aError);
- virtual const TDesC& Text() const;
- private:
- TInt MaximumNumberOfDigits() const;
- TInt NumberOfDigits() const;
- void SetTextToValue(TInt aValue, const CFont& aFont);
- TInt ValueFromText() const;
- TBool ConvertsIntoValidValue(TInt& aValue) const;
- private:
- TChar NormalizeDigit(TChar aChar);
- TText ZeroCharacter() const;
- TText NegativeCharacter() const;
- private:
- TInt iMinimumValue;
- TInt iMaximumValue;
- TInt iMaxDigits;
- TUint32 iFlags;
- HBufC* iText;
- TChar iNudgeCharMinus;
- TChar iNudgeCharPlus;
- TInt iMaxDigitsMinimumValue;
- TInt iMaxDigitsMaximumValue;
- TDigitType iDigitType;
- };
- class CEikMfneSymbol : public CEikMfneField
- {
- public:
- class CItem : public CBase
- {
- private:
- CItem(TInt aId, TChar aKeyToMatch, HBufC* aText);
- public:
- __declspec(dllexport) virtual ~CItem();
- __declspec(dllexport) static CItem* NewL(TResourceReader& aResourceReader);
- __declspec(dllexport) static CItem* NewL(TInt aId, TChar aKeyToMatch, HBufC* aText);
- __declspec(dllexport) void SetText(HBufC* aText);
- private:
- friend class CEikMfneSymbol;
- private:
- TInt iId;
- TCharF iKeyToMatch;
- HBufC* iText;
- };
- private:
- CEikMfneSymbol(TInt aNumSymbolicItems);
- public:
- __declspec(dllexport) virtual ~CEikMfneSymbol();
- __declspec(dllexport) static CEikMfneSymbol* NewL(TResourceReader& aResourceReader);
- __declspec(dllexport) static CEikMfneSymbol* NewL(TInt aNumSymbolicItems);
- __declspec(dllexport) void AddSymbolicItem(CItem* aSymbolicItem, TBool aMakeCurrent);
- __declspec(dllexport) void SetCurrentSymbolicItemToId(TInt aId);
- __declspec(dllexport) TInt IdOfCurrentSymbolicItem() const;
- __declspec(dllexport) void SetUninitialised(TBool aUninitialised);
- __declspec(dllexport) TBool IsUninitialised() const;
- private:
- virtual TInt MaximumWidthInPixels(const CFont& aFont, TBool aShrinkToMinimumSize);
- virtual TCoeInputCapabilities InputCapabilities() const;
- virtual TBool IsEditable() const;
- virtual THighlightType HighlightType() const;
- virtual void HandleKey(const CFont& aFont, const TKeyEvent& aKeyEvent, TBool aInterpretLeftAndRightAsEarEvents, TBool& aDataAltered, TInt& aHighlightIncrement);
- virtual void HandleDeHighlight(const CFont& aFont, CEikonEnv& aEikonEnv, TBool& aDataAltered, TBool& aError);
- virtual const TDesC& Text() const;
- private:
- TInt CurrentSymbolicItem() const;
- void SetCurrentSymbolicItem(TInt aCurrentSymbolicItem);
- private:
- TInt iNumSymbolicItems;
- TInt iCurrentSymbolicItem;
- CItem** iSymbolicItems;
- };
- class CEikMfne : public CEikBorderedControl, public MAknMfneCommandObserver
- {
- public:
- __declspec(dllexport) CEikMfne();
- __declspec(dllexport) virtual ~CEikMfne();
- __declspec(dllexport) void CreateFieldArrayL(TInt aNumFields);
- __declspec(dllexport) void AddField(CEikMfneField* aField);
- __declspec(dllexport) TMargins BorderMargins() const;
- __declspec(dllexport) void DrawNowAndLeaveWithTimeDateFormatInfoMsgL(TInt aResourceId, const TTime& aTimeDate) const;
- __declspec(dllexport) CEikMfneField* Field(TInt aField) const;
- public:
- __declspec(dllexport) static TTime ReadTime(TResourceReader& aResourceReader);
- __declspec(dllexport) static TTime ReadDate(TResourceReader& aResourceReader);
- __declspec(dllexport) static TTime ReadTimeAndDate(TResourceReader& aResourceReader);
- __declspec(dllexport) static TTimeIntervalSeconds ReadDuration(TResourceReader& aResourceReader);
- __declspec(dllexport) static TTimeIntervalSeconds ReadTimeOffset(TResourceReader& aResourceReader);
- __declspec(dllexport) static TTimeIntervalSeconds Convert(const TTime& aTime);
- __declspec(dllexport) static TTime Convert(const TTimeIntervalSeconds& aTimeIntervalSeconds);
- inline TInt CurrentField() const;
- inline TInt NumFields() const;
- public:
- __declspec(dllexport) void SetMfneAlignment(TInt aAlignment);
- __declspec(dllexport) void SetUpAndDownKeysConsumed(TBool aConsume);
- void HighlightField( TInt aFieldPosition );
- __declspec(dllexport) const CFont* Font() const;
- __declspec(dllexport) void SetFont(const CFont* aFont);
- #line 278
- __declspec(dllexport) void SetSkinBackgroundControlContextL( MAknsControlContext* aControlContext );
- #line 288
- __declspec(dllexport) void HandleMfneCommandL(TInt aCommand);
- public:
- __declspec(dllexport) virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
- __declspec(dllexport) virtual void PrepareForFocusLossL();
- __declspec(dllexport) virtual TSize MinimumSize();
- __declspec(dllexport) virtual void GetColorUseListL(CArrayFix<TCoeColorUse>& aColorUseList) const;
- __declspec(dllexport) virtual void HandleResourceChange(TInt aType);
- __declspec(dllexport) virtual TCoeInputCapabilities InputCapabilities() const;
- __declspec(dllexport) virtual void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- public:
- __declspec(dllexport) void SetSkinTextColorL(TInt aAknSkinIDForTextColor, TInt aAknSkinIDForBgColor=KErrNotFound);
- protected:
- __declspec(dllexport) virtual void FocusChanged(TDrawNow aDrawNow);
- __declspec(dllexport) void WriteInternalStateL(RWriteStream& aWriteStream) const;
- __declspec(dllexport) void HandleInteraction(TBool aHandleDeHighlight, TInt aNewCurrentField, TInt aOldWidthInPixelsOfOldCurrentField,
- CEikMfneField::THighlightType aOldHighlightTypeOfOldCurrentField, TBool& aDataAltered, TBool& aError);
- __declspec(dllexport) virtual void FieldIsAboutToBeDeHighlighted(CEikMfneField* aField, TBool& aDrawAllFields);
- __declspec(dllexport) TSize MfneSize() const;
- __declspec(dllexport) TSize MfneSize(TBool aShrinkToMinimumSize);
- public:
- static void InvalidFieldAlert();
- static void LeaveWithAlert(TInt aResourceId);
- private:
- __declspec(dllexport) virtual void Draw(const TRect& aRect) const;
- __declspec(dllexport) virtual void CreatePopoutIfRequiredL();
- void DrawRange(CWindowGc& aGc, TInt aFirstField, TInt aLastField) const;
- CWindowGc& PreparedGc() const;
- void SetGcToNormalVideo(CWindowGc& aGc) const;
- void SetGcToInverseVideo(CWindowGc& aGc) const;
- void SetGcToDimmedVideo(CWindowGc& aGc) const;
- void DrawCursor();
- void HideCursor();
- __declspec(dllexport) void Reserved_2();
- __declspec(dllexport) virtual void CEikMfne_Reserved();
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- enum {ENullIndex=KMaxTInt};
- TBool ConsumesUpAndDownKeys() const;
- #line 364
- TBool SkinningBackground() const;
- void EvaluateSkinningBackground();
- #line 384
- MAknsControlContext* SkinBackgroundControlContext() const;
- void CreateExtensionIfRequiredL();
- private:
- TInt iNumFields;
- TInt iCurrentField;
- CEikMfneField** iFields;
- CEikMfneExtension* iExtension;
- const CFont* iFont;
- TInt iAlignment;
- TBitFlags iFlags;
- };
- inline TInt CEikMfne::CurrentField() const
- {
- return(iCurrentField);
- }
- inline TInt CEikMfne::NumFields() const
- {
- return(iNumFields);
- }
- class CEikNumberEditor : public CEikMfne
- {
- public:
- __declspec(dllexport) CEikNumberEditor();
- __declspec(dllexport) void ConstructL(TInt aMinimumValue, TInt aMaximumValue, TInt aInitialValue);
- __declspec(dllexport) void SetMinimumAndMaximum(TInt aMinimumValue, TInt aMaximumValue);
- __declspec(dllexport) void GetMinimumAndMaximum(TInt& aMinimumValue, TInt& aMaximumValue) const;
- __declspec(dllexport) void SetNumber(TInt aNumber);
- __declspec(dllexport) TInt Number() const;
- __declspec(dllexport) virtual void ConstructFromResourceL(TResourceReader& aResourceReader);
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- private:
- __declspec(dllexport) virtual void CEikMfne_Reserved();
- private:
- void RefreshFromLocale();
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- CEikMfneNumber* iNumber;
- TInt iSpare;
- };
- struct SEikRange
- {
- TInt iLowerLimit;
- TInt iUpperLimit;
- };
- class CEikRangeEditor : public CEikMfne
- {
- public:
- __declspec(dllexport) CEikRangeEditor();
- __declspec(dllexport) void ConstructL(TInt aMinimumValue, TInt aMaximumValue, const SEikRange& aInitialRange, HBufC* aSeparatorText);
- __declspec(dllexport) void SetMinimumAndMaximum(TInt aMinimumValue, TInt aMaximumValue);
- __declspec(dllexport) void GetMinimumAndMaximum(TInt& aMinimumValue, TInt& aMaximumValue) const;
- __declspec(dllexport) void SetRange(const SEikRange& aRange);
- __declspec(dllexport) SEikRange Range() const;
- __declspec(dllexport) virtual void ConstructFromResourceL(TResourceReader& aResourceReader);
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- private:
- virtual void FieldIsAboutToBeDeHighlighted(CEikMfneField* aField, TBool& aDrawAllFields);
- __declspec(dllexport) virtual void CEikMfne_Reserved();
- void RefreshFromLocale();
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- CEikMfneNumber* iLowerLimit;
- CEikMfneNumber* iUpperLimit;
- TInt iSpare;
- };
- class CEikTTimeEditor : public CEikMfne
- {
- public:
- virtual void SetMinimumAndMaximum(const TTime& aMinimumTime, const TTime& aMaximumTime)=0;
- virtual void GetMinimumAndMaximum(TTime& aMinimumTime, TTime& aMaximum) const=0;
- virtual void SetTTime(const TTime& aTime)=0;
- virtual TTime GetTTime() const=0;
- };
- class CEikTimeEditor : public CEikTTimeEditor
- {
- public:
- __declspec(dllexport) CEikTimeEditor();
- __declspec(dllexport) virtual ~CEikTimeEditor();
- __declspec(dllexport) void ConstructL(const TTime& aMinimumTime, const TTime& aMaximumTime, const TTime& aInitialTime, TUint32 aFlags);
- __declspec(dllexport) void SetTime(const TTime& aTime);
- __declspec(dllexport) TTime Time() const;
- __declspec(dllexport) void SetUninitialised(TBool aUninitialised);
- __declspec(dllexport) TBool IsUninitialised() const;
- __declspec(dllexport) virtual void SetMinimumAndMaximum(const TTime& aMinimumTime, const TTime& aMaximumTime);
- __declspec(dllexport) virtual void GetMinimumAndMaximum(TTime& aMinimumTime, TTime& aMaximumTime) const;
- __declspec(dllexport) virtual void ConstructFromResourceL(TResourceReader& aResourceReader);
- __declspec(dllexport) virtual void PrepareForFocusLossL();
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- private:
- virtual void SetTTime(const TTime& aTime);
- virtual TTime GetTTime() const;
- private:
- void DoSetMinimumAndMaximum(const TTime& aMinimumTime, const TTime& aMaximumTime);
- __declspec(dllexport) virtual void CEikMfne_Reserved();
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- CTimeEditor* iTimeEditor;
- TTime iMinimumTime;
- TTime iMaximumTime;
- TInt iSpare;
- };
- #line 542
- class CEikDateEditor : public CEikTTimeEditor, private MEikCalendarObserver
- {
- public:
- __declspec(dllexport) CEikDateEditor();
- __declspec(dllexport) virtual ~CEikDateEditor();
- __declspec(dllexport) void ConstructL(const TTime& aMinimumDate, const TTime& aMaximumDate, const TTime& aInitialDate, TBool aWithoutPopoutCalendar);
- __declspec(dllexport) void SetDate(const TTime& aDate);
- __declspec(dllexport) TTime Date() const;
- __declspec(dllexport) void SetUninitialised(TBool aUninitialised);
- __declspec(dllexport) TBool IsUninitialised() const;
- __declspec(dllexport) virtual void SetMinimumAndMaximum(const TTime& aMinimumDate, const TTime& aMaximumDate);
- __declspec(dllexport) virtual void GetMinimumAndMaximum(TTime& aMinimumDate, TTime& aMaximumDate) const;
- __declspec(dllexport) virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
- __declspec(dllexport) virtual void ConstructFromResourceL(TResourceReader& aResourceReader);
- __declspec(dllexport) virtual void PrepareForFocusLossL();
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- private:
- virtual void CreatePopoutIfRequiredL();
- virtual void SetTTime(const TTime& aDate);
- virtual TTime GetTTime() const;
- private:
- virtual void GetMinimumAndMaximumAndInitialDatesForCalendarL(TTime& aMinimumDate, TTime& aMaximumDate, TTime& aInitialDate) const;
- virtual void SetDateFromCalendarAndDrawNow(const TTime& aDate);
- void DoSetMinimumAndMaximum(const TTime& aMinimumDate, const TTime& aMaximumDate);
- __declspec(dllexport) virtual void CEikMfne_Reserved();
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- CDateEditor* iDateEditor;
- TTime iMinimumDate;
- TTime iMaximumDate;
- TInt iSpare;
- };
- class CEikTimeAndDateEditor : public CEikTTimeEditor, private MEikCalendarObserver
- {
- public:
- __declspec(dllexport) CEikTimeAndDateEditor();
- __declspec(dllexport) virtual ~CEikTimeAndDateEditor();
- __declspec(dllexport) void ConstructL(const TTime& aMinimumTimeAndDate, const TTime& aMaximumTimeAndDate, const TTime& aInitialTimeAndDate, TUint32 aFlags, HBufC* aInterveningText=0 );
- __declspec(dllexport) void SetTimeAndDate(const TTime& aTimeAndDate);
- __declspec(dllexport) TTime TimeAndDate() const;
- __declspec(dllexport) void SetUninitialised(TBool aUninitialised);
- __declspec(dllexport) TBool IsUninitialised() const;
- __declspec(dllexport) virtual void SetMinimumAndMaximum(const TTime& aMinimumTimeAndDate, const TTime& aMaximumTimeAndDate);
- __declspec(dllexport) virtual void GetMinimumAndMaximum(TTime& aMinimumTimeAndDate, TTime& aMaximumTimeAndDate) const;
- __declspec(dllexport) virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
- __declspec(dllexport) virtual void ConstructFromResourceL(TResourceReader& aResourceReader);
- __declspec(dllexport) virtual void PrepareForFocusLossL();
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- private:
- virtual void CreatePopoutIfRequiredL();
- __declspec(dllexport) virtual void CEikMfne_Reserved();
- virtual void SetTTime(const TTime& aTimeAndDate);
- virtual TTime GetTTime() const;
- private:
- virtual void GetMinimumAndMaximumAndInitialDatesForCalendarL(TTime& aMinimumDate, TTime& aMaximumDate, TTime& aInitialDate) const;
- virtual void SetDateFromCalendarAndDrawNow(const TTime& aDate);
- void DoSetMinimumAndMaximum(const TTime& aMinimumTimeAndDate, const TTime& aMaximumTimeAndDate);
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- CTimeEditor* iTimeEditor;
- CDateEditor* iDateEditor;
- TTime iMinimumTimeAndDate;
- TTime iMaximumTimeAndDate;
- TInt iSpare;
- };
- class CEikDurationEditor : public CEikMfne
- {
- public:
- __declspec(dllexport) CEikDurationEditor();
- __declspec(dllexport) virtual ~CEikDurationEditor();
- __declspec(dllexport) void ConstructL(const TTimeIntervalSeconds& aMinimumDuration, const TTimeIntervalSeconds& aMaximumDuration, const TTimeIntervalSeconds& aInitialDuration, TUint32 aFlags);
- __declspec(dllexport) void SetMinimumAndMaximum(const TTimeIntervalSeconds& aMinimumDuration, const TTimeIntervalSeconds& aMaximumDuration);
- __declspec(dllexport) void GetMinimumAndMaximum(TTimeIntervalSeconds& aMinimumDuration, TTimeIntervalSeconds& aMaximumDuration) const;
- __declspec(dllexport) void SetDuration(const TTimeIntervalSeconds& aDuration);
- __declspec(dllexport) TTimeIntervalSeconds Duration() const;
- __declspec(dllexport) void ConstructFromResourceL(TResourceReader& aResourceReader);
- __declspec(dllexport) void PrepareForFocusLossL();
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- private:
- void DoSetMinimumAndMaximum(const TTimeIntervalSeconds& aMinimumDuration, const TTimeIntervalSeconds& aMaximumDuration);
- __declspec(dllexport) virtual void CEikMfne_Reserved();
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- CTimeEditor* iTimeEditor;
- TTimeIntervalSeconds iMinimumDuration;
- TTimeIntervalSeconds iMaximumDuration;
- TInt iSpare;
- };
- class CEikTimeOffsetEditor : public CEikMfne
- {
- public:
- __declspec(dllexport) CEikTimeOffsetEditor();
- __declspec(dllexport) virtual ~CEikTimeOffsetEditor();
- __declspec(dllexport) void ConstructL(const TTimeIntervalSeconds& aMinimumTimeOffset, const TTimeIntervalSeconds& aMaximumTimeOffset, const TTimeIntervalSeconds& aInitialTimeOffset, TUint32 aFlags);
- __declspec(dllexport) void SetMinimumAndMaximum(const TTimeIntervalSeconds& aMinimumTimeOffset, const TTimeIntervalSeconds& aMaximumTimeOffset);
- __declspec(dllexport) void GetMinimumAndMaximum(TTimeIntervalSeconds& aMinimumTimeOffset, TTimeIntervalSeconds& aMaximumTimeOffset) const;
- __declspec(dllexport) void SetTimeOffset(const TTimeIntervalSeconds& aTimeOffset);
- __declspec(dllexport) TTimeIntervalSeconds TimeOffset() const;
- __declspec(dllexport) void ConstructFromResourceL(TResourceReader& aResourceReader);
- __declspec(dllexport) void PrepareForFocusLossL();
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- private:
- void DoSetMinimumAndMaximum(const TTimeIntervalSeconds& aMinimumTimeOffset, const TTimeIntervalSeconds& aMaximumTimeOffset);
- __declspec(dllexport) virtual void CEikMfne_Reserved();
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- CTimeEditor* iTimeEditor;
- TTimeIntervalSeconds iMinimumTimeOffset;
- TTimeIntervalSeconds iMaximumTimeOffset;
- CEikMfneSymbol* iSign;
- TInt iSpare;
- };
- enum
- {
- EEikOrientationNorthSouth =0x1000,
- EEikOrientationWestEast =0x2000,
- EEikOrientationMask=EEikOrientationNorthSouth|EEikOrientationWestEast
- };
- enum
- {
- EEikDirectionNegative,
- EEikDirectionPositive,
- EEikDirectionMask=EEikDirectionNegative|EEikDirectionPositive
- };
- enum TEikCompass
- {
- EEikCompassNorth=EEikOrientationNorthSouth|EEikDirectionNegative,
- EEikCompassSouth=EEikOrientationNorthSouth|EEikDirectionPositive,
- EEikCompassEast=EEikOrientationWestEast|EEikDirectionNegative,
- EEikCompassWest=EEikOrientationWestEast|EEikDirectionPositive
- };
- struct SEikDegreesMinutesDirection
- {
- TInt iDegrees;
- TInt iMinutes;
- TInt iSeconds;
- TEikCompass iDirection;
- };
- #line 31 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknquerycontrol.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknnumseced.h" /* stack depth 3 */
- #line 40
- class CAknNumericSecretEditor : public CEikSecretEditor
- {
- public:
- __declspec(dllexport) CAknNumericSecretEditor();
- ~CAknNumericSecretEditor();
- public:
- __declspec(dllexport) virtual TCoeInputCapabilities InputCapabilities() const;
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- protected:
- __declspec(dllexport) virtual void AppendCharacterL( TInt aKeyCode );
- __declspec(dllexport) virtual MCoeFepAwareTextEditor_Extension1::CState* CreateFepStateL();
- private:
- __declspec(dllexport) void Reserved_1();
- __declspec(dllexport) void Reserved_2();
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- __declspec(dllexport) void MCoeFepAwareTextEditor_Reserved_2();
- private:
- __declspec(dllexport) virtual void MCoeFepAwareTextEditor_Extension1_Reserved_2();
- __declspec(dllexport) virtual void MCoeFepAwareTextEditor_Extension1_Reserved_3();
- __declspec(dllexport) virtual void MCoeFepAwareTextEditor_Extension1_Reserved_4();
- private:
- TInt iSpare;
- };
- #line 32 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknquerycontrol.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknnumedwin.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknnumed.h" /* stack depth 4 */
- #line 35
- class CAknNumericEdwin : public CEikEdwin
- {
- public:
- __declspec(dllexport) virtual ~CAknNumericEdwin();
- enum TValidationStatus
- {
- EValueValid = KErrNone,
- EValueTooSmall,
- EValueTooLarge,
- EValueNotParsed,
- EEmpty
- };
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- protected:
- #line 69
- __declspec(dllexport) void MapKeyEvent(
- TKeyEvent& aKeyEvent,
- TEventCode& ,
- TDigitType aDigitType) const;
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- __declspec(dllexport) virtual void Reserved_3();
- private:
- TInt iSpare;
- };
- #line 29 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknnumedwin.h" /* stack depth 3 */
- const static TLitC<sizeof(L"%d")/2> KAknIntegerFormat={sizeof(L"%d")/2-1,L"%d"} ;
- #line 44
- class CAknIntegerEdwin : public CAknNumericEdwin
- {
- public:
- __declspec(dllexport) static CAknIntegerEdwin* NewL(TInt aMin,
- TInt aMax,
- TInt aMaxChars);
- #line 65
- __declspec(dllexport) virtual void ConstructFromResourceL(TResourceReader& aReader);
- __declspec(dllexport) void ConstructL( TInt aMin, TInt aMax, TInt aMaxChars );
- #line 82
- __declspec(dllexport) void SetValueL(TInt aValue);
- __declspec(dllexport) void SetUnsetValue( TInt aUnsetValue);
- #line 99
- __declspec(dllexport) TValidationStatus GetTextAsInteger( TInt& aValue );
- __declspec(dllexport) void SetMinimumIntegerValue( TInt aMinimumValue );
- __declspec(dllexport) void SetMaximumIntegerValue( TInt aMaximumValue );
- __declspec(dllexport) void PrepareForFocusLossL();
- __declspec(dllexport) void HandleResourceChange(TInt aType);
- #line 136
- __declspec(dllexport) TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,
- TEventCode aType);
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- __declspec(dllexport) TBool CheckNumber();
- private:
- void CommonConstructL(TInt aMin,
- TInt aMax,
- TInt aMaxChars,
- TInt aFlags,
- TInt aUnset);
- void RefreshFromLocale();
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- __declspec(dllexport) void Reserved_3();
- private:
- TInt iMinimumValue;
- TInt iMaximumValue;
- TInt iUnsetValue;
- TAny* iUnsetText;
- TDigitType iDigitType;
- TInt iSpare_Integer_2;
- };
- #line 33 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknquerycontrol.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikfpne.h" /* stack depth 3 */
- #line 31
- class CEikFloatingPointEditor : public CAknNumericEdwin
- {
- public:
- __declspec(dllexport) CEikFloatingPointEditor();
- __declspec(dllexport) void ConstructL(const TReal& aMin,const TReal& aMax,TInt aTextLimit);
- __declspec(dllexport) TReal Value() const;
- __declspec(dllexport) TValidationStatus GetValueAsReal( TReal& aValue );
- __declspec(dllexport) void SetValueL(const TReal* aValue);
- __declspec(dllexport) void SetMinMax(TReal aMin,TReal aMax);
- __declspec(dllexport) void GetMinMax(TReal& aMin,TReal& aMax) const;
- public:
- __declspec(dllexport) virtual void ConstructFromResourceL(TResourceReader& aReader);
- __declspec(dllexport) virtual void PrepareForFocusLossL();
- __declspec(dllexport) virtual TCoeInputCapabilities InputCapabilities() const;
- __declspec(dllexport) virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
- __declspec(dllexport) virtual void HandleResourceChange(TInt aType);
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- __declspec(dllexport) void Reserved_3();
- private:
- TReal iValue;
- TReal iMin;
- TReal iMax;
- TInt iSpare;
- };
- #line 142
- class CEikFixedPointEditor : public CAknNumericEdwin
- {
- public:
- __declspec(dllexport) CEikFixedPointEditor();
- __declspec(dllexport) void ConstructL(TInt aMin,TInt aMax);
- #line 162
- __declspec(dllexport) TInt Value() const;
- __declspec(dllexport) TValidationStatus GetValueAsInteger( TInt& aValue );
- __declspec(dllexport) void SetValueL(const TInt* aValue);
- __declspec(dllexport) void SetMinMax(TInt aMin, TInt aMax);
- __declspec(dllexport) void GetMinMax(TInt& aMin, TInt& aMax) const;
- #line 197
- __declspec(dllexport) void SetDecimalPlaces(TInt aDecimalPlaces);
- #line 206
- __declspec(dllexport) TInt DecimalPlaces() const;
- public:
- __declspec(dllexport) virtual void ConstructFromResourceL(TResourceReader& aReader);
- __declspec(dllexport) virtual void PrepareForFocusLossL();
- __declspec(dllexport) virtual TCoeInputCapabilities InputCapabilities() const;
- __declspec(dllexport) virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
- __declspec(dllexport) virtual void HandleResourceChange(TInt aType);
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- private:
- TInt RequiredNumberOfCharacters() const;
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- __declspec(dllexport) void Reserved_3();
- private:
- TInt iValue;
- TInt iMin;
- TInt iMax;
- TInt iDecimalPlaces;
- TInt iSpare;
- };
- #line 34 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknquerycontrol.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknPanic.h" /* stack depth 3 */
- #line 30
- enum TAknPanic
- {
- EAknPanicFormattedCellListInvalidBitmapIndex,
- EAknPanicNoSuchControlInStack,
- EAknPanicListboxUndefined,
- EAknPanicListboxSizeIsNotAccordingToLAFSpec,
- EAknPanicListboxShortcutValueNotHandled,
- EAknPanicListboxShortcutInvalidValue,
- EAknPanicOutOfRange,
- EAknPanicListboxLayoutProblem,
- EAknPanicLAF,
- EAknPanicLayoutResourceProblem,
- EAknPopupCorrupt,
- EAknPanicNullPointer,
- EAknPanicLayoutMismatchBetweenMarginsAndParentRect,
- EAknPanicLayoutTextResourceProblem,
- EAknPanicLayoutRectResourceProblem,
- EAknPanicLayoutEdwinResourceProblem,
- EAknPanicLayoutMfneResourceProblem,
- EAknPanicLayoutControlResourceProblem,
- EAknPanicLayoutIncorrectEdwinSize,
- EAknPanicLayoutControlSetRectChangedControlSize,
- EAknPanicNoAnimationData,
- EAknPanicUnknownAnimationType,
- EAknPanicNoUserAnimation,
- EAknPanicAnimationCorrupt,
- EAknPanicDCADecoratorIndexOutOfRange,
- EAknPanicPopupFieldListInvalidDecorator,
- EAknPanicPopupFieldInvalidValue,
- EAknPanicPopupFieldUninitialisedMember,
- EAknPanicPopupFieldEditComboInsufficientSize,
- EAknPanicQueryTimeArrayTimeFormatLeave,
- EAknPanicLayoutTextNotCalled,
- EAknPanicLayoutRectNotCalled,
- EAknStatusPaneUidIndic,
- EAknPanicLayoutDoesNotExists,
- EAknPanicListBoxLayoutDecoratorMemoryAllocation,
- EAknPanicPopupFieldUndefinedMode,
- EAknPanicPopupFieldWrongMode,
- EAknPanicPopupFieldSelectionListDoesntExist,
- EAknPanicPopupFieldSelectionListAlreadyExists,
- EAknPanicPopupFieldListNotImplemented,
- EAknPanicPopupFieldArrayIsEmpty,
- EAknPanicLayoutPopupFieldResourceProblem,
- EAknPanicInvalidResourceData,
- EAknPanicListBoxNotSupportedByListQuery,
- EAknPanicQueryDateArrayTimeFormatLeave,
- EAknPanicPopupFieldCBADoesntExist,
- EAknPanicPopupSettingListMenuListDoesntExist,
- EAknPanicPopupSettingListMenuListAlreadyExists,
- EAknPanicPopupSettingListListNotImplemented,
- EAknPanicLayoutPopupSettingListResourceProblem,
- EAknPanicPopupSettingListInvalidValue,
- EAknPanicPopupSettingListUninitialisedMember,
- EAknPanicOverflow,
- EAknPanicKeyLockObserverAlreadyExists,
- EAknPanicKeyLockObserverNotFound,
- EAknPanicQueryValueInvalidMode,
- EAknPanicNotSupported,
- EAknPanicWrongListBoxTypeUsedInPopupWindow,
- EAknPanicInvalidValue,
- EAknPanicObjectNotFullyConstructed,
- EAknPanicSelfCheckFailure,
- EAknPanicLayoutMissing_AknLayout,
- EAknPanicLayoutMissing_ApacLayout,
- EAknPanicInconsistentDescriptors,
- EAknPanicListBoxItemDrawerNotCreated,
- EAknPanicLayoutMissing_CdlFont,
- EAknPanicFontProvisionFailure,
- EAknPanicNotifierPluginCreationFailure,
- EAknPanicPopupFieldNoFieldRectSet,
- EAknPanicWindowGroupNotInTaskList,
- EAknPanicInconsistentUnits,
- EAknPanicRadioButtonSettingPageListDoesntExist,
- EAknPanicLayoutConfigBadScreenModeIndex,
- EAknPanicLayoutConfigBadHardwareStateIndex,
- EAknPanicSgccLayoutConfigNull,
- EAknPanicLayoutConfigUnpackFail
- };
- extern void Panic(TAknPanic aPanic);
- #line 40 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknquerycontrol.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknipfed.h" /* stack depth 3 */
- #line 29
- class TInetAddr;
- #line 38
- class CAknIpFieldEditor : public CEikMfne
- {
- public:
- __declspec(dllexport) CAknIpFieldEditor();
- #line 58
- void ConstructL(TInetAddr& aMinimumAddress,
- TInetAddr& aMaximumAddress,
- TInetAddr& aInitialAddress,
- const TInt aFlags=0);
- #line 74
- __declspec(dllexport) static CAknIpFieldEditor* NewL(TInetAddr& aMinimumAddress,
- TInetAddr& aMaximumAddress,
- TInetAddr& aInitialAddress);
- __declspec(dllexport) static CAknIpFieldEditor* NewL();
- public:
- __declspec(dllexport) void SetAddress(const TInetAddr& aAddress);
- __declspec(dllexport) TInetAddr Address() const;
- #line 109
- __declspec(dllexport) virtual void SetMinimumAndMaximum(
- const TInetAddr& aMinimumAddress,
- const TInetAddr& aMaximumAddress);
- #line 120
- __declspec(dllexport) virtual void GetMinimumAndMaximum(
- TInetAddr& aMinimumAddress,
- TInetAddr& aMaximumAddress) const;
- __declspec(dllexport) TInetAddr ReadIPAddress(TResourceReader& aResourceReader);
- public:
- #line 141
- __declspec(dllexport) void ConstructFromResourceL(TResourceReader& aResourceReader);
- #line 151
- __declspec(dllexport) TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,
- TEventCode aType);
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- void SplitAddressIntoFields(
- const TInetAddr& aAddress,
- TUint8 &aFieldA,
- TUint8 &aFieldB,
- TUint8 &aFieldC,
- TUint8 &aFieldD) const;
- __declspec(dllexport) virtual void CEikMfne_Reserved();
- private:
- TInt iSpare;
- TInt iSpare2;
- };
- #line 42 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknquerycontrol.h" /* stack depth 2 */
- class CAknQueryControl;
- class TAknQueryEcsObserver;
- class CAknEcsDetector;
- class CAknBitmapAnimation;
- class CAknTextControl;
- class CAknQueryEditIndicator;
- class MLAFIndex;
- class MAknEditingStateIndicator;
- class TInetAddr;
- class CAknQueryExtension;
- class TAknWindowLineLayout;
- class CAknButton;
- class MAknQueryControlObserver
- {
- public:
- enum TQueryControlEvent
- {
- EQueryControltSizeChanging,
- EQueryControlEditorStateChanging,
- EEmergencyCallAttempted
- };
- enum TQueryValidationStatus
- {
- EEditorValueValid = KErrNone,
- EEditorValueTooSmall,
- EEditorValueTooLarge,
- EEditorValueNotParsed,
- EEditorEmpty
- };
- public:
- virtual TBool HandleQueryEditorSizeEventL(CAknQueryControl* aQueryControl, TQueryControlEvent aEventType)=0;
- virtual TBool HandleQueryEditorStateEventL(CAknQueryControl* aQueryControl, TQueryControlEvent aEventType, TQueryValidationStatus aStatus)=0;
- };
- #line 107
- class CAknQueryControl : public CAknControl , public MEikEdwinObserver , public MEikEdwinSizeObserver , public MCoeControlObserver
- {
- public:
- enum TQueryControlFlagBitIndices
- {
- EEmergencyCallsEnabledByAPI,
- EEmergencyCallsDisabledByAPI,
- EPredictiveTextEntryPermitted,
- EEditorIndicatorOff
- };
- enum TLayoutMethod
- {
- EConfQueryLayoutM,
- EDataQueryLayoutM,
- ECodeQueryLayoutM,
- ETimeQueryLayoutM,
- EDateQueryLayoutM,
- ECombinedCodeDataQueryLayoutM
- };
- public:
- __declspec(dllexport) CAknQueryControl();
- __declspec(dllexport) virtual ~CAknQueryControl();
- __declspec(dllexport) void ConstructFromResourceL(TResourceReader& aRes);
- public:
- __declspec(dllexport) void SetQueryControlObserver(MAknQueryControlObserver* aQueryControlObserver);
- __declspec(dllexport) virtual void ReadPromptL(TResourceReader& aRes);
- __declspec(dllexport) virtual void SetPromptL(const TDesC& aDesC);
- __declspec(dllexport) void GetText(TDes& aDes) const;
- __declspec(dllexport) TTime GetTime() const;
- __declspec(dllexport) TInt GetNumber() const;
- __declspec(dllexport) TReal GetFloatingPointNumberL() const;
- __declspec(dllexport) TTimeIntervalSeconds GetDuration() const;
- __declspec(dllexport) void SetTextL(const TDesC& aDesC);
- __declspec(dllexport) void SetTime(TTime& aTime);
- __declspec(dllexport) void SetDuration(TTimeIntervalSeconds& aDuration);
- __declspec(dllexport) void SetNumberL(TInt aNumber);
- __declspec(dllexport) void SetFloatingPointNumberL(const TReal* aNumber);
- __declspec(dllexport) void SetTextEntryLength(TInt aLength);
- __declspec(dllexport) TInt GetTextEntryLength() const;
- __declspec(dllexport) void SetMinimumAndMaximum(const TTime& aMinimum, const TTime& aMaximum);
- __declspec(dllexport) void SetMinimumAndMaximum(const TTimeIntervalSeconds& aMinimumDuration, const TTimeIntervalSeconds& aMaximumDuration);
- __declspec(dllexport) void SetMinimumAndMaximum(TInt aMinimumValue, TInt aMaximumValue);
- __declspec(dllexport) TBool CheckNumber();
- __declspec(dllexport) void SetNumberOfEditorLines(TInt aNum);
- __declspec(dllexport) void SetMinimumAndMaximum(const TReal& aMinimumValue, const TReal& aMaximumValue);
- __declspec(dllexport) TInt GetTextLength() const;
- __declspec(dllexport) TInt NbrOfEditorLines() const;
- __declspec(dllexport) TInt NbrOfPromptLines() const;
- #line 338
- __declspec(dllexport) virtual CCoeControl* ControlByLayoutOrNull(TInt aLayout);
- __declspec(dllexport) void SetImageL(CEikImage* aImage);
- __declspec(dllexport) void SetImageL(const TDesC& aImageFile,
- TInt aBmpId, TInt aBmpMaskId);
- __declspec(dllexport) void SetAnimationL(TInt aResource);
- __declspec(dllexport) void StartAnimationL();
- __declspec(dllexport) TInt CancelAnimation();
- void CancelQueryL();
- TBool EditorContentIsValidL() const;
- #line 388
- void SetAndUseFlagsL( TBitFlags16 aFlags );
- public:
- #line 400
- __declspec(dllexport) TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType);
- __declspec(dllexport) TSize MinimumSize();
- void PrepareForFocusLossL();
- void FocusChanged(TDrawNow aDrawNow);
- __declspec(dllexport) void HandleEdwinEventL(CEikEdwin* aEdwin,TEdwinEvent aEventType);
- public:
- #line 440
- __declspec(dllexport) TBool HandleEdwinSizeEventL(CEikEdwin* aEdwin, TEdwinSizeEvent aEventType, TSize aDesirableEdwinSize);
- public:
- __declspec(dllexport) void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
- public:
- #line 461
- inline TInt QueryType() const { return iQueryType; }
- virtual void WindowLayout( TAknWindowLineLayout& aLayout ) const;
- public:
- TInt CountComponentControls() const;
- CCoeControl* ComponentControl(TInt anIndex) const;
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- public:
- class TIndex
- {
- public:
- TIndex(TInt aNumberOfPromptLines);
- public:
- TInt PromptLine() const;
- public:
- TInt DQPWindowTextsLine2(TInt aLineNum) const;
- TInt PNWindow() const;
- TInt PQDWindow(TInt aLineNum) const;
- TInt PQCWindow() const;
- private:
- void SelfTest() const;
- private:
- TInt iNumberOfPromptLines;
- };
- protected:
- void SizeChanged();
- void Draw(const TRect& aRect) const;
- TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
- void Layout();
- protected:
- virtual void SetLineWidthsL();
- virtual void ConstructQueryL(TResourceReader& aRes);
- virtual TRect LayoutRect();
- TRect DialogRect() const;
- TSize DialogSize() const;
- protected:
- virtual void LayoutPrompt(const TLayoutMethod& aLayoutM);
- virtual void LayoutImageOrAnim(const TLayoutMethod& aLayoutM);
- virtual void LayoutEditor(const TLayoutMethod& aLayoutM);
- virtual void LayoutEditorFrame(const TLayoutMethod& aLayoutM);
- virtual void LayoutEditorIndicator(const TLayoutMethod& aLayoutM);
- protected:
- CAknQueryExtension* QueryExtension() const;
- private:
- void DrawEditorFrame(CWindowGc& aGc,TRect& aRect) const;
- void SetFlags( TBitFlags16 aFlags );
- void DeployFlagsL();
- void DoSetPromptL();
- static TInt StaticPictographCallBack( TAny* aPtr );
- void PictographCallBack();
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- protected:
- CAknTextControl* iPrompt;
- CAknQueryEditIndicator* iEditIndicator;
- CEikEdwin* iEdwin;
- CEikDateEditor* iDateEdwin;
- CEikTimeEditor* iTimeEdwin;
- CEikDurationEditor* iDurationEdwin;
- CEikSecretEditor* iSecretEd;
- CAknIntegerEdwin* iNumberEdwin;
- CAknNumericSecretEditor* iPinEdwin;
- CEikFloatingPointEditor* iFloatingPointEditor;
- CEikImage* iImage;
- TInt iControl;
- TAknLayoutRect iLayoutMfne;
- CAknEcsDetector* iEcsDetector;
- TAknQueryEcsObserver* iEcsObserver;
- TBitFlags16 iFlags;
- TUint16 iSpare_1;
- CAknBitmapAnimation* iAnimation;
- MAknQueryControlObserver* iQueryControlObserver;
- TInt iQueryType;
- TAknLayoutRect iEditorVerShadow;
- TAknLayoutRect iEditorHorShadow;
- TAknLayoutRect iEditorFrame;
- TInt iNumberOfEditorLines;
- TBool iHasEditor;
- CArrayFixFlat<TInt> * iLineWidths;
- CAknButton* iIncreaseValueButton;
- CAknButton* iDecreaseValueButton;
- private:
- TInt iSpare[4];
- };
- #line 718
- class CAknExtQueryControl : public CAknQueryControl
- {
- public:
- __declspec(dllexport) CAknExtQueryControl();
- __declspec(dllexport) virtual ~CAknExtQueryControl();
- public:
- __declspec(dllexport) TInetAddr GetInetAddress() const;
- __declspec(dllexport) void SetInetAddress(TInetAddr& aInetAddress);
- __declspec(dllexport) TInt GetFixedPointNumber() const;
- __declspec(dllexport) void SetFixedPointNumberL(const TInt* aNumber);
- public:
- __declspec(dllexport) void SetMinimumAndMaximum(const TInetAddr& aMinimumAddress, const TInetAddr& aMaximumAddress);
- __declspec(dllexport) void SetMinimumAndMaximum(TInt aMinimumValue, TInt aMaximumValue);
- #line 791
- __declspec(dllexport) virtual CCoeControl* ControlByLayoutOrNull(TInt aLayout);
- TBool EditorContentIsValidL() const;
- #line 805
- void SetAndUseFlagsL( TBitFlags16 aFlags );
- public:
- void PrepareForFocusLossL();
- void FocusChanged(TDrawNow aDrawNow);
- public:
- __declspec(dllexport) void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
- public:
- TInt CountComponentControls() const;
- CCoeControl* ComponentControl(TInt anIndex) const;
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- public:
- class TIndex
- {
- public:
- TIndex(TInt aNumberOfPromptLines);
- public:
- TInt PromptLine() const;
- public:
- TInt DQPWindowTextsLine2(TInt aLineNum) const;
- TInt PNWindow() const;
- TInt PQDWindow(TInt aLineNum) const;
- private:
- void SelfTest() const;
- private:
- TInt iNumberOfPromptLines;
- };
- protected:
- virtual void ConstructQueryL(TResourceReader& aRes);
- protected:
- virtual void LayoutEditor(const TLayoutMethod& aLayoutM);
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- void SetFlags( TBitFlags16 aFlags );
- void DeployFlagsL();
- void DoSetPromptL();
- static TInt StaticPictographCallBack( TAny* aPtr );
- void PictographCallBack();
- protected:
- CAknIpFieldEditor* iIpEditor;
- CEikFixedPointEditor* iFixedPointEditor;
- private:
- TAny* iSpare_1;
- TAny* iSpare_2;
- };
- #line 33 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknquerydialog.h" /* stack depth 1 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknmultilinequerycontrol.h" /* stack depth 2 */
- #line 30
- enum TLinePosition
- {
- EFirstLine = 0,
- ESecondLine
- };
- class TAknWindowLineLayout;
- class CAknMultilineQueryControl : public CAknQueryControl
- {
- public:
- __declspec(dllexport) CAknMultilineQueryControl();
- __declspec(dllexport) virtual ~CAknMultilineQueryControl();
- public:
- __declspec(dllexport) void SetNbrOfPromptLines(TInt aNbrOfPromptLinesFirstLine, TInt aNbrOfPromptLinesSecondLine);
- __declspec(dllexport) TBool IsFirst() const;
- __declspec(dllexport) TBool IsSecond() const;
- public:
- #line 83
- __declspec(dllexport) virtual CCoeControl* ControlByLayoutOrNull(TInt aLayout);
- public:
- __declspec(dllexport) TSize MinimumSize();
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- public:
- class TIndex
- {
- public:
- TIndex(const TLinePosition& aLinePos, TInt aFirstQueryPromptLines,TInt aSecondQueryPromptLines);
- public:
- TInt MainPanePQDCWindow() const;
- TInt CDCQPWindowLine1() const;
- TInt CDCQPWindowLine2() const;
- TInt CDCQPWindowLine3() const;
- TInt CDCQPWindowRectangles() const;
- TInt CDCQPWindowLine5() const;
- TInt CDCQPWindowTextsLine1(TInt aLineNum) const;
- TInt CDCQPWindowTextsLine2() const;
- TInt CDCQPWindowTextsLine3(TInt aLineNum) const;
- TInt CDCQPWindowTextsLine4() const;
- TInt CDCPQWindowGraphicsLine5() const;
- public:
- const TInt LinePos() const { return iLinePos; }
- private:
- TInt FirstQueryPromptLines() const;
- TInt SecondQueryPromptLines() const;
- void SelfTest() const;
- private:
- TLinePosition iLinePos;
- TInt iFirstQueryPromptLines;
- TInt iSecondQueryPromptLines;
- };
- protected:
- void SetLineWidthsL();
- void ConstructQueryL(TResourceReader& aRes);
- TRect LayoutRect();
- private:
- void SizeChanged();
- void Draw(const TRect& aRect) const;
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- void LayoutPrompt(const TLayoutMethod& aLayoutM);
- void LayoutSeparator(const TLayoutMethod& aLayoutM);
- void LayoutEditor(const TLayoutMethod& aLayoutM);
- void LayoutEditorFrame(const TLayoutMethod& aLayoutM);
- void LayoutEditorIndicator(const TLayoutMethod& aLayoutM);
- void WindowLayout( TAknWindowLineLayout& aLayout ) const;
- private:
- void SetLinePosition();
- TInt16 FirstLineHeight() const;
- TInt16 SecondLineHeight() const;
- private:
- TAknLayoutRect iLayoutLineBetweenEntryFields;
- TLinePosition iLinePos;
- TInt iFirstQueryPromptLines;
- TInt iSecondQueryPromptLines;
- };
- #line 200
- class CAknExtMultilineQueryControl : public CAknExtQueryControl
- {
- public:
- __declspec(dllexport) CAknExtMultilineQueryControl();
- __declspec(dllexport) virtual ~CAknExtMultilineQueryControl();
- public:
- __declspec(dllexport) void SetNbrOfPromptLines(TInt aNbrOfPromptLinesFirstLine, TInt aNbrOfPromptLinesSecondLine);
- __declspec(dllexport) TBool IsFirst() const;
- __declspec(dllexport) TBool IsSecond() const;
- public:
- #line 242