S60UIExampleHighScoreContainer.inc
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:1690k
源码类别:
Symbian
开发平台:
C/C++
- ELineBreakClasses
- };
- __declspec(dllexport) virtual TUint LineBreakClass(TUint aCode,
- TUint& aRangeStart, TUint& aRangeEnd) const;
- __declspec(dllexport) virtual TBool LineBreakPossible(TUint aPrevClass, TUint aNextClass,
- TBool aHaveSpaces) const;
- __declspec(dllexport) virtual TBool GetLineBreakInContext(const TDesC16& aText,
- TInt aMinBreakPos, TInt aMaxBreakPos, TBool aForwards,
- TInt& aBreakPos) const;
- __declspec(dllexport) virtual TBool IsHangingCharacter(TUint aChar) const;
- __declspec(dllexport) TBool GetLineBreak(const TDesC16& aText,
- TInt aMinBreakPos, TInt aMaxBreakPos, TBool aForwards,
- MContingentLineBreaker* aCbDelegate,
- TInt& aBreakPos, TInt& aBreakPosAfterSpaces) const;
- __declspec(dllexport) TBool GetLineBreakL(const TDesC16& aText,
- TInt aMinBreakPos, TInt aMaxBreakPos, TBool aForwards,
- MContingentLineBreakerL* aCbDelegate,
- TInt& aBreakPos, TInt& aBreakPosAfterSpaces) const;
- __declspec(dllexport) virtual void* ExtendedInterface(TUid& aUid) const;
- };
- class MContingentLineBreaker
- {
- public:
- #line 171
- virtual TBool IsLegalBreakBefore(TInt aTextPosition, TInt aPrecedingClass,
- TBool aHasSpaces) = 0;
- #line 181
- virtual TBool IsLegalBreakAfter(TInt aTextPosition, TInt aFollowingClass,
- TBool aHasSpaces) = 0;
- };
- class MContingentLineBreakerL
- {
- public:
- #line 205
- virtual TBool IsLegalBreakBeforeL(TInt aTextPosition, TInt aPrecedingClass,
- TBool aHasSpaces) = 0;
- #line 215
- virtual TBool IsLegalBreakAfterL(TInt aTextPosition, TInt aFollowingClass,
- TBool aHasSpaces) = 0;
- };
- #line 20 "C:\Symbian\9.1\S60_3rd\epoc32\include\tagma.h" /* stack depth 8 */
- class TTmLineInfo;
- class CTmTextImp;
- class RWindow;
- class RWsSession;
- class RParagraphStyleInfo;
- class CStyleList;
- class TTmDocPosSpec;
- class TTmDocPos;
- class TTmCharFormatMask
- {
- public:
- enum TAttrib
- {
- EFontName = 0x1,
- EFontCoverage = 0x2,
- EBold = 0x4,
- EItalic = 0x8,
- ESerif = 0x10,
- EMonoWidth = 0x20,
- EHeight = 0x40,
- EPrintPosition = 0x80,
- ETextColor = 0x100,
- EBackgroundColor = 0x200,
- EBackground = 0x400,
- EUnderline = 0x800,
- EStrikethrough = 0x1000,
- EShadow = 0x2000,
- EUserDefinedEffects = 0x4000,
- ELanguage = 0x8000,
- EPictureAlignment = 0x10000
- };
- inline TTmCharFormatMask();
- __declspec(dllexport) TTmCharFormatMask(const TCharFormatMask& aMask);
- __declspec(dllexport) void GetTCharFormatMask(TCharFormatMask& aMask) const;
- inline void Clear(TAttrib aAttrib);
- inline void Set(TAttrib aAttrib);
- inline TBool IsSet(TAttrib aAttrib);
- TUint iFlags;
- };
- #line 81
- class TTmCharFormat
- {
- public:
- enum
- {
- EBackground = 1,
- ERounded = 2,
- EUnderline = 4,
- EStrikethrough = 8,
- EShadow = 16,
- EUserDefinedMask = 0xFF000000,
- EUserDefinedShift = 24,
- ENoMatchesIndicator = 0x4000000,
- ECustomDrawEffectIsExternallyDefined = 0x80000000
- };
- enum TPictureAlignment
- {
- EPictureAlignBaseline,
- EPictureAlignTop,
- EPictureAlignBottom,
- EPictureAlignCenter
- };
- __declspec(dllexport) TTmCharFormat();
- __declspec(dllexport) TTmCharFormat(const TDesC& aFontName,TInt aFontHeight);
- __declspec(dllexport) void operator=(const TCharFormat& aFormat);
- inline TTmCharFormat(const TCharFormat& aFormat);
- __declspec(dllexport) void GetTCharFormat(TCharFormat& aFormat) const;
- __declspec(dllexport) TBool operator==(const TTmCharFormat& aFormat) const;
- inline TBool operator!=(const TTmCharFormat& aFormat) const;
- TOpenFontSpec iFontSpec;
- TLogicalRgb iTextColor;
- TLogicalRgb iBackgroundColor;
- TUint iEffects;
- TUint iLanguage;
- TPictureAlignment iPictureAlignment;
- TUint iTag;
- };
- class TTmTab
- {
- public:
- enum TType
- {
- EStandardTab,
- ECenterTab,
- EReverseTab
- };
- inline TTmTab();
- inline TTmTab(const TTabStop& aTab);
- __declspec(dllexport) void operator=(const TTabStop& aTab);
- __declspec(dllexport) void GetTTabStop(TTabStop& aTab) const;
- __declspec(dllexport) TBool operator==(const TTmTab& aTab) const;
- inline TBool operator!=(const TTmTab& aTab) const;
- TInt iPosition;
- TType iType;
- };
- class TTmBullet
- {
- public:
- enum TStyle
- {
- EBulletStyle,
- EArabicNumberStyle,
- ESmallRomanNumberStyle,
- ECapitalRomanNumberStyle,
- ESmallLetterStyle,
- ECapitalLetterStyle
- };
- enum TAlignment
- {
- ELeftAlign,
- ECenterAlign,
- ERightAlign
- };
- __declspec(dllexport) TTmBullet();
- __declspec(dllexport) void operator=(const TBullet& aBullet);
- inline TTmBullet(const TBullet& aBullet);
- __declspec(dllexport) void GetTBullet(TBullet& aBullet) const;
- __declspec(dllexport) TBool operator==(const TTmBullet& aBullet) const;
- inline TBool operator!=(const TTmBullet& aBullet) const;
- TChar iCharacterCode;
- TOpenFontSpec iFontSpec;
- TBool iHangingIndent;
- TLogicalRgb iColor;
- TStyle iStyle;
- TInt iStartNumber;
- TAlignment iAlignment;
- };
- class TTmParBorder
- {
- public:
- enum TStyle
- {
- ESolidStyle,
- EDoubleStyle,
- EDotStyle,
- EDashStyle,
- EDotDashStyle,
- EDotDotDashStyle
- };
- __declspec(dllexport) TTmParBorder();
- __declspec(dllexport) void operator=(const TParaBorder& aBorder);
- inline TTmParBorder(const TParaBorder& aBorder);
- __declspec(dllexport) void GetTParaBorder(TParaBorder& aBorder) const;
- __declspec(dllexport) TBool operator==(const TTmParBorder& aBorder) const;
- inline TBool operator!=(const TTmParBorder& aBorder) const;
- TStyle iStyle;
- TInt iWeight;
- TLogicalRgb iColor;
- TBool iAutoColor;
- };
- class TTmParFormatMask
- {
- public:
- enum TAttrib
- {
- EAlignment = 0x1,
- EDirection = 0x2,
- EKeepTogether = 0x4,
- EKeepWithNext = 0x8,
- EStartNewPage = 0x10,
- EWidowOrphan = 0x20,
- ENoWrap = 0x40,
- EExactLineSpacing = 0x80,
- EPixelLineSpacing = 0x100,
- ELeadingMargin = 0x200,
- ETrailingMargin = 0x400,
- EFirstLineIndent = 0x800,
- ELineSpacing = 0x1000,
- ESpaceAbove = 0x2000,
- ESpaceBelow = 0x4000,
- ETabSize = 0x8000,
- EBorderMargin = 0x10000,
- ETabList = 0x20000,
- EBullet = 0x40000,
- EBorder = 0x80000
- };
- inline TTmParFormatMask();
- __declspec(dllexport) TTmParFormatMask(const TParaFormatMask& aMask);
- __declspec(dllexport) void GetTParaFormatMask(TParaFormatMask& aMask) const;
- inline void Clear(TAttrib aAttrib);
- inline void Set(TAttrib aAttrib);
- inline TBool IsSet(TAttrib aAttrib);
- TUint iFlags;
- };
- class RTmParFormat
- {
- public:
- enum TBorderIndex
- {
- ETopBorder = 0,
- EBottomBorder = 1,
- ELeadingBorder = 2,
- ETrailingBorder = 3,
- };
- enum
- {
- ERightToLeft = 1,
- EKeepTogether = 2,
- EKeepWithNext = 4,
- EStartNewPage = 8,
- EWidowOrphan = 16,
- ENoWrap = 32,
- EExactLineSpacing = 64,
- EPixelLineSpacing = 128,
- EDirectionalityFromText = 256
- };
- enum TAlignment
- {
- EAlignNormalBidirectional,
- EAlignNormal = EAlignNormalBidirectional,
- EAlignCenter,
- EAlignReverseBidirectional,
- EAlignReverse = EAlignReverseBidirectional,
- EAlignJustify,
- EAlignAbsoluteLeft,
- EAlignAbsoluteRight
- };
- __declspec(dllexport) RTmParFormat();
- __declspec(dllexport) void Close();
- inline ~RTmParFormat();
- __declspec(dllexport) void CopyL(const RTmParFormat& aFormat);
- __declspec(dllexport) void CopyL(const CParaFormat& aFormat);
- __declspec(dllexport) void GetCParaFormatL(CParaFormat& aFormat) const;
- __declspec(dllexport) TBool operator==(const RTmParFormat& aFormat) const;
- inline TBool operator!=(const RTmParFormat& aFormat) const;
- __declspec(dllexport) TInt Tabs() const;
- inline const TTmTab& Tab(TInt aIndex) const;
- inline const TTmBullet* Bullet() const;
- inline const TTmParBorder* Border(TBorderIndex aIndex) const;
- __declspec(dllexport) TBool HaveBorders() const;
- inline TBool RightToLeft() const;
- TAlignment iAlignment;
- TUint iFlags;
- TInt iLeadingMargin;
- TInt iTrailingMargin;
- TInt iFirstLineIndent;
- TInt iLineSpacing;
- TInt iSpaceAbove;
- TInt iSpaceBelow;
- TInt iTabSize;
- TInt iBorderMargin;
- TLogicalRgb iBackgroundColor;
- private:
- RTmParFormat(const RTmParFormat& aFormat);
- void operator=(const RTmParFormat& aFormat);
- RArray<TTmTab> * iTabList;
- TTmBullet* iBullet;
- TTmParBorder* iBorder[4];
- };
- #line 389
- class MTmCustom
- : public MLineBreaker
- {
- public:
- #line 403
- class TLineHeightParam
- {
- public:
- inline TLineHeightParam();
- TInt iMaxCharHeight;
- TInt iMaxCharDepth;
- TInt iMaxTopPictureHeight;
- TInt iMaxBottomPictureHeight;
- TInt iMaxCenterPictureHeight;
- TInt iFontMaxCharHeight;
- TInt iFontMaxCharDepth;
- TInt iFontMaxAscent;
- TInt iFontMaxDescent;
- TInt iDesiredLineHeight;
- TBool iExactLineHeight;
- };
- #line 438
- enum
- {
- EOpLineBreakClass,
- EClLineBreakClass,
- EQuLineBreakClass,
- EGlLineBreakClass,
- ENsLineBreakClass,
- EExLineBreakClass,
- ESyLineBreakClass,
- EIsLineBreakClass,
- EPrLineBreakClass,
- EPoLineBreakClass,
- ENuLineBreakClass,
- EAlLineBreakClass,
- EIdLineBreakClass,
- EInLineBreakClass,
- EHyLineBreakClass,
- EBaLineBreakClass,
- EBbLineBreakClass,
- EB2LineBreakClass,
- EZwLineBreakClass,
- ECmLineBreakClass,
- EBkLineBreakClass,
- ECrLineBreakClass,
- ELfLineBreakClass,
- ESgLineBreakClass,
- ECbLineBreakClass,
- ESpLineBreakClass,
- ESaLineBreakClass,
- EAiLineBreakClass,
- EXxLineBreakClass,
- ELineBreakClasses
- };
- __declspec(dllexport) virtual TRgb SystemColor(TUint aColorIndex,TRgb aDefaultColor) const;
- __declspec(dllexport) virtual TInt Stretch(TUint aChar) const;
- __declspec(dllexport) virtual TUint Map(TUint aChar) const;
- __declspec(dllexport) virtual void SetLineHeight(const TLineHeightParam& aParam,TInt& aAscent,TInt& aDescent) const;
- __declspec(dllexport) virtual void DrawBackground(CGraphicsContext& aGc,const TPoint& aTextLayoutTopLeft,const TRect& aRect,
- const TLogicalRgb& aBackground,TRect& aRectDrawn) const;
- __declspec(dllexport) virtual void DrawLineGraphics(CGraphicsContext& aGc,const TPoint& aTextLayoutTopLeft,const TRect& aRect,
- const TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) virtual void DrawText(CGraphicsContext& aGc,const TPoint& aTopLeft,const TRect& aRect,
- const TTmLineInfo& aLineInfo,const TTmCharFormat& aFormat,
- const TDesC& aText,const TPoint& aTextOrigin,TInt aExtraPixels) const;
- __declspec(dllexport) virtual void DrawPicture(CGraphicsContext& aGc,
- const TPoint& aTextLayoutTopLeft, const TRect& aRect,
- MGraphicsDeviceMap& aDevice, const CPicture& aPicture) const;
- __declspec(dllexport) virtual TUint LineBreakClass(TUint aCode,TUint& aRangeStart,TUint& aRangeEnd) const;
- __declspec(dllexport) virtual TBool LineBreakPossible(TUint aPrevClass,TUint aNextClass,TBool aHaveSpaces) const;
- __declspec(dllexport) virtual TBool GetLineBreakInContext(const TDesC& aText,TInt aMinBreakPos,TInt aMaxBreakPos,
- TBool aForwards,TInt& aBreakPos) const;
- __declspec(dllexport) virtual TBool IsHangingCharacter(TUint aChar) const;
- __declspec(dllexport) void SetPenColor(CGraphicsContext& aGc,TLogicalRgb aColor) const;
- __declspec(dllexport) void SetBrushColor(CGraphicsContext& aGc,TLogicalRgb aColor) const;
- __declspec(dllexport) TRgb SystemColor(TLogicalRgb aColor) const;
- };
- const TUid KTmTextDrawExtId = {0x10203665};
- #line 564
- class MTmTextDrawExt
- {
- public:
- virtual void DrawLine(CGraphicsContext& aGc, const TPoint& aPt1, const TPoint& aPt2) const = 0;
- virtual void DrawText(CGraphicsContext& aGc, const TDesC& aText, const TPoint& aPt) const = 0;
- virtual void DrawRect(CGraphicsContext& aGc, const TRect& aRc) const = 0;
- };
- const TUid KFormLabelApiExtensionUid = { 0x101FD03C};
- #line 584
- class MTmSource: public MTmCustom
- {
- public:
- enum TLabelType
- {
- ENoLabel,
- EParLabel
- };
- enum
- {
- ELineBreakContext = 32
- };
- virtual MGraphicsDeviceMap& FormatDevice() const = 0;
- virtual MGraphicsDeviceMap& InterpretDevice() const = 0;
- virtual TInt DocumentLength() const = 0;
- virtual void GetText(TInt aPos,TPtrC& aText,TTmCharFormat& aFormat) const = 0;
- virtual void GetParagraphFormatL(TInt aPos,RTmParFormat& aFormat) const = 0;
- virtual TInt ParagraphStart(TInt aPos) const = 0;
- __declspec(dllexport) virtual CPicture* PictureL(TInt aPos) const;
- __declspec(dllexport) virtual TInt GetPictureSizeInTwipsL(TInt aPos,TSize& aSize) const;
- __declspec(dllexport) virtual TAny* GetExtendedInterface(const TUid& aInterfaceId);
- __declspec(dllexport) virtual void MTmSource_Reserved_1();
- __declspec(dllexport) virtual void MTmSource_Reserved_2();
- __declspec(dllexport) virtual TBool PageBreakInRange(TInt aStartPos,TInt aEndPos) const;
- __declspec(dllexport) TInt ParagraphEnd(TInt aPos) const;
- __declspec(dllexport) TBool GetLineBreakL(const TDesC& aText,TInt aDocPos,TInt aMinBreakPos,TInt aMaxBreakPos,TBool aForwards,
- TInt& aBreakPos,TInt& aHangingChars,TInt& aBreakPosAfterSpaces) const;
- __declspec(dllexport) static void GetStandardLineBreak(const TDesC& aText,TInt aMinBreakPos,TInt aMaxBreakPos,
- TInt& aBreakPos,TInt& aNextLineStart);
- };
- #line 664
- class MFormLabelApi
- {
- public:
- __declspec(dllexport) virtual TBool LabelModeSelect(MTmSource::TLabelType aType, TInt aPos);
- __declspec(dllexport) virtual void LabelModeCancel();
- __declspec(dllexport) virtual void LabelMetrics(MTmSource::TLabelType aType, TSize& aLabelSize, TInt& aMarginSize) const;
- };
- class CTmBufSeg: public CBufSeg
- {
- public:
- inline CTmBufSeg(TInt aExpandSize);
- TInt MemoryUsed() const;
- };
- class CTmCode: public CBase
- {
- public:
- inline ~CTmCode();
- void InsertByteL(TUint8 aByte,TInt aPos);
- TInt InsertNumberL(TInt aNumber,TInt aPos);
- TInt InsertRectL(const TRect& aRect,TInt aPos);
- void AppendByteL(TUint8 aByte);
- TInt AppendNumberL(TInt aNumber);
- TInt AppendRectL(const TRect& aRect);
- void ChangeL(TInt aStart,TInt aEnd,CTmCode& aNewCode);
- TInt MemoryUsed() const;
- TInt Size() const;
- void Delete(TInt aPos,TInt aLength);
- void Reset();
- inline TPtr8 Ptr(TInt aPos);
- void CreateBufferL();
- inline CBufBase* Buffer();
- inline const CBufBase* Buffer() const;
- private:
- enum
- {
- EExpandSize = 512
- };
- TInt WriteNumber(TInt aNumber,TUint8* aBuffer);
- CTmBufSeg* iBuffer;
- };
- class TTmFormatParamBase
- {
- public:
- enum
- {
- EWrap = 1,
- EAtLeastMaxHeight = 2,
- ETruncateWithEllipsis = 4,
- ELegalLineBreaksOnly = 8
- };
- __declspec(dllexport) TTmFormatParamBase();
- inline TBool IsWrapping() const;
- inline TBool IsTruncatingWithEllipsis() const;
- inline TBool LegalLineBreaksOnly() const;
- TInt iWrapWidth;
- TInt iMaxHeight;
- TInt iMaxLines;
- TInt iFlags;
- TChar iEllipsis;
- };
- class TTmFormatParam: public TTmFormatParamBase
- {
- public:
- __declspec(dllexport) TTmFormatParam();
- __declspec(dllexport) TTmFormatParam(const TTmFormatParamBase& aBase);
- TInt iStartChar;
- TInt iEndChar;
- TInt iLineInPar;
- };
- class TTmReformatParam
- {
- public:
- __declspec(dllexport) TTmReformatParam();
- TInt iStartChar;
- TInt iOldLength;
- TInt iNewLength;
- TInt iMaxExtraLines;
- TBool iParFormatChanged;
- TBool iParInvalid;
- };
- class TTmReformatResult
- {
- public:
- __declspec(dllexport) TTmReformatResult();
- TRect iRedrawRect;
- TInt iHeightChange;
- TInt iUnchangedTop;
- TInt iUnformattedStart;
- };
- #line 806
- class TTmLineInfo
- {
- public:
- enum
- {
- EParStart = 1,
- EParEnd = 2,
- EParRightToLeft = 4,
- ELineEndsInForcedLineBreak = 8
- };
- inline TTmLineInfo();
- TRect iOuterRect;
- TRect iInnerRect;
- TInt iBaseline;
- TInt iStart;
- TInt iEnd;
- TInt iLineNumber;
- TInt iParNumber;
- TInt iLineInPar;
- TInt iParTop;
- TUint iFlags;
- };
- #line 871
- class TTmDocPosSpec
- {
- public:
- enum TType
- {
- ETrailing,
- ELeading,
- ELeftToRight,
- ERightToLeft
- };
- inline TTmDocPosSpec();
- inline TTmDocPosSpec(TInt aPos,TType aType);
- inline TTmDocPosSpec(const TTmDocPos& aRawDocPos);
- TInt iPos;
- TType iType;
- };
- #line 913
- class TTmDocPos
- {
- public:
- inline TTmDocPos();
- inline TTmDocPos(TInt aPos,TBool aLeadingEdge);
- __declspec(dllexport) TBool operator==(const TTmDocPos& aPos) const;
- inline TBool operator!=(const TTmDocPos& aPos) const;
- __declspec(dllexport) TBool operator>(const TTmDocPos& aPos) const;
- __declspec(dllexport) TBool operator>=(const TTmDocPos& aPos) const;
- inline TBool operator<(const TTmDocPos& aPos) const;
- inline TBool operator<=(const TTmDocPos& aPos) const;
- TInt iPos;
- TBool iLeadingEdge;
- };
- class TTmPosInfo2
- {
- public:
- TTmDocPos iDocPos;
- TBool iRightToLeft;
- TPoint iEdge;
- };
- class TTmPosInfo
- {
- public:
- TTmPosInfo() {}
- TTmPosInfo(const TTmPosInfo2& a) : iDocPos(a.iDocPos), iEdge(a.iEdge) {}
- TTmDocPos iDocPos;
- TPoint iEdge;
- };
- class TTmHighlightExtensions
- {
- public:
- inline TTmHighlightExtensions();
- inline void SetAll(TInt aExtension);
- inline void SetLeftExtension(TInt aExtension);
- inline void SetRightExtension(TInt aExtension);
- inline void SetTopExtension(TInt aExtension);
- inline void SetBottomExtension(TInt aExtension);
- inline TInt LeftExtension() const;
- inline TInt RightExtension() const;
- inline TInt TopExtension() const;
- inline TInt BottomExtension() const;
- inline TBool Extends() const;
- inline void ExtendRect(TRect& aRect) const;
- inline void AdjustRect(TRect& aRect) const;
- public:
- TInt iLeftExtension;
- TInt iRightExtension;
- TInt iTopExtension;
- TInt iBottomExtension;
- };
- enum TTmCursorPlacement
- {
- ECursorVertical,
- ECursorUnderlineNext,
- ECursorUnderlinePrev
- };
- #line 1041
- class CTmTextLayout: public CBase
- {
- public:
- class TTmChunkDescription
- {
- public:
- TInt iStart;
- TInt iEnd;
- TBool iRightToLeft;
- };
- __declspec(dllexport) CTmTextLayout();
- __declspec(dllexport) ~CTmTextLayout();
- __declspec(dllexport) void SetTextL(MTmSource& aSource,const TTmFormatParam& aParam);
- __declspec(dllexport) void FormatL(const TTmFormatParamBase& aParam,const TTmReformatParam& aReformatParam,
- TTmReformatResult& TTmReformatResult);
- __declspec(dllexport) TBool AddParL(const TTmFormatParamBase& aParam,TBool aAtStart,TInt& aHeightIncrease,TInt& aParagraphsIncrease);
- __declspec(dllexport) TBool DeletePar(const TTmFormatParamBase& aParam,TBool aAtStart,TInt aMaxDeletedHeight,TInt& aHeightDecrease);
- __declspec(dllexport) void Clear();
- __declspec(dllexport) void DrawLayout(CGraphicsContext& aGc,const TPoint& aTopLeft,const TRect& aClipRect,
- const TLogicalRgb* aDocBackground,TBool aDrawParBackground) const;
- __declspec(dllexport) void DrawBackground(CGraphicsContext& aGc,const TPoint& aTopLeft,const TRect& aClipRect,
- const TLogicalRgb& aBackground) const;
- __declspec(dllexport) void InvertLayout(CGraphicsContext& aGc, const TPoint& aTopLeft,
- TInt aStartDocPos, TInt aEndDocPos) const;
- __declspec(dllexport) void HighlightSection(CGraphicsContext& aGc, const TPoint& aTopLeft,
- TInt aStartDocPos, TInt aEndDocPos, const TRect& aClipRect) const;
- __declspec(dllexport) void DrawSection(CGraphicsContext& aGc, const TPoint& aTopLeft,
- TInt aStartDocPos, TInt aEndDocPos, const TRect& aClipRect) const;
- __declspec(dllexport) void HighlightSection(CGraphicsContext& aGc, const TPoint& aTopLeft,
- TInt aStartDocPos, TInt aEndDocPos, const TRect& aClipRect, const TTmHighlightExtensions& aHighlightExtensions,
- TInt aHighlightStartDocPos, TInt aHighlightEndDocPos) const;
- __declspec(dllexport) void InvertLayout(CGraphicsContext& aGc,
- const TPoint& aTopLeft, TInt aStartDocPos,TInt aEndDocPos, const TTmHighlightExtensions& aHighlightExtensions,
- TInt aHighlightStartDocPos, TInt aHighlightEndDocPos) const;
- __declspec(dllexport) void DrawSection(CGraphicsContext& aGc, const TPoint& aTopLeft,
- TInt aStartDocPos, TInt aEndDocPos, const TRect& aClipRect, const TTmHighlightExtensions& aHighlightExtensions,
- TInt aHighlightStartDocPos, TInt aHighlightEndDocPos) const;
- __declspec(dllexport) TBool FindDocPos(const TTmDocPosSpec& aDocPos,TTmPosInfo2& aPosInfo,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool FindXyPos(const TPoint& aXyPos,TTmPosInfo2& aPosInfo,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool FindXyPosWithDisambiguation(const TPoint& aXyPos,
- TTmPosInfo2& aPosLeft, TTmPosInfo2& aPosRight,
- TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TInt FindNextPos(TInt aStart) const;
- __declspec(dllexport) TInt FindPreviousPos(TInt aStart) const;
- __declspec(dllexport) TInt Lines() const;
- __declspec(dllexport) TInt Paragraphs() const;
- __declspec(dllexport) TBool DocPosToLine(const TTmDocPosSpec& aDocPos,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool LineNumberToLine(TInt aLineNumber,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool ParNumberToLine(TInt aParNumber,TInt aLineInPar,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool YPosToLine(TInt aYPos,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool GetDisplayedTextL(TInt aLineNumber,TDes& aText,TInt& aNeeded) const;
- __declspec(dllexport) void GetMinimumLayoutSizeL(TInt aWrapWidth,TSize& aSize) const;
- __declspec(dllexport) void GetMinimumLayoutSizeL(TInt aWrapWidth,TBool aAllowLegalLineBreaksOnly,TSize& aSize) const;
- __declspec(dllexport) TInt WidthOfWidestLine(TInt aTop = 0,TInt aBottom = KMaxTInt) const;
- __declspec(dllexport) void HorizontalExtremes(TInt &aLeft, TInt &aRight,
- TInt aTopY = 0, TInt aBottomY = KMaxTInt) const;
- __declspec(dllexport) TBool GetNextVisualCursorPos(const TTmDocPosSpec& aDocPos,TTmPosInfo2& aInfo,TBool aToLeft) const;
- __declspec(dllexport) TBool GetNextPosLeftWithDisambiguation(const TTmDocPosSpec& aDocPos,
- TTmPosInfo2& aPosLeft, TTmPosInfo2& aPosRight) const;
- __declspec(dllexport) TBool GetNextPosRightWithDisambiguation(const TTmDocPosSpec& aDocPos,
- TTmPosInfo2& aPosLeft, TTmPosInfo2& aPosRight) const;
- __declspec(dllexport) TBool LineExtreme(const TTmDocPosSpec& aPos, TBool aToRight,
- TTmDocPos& aExtreme) const;
- __declspec(dllexport) TBool FindAdjacentChunks(const TTmDocPosSpec& aPos,
- TTmChunkDescription& aLeft, TTmChunkDescription& aRight) const;
- __declspec(dllexport) TBool GetCursor(const TTmDocPosSpec& aDocPos,TTmCursorPlacement aPlacement,
- TTmLineInfo& aLineInfo,TPoint& aOrigin,TInt& aWidth,TInt& aAscent,TInt& aDescent) const;
- __declspec(dllexport) TInt MemoryUsed() const;
- inline TInt StartChar() const;
- inline TInt EndChar() const;
- inline TInt LayoutWidth() const;
- inline TInt LayoutHeight() const;
- inline MTmSource* Source();
- inline const MTmSource* Source() const;
- inline const CTmCode& Code() const;
- __declspec(dllexport) TBool GetDisplayedText(TInt aLineNumber,TDes& aText,TInt& aNeeded) const;
- __declspec(dllexport) TBool FindDocPos(const TTmDocPos& aDocPos,TTmPosInfo& aPosInfo,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool FindXyPos(const TPoint& aXyPos,TTmPosInfo& aPosInfo,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool GetNextVisualCursorPos(const TTmDocPos& aDocPos,TTmPosInfo& aInfo,TBool aToLeft) const;
- __declspec(dllexport) TBool DocPosToLine(const TTmDocPos& aDocPos,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool GetCursor(const TTmDocPos& aDocPos,
- TTmCursorPlacement aPlacement, TTmLineInfo& aLineInfo,
- TPoint& aOrigin, TInt& aWidth, TInt& aAscent, TInt& aDescent) const;
- private:
- void Invariant() const;
- void AdjustWidth(const TTmFormatParamBase& aParam,TInt aWidthOfNewText);
- void HighlightRect(CGraphicsContext& aGc, const TPoint& aTopLeft, const TRect& aClipRect, const TTmHighlightExtensions& aHighlightExtensions, const TRect& aRect) const;
- void InvertLayout(CGraphicsContext& aGc, const TPoint& aTopLeft, const TRect& aClipRect, const TTmHighlightExtensions& aHighlightExtensions, TInt aStartDocPos,TInt aEndDocPos, TInt aHighlightStartDocPos, TInt aHighlightEndDocPos) const;
- void InvertRect(CGraphicsContext& aGc, const TPoint& aTopLeft, const TTmHighlightExtensions& aHighlightExtensions, const TRect& aInvertRect,TInt aOriginalHighlightStartPos,TInt aOriginalHighlightEndPos, TInt aNewHighlightStartPos,TInt aNewHighlightEndPos) const;
- TBool FindOverlapRect(const TPoint& aTopLeft, const TTmHighlightExtensions& aHighlightExtensions, const TRect& aRect, TInt aHighlightStartPos,TInt aHighlightEndPos, TRect& aOverlapRect) const;
- void DrawRect(CGraphicsContext& aGc, const TPoint& aTopLeft, const TRect& aClipRect, const TTmHighlightExtensions& aHighlightExtensions, const TRect& aRect) const;
- void DrawRectExcludingHighlight(CGraphicsContext& aGc, const TPoint& aTopLeft, const TRect& aClipRect, const TTmHighlightExtensions& aHighlightExtensions, TInt aHighlightStartPos,TInt aHighlightEndPos, const TRect& aRect) const;
- MTmSource* iSource;
- CTmCode iCode;
- TInt iWidth;
- TInt iHeight;
- TInt iStartChar;
- TInt iEndChar;
- };
- #line 1181
- class MTmTextLayoutForwarder
- {
- public:
- __declspec(dllexport) void DrawLayout(CGraphicsContext& aGc,const TPoint& aTopLeft,const TRect& aClipRect,
- const TLogicalRgb* aDocBackground,TBool aDrawParBackground) const;
- __declspec(dllexport) void DrawBackground(CGraphicsContext& aGc,const TPoint& aTopLeft,const TRect& aClipRect,
- const TLogicalRgb& aBackground) const;
- __declspec(dllexport) void InvertLayout(CGraphicsContext& aGc,const TPoint& aTopLeft,TInt aStartDocPos,TInt aEndDocPos);
- __declspec(dllexport) TBool FindDocPos(const TTmDocPosSpec& aDocPos,TTmPosInfo2& aPosInfo,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool FindXyPos(const TPoint& aXyPos,TTmPosInfo2& aPosInfo,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool FindXyPosWithDisambiguation(const TPoint& aXyPos,
- TTmPosInfo2& aPosLeft, TTmPosInfo2& aPosRight,
- TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool DocPosToLine(const TTmDocPosSpec& aDocPos,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool LineNumberToLine(TInt aLineNumber,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool ParNumberToLine(TInt aParNumber,TInt aLineInPar,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool YPosToLine(TInt aYPos,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TInt WidthOfWidestLine(TInt aTop = 0,TInt aBottom = KMaxTInt) const;
- __declspec(dllexport) void HorizontalExtremes(TInt &aLeft, TInt &aRight,
- TInt aTopY = 0, TInt aBottomY = KMaxTInt) const;
- __declspec(dllexport) TBool GetNextVisualCursorPos(const TTmDocPosSpec& aDocPos,TTmPosInfo2& aInfo,TBool aToLeft) const;
- __declspec(dllexport) TBool GetNextPosLeftWithDisambiguation(const TTmDocPosSpec& aDocPos,
- TTmPosInfo2& aPosLeft, TTmPosInfo2& aPosRight) const;
- __declspec(dllexport) TBool GetNextPosRightWithDisambiguation(const TTmDocPosSpec& aDocPos,
- TTmPosInfo2& aPosLeft, TTmPosInfo2& aPosRight) const;
- __declspec(dllexport) TBool GetCursor(const TTmDocPosSpec& aDocPos,TTmCursorPlacement aPlacement,
- TTmLineInfo& aLineInfo,TPoint& aOrigin,TInt& aWidth,TInt& aAscent,TInt& aDescent) const;
- __declspec(dllexport) TInt Lines() const;
- __declspec(dllexport) TInt Paragraphs() const;
- __declspec(dllexport) TBool GetDisplayedText(TInt aLineNumber,TDes& aText,TInt& aNeeded) const;
- __declspec(dllexport) void GetMinimumLayoutSizeL(TInt aWrapWidth,TSize& aSize) const;
- __declspec(dllexport) void GetMinimumLayoutSizeL(TInt aWrapWidth,TBool aAllowLegalLineBreaksOnly,TSize& aSize) const;
- __declspec(dllexport) TInt StartChar() const;
- __declspec(dllexport) TInt EndChar() const;
- __declspec(dllexport) TInt LayoutWidth() const;
- __declspec(dllexport) TInt LayoutHeight() const;
- __declspec(dllexport) TBool FindDocPos(const TTmDocPos& aDocPos,TTmPosInfo& aPosInfo,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool FindXyPos(const TPoint& aXyPos,TTmPosInfo& aPosInfo,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool DocPosToLine(const TTmDocPos& aDocPos,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool GetNextVisualCursorPos(const TTmDocPos& aDocPos,TTmPosInfo& aInfo,TBool aToLeft) const;
- __declspec(dllexport) TBool GetCursor(const TTmDocPos& aDocPos,
- TTmCursorPlacement aPlacement, TTmLineInfo& aLineInfo,
- TPoint& aOrigin, TInt& aWidth, TInt& aAscent, TInt& aDescent) const;
- private:
- virtual const CTmTextLayout& TextLayout() const = 0;
- __declspec(dllexport) virtual void GetOrigin(TPoint& aPoint) const;
- void FixUpLineInfo(TTmLineInfo& aInfo,const TPoint* aOrigin = 0 ) const;
- };
- class TTmCharFormatLayer
- {
- public:
- inline TTmCharFormatLayer();
- __declspec(dllexport) TTmCharFormatLayer(const CCharFormatLayer& aFormat);
- TTmCharFormat iFormat;
- TTmCharFormatMask iMask;
- };
- class RTmParFormatLayer
- {
- public:
- inline void Close();
- __declspec(dllexport) void CopyL(const CParaFormatLayer& aFormat);
- RTmParFormat iFormat;
- TTmParFormatMask iMask;
- };
- class RTmStyle
- {
- public:
- enum
- {
- EMaxName = KMaxParagraphStyleName
- };
- inline void Close();
- __declspec(dllexport) void CopyL(const RParagraphStyleInfo& aStyle);
- __declspec(dllexport) void GetRParagraphStyleInfoL(RParagraphStyleInfo& aStyle,
- const CParaFormatLayer& aGlobalParaFormatLayer,const CCharFormatLayer& aGlobalCharFormatLayer,
- const CStyleList& aList) const;
- TBuf<KMaxName> iName;
- TBuf<KMaxName> iNextStyleName;
- TTmCharFormatLayer iCharFormat;
- RTmParFormatLayer iParFormat;
- TInt iOutlineLevel;
- };
- class CTmText: public CBase, public MTmTextLayoutForwarder
- {
- public:
- __declspec(dllexport) static CTmText* NewL(MGraphicsDeviceMap* aDevice = 0 ,const TTmFormatParamBase* aFormatParam = 0 );
- __declspec(dllexport) static CTmText* NewL(MGraphicsDeviceMap& aDevice,const TTmFormatParamBase& aFormatParam);
- __declspec(dllexport) static CTmText* NewL(MGraphicsDeviceMap& aDevice,TInt aWrapWidth,TInt aFlags);
- __declspec(dllexport) ~CTmText();
- __declspec(dllexport) void InsertL(TInt aPos,const TDesC& aText,
- const TTmCharFormat* aCharFormat = 0 ,const RTmParFormat* aParFormat = 0 ,
- TRect* aRedrawRect = 0 ,TInt* aScroll = 0 );
- __declspec(dllexport) void GetFormat(TTmFormatParamBase& aFormatParam) const;
- __declspec(dllexport) void SetWrapWidthL(TInt aWrapWidth);
- __declspec(dllexport) void ChangeFormatL(const TTmFormatParamBase& aFormatParam);
- __declspec(dllexport) void Clear();
- __declspec(dllexport) void CustomizeL(const MTmCustom* aCustom);
- __declspec(dllexport) TInt MemoryUsed() const;
- inline void Draw(CGraphicsContext& aGc,const TPoint& aTopLeft,const TRect& aClipRect,
- const TLogicalRgb* aDocBackground,TBool aDrawParBackground);
- private:
- CTmText();
- __declspec(dllexport) void Spare1();
- const CTmTextLayout& TextLayout() const;
- CTmTextImp* iImp;
- };
- TTmCharFormatMask::TTmCharFormatMask(): iFlags(0xFFFFFFFF)
- {
- }
- void TTmCharFormatMask::Clear(TAttrib aAttrib)
- {
- iFlags &= ~aAttrib;
- }
- void TTmCharFormatMask::Set(TAttrib aAttrib)
- {
- iFlags |= aAttrib;
- }
- TBool TTmCharFormatMask::IsSet(TAttrib aAttrib)
- {
- return iFlags & aAttrib;
- }
- TTmCharFormat::TTmCharFormat(const TCharFormat& aFormat)
- {
- *this = aFormat;
- }
- TBool TTmCharFormat::operator!=(const TTmCharFormat& aFormat) const
- {
- return !operator==(aFormat);
- }
- TTmTab::TTmTab():
- iPosition(0),
- iType(EStandardTab)
- {
- }
- TTmTab::TTmTab(const TTabStop& aTab)
- {
- *this = aTab;
- }
- TBool TTmTab::operator!=(const TTmTab& aTab) const
- {
- return !operator==(aTab);
- }
- TTmBullet::TTmBullet(const TBullet& aBullet)
- {
- *this = aBullet;
- }
- TBool TTmBullet::operator!=(const TTmBullet& aBullet) const
- {
- return !operator==(aBullet);
- }
- TTmParBorder::TTmParBorder(const TParaBorder& aBorder)
- {
- *this = aBorder;
- }
- TBool TTmParBorder::operator!=(const TTmParBorder& aBorder) const
- {
- return !operator==(aBorder);
- }
- TTmParFormatMask::TTmParFormatMask():
- iFlags(0xFFFFFFFF)
- {
- }
- void TTmParFormatMask::Clear(TAttrib aAttrib)
- {
- iFlags &= ~aAttrib;
- }
- void TTmParFormatMask::Set(TAttrib aAttrib)
- {
- iFlags |= aAttrib;
- }
- TBool TTmParFormatMask::IsSet(TAttrib aAttrib)
- {
- return iFlags & aAttrib;
- }
- RTmParFormat::~RTmParFormat()
- {
- (void)((!iTabList && !iBullet && !HaveBorders())||( User::Invariant(),0)) ;
- }
- TBool RTmParFormat::operator!=(const RTmParFormat& aFormat) const
- {
- return !operator==(aFormat);
- }
- const TTmTab& RTmParFormat::Tab(TInt aIndex) const
- {
- return (*iTabList)[aIndex];
- }
- const TTmBullet* RTmParFormat::Bullet() const
- {
- return iBullet;
- }
- const TTmParBorder* RTmParFormat::Border(TBorderIndex aIndex) const
- {
- return iBorder[aIndex];
- }
- TBool RTmParFormat::RightToLeft() const
- {
- return iFlags & ERightToLeft;
- }
- MTmCustom::TLineHeightParam::TLineHeightParam()
- {
- Mem::FillZ(this,sizeof(*this));
- }
- CTmBufSeg::CTmBufSeg(TInt aExpandSize):
- CBufSeg(aExpandSize)
- {
- }
- CTmCode::~CTmCode()
- {
- delete iBuffer;
- }
- TPtr8 CTmCode::Ptr(TInt aPos)
- {
- return iBuffer->Ptr(aPos);
- }
- CBufBase* CTmCode::Buffer()
- {
- return iBuffer;
- }
- const CBufBase* CTmCode::Buffer() const
- {
- return iBuffer;
- }
- TBool TTmFormatParamBase::IsWrapping() const
- {
- return iFlags & EWrap;
- }
- TBool TTmFormatParamBase::IsTruncatingWithEllipsis() const
- {
- return iFlags & ETruncateWithEllipsis;
- }
- TBool TTmFormatParamBase::LegalLineBreaksOnly() const
- {
- return iFlags & ELegalLineBreaksOnly;
- }
- TTmLineInfo::TTmLineInfo()
- {
- Mem::FillZ(this,sizeof(*this));
- }
- TTmDocPos::TTmDocPos():
- iPos(0),
- iLeadingEdge(0 )
- {
- }
- TTmDocPos::TTmDocPos(TInt aPos,TBool aLeadingEdge):
- iPos(aPos),
- iLeadingEdge(aLeadingEdge)
- {
- }
- TTmDocPosSpec::TTmDocPosSpec():
- iPos(0),
- iType(ETrailing)
- {
- }
- TBool TTmDocPos::operator!=(const TTmDocPos& aPos) const { return !((*this)==aPos); }
- TBool TTmDocPos::operator<(const TTmDocPos& aPos) const { return !((*this)>=aPos); }
- TBool TTmDocPos::operator<=(const TTmDocPos& aPos) const { return !((*this)>aPos); }
- TTmDocPosSpec::TTmDocPosSpec(TInt aPos,TType aType):
- iPos(aPos),
- iType(aType)
- {
- }
- TTmDocPosSpec::TTmDocPosSpec(const TTmDocPos& aDocPos):
- iPos(aDocPos.iPos),
- iType(aDocPos.iLeadingEdge ? ELeading : ETrailing)
- {
- }
- TInt CTmTextLayout::StartChar() const
- {
- return iStartChar;
- }
- TInt CTmTextLayout::EndChar() const
- {
- return iEndChar;
- }
- TInt CTmTextLayout::LayoutWidth() const
- {
- return iWidth;
- }
- TInt CTmTextLayout::LayoutHeight() const
- {
- return iHeight;
- }
- MTmSource* CTmTextLayout::Source()
- {
- return iSource;
- }
- const MTmSource* CTmTextLayout::Source() const
- {
- return iSource;
- }
- const CTmCode& CTmTextLayout::Code() const
- {
- return iCode;
- }
- TTmCharFormatLayer::TTmCharFormatLayer()
- {
- }
- void RTmParFormatLayer::Close()
- {
- iFormat.Close();
- }
- void RTmStyle::Close()
- {
- iParFormat.Close();
- }
- void CTmText::Draw(CGraphicsContext& aGc,const TPoint& aTopLeft,const TRect& aClipRect,
- const TLogicalRgb* aDocBackground,TBool aDrawParBackground)
- {
- DrawLayout(aGc,aTopLeft,aClipRect,aDocBackground,aDrawParBackground);
- }
- TTmHighlightExtensions::TTmHighlightExtensions()
- {
- }
- void TTmHighlightExtensions::SetAll(TInt aExtension)
- {
- iLeftExtension=iRightExtension=iTopExtension=iBottomExtension=aExtension;
- }
- void TTmHighlightExtensions::SetLeftExtension(TInt aExtension)
- {
- iLeftExtension=aExtension;
- }
- void TTmHighlightExtensions::SetRightExtension(TInt aExtension)
- {
- iRightExtension=aExtension;
- }
- void TTmHighlightExtensions::SetTopExtension(TInt aExtension)
- {
- iTopExtension=aExtension;
- }
- void TTmHighlightExtensions::SetBottomExtension(TInt aExtension)
- {
- iBottomExtension=aExtension;
- }
- TInt TTmHighlightExtensions::LeftExtension() const
- {
- return iLeftExtension;
- }
- TInt TTmHighlightExtensions::RightExtension() const
- {
- return iRightExtension;
- }
- TInt TTmHighlightExtensions::TopExtension() const
- {
- return iTopExtension;
- }
- TInt TTmHighlightExtensions::BottomExtension() const
- {
- return iBottomExtension;
- }
- TBool TTmHighlightExtensions::Extends() const
- {
- if (iTopExtension>0 || iBottomExtension>0 || iLeftExtension>0 || iRightExtension>0)
- return ETrue;
- else
- return EFalse;
- }
- inline void TTmHighlightExtensions::ExtendRect(TRect& aRect) const
- {
- if (iLeftExtension>0)
- aRect.iTl.iX-=iLeftExtension;
- if (iRightExtension>0)
- aRect.iBr.iX+=iRightExtension;
- if (iTopExtension>0)
- aRect.iTl.iY-=iTopExtension;
- if (iBottomExtension>0)
- aRect.iBr.iY+=iBottomExtension;
- }
- inline void TTmHighlightExtensions::AdjustRect(TRect& aRect) const
- {
- aRect.iTl.iX-=iLeftExtension;
- aRect.iTl.iY-=iTopExtension;
- aRect.iBr.iX+=iRightExtension;
- aRect.iBr.iY+=iBottomExtension;
- }
- #line 17 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmtlay.h" /* stack depth 7 */
- class CWindowGc;
- class MLayDoc;
- class TLayDocTextSource;
- #line 35
- class MFormCustomInterfaceProvider
- {
- public:
- #line 47
- virtual TAny* GetExtendedInterface(const TUid& aInterfaceId) = 0;
- };
- #line 58
- class TViewYPosQualifier
- {
- friend class CTextLayout;
- friend class CTextView;
- public:
- enum TPartOfLine
- {
- EFViewTopOfLine = 1,
- EFViewBaseLine = 0,
- EFViewBottomOfLine = 2
- };
- enum TFullyVisible
- {
- EFViewForceLineFullyVisible = ETrue,
- EFViewDontForceLineFullyVisible = EFalse
- };
- public:
- inline TViewYPosQualifier();
- __declspec(dllexport) void SetHotSpot(TPartOfLine aHotSpot);
- __declspec(dllexport) void SetFillScreen(TBool aFillScreen = ETrue);
- __declspec(dllexport) void SetMakeLineFullyVisible(TFullyVisible aMakeLineFullyVisible = EFViewForceLineFullyVisible);
- private:
- TPartOfLine iHotSpot;
- TBool iFillScreen;
- TFullyVisible iFullyVisible;
- };
- class TViewRectChanges
- {
- public:
- inline TViewRectChanges();
- void AdjustAll(TInt aDelta);
- public:
- TInt iFormattedFrom;
- TInt iFormattedTo;
- TInt iScrollAtTop;
- TInt iScrollAtBottom;
- };
- #line 131
- class TCursorSelection
- {
- public:
- inline TCursorSelection();
- inline TCursorSelection(TInt aCursorPos,TInt aAnchorPos);
- inline void SetSelection(TInt aCursorPos,TInt aAnchorPos);
- inline TInt LowerPos() const;
- inline TInt HigherPos() const;
- inline TInt Length() const;
- public:
- TInt iCursorPos;
- TInt iAnchorPos;
- };
- #line 160
- class TDrawTextLayoutContext
- {
- private:
- enum TDrawMode
- {
- EFDrawText=0x001,
- EFDrawGraphics=0x002,
- EFUseClippingRect=0x004,
- EFUseWindowGc=0x008,
- EFUseGcClear=0x020,
- EFUseBackgroundColor=0x040,
- EFUseOverrideTextColor=0x080,
- EFParagraphFillTextOnly=0x100,
- EFAllFlags=0xfff
- };
- public:
- __declspec(dllexport) TDrawTextLayoutContext();
- __declspec(dllexport) void SetGc(CGraphicsContext* aGc,CGraphicsContext* aPictureGc=0 );
- __declspec(dllexport) void SetBitmapGc(CBitmapContext* aGc,CBitmapContext* aPictureGc=0 );
- __declspec(dllexport) void SetWindowGc(CWindowGc* aGc,CWindowGc* aPictureGc=0 );
- __declspec(dllexport) void SetDrawToEveryPixel(TBool aDrawToEveryPixel);
- __declspec(dllexport) void SetTextColorOverride(const TRgb *aOverrideColor);
- __declspec(dllexport) void SetDrawTextOnly();
- __declspec(dllexport) void SetDrawGraphicsOnly();
- __declspec(dllexport) void SetDrawTextAndGraphics();
- __declspec(dllexport) void SetClipping(TBool aClipping);
- __declspec(dllexport) void SetParagraphFillTextOnly(TBool aFillTextOnly);
- __declspec(dllexport) const TRgb* TextOverrideColor() const;
- __declspec(dllexport) CGraphicsContext* PrimaryGc() const;
- __declspec(dllexport) CGraphicsContext* PictureGc() const;
- __declspec(dllexport) TBool UseClippingRect() const;
- __declspec(dllexport) TBool UseGcClear() const;
- __declspec(dllexport) TBool DrawText() const;
- __declspec(dllexport) TBool DrawGraphics() const;
- __declspec(dllexport) TBool UseBackgroundColor() const;
- __declspec(dllexport) TBool ParagraphFillTextOnly() const;
- __declspec(dllexport) TRect TextArea() const;
- __declspec(dllexport) TInt DisplayHeight() const;
- __declspec(dllexport) TPoint TopLeftTextArea() const;
- __declspec(dllexport) TRect TotalMargin() const;
- __declspec(dllexport) TRect LabelMargin() const;
- __declspec(dllexport) TBool IsLabelMargin() const;
- __declspec(dllexport) TRect GutterMargin() const;
- __declspec(dllexport) TBool IsGutterMargin() const;
- __declspec(dllexport) TPoint TopLeftText() const;
- __declspec(dllexport) void WindowToText(TPoint& aWinPos) const;
- __declspec(dllexport) void WindowToText(TRect& aRect) const;
- __declspec(dllexport) void TextToWindow(TPoint& aTextAreaPos) const;
- __declspec(dllexport) void TextToWindow(TRect& aRect) const;
- public:
- TRect iViewRect;
- TInt iLabelMarginWidth;
- TInt iGutterMarginWidth;
- TInt iTextStartX;
- TLogicalRgb iBackgroundColor;
- private:
- CGraphicsContext* iGc;
- CGraphicsContext* iPictureGc;
- TLogicalRgb iOverrideTextColor;
- TUint iDrawMode;
- };
- #line 256
- class MFormCustomDraw
- {
- public:
- class TParam
- {
- public:
- TParam(CGraphicsContext& aGc,MGraphicsDeviceMap& aMap,const TPoint& aTextLayoutTopLeft,const TRect& aDrawRect):
- iGc(aGc), iMap(aMap), iTextLayoutTopLeft(aTextLayoutTopLeft), iDrawRect(aDrawRect) { }
- CGraphicsContext& iGc;
- MGraphicsDeviceMap& iMap;
- const TPoint& iTextLayoutTopLeft;
- const TRect& iDrawRect;
- };
- class TLineInfo
- {
- public:
- TLineInfo(const TRect& aOuterRect,const TRect& aInnerRect,TInt aBaseline):
- iOuterRect(aOuterRect), iInnerRect(aInnerRect), iBaseline(aBaseline) { }
- const TRect& iOuterRect;
- const TRect& iInnerRect;
- TInt iBaseline;
- };
- __declspec(dllexport) virtual void DrawBackground(const TParam& aParam,const TRgb& aBackground,TRect& aDrawn) const;
- __declspec(dllexport) virtual void DrawLineGraphics(const TParam& aParam,const TLineInfo& aLineInfo) const;
- __declspec(dllexport) virtual void DrawText(const TParam& aParam,const TLineInfo& aLineInfo,const TCharFormat& aFormat,
- const TDesC& aText,const TPoint& aTextOrigin,TInt aExtraPixels) const;
- __declspec(dllexport) virtual TRgb SystemColor(TUint aColorIndex,TRgb aDefaultColor) const;
- __declspec(dllexport) virtual void MFormCustomDraw_Reserved_1();
- __declspec(dllexport) virtual void MFormCustomDraw_Reserved_2();
- };
- #line 326
- class MFormCustomWrap
- {
- public:
- __declspec(dllexport) virtual TUint LineBreakClass(TUint aCode,TUint& aRangeStart,TUint& aRangeEnd) const;
- __declspec(dllexport) virtual TBool LineBreakPossible(TUint aPrevClass,TUint aNextClass,TBool aHaveSpaces) const;
- __declspec(dllexport) virtual TBool GetLineBreakInContext(const TDesC& aText,TInt aMinBreakPos,TInt aMaxBreakPos,
- TBool aForwards,TInt& aBreakPos) const;
- __declspec(dllexport) virtual TBool IsHangingCharacter(TUint aChar) const;
- private:
- __declspec(dllexport) virtual void MFormCustomWrap_Reserved_1();
- __declspec(dllexport) virtual void MFormCustomWrap_Reserved_2();
- };
- #line 349
- class MFormCustomInvisibleCharacterRemapper
- {
- public:
- __declspec(dllexport) static TUint DefaultMapping(TUint aChar, const TNonPrintingCharVisibility aNonPrintingCharVisibility, const TLayDocTextSource& aLayDoc);
- #line 373
- virtual TUint Remap(TUint aChar, const TNonPrintingCharVisibility aNonPrintingCharVisibility, const TLayDocTextSource& aLayDoc) = 0;
- };
- class TLayDocTextSource : public MTmSource, public MFormLabelApi, public MTmTextDrawExt
- {
- public:
- enum
- {
- EDefaultFontHeightIncreaseFactor = 7,
- EDefaultMinimumLineDescent = 3
- };
- TLayDocTextSource();
- MGraphicsDeviceMap& FormatDevice() const;
- MGraphicsDeviceMap& InterpretDevice() const;
- TInt DocumentLength() const;
- void GetText(TInt aPos,TPtrC& aText,TTmCharFormat& aFormat) const;
- void GetParagraphFormatL(TInt aPos,RTmParFormat& aFormat) const;
- TInt ParagraphStart(TInt aPos) const;
- TRgb SystemColor(TUint aColorIndex,TRgb aDefaultColor) const;
- CPicture* PictureL(TInt aPos) const;
- TInt GetPictureSizeInTwipsL(TInt aPos,TSize& aSize) const;
- TBool LabelModeSelect(TLabelType aType, TInt aPos);
- void LabelModeCancel();
- void LabelMetrics(TLabelType aType, TSize& aLabelSize, TInt& aMarginSize) const;
- TUint Map(TUint aChar) const;
- void SetLineHeight(const TLineHeightParam& aParam,TInt& aAscent,TInt& aDescent) const;
- TBool PageBreakInRange(TInt aStartPos,TInt aEndPos) const;
- void DrawBackground(CGraphicsContext& aGc,const TPoint& aTextLayoutTopLeft,const TRect& aRect,
- const TLogicalRgb& aBackground,TRect& aRectDrawn) const;
- void DrawLineGraphics(CGraphicsContext& aGc,const TPoint& aTextLayoutTopLeft,const TRect& aRect,
- const TTmLineInfo& aLineInfo) const;
- void DrawText(CGraphicsContext& aGc,const TPoint& aTextLayoutTopLeft,const TRect& aRect,
- const TTmLineInfo& aLineInfo,const TTmCharFormat& aFormat,
- const TDesC& aText,const TPoint& aTextOrigin,TInt aExtraPixels) const;
- virtual void DrawPicture(CGraphicsContext& aGc,
- const TPoint& aTextLayoutTopLeft, const TRect& aRect,
- MGraphicsDeviceMap& aDevice, const CPicture& aPicture) const;
- TBool LineBreakPossible(TUint aPrevClass,TUint aNextClass,TBool aHaveSpaces) const;
- TUint LineBreakClass(TUint aCode,TUint& aRangeStart,TUint& aRangeEnd) const;
- TBool GetLineBreakInContext(const TDesC& aText,TInt aMinBreakPos,TInt aMaxBreakPos,
- TBool aForwards,TInt& aBreakPos) const;
- TBool IsHangingCharacter(TUint aChar) const;
- TBool CanMap() const;
- TAny* GetExtendedInterface(const TUid& aInterfaceId);
- virtual void DrawLine(CGraphicsContext& aGc, const TPoint& aPt1, const TPoint& aPt2) const;
- virtual void DrawText(CGraphicsContext& aGc, const TDesC& aText, const TPoint& aPt) const;
- virtual void DrawRect(CGraphicsContext& aGc, const TRect& aRc) const;
- void SetOpaque(CGraphicsContext& aGc) const;
- void ResetOpaque(CGraphicsContext& aGc) const;
- enum
- {
- EWrap = 1,
- ETruncateWithEllipsis = 2,
- EUseLabelsDevice = 4
- };
- MLayDoc* iLayDoc;
- TUint iFlags;
- TInt iWidth;
- TChar iEllipsis;
- TInt iLabelsWidth;
- TInt iLabelsGutter;
- CLayoutData::TFormatMode iFormatMode;
- MGraphicsDeviceMap* iImageDevice;
- MGraphicsDeviceMap* iLabelsDevice;
- MGraphicsDeviceMap* iFormatDevice;
- TInt iFontHeightIncreaseFactor;
- TInt iMinimumLineDescent;
- TNonPrintingCharVisibility iNonPrintingCharVisibility;
- const MFormParam* iFormParam;
- const MFormCustomDraw* iCustomDraw;
- const MFormCustomWrap* iCustomWrap;
- MFormCustomInterfaceProvider* iInterfaceProvider;
- TBool iDrawOpaque;
- TInt iExcessHeightRequired;
- MFormCustomInvisibleCharacterRemapper* iInvisibleCharacterRemapper;
- };
- #line 513
- class CTextLayout: public CBase
- {
- public:
- enum TDiscard
- {
- EFViewDiscardAllFormat = 1 ,
- EFViewDontDiscardFormat = 0
- };
- enum TAllowDisallow
- {
- EFAllowScrollingBlankSpace = 1 ,
- EFDisallowScrollingBlankSpace = 0
- };
- enum
- {
- EFCharacterInsert,
- EFParagraphDelimiter,
- EFLeftDelete,
- EFRightDelete
- };
- enum
- {
- EFScrollRedrawWholeScreen = CLayoutData::EFLargeNumber,
- EFMaximumLineWidth = CLayoutData::EFBodyWidthForNoWrapping,
- };
- enum
- {
- EFAllParagraphsNotWrapped = 1 ,
- EFParagraphsWrappedByDefault = 0
- };
- enum TAmountFormatted
- {
- EFFormatAllText = 0 ,
- EFFormatBand = 1 ,
- };
- enum TScrollFlags
- {
- EFScrollOnlyToTopsOfLines = 1
- };
- enum TCurrentFormat
- {
- EFNoCurrentFormat = -1,
- EFNotInCurrentFormat = 0
- };
- public:
- class TRangeChange
- #line 618
- {
- public:
- enum TChangeType
- {
- ESet,
- EClear
- };
- __declspec(dllexport) TRangeChange(TInt aStart, TInt aEnd, TChangeType aChange);
- __declspec(dllexport) TRangeChange();
- __declspec(dllexport) void Set(TInt aStart, TInt aEnd, TChangeType aChange);
- __declspec(dllexport) TChangeType Get(TInt& aStart, TInt& aEnd) const;
- __declspec(dllexport) void OptimizeWith(TRangeChange& aBuddy);
- __declspec(dllexport) TBool NonNull() const;
- __declspec(dllexport) TBool Clip(TInt aMin, TInt aMax);
- private:
- TInt iA;
- TInt iB;
- };
- public:
- class TTagmaForwarder: public MTmTextLayoutForwarder
- #line 652
- {
- public:
- inline TTagmaForwarder(const CTextLayout& aLayout);
- private:
- inline const CTmTextLayout& TextLayout() const;
- inline void GetOrigin(TPoint& aPoint) const;
- const CTextLayout& iLayout;
- };
- class TUtf32SourceCache
- {
- public:
- TUtf32SourceCache(const MTmSource& aSource);
- TUtf32SourceCache(const CTextLayout& aLayout);
- TText GetUtf16(TInt aIndex);
- TChar GetUtf32(TInt aIndex);
- private:
- const MTmSource* iSource;
- TPtrC16 iCurrentView;
- TInt iCurrentViewIndex;
- };
- friend class TUtf32SourceCache;
- __declspec(dllexport) static CTextLayout *NewL(MLayDoc *aDoc,TInt aWrapWidth);
- __declspec(dllexport) ~CTextLayout();
- __declspec(dllexport) void DiscardFormat();
- __declspec(dllexport) void SetLayDoc(MLayDoc *aDoc);
- __declspec(dllexport) void SetWrapWidth(TInt aWrapWidth);
- __declspec(dllexport) void SetBandHeight(TInt aHeight);
- __declspec(dllexport) TInt BandHeight() const;
- __declspec(dllexport) void SetImageDeviceMap(MGraphicsDeviceMap *aGd);
- __declspec(dllexport) void SetLabelsDeviceMap(MGraphicsDeviceMap *aDeviceMap);
- __declspec(dllexport) void SetAmountToFormat(TAmountFormatted aAmountOfFormat = EFFormatBand);
- __declspec(dllexport) TBool IsFormattingBand() const;
- __declspec(dllexport) void SetFormatMode(CLayoutData::TFormatMode aFormatMode,TInt aWrapWidth,MGraphicsDeviceMap* aFormatDevice);
- __declspec(dllexport) void ForceNoWrapping(TBool aNoWrapping = EFAllParagraphsNotWrapped);
- __declspec(dllexport) TBool IsWrapping() const;
- __declspec(dllexport) void SetTruncating(TBool aOn);
- __declspec(dllexport) TBool Truncating() const;
- __declspec(dllexport) void SetTruncatingEllipsis(TChar aEllipsis);
- __declspec(dllexport) TChar TruncatingEllipsis() const;
- __declspec(dllexport) void SetLabelsMarginWidth(TInt aWidth);
- __declspec(dllexport) void SetNonPrintingCharsVisibility(TNonPrintingCharVisibility aVisibility);
- __declspec(dllexport) TNonPrintingCharVisibility NonPrintingCharsVisibility() const;
- __declspec(dllexport) TBool IsBackgroundFormatting() const;
- __declspec(dllexport) void NotifyTerminateBackgroundFormatting();
- __declspec(dllexport) void SetExcludePartialLines(TBool aExcludePartialLines = 1 );
- __declspec(dllexport) TBool ExcludingPartialLines() const;
- __declspec(dllexport) void SetFontHeightIncreaseFactor(TInt aPercentage);
- __declspec(dllexport) TInt FontHeightIncreaseFactor() const;
- __declspec(dllexport) void SetMinimumLineDescent(TInt aPixels);
- __declspec(dllexport) TInt MinimumLineDescent() const;
- __declspec(dllexport) TInt DocumentLength() const;
- __declspec(dllexport) TInt ToParagraphStart(TInt& aDocPos) const;
- __declspec(dllexport) TInt PixelsAboveBand() const;
- __declspec(dllexport) TInt YBottomLastFormattedLine() const;
- __declspec(dllexport) TInt FormattedHeightInPixels() const;
- __declspec(dllexport) TInt PosRangeInBand(TInt& aDocPos) const;
- __declspec(dllexport) TBool PosInBand(const TTmDocPos& aDocPos,TTmLineInfo* aLineInfo = 0 ) const;
- __declspec(dllexport) TBool PosInBand(TTmDocPos aDocPos,TPoint& aXyPos) const;
- __declspec(dllexport) TBool PosInBand(TInt aDocPos,TPoint& aXyPos) const;
- __declspec(dllexport) TBool PosIsFormatted(TInt aDocPos) const;
- __declspec(dllexport) TInt FirstCharOnLine(TInt aLineNo) const;
- __declspec(dllexport) TInt FormattedLength() const;
- __declspec(dllexport) TInt FirstFormattedPos() const;
- __declspec(dllexport) TInt NumFormattedLines() const;
- __declspec(dllexport) TInt FirstLineInBand() const;
- __declspec(dllexport) TInt GetLineRect(TInt aYPos,TRect& aLine) const;
- __declspec(dllexport) TInt ParagraphHeight(TInt aDocPos) const;
- __declspec(dllexport) TRect ParagraphRectL(TInt aDocPos) const;
- __declspec(dllexport) TBool CalculateHorizontalExtremesL(TInt& aLeftX,TInt& aRightX,TBool aOnlyVisibleLines,
- TBool aIgnoreWrapCharacters = 0 ) const;
- __declspec(dllexport) void GetCharacterHeightAndAscentL(TInt aDocPos,TInt& aHeight,TInt& aAscent) const;
- __declspec(dllexport) void GetFontHeightAndAscentL(const TFontSpec& aFontSpec,TInt& aHeight,TInt& aAscent) const;
- __declspec(dllexport) TInt XyPosToDocPosL(TPoint &aPos, TUint aFlags = 0) const;
- __declspec(dllexport) TBool DocPosToXyPosL(TInt aDocPos, TPoint& aPos, TUint aFlags = 0) const;
- __declspec(dllexport) TBool FindXyPos(const TPoint& aXyPos,TTmPosInfo2& aPosInfo,TTmLineInfo* aLineInfo = 0 ) const;
- __declspec(dllexport) TBool FindDocPos(const TTmDocPosSpec& aDocPos,TTmPosInfo2& aPosInfo,TTmLineInfo* aLineInfo = 0 ) const;
- __declspec(dllexport) TRect GetLineRectL(TInt aDocPos1,TInt aDocPos2) const;
- __declspec(dllexport) TBool PictureRectangleL(TInt aDocPos,TRect& aPictureRect,TBool* aCanScaleOrCrop = 0 ) const;
- __declspec(dllexport) TBool PictureRectangleL(const TPoint& aXyPos,TRect& aPictureRect,TBool* aCanScaleOrCrop = 0 ) const;
- __declspec(dllexport) TInt FirstDocPosFullyInBand() const;
- __declspec(dllexport) void GetMinimumSizeL(TInt aWrapWidth,TSize& aSize);
- __declspec(dllexport) void GetMinimumSizeL(TInt aWrapWidth,TBool aAllowLegalLineBreaksOnly,TSize& aSize);
- __declspec(dllexport) TInt MajorVersion() const;
- __declspec(dllexport) TInt SetViewL(const TTmDocPos& aDocPos,TInt& aYPos,TViewYPosQualifier aYPosQualifier,
- TDiscard aDiscardFormat = EFViewDontDiscardFormat);
- __declspec(dllexport) TInt SetViewL(TInt aDocPos,TInt& aYPos,TViewYPosQualifier aYPosQualifier,
- TDiscard aDiscardFormat = EFViewDontDiscardFormat);
- __declspec(dllexport) void FormatBandL();
- __declspec(dllexport) void FormatCharRangeL(TInt aStartDocPos,TInt aEndDocPos);
- void FormatCharRangeL(TInt aStartDocPos,TInt aEndDocPos,TInt aPixelOffset);
- __declspec(dllexport) TBool FormatNextLineL(TInt& aBotPixel);
- __declspec(dllexport) TBool FormatLineL(CParaFormat* aParaFormat,TInt& aDocPos,TInt& aHeight,TBool& aPageBreak);
- __declspec(dllexport) TInt ScrollParagraphsL(TInt& aNumParas,TAllowDisallow aScrollBlankSpace);
- __declspec(dllexport) TInt ScrollLinesL(TInt& aNumLines,TAllowDisallow aScrollBlankSpace = EFDisallowScrollingBlankSpace);
- __declspec(dllexport) TInt ChangeBandTopL(TInt& aPixels,TAllowDisallow aScrollBlankSpace = EFDisallowScrollingBlankSpace);
- __declspec(dllexport) void PageUpL(TInt& aYCursorPos,TInt& aPixelsScrolled);
- __declspec(dllexport) void PageDownL(TInt& aYCursorPos,TInt& aPixelsScrolled);
- __declspec(dllexport) TBool HandleCharEditL(TUint aType,TInt& aCursorPos,TInt& aGood,TInt& aFormattedUpTo,
- TInt& aFormattedFrom,TInt& aScroll,TBool aFormatChanged);
- __declspec(dllexport) void HandleBlockChangeL(TCursorSelection aSelection,TInt aOldCharsChanged,TViewRectChanges& aViewChanges,
- TBool aFormatChanged);
- __declspec(dllexport) void HandleAdditionalCharactersAtEndL(TInt& aFirstPixel,TInt& aLastPixel);
- __declspec(dllexport) void ReformatVerticalSpaceL();
- __declspec(dllexport) void AdjustVerticalAlignment(CParaFormat::TAlignment aVerticalAlignment);
- __declspec(dllexport) static void DrawBorders(const MGraphicsDeviceMap* aGd,CGraphicsContext& aGc,const TRect& aRect,
- const TParaBorderArray& aBorder,const TRgb* aBackground = 0 ,
- TRegion* aClipRegion = 0 ,const TRect* aDrawRect = 0 );
- __declspec(dllexport) void DrawL(const TRect& aDrawRect,const TDrawTextLayoutContext* aDrawTextLayoutContext,
- const TCursorSelection* aHighlight = 0 );
- __declspec(dllexport) TBool GetNextVisualCursorPos(const TTmDocPosSpec& aDocPos,
- TTmPosInfo2& aPosInfo, TBool aToLeft) const;
- __declspec(dllexport) void InvertRangeL(const TCursorSelection& aHighlight,const TRect& aDrawRect,
- const TDrawTextLayoutContext* aDrawTextLayoutContext);
- __declspec(dllexport) void Highlight(const TRangeChange& aHighlight,const TRect& aDrawRect,
- const TDrawTextLayoutContext* aDrawTextLayoutContext);
- __declspec(dllexport) void SetCustomDraw(const MFormCustomDraw* aCustomDraw);
- __declspec(dllexport) const MFormCustomDraw* CustomDraw() const;
- __declspec(dllexport) void SetCustomWrap(const MFormCustomWrap* aCustomWrap);
- __declspec(dllexport) const MFormCustomWrap* CustomWrap() const;
- __declspec(dllexport) void ExtendFormattingToCoverYL(TInt aYPos);
- __declspec(dllexport) void ExtendFormattingToCoverPosL(TInt aDocPos);
- __declspec(dllexport) TInt GetLineNumber(TInt aDocPos);
- __declspec(dllexport) void SetHighlightExtensions(TInt aLeftExtension, TInt aRightExtension, TInt aTopExtension, TInt aBottomExtension);
- void SetExcessHeightRequired(TInt aExcessHeightRequired);
- __declspec(dllexport) void SetInterfaceProvider( MFormCustomInterfaceProvider* aProvider );
- inline const CTmTextLayout& TagmaTextLayout() const;
- inline void GetOrigin(TPoint& aPoint) const;
- inline void RestrictScrollToTopsOfLines(TBool aRestrict);
- void DrawBackground(CGraphicsContext& aGc,const TPoint& aTopLeft,const TRect& aClipRect,
- const TLogicalRgb& aBackground) const;
- TBool CalculateHorizontalExtremes(TInt& aLeftX,TInt& aRightX,TBool aOnlyVisibleLines) const;
- TBool GetCursor(const TTmDocPos& aDocPos,TTmCursorPlacement aPlacement,
- TRect& aLineRect,TPoint& aOrigin,TInt& aWidth,TInt& aAscent,TInt& aDescent) const;
- void GetParagraphRect(const TTmDocPos& aDocPos,TRect& aRect) const;
- TInt ScrollDocPosIntoViewL(const TTmDocPos& aDocPos);
- TInt PictureRectangleAndPosL(const TPoint& aXyPos, TRect& aPictureRect,
- TBool* aCanScaleOrCrop = 0) const;
- void HighlightUsingExtensions(const CTextLayout::TRangeChange& aChangeHighlight,const TRangeChange& aFullHighlight,
- const TRect& aDrawRect, const TDrawTextLayoutContext* aDrawTextLayoutContext);
- inline const TTmHighlightExtensions& HighlightExtensions() const;
- void GetHighlightRemnants(const TRect& aRect, const TDrawTextLayoutContext& aDrawTextLayoutContext, TRect* aRemainderRects) const;
- void ClearHighlightRemnants(const TRect& aDrawRect, const TDrawTextLayoutContext& aDrawTextLayoutContext);
- TInt WrapWidth() const;
- void SetOpaqueLC();
- __declspec(dllexport) void SetCustomInvisibleCharacterRemapper(MFormCustomInvisibleCharacterRemapper* aInvisibleCharacterRemapper);
- __declspec(dllexport) MFormCustomInvisibleCharacterRemapper* GetCustomInvisibleCharacterRemapper();
- TBool __DbgIsFormattingUpToDate() const;
- enum TPanicNumber
- {
- EUnimplemented,
- ENoMemory,
- EDrawingBorderError,
- EFormatDeviceNotSet,
- EImageDeviceNotSet,
- EPixelNotInFormattedLine,
- EInvalidDocPos,
- ENoCharRangeToFormat,
- ECharacterNotFormatted,
- EPrintPreviewModeError,
- EBadCharacterEditType,
- EInvalidLineNumber,
- EPosNotFormatted,
- EMustFormatAllText,
- EPageScrollError
- };
- static void Panic(TPanicNumber aNumber);
- private:
- __declspec(dllexport) CTextLayout();
- __declspec(dllexport) void ConstructL(MLayDoc *aDoc,TInt aWrapWidth);
- void InitFormatParam(TTmFormatParamBase& aParam);
- TInt ScrollL(TInt aDy,TAllowDisallow aScrollBlankSpace);
- void FormatBandL(TInt aStartDocPos,TInt aEndDocPos);
- void PruneFormat(TBool aFromStart);
- TInt VisibleHeightInPixels() const;
- TInt BandHeightInPixels() const;
- TInt SuggestCursorPos(TInt aCurrentCursorPos) const;
- TInt SetBandTop();
- static void ResetOpaque(void* aThis);
- CTmTextLayout iText;
- TInt iExcessHeightRequired;
- TInt iDummy[16];
- TInt iBandTop;
- TInt iVisibleHeight;
- TInt iBandHeight;
- TInt iScrollFlags;
- TInt iUnformattedStart;
- TBool iParInvalid;
- TTmHighlightExtensions iHighlightExtensions;
- TLayDocTextSource iSource;
- };
- #line 894
- class TCursorPosition
- {
- public:
- enum TMovementType
- {
- EFNoMovement,
- EFLeft,
- EFRight,
- EFLineUp,
- EFLineDown,
- EFPageUp,
- EFPageDown,
- EFLineBeg,
- EFLineEnd
- };
- enum TVisualEnd
- {
- EVisualLeft,
- EVisualRight
- };
- enum TPosHint
- {
- EPosHintUndefined = 0,
- EInsertStrongL2R = 1,
- EInsertStrongR2L = 2,
- EPosHintLast
- };
- inline TCursorPosition();
- inline void SetLayout(CTextLayout *aLayout);
- inline void UpdateLatentX(TInt aX);
- inline void SetToPreviousHighlight();
- inline void SetToCurrentHighlight();
- inline void CancelHighlight();
- inline void SetDocPos(const TTmDocPos& aDocPos);
- void UpdateLatentPosition();
- TInt SetSelectionL(const TCursorSelection& aSelection);
- void SetPendingSelection(const TCursorSelection& aSelection);
- void GetOldSelection(TCursorSelection& aSelection) const;
- void GetSelection(TCursorSelection& aSelection) const;
- TInt SetDocPosL(TBool aDragSelectOn,const TTmDocPos& aDocPos);
- TInt SetXyPosL(TBool aDragSelectOn,TPoint aPos,TBool aAllowPictureFrame);
- TInt MoveL(TBool aDragSelectOn,TMovementType& aMovement,TBool aAllowPictureFrame);
- const TTmDocPos& VisualEndOfRunL(
- const TTmDocPos& aStart, const TTmDocPos& aEnd,
- TVisualEnd aDirection);
- void TextMoveVertically();
- inline void DontDrawOldPictureFrame();
- inline TBool IsSelection() const;
- inline TBool IsSelectionToDraw() const;
- TBool IsPictureFrame() const;
- TBool IsNewPictureFrame() const;
- inline const TTmDocPos& TmDocPos() const;
- inline TInt DocPos() const;
- inline TBool DrawHighlight() const;
- inline TBool DrawOldPictureFrame() const;
- inline TBool DrawNewPictureFrame() const;
- TBool GetCursor(TTmCursorPlacement aPlacement,TPoint& aOrigin,TInt& aWidth,TInt& aAscent,TInt& aDescent) const;
- TPosHint PositioningHint() const { return iPositioningHint; }
- void SetPositioningHint (TPosHint aHint)
- {iPositioningHint = aHint;}
- TTmPosInfo2& ChoosePosition(TTmPosInfo2& aPreferred,
- TTmPosInfo2& aBackup);
- private:
- enum
- {
- EFAbove = -1,
- EFInside = 0,
- EFBelow = 1
- };
- enum
- {
- EDrawHighlight = 1,
- EDrawOldPictureFrame = 2,
- EDrawNewPictureFrame = 4,
- EReturnPreviousHighlight = 8,
- ESelected = 16
- };
- TInt ViewTopOfLineL(const TTmDocPos& aDocPos,TInt& aYPos);
- void CheckSelection(TBool aSelect);
- void CheckNullSelection();
- inline void UpdateLatentY(TInt aY);
- TInt CheckCursorOnScreenL(TInt& aY);
- TBool LeftRightL(TTmPosInfo2& aPos, TTmLineInfo& aLine, TMovementType& aMove);
- void StartEndL(TTmPosInfo2& aPos, TTmLineInfo& aLine, TMovementType& aMove);
- void UpDownL(TTmPosInfo2& aPos, TTmLineInfo& aLine, TMovementType& aMove);
- TInt PageScrollL(TMovementType& aMove);
- TInt DoSetDocPosL(const TTmDocPos& aDocPos);
- TInt DoSetVisibleDocPosL(const TTmDocPos& aDocPos);
- void DoSetXyPos(TPoint& aXy);
- void SetPictureFrame(const TTmDocPos& aDocPos,TInt aAnchor,const TRect& aPictureRect);
- inline TBool CalculateCursorPos(TPoint& aCurPos);
- TTmDocPos iDocPos;
- TInt iAnchor;
- TInt iOldDocPos;
- TInt iOldAnchor;
- TUint iFlags;
- TInt iLatentX;
- TInt iLatentY;
- CTextLayout* iLayout;
- TPosHint iPositioningHint;
- };
- inline const CTmTextLayout& CTextLayout::TagmaTextLayout() const
- {
- return iText;
- }
- inline void CTextLayout::GetOrigin(TPoint& aPoint) const
- {
- aPoint.iX = 0;
- aPoint.iY = -iBandTop;
- }
- inline CTextLayout::TTagmaForwarder::TTagmaForwarder(const CTextLayout& aLayout):
- iLayout(aLayout)
- {
- }
- inline const CTmTextLayout& CTextLayout::TTagmaForwarder::TextLayout() const
- {
- return iLayout.TagmaTextLayout();
- }
- inline void CTextLayout::TTagmaForwarder::GetOrigin(TPoint& aPoint) const
- {
- iLayout.GetOrigin(aPoint);
- }
- inline const TTmHighlightExtensions& CTextLayout::HighlightExtensions() const
- {
- return iHighlightExtensions;
- }
- void CTextLayout::RestrictScrollToTopsOfLines(TBool a)
- {
- if (a)
- iScrollFlags |= EFScrollOnlyToTopsOfLines;
- else
- iScrollFlags &= ~EFScrollOnlyToTopsOfLines;
- }
- inline TViewYPosQualifier::TViewYPosQualifier():
- iHotSpot(EFViewBaseLine),
- iFillScreen(EFalse),
- iFullyVisible(EFViewDontForceLineFullyVisible)
- {
- }
- inline TViewRectChanges::TViewRectChanges():
- iScrollAtTop(0),
- iScrollAtBottom(0)
- {
- }
- inline TCursorSelection::TCursorSelection():
- iCursorPos(0),
- iAnchorPos(0)
- {
- }
- inline TCursorSelection::TCursorSelection(TInt aCursorPos,TInt aAnchorPos):
- iCursorPos(aCursorPos),
- iAnchorPos(aAnchorPos)
- {
- }
- inline void TCursorSelection::SetSelection(TInt aCursorPos,TInt aAnchorPos)
- {
- iCursorPos = aCursorPos;
- iAnchorPos = aAnchorPos;
- }
- inline TInt TCursorSelection::LowerPos() const
- {
- return Min(iCursorPos,iAnchorPos);
- }
- inline TInt TCursorSelection::HigherPos() const
- {
- return Max(iCursorPos,iAnchorPos);
- }
- inline TInt TCursorSelection::Length() const
- {
- return Abs(iCursorPos - iAnchorPos);
- }
- inline TCursorPosition::TCursorPosition():
- iAnchor(0),
- iOldDocPos(0),
- iOldAnchor(0),
- iFlags(0),
- iLatentX(0),
- iLatentY(0),
- iLayout(0 ),
- iPositioningHint(EPosHintUndefined)
- {
- }
- inline void TCursorPosition::SetLayout(CTextLayout *aLayout)
- {
- iLayout = aLayout;
- }
- inline TBool TCursorPosition::IsSelection() const
- {
- return iFlags & ESelected;
- }
- inline TBool TCursorPosition::IsSelectionToDraw() const
- {
- return iFlags & (EDrawHighlight | EDrawOldPictureFrame | EDrawNewPictureFrame);
- }
- inline void TCursorPosition::SetToPreviousHighlight()
- {
- iFlags |= EReturnPreviousHighlight;
- }
- inline void TCursorPosition::SetToCurrentHighlight()
- {
- iFlags &= ~EReturnPreviousHighlight;
- }
- inline void TCursorPosition::CancelHighlight()
- {
- iFlags &= ~(ESelected | EDrawHighlight | EDrawOldPictureFrame | EDrawNewPictureFrame);
- }
- inline void TCursorPosition::UpdateLatentX(TInt aX)
- {
- iLatentX = aX;
- }
- inline void TCursorPosition::UpdateLatentY(TInt aY)
- {
- iLatentY = aY;
- }
- inline TBool TCursorPosition::CalculateCursorPos(TPoint& aPos)
- {
- TTmPosInfo2 pos_info;
- TBool result = iLayout->FindDocPos(iDocPos,pos_info);
- aPos = pos_info.iEdge;
- return result;
- }
- inline const TTmDocPos& TCursorPosition::TmDocPos() const
- {
- return iDocPos;
- }
- inline TInt TCursorPosition::DocPos() const
- {
- return iDocPos.iPos;
- }
- inline void TCursorPosition::SetDocPos(const TTmDocPos& aDocPos)
- {
- iDocPos = aDocPos;
- }
- inline TBool TCursorPosition::DrawHighlight() const
- {
- return iFlags & EDrawHighlight;
- }
- inline TBool TCursorPosition::DrawOldPictureFrame() const
- {
- return iFlags & EDrawOldPictureFrame;
- }
- inline TBool TCursorPosition::DrawNewPictureFrame() const
- {
- return iFlags & EDrawNewPictureFrame;
- }
- inline void TCursorPosition::DontDrawOldPictureFrame()
- {
- iFlags &= ~EDrawOldPictureFrame;
- }
- #line 13 "C:\Symbian\9.1\S60_3rd\epoc32\include\lafmain.h" /* stack depth 6 */
- class CCoeControl;
- class CFont;
- class TLogicalFont;
- class MLafEnv;
- class CLafEdwinCustomDrawBase : public CBase, public MFormCustomDraw
- #line 31
- {
- public:
- __declspec(dllexport) static CLafEdwinCustomDrawBase* NewL(const MLafEnv& aEnv,const CCoeControl& aControl);
- public:
- __declspec(dllexport) void DrawBackground(const TParam& aParam,const TRgb& aBackground,TRect& aDrawn) const;
- __declspec(dllexport) TRgb SystemColor(TUint aColorIndex,TRgb aDefaultColor) const;
- public:
- __declspec(dllexport) virtual void LineSpacingChanged();
- protected:
- __declspec(dllexport) CLafEdwinCustomDrawBase(const MLafEnv& aEnv,const CCoeControl& aControl);
- protected:
- const MLafEnv& iEnv;
- const CCoeControl& iControl;
- private:
- TInt iSpare;
- };
- class CLafEdwinCustomWrapBase : public CBase, public MFormCustomWrap
- #line 90
- {
- public:
- __declspec(dllexport) static CLafEdwinCustomWrapBase* NewL(const CCoeControl& aControl);
- __declspec(dllexport) ~CLafEdwinCustomWrapBase();
- public:
- #line 111
- __declspec(dllexport) TUint LineBreakClass(TUint aCode,TUint& aRangeStart,TUint& aRangeEnd) const;
- #line 123
- __declspec(dllexport) TBool LineBreakPossible(TUint aPrevClass,TUint aNextClass,TBool aHaveSpaces) const;
- #line 142
- __declspec(dllexport) TBool GetLineBreakInContext(const TDesC& aText,TInt aMinBreakPos,TInt aMaxBreakPos,TBool aForwards,TInt& aBreakPos) const;
- __declspec(dllexport) TBool IsHangingCharacter(TUint aChar) const;
- private:
- __declspec(dllexport) void MFormCustomWrap_Reserved_1();
- __declspec(dllexport) void MFormCustomWrap_Reserved_2();
- protected:
- __declspec(dllexport) CLafEdwinCustomWrapBase(const CCoeControl& aControl);
- protected:
- const CCoeControl& iControl;
- private:
- TInt iSpare;
- };
- class MLafEnv
- #line 178
- {
- public:
- virtual const CFont* Font(const TLogicalFont& aLogicalFont) const=0;
- virtual const CFbsBitmap* Bitmap(TUid aBmpUid) const=0;
- #line 201
- virtual TRgb ControlColor(TLogicalColor aLogicalColor, const CCoeControl& aControl) const=0;
- #line 210
- virtual TRgb Color(TLogicalColor aLogicalColor, TUid aColorListUid=TUid::Null() ) const=0;
- virtual TDisplayMode DefaultDisplayMode() const=0;
- };
- class MLafClientRectResolver
- #line 228
- {
- public:
- enum TScreenFurniture
- {
- EMenuBar,
- EButtonGroup,
- EToolBand,
- ETitleBand,
- EStatusPane,
- ECba
- };
- public:
- virtual void ReduceRect(TScreenFurniture aScreenFurniture,TRect& aRect) const=0;
- };
- #line 23 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikenv.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikvcurs.h" /* stack depth 6 */
- #line 16
- class TEikVirtualCursor
- {
- public:
- enum TState
- {
- EOff=0,
- EOn,
- ESuspended
- };
- public:
- TEikVirtualCursor();
- private:
- inline TEikVirtualCursor(const TEikVirtualCursor&);
- public:
- __declspec(dllexport) void SetCursorStateL(TState aState, CCoeEnv& aEnv);
- __declspec(dllexport) TState CursorState(CCoeEnv& aEnv);
- public:
- void HandleAppToForeground(CCoeEnv& aEnv);
- private:
- void SwitchOffEmulationAndBitmap(CCoeEnv& aEnv);
- void SwitchOnEmulationAndBitmap(CCoeEnv& aEnv);
- private:
- TState iState;
- };
- inline TEikVirtualCursor::TEikVirtualCursor(const TEikVirtualCursor&)
- {}
- #line 24 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikenv.h" /* stack depth 5 */
- class CEikProcess;
- class MEikInfoMsgWin;
- class MEikBusyMsgWin;
- class CEikAppUi;
- class CEikHotKeyTable;
- class CCoeControl;
- class CParaFormatLayer;
- class CCharFormatLayer;
- class CCoeBrushAndPenContext;
- class CEikCommandButton;
- class CPrintSetup;
- class CDictionaryStore;
- class CApaWindowGroupName;
- class CEikErrorIdler;
- class CEikApplication;
- class MEikInfoDialog;
- class MEikAlertWin;
- class CEikDialog;
- class MEikDebugKeys;
- class CEikLibrary;
- class MEikAppUiFactory;
- class MEikIrFactory;
- class CGulIcon;
- class CApaMaskedBitmap;
- class CEikLogicalBorder;
- class CEikLafEnv;
- class TLogicalFont;
- class CEikPictureFactory;
- class CEikEnvExtra;
- class TApaApplicationFactory;
- class CEikAppServer;
- class CLafSystemFont;
- const TInt KEikDefaultCursorWidth=2;
- const TInt KTimeBetweenClicks=1000000;
- const TInt KDoubleClickDistance=10;
- const TInt KKeyboardRepeatRate=50000;
- const TInt KKeyboardRepeatInitialDelay=800000;
- const TUid KSystemIniFileUid = {0x1000010C};
- const TUid KUikonLibraryUid = {0x10004CC1 };
- const TInt KEikErrorResolverMaxTextLength = 256;
- const TInt KLastSystemWideErrCode = KErrPermissionDenied;
- typedef void (*TRequestDialogFunc)();
- const static TLitC8<sizeof( "-DebugMemFail:")> KDebugStart={sizeof( "-DebugMemFail:")-1, "-DebugMemFail:"} ;
- #line 132
- typedef CEikLibrary* (*EikLibraryEntryPoint)();
- class MEikPictureFactory
- {
- public:
- __declspec(dllexport) virtual TUid Id() const;
- virtual TBool SupportsPictureType(TUid aPictureType) const=0;
- virtual const MPictureFactory* PictureFactory(TUid aPictureType) const=0;
- virtual TPictureHeader InsertL(TUid aPictureType,CBase* aData)=0;
- virtual void EditL(const TPictureHeader& aPictureHeader,TBool aReadOnly)=0;
- private:
- __declspec(dllexport) virtual void MEikPictureFactory_Reserved_1();
- __declspec(dllexport) virtual void MEikPictureFactory_Reserved_2();
- };
- class CEikonEnv : public CCoeEnv
- #line 188
- {
- public:
- enum TErrorValidity
- { EErrorNumValid, EErrorNumInvalid };
- public:
- __declspec(dllexport) ~CEikonEnv();
- __declspec(dllexport) CEikonEnv();
- __declspec(dllexport) void ConstructL();
- __declspec(dllexport) void ConstructL(TBool aInitialFocusState);
- __declspec(dllexport) void ConstructL(TBool aInitialFocusState, TInt aWindowGroupID);
- __declspec(dllexport) void ConstructAppFromCommandLineL(const TApaApplicationFactory& aApplicationFactory,const CApaCommandLine& aCommandLine);
- __declspec(dllexport) void ControlStackReadyL();
- __declspec(dllexport) static TVersion Version();
- inline static CEikonEnv* Static();
- __declspec(dllexport) const CFont* AnnotationFont() const;
- __declspec(dllexport) const CFont* TitleFont() const;
- __declspec(dllexport) const CFont* LegendFont() const;
- __declspec(dllexport) const CFont* SymbolFont() const;
- __declspec(dllexport) const CFont* DenseFont() const;
- __declspec(dllexport) const CFont* Font(const TLogicalFont& aLogicalFont) const;
- public:
- __declspec(dllexport) const CFbsBitmap* TexturedBitmap() const;
- public:
- __declspec(dllexport) const CFbsBitmap* GrayBitmap() const;
- __declspec(dllexport) const CFbsBitmap* OptionBitmap() const;
- __declspec(dllexport) const CFbsBitmap* HighlightedOptionBitmap() const;
- __declspec(dllexport) const CFbsBitmap* OptionMaskBitmap() const;
- public:
- __declspec(dllexport) const CFbsBitmap* Bitmap(TUid aUidBmp) const;
- void InitSystemBitmapsL();
- public:
- __declspec(dllexport) MLafEnv& LafEnv() const;
- inline TInt EditableControlStandardHeight() const;
- public:
- inline CEikProcess* Process() const;
- inline const MEikAlertWin* Alert() const;
- __declspec(dllexport) MPictureFactory* PictureFactory()const;
- __declspec(dllexport) MEikPictureFactory* ExtendedPictureFactory(TUid aPictureType) const;
- __declspec(dllexport) void AddPictureFactoryL(MEikPictureFactory& aFactory);
- __declspec(dllexport) void RemovePictureFactory(TUid aFactoryId);
- __declspec(dllexport) void SetAlertWin(MEikAlertWin* aAlertWin);
- __declspec(dllexport) void AlertWin(const TDesC& aMsg);
- __declspec(dllexport) void AlertWin(const TDesC& aMsg1,const TDesC& aMsg2);
- __declspec(dllexport) void LeaveWithInfoMsg(TInt aResourceId,...);
- public:
- __declspec(dllexport) void LeaveWithErrorContext(TInt aError,const TDesC& aContextText);
- __declspec(dllexport) void GetErrorText(TDes& aDes,TInt aError) const;
- __declspec(dllexport) TErrorValidity GetErrorText(TDes& aDes,TInt aError,TUid aAppUid) const;
- public:
- __declspec(dllexport) void ResolveError(TInt aError,TUid aAppUid=TUid::Null() ) const;
- __declspec(dllexport) void InfoMsg(const TDesC& aDes);
- __declspec(dllexport) void InfoMsgWithAlignment(TGulAlignment aCorner,const TDesC& aDes);
- __declspec(dllexport) void InfoMsg(TInt aResourceId,...);
- __declspec(dllexport) void InfoMsg(TInt aResourceId,VA_LIST aList);
- __declspec(dllexport) void InfoMsgWithAlignment(TGulAlignment aCorner,TInt aResourceId,...);
- __declspec(dllexport) void InfoMsgWithAlignment(TGulAlignment aCorner,TInt aResourceId,VA_LIST aList);
- __declspec(dllexport) void InfoMsgWithDuration(const TDesC& aDes, TTimeIntervalMicroSeconds32 aDuration);
- __declspec(dllexport) void InfoMsgWithDuration(TInt aResourceId, TTimeIntervalMicroSeconds32 aDuration,...);
- __declspec(dllexport) void InfoMsgWithDuration(TInt aResourceId, TTimeIntervalMicroSeconds32 aDuration, VA_LIST aList);
- __declspec(dllexport) void InfoMsgWithAlignmentAndDuration(TGulAlignment aCorner,const TDesC& aDes, TTimeIntervalMicroSeconds32 aDuration);
- __declspec(dllexport) void InfoMsgWithAlignmentAndDuration(TGulAlignment aCorner,TInt aResourceId, TTimeIntervalMicroSeconds32 aDuration,...);
- __declspec(dllexport) void InfoMsgWithAlignmentAndDuration(TGulAlignment aCorner,TInt aResourceId, TTimeIntervalMicroSeconds32 aDuration,VA_LIST aList);
- __declspec(dllexport) void InfoMsgCancel();
- __declspec(dllexport) void VerboseInfoMsg(const TDesC& aDes);
- public:
- __declspec(dllexport) void SetVerboseInfoReporting(TBool aVerbose);
- public:
- __declspec(dllexport) void BusyMsgL(const TDesC& aDes);
- __declspec(dllexport) void BusyMsgL(const TDesC& aDes,TGulAlignment aCorner);
- __declspec(dllexport) void BusyMsgL(TInt aResourceId);
- __declspec(dllexport) void BusyMsgL(const TDesC& aDes,TTimeIntervalMicroSeconds32 aInitialDelay);
- __declspec(dllexport) void BusyMsgL(const TDesC& aDes,TGulAlignment aCorner,TTimeIntervalMicroSeconds32 aInitialDelay);
- __declspec(dllexport) void BusyMsgL(TInt aResourceId,TTimeIntervalMicroSeconds32 aInitialDelay);
- __declspec(dllexport) void BusyMsgCancel();
- __declspec(dllexport) TBool ConfirmLossOfAllChangesL() const;
- __declspec(dllexport) static TBool QueryWinL(const TDesC& aFirstLine,const TDesC& aSecondLine);
- __declspec(dllexport) TBool QueryWinL(TInt aFirstLineId,TInt aSecondLineId=0) const;
- __declspec(dllexport) static void InfoWinL(const TDesC& aFirstLine,const TDesC& aSecondLine);
- __declspec(dllexport) void InfoWinL(TInt aFirstLineId,TInt aSecondLineId=0) const;
- __declspec(dllexport) void SetQueryDialog(MEikInfoDialog* aQueryDialog);
- __declspec(dllexport) void SetInfoDialog(MEikInfoDialog* aInfoDialog);
- __declspec(dllexport) void SetRequestQueryDialogFunc(TRequestDialogFunc aQueryDialogFunc);
- __declspec(dllexport) void SetRequestInfoDialogFunc(TRequestDialogFunc aInfoDialogFunc);
- __declspec(dllexport) void AllocInfoMsg();
- __declspec(dllexport) void WservAllocInfoMsg();
- __declspec(dllexport) void FservAllocInfoMsg();
- __declspec(dllexport) static void Beep();
- __declspec(dllexport) CWsBitmap* CreateBitmapL(const TDesC& aFileName,TInt aId);
- __declspec(dllexport) CWsBitmap* CreateBitmapL(const TDesC& aFileName,TInt aId, TBool aShowDlgIfErr);
- __declspec(dllexport) CGulIcon* CreateIconL(const TDesC& aFileName,TInt aBitmapId,TInt aMaskId=-1);
- __declspec(dllexport) static CGulIcon* CreateIconFromMaskedBitmapL(const CApaMaskedBitmap& aApaMaskedBitmap);
- public:
- __declspec(dllexport) void SetDebugKeys(MEikDebugKeys* aDebugKeys);
- __declspec(dllexport) void LaunchPopupMenuL(TInt aResourceId,const TPoint& aTargetPos,TPopupTargetPosType aTargetType=EPopupTargetTopLeft,const CEikHotKeyTable* aHotKeyTable=0 );
- public:
- __declspec(dllexport) static void AddWindowShadow(CCoeControl* aWinArea);
- __declspec(dllexport) RAnimDll& ClockDllL();
- __declspec(dllexport) CParaFormatLayer* SystemSingleLineParaFormatLayerL();
- __declspec(dllexport) CParaFormatLayer* SystemParaFormatLayerL();
- __declspec(dllexport) CCharFormatLayer* SystemCharFormatLayerL();
- __declspec(dllexport) static CParaFormatLayer* NewDefaultSingleLineParaFormatLayerL();
- __declspec(dllexport) static CParaFormatLayer* NewDefaultParaFormatLayerL();
- __declspec(dllexport) static CCharFormatLayer* NewDefaultCharFormatLayerL();
- __declspec(dllexport) static void GetPrinterNamesL(CPrinterModelList* aModelNameList,CDesCArray& aPrinterNameList);
- inline CEikAppUi* EikAppUi() const;
- __declspec(dllexport) void AddDialogLikeControlToStackL(CCoeControl* aControl);
- __declspec(dllexport) void AddAlertDialogLikeControlToStackL(CCoeControl* aControl);
- __declspec(dllexport) void RemoveFromStack(CCoeControl* aControl);
- __declspec(dllexport) void AddSleepingDialogToStackL(CCoeControl* aControl);
- __declspec(dllexport) void AddSleepingAlertDialogToStackL(CCoeControl* aControl);
- __declspec(dllexport) void RouseSleepingDialog(CCoeControl* aControl,TBool aRoused);
- __declspec(dllexport) void DrawCursor(const CCoeControl* aControl,const TPoint& aPosition,TInt aWidth);
- __declspec(dllexport) void DrawCursor(const CCoeControl* aControl,const TPoint& aPosition,TInt aWidth,TInt aAscent,TInt aHeight);
- __declspec(dllexport) void HideCursor(const CCoeControl* aControl);
- __declspec(dllexport) void UpdateTaskNameL();
- __declspec(dllexport) void BringForwards(TBool aForwards,TInt aPriority=ECoeWinPriorityAlwaysAtFront);
- __declspec(dllexport) void SetAutoForwarding(TBool aForwarding);
- public:
- __declspec(dllexport) TPtrC KeyPressLabel(TInt aIndex) const;
- public:
- __declspec(dllexport) CPrintSetup* NewDefaultPrintSetupL();
- public:
- __declspec(dllexport) void DisplayTaskList();
- __declspec(dllexport) void DismissTaskList();
- __declspec(dllexport) void SendEventToEikonServer(TInt aEvent,const TAny* aPtr,TInt aLength);
- public:
- __declspec(dllexport) void SetBusy(TBool aBusy);
- __declspec(dllexport) TBool IsBusy() const;
- __declspec(dllexport) void SetSystem(TBool aSystem);
- __declspec(dllexport) TBool IsSystem() const;
- __declspec(dllexport) void SetDocNameIsAFile(TBool aDocNameIsAFile);
- __declspec(dllexport) TBool DocNameIsAFile() const;
- __declspec(dllexport) void SetRespondsToShutdownEvent(TBool aRespondsToShutdownEvent);
- __declspec(dllexport) TBool RespondsToShutdownEvent() const;
- __declspec(dllexport) void SetRespondsToSwitchFilesEvent(TBool aRespondsToSwitchFilesEvent);
- __declspec(dllexport) TBool RespondsToSwitchFilesEvent() const;
- __declspec(dllexport) TEikVirtualCursor& VirtualCursor();
- __declspec(dllexport) void NotifyIdleErrorWhileRedrawing(TInt aError);
- __declspec(dllexport) void NotifyIdleError(TInt aError,TInt aContextRid);
- __declspec(dllexport) void HandleErrorWithContext(TInt aError,TInt aContextRid);
- __declspec(dllexport) MEikAppUiFactory* AppUiFactory() const;
- __declspec(dllexport) MEikAppUiFactory* AppUiFactory(const CEikAppUi& aAppUi) const;
- public:
- __declspec(dllexport) void SetAppUiFactoryL(MEikAppUiFactory* aAppUiFactory);
- __declspec(dllexport) void AddAppUiFactoryL(MEikAppUiFactory* aAppUiFactory);
- __declspec(dllexport) void RemoveAppUiFactory();
- __declspec(dllexport) CColorList* PopulateColorArrayL();
- public:
- __declspec(dllexport) TInt AddLibraryL(TCreateByTypeFunction aControlFactory, TFileName* aResourceFile);
- inline TInt AddLibraryL(TCreateByTypeFunction aControlFactory);
- inline TInt AddLibraryL(TFileName* aResourceFile);
- __declspec(dllexport) void RemoveLibrary(TCreateByTypeFunction aControlFactory, TInt aResourceFileOffset);
- inline void RemoveLibrary(TCreateByTypeFunction aControlFactory);
- inline void RemoveLibrary(TInt aResourceFileOffset);
- inline TChar NudgeCharMinus() const;
- inline TChar NudgeCharPlus() const;
- inline CColorList& ColorList() const;
- inline TRgb Color(TLogicalColor aLogicalColor) const;
- inline void SetColor(TLogicalColor aLogicalColor, TRgb aColor);
- __declspec(dllexport) TRgb ControlColor(TLogicalColor aLogicalColor,const CCoeControl& aControl) const;
- inline CColorArray& CustomColorArray() const;
- __declspec(dllexport) CColorList* CreateSystemColorListL();
- __declspec(dllexport) CColorList* CreateSystemColorListL(const CColorList& aColorList);
- __declspec(dllexport) void UpdateSystemColorListL(const CColorList& aColorList);
- __declspec(dllexport) void UpdateSystemFontsL();
- public:
- inline void SetCDlgDialogFactory(MEikCDlgDialogFactory* aDialogFactory);
- inline void SetPrintDialogFactory(MEikPrintDialogFactory* aDialogFactory);
- inline void SetFileDialogFactory(MEikFileDialogFactory* aDialogFactory);
- inline void SetIrFactory(MEikIrFactory* aIrFactory);
- inline MEikCDlgDialogFactory* CDlgDialogFactory() const;
- inline MEikPrintDialogFactory* PrintDialogFactory() const;
- inline MEikFileDialogFactory* FileDialogFactory() const;
- inline MEikIrFactory* IrFactory() const;
- CArrayFix<TCreateByTypeFunction> * ControlFactoryFuncArray() const;
- inline TInt StatusPaneCoreResId() const;
- inline void SetStatusPaneCoreResId(TInt aStatusPaneCoreResId);
- __declspec(dllexport) void AddAutoMenuTitleL(CEikAutoMenuTitle* aTitle);
- inline CEikAutoMenuTitleArray* AutoMenuTitleArray() const;
- public:
- __declspec(dllexport) TDisplayMode DefaultDisplayMode() const;
- public:
- __declspec(dllexport) void SetExtension(CBase* aExtension);
- inline CBase* Extension() const;
- public:
- __declspec(dllexport) void HandleError(TInt aError);
- public:
- __declspec(dllexport) void WriteInternalStateOfStackedControlsL();
- public:
- void UpdateColorListL();
- void PostAppUiInitializeL();
- __declspec(dllexport) void DoGetErrorText(TDes& aDes,TInt aError) const;
- public:
- __declspec(dllexport) void DestroyEnvironment();
- private:
- __declspec(dllexport) virtual void CEikonEnv_Reserved_1();
- __declspec(dllexport) virtual void CEikonEnv_Reserved_2();
- __declspec(dllexport) virtual void CEikonEnv_Reserved_3();
- __declspec(dllexport) virtual void CEikonEnv_Reserved_4();
- __declspec(dllexport) virtual void CEikonEnv_Reserved_5();
- private:
- __declspec(dllexport) void DestroyScreen();
- __declspec(dllexport) void InitSystemFontsL();
- __declspec(dllexport) TInt ResourceFileVersionNumber() const;
- __declspec(dllexport) void Reserved_1();
- __declspec(dllexport) void Reserved_2();
- public:
- __declspec(dllexport) MEikInfoDialog* QueryDialog() const;
- __declspec(dllexport) MEikInfoDialog* InfoDialog() const;
- public:
- __declspec(dllexport) CEikAppServer* AppServer() const;
- __declspec(dllexport) TBool StartedAsServerApp() const;
- protected:
- friend class CEikServAppUi;
- private:
- void InitSystemResourceFileL();
- void InitPrivateResourceFileL();
- void InitInfoMsgL();
- void PrepareBusyMsgL();
- void InitAlertWinL();
- TErrorHandlerResponse PrepareToHandleError(TInt aError);
- void DoHandleError(TErrorHandlerResponse aType);
- static TInt IdleErrorCallBack(TAny* aThis);
- void InitColorsL();
- void LoadParserListL();
- void LoadLibrariesL();
- void CloseLibraries();
- TRequestDialogFunc RequestQueryDialogFunc();
- TRequestDialogFunc RequestInfoDialogFunc();
- void SetAppReady();
- TBool IsEiksrvThread() const;
- TBool InfoWinOrQueryWinL(TInt aFirstLineId,TInt aSecondLineId,TBool aIsQueryWin=EFalse) const;
- void SetCommandLineDebugMemFailL(const CApaCommandLine& aCommandLine);
- void StoreAppLanguageL();
- public:
- TLanguage ApplicationLanguage() const;
- public:
- void PostAppUiDestroy();
- private:
- __declspec(dllexport) virtual void CEikonEnv_Reserved_6();
- __declspec(dllexport) virtual void CEikonEnv_Reserved_7();
- __declspec(dllexport) virtual void CEikonEnv_Reserved_8();
- __declspec(dllexport) virtual void CEikonEnv_Reserved_9();
- __declspec(dllexport) virtual void CEikonEnv_Reserved_10();
- private:
- class TEikAppUiFactory
- {
- public:
- MEikAppUiFactory* iFactory;
- CEikAppUi* iAppUi;
- };
- private:
- TBitFlags iEikonEnvFlags;
- TInt iForwardsCount;
- TInt iBusyCount;
- CEikProcess* iProcess;
- RAnimDll* iClockDll;
- CArrayPtr<
- CLafSystemFont
- > * iFontArray;
- MEikInfoMsgWin* iInfoMsgWin;
- MEikBusyMsgWin* iBusyMsgWin;
- MEikAlertWin* iAlertWin;
- TInt iSystemResourceFileOffset;
- HBufC8* iKeyPressLabels;
- CParaFormatLayer* iSingleLineParaFormatLayer;
- CParaFormatLayer* iParaFormatLayer;
- CCharFormatLayer* iCharFormatLayer;
- const CCoeControl* iCursorWindow;
- TInt iEditableControlStandardHeight;
- CApaWindowGroupName* iWgName;
- CEikErrorIdler* iErrorIdler;
- TInt iPrivateResourceFileOffset;
- CColorList* iColorList;
- CEikPictureFactory* iPictureFactory;
- TBuf<2> iNudgeChars;
- MEikInfoDialog* iQueryDialog;
- MEikInfoDialog* iInfoDialog;
- TRequestDialogFunc iQueryDialogFunc;
- TRequestDialogFunc iInfoDialogFunc;
- CArrayFix<TCreateByTypeFunction> * iControlFactoryFuncArray;
- CArrayFix<TInt> * iResourceFileOffsetArray;
- TBool iAlertWinInitialized;
- MEikDebugKeys* iDebugKeys;
- MEikCDlgDialogFactory* iCDlgDialogFactory;
- MEikPrintDialogFactory* iPrintDialogFactory;
- MEikFileDialogFactory* iFileDialogFactory;
- CArrayFix<TEikAppUiFactory> * iAppUiFactoryArray;
- MEikIrFactory* iIrFactory;
- CArrayPtr<CEikLibrary> * iLibraries;
- TInt iEmbeddedAppLevel;
- TInt iAutoLoadedResourceFiles;
- TInt iAutoLoadedControlFactories;
- CBase* iExtension;
- TInt iStatusPaneCoreResId;
- CEikAutoMenuTitleArray* iAutoMenuTitleArray;
- TEikVirtualCursor iVirtualCursor;
- CEikLogicalBorder* iLogicalBorder;
- CEikLafEnv* iLafEnv;
- CArrayPtrFlat<CFbsBitmap> * iBitmapArray;
- CEikEnvExtra* iEikEnvExtra;
- HBufC* iOOMErrorText;
- TInt iSpare3;
- };
- class MEikInfoDialog
- #line 542
- {
- public:
- #line 553
- virtual TBool RunDlgLD(TInt aResource, const TDesC& aTitle, const TDesC& aMsg) = 0;
- };
- class MEikAlertWin
- {
- public:
- virtual void ConstructL() = 0;
- virtual void RunAlert(const TDesC& aTitle, const TDesC& aMsg) = 0;
- virtual void Release() = 0;
- virtual CEikDialog* AsEikDialog() = 0;
- inline const CEikDialog* AsEikDialog() const;
- __declspec(dllexport) virtual CCoeControl* AsCoeControl();
- inline const CCoeControl* AsCoeControl() const;
- private:
- __declspec(dllexport) virtual void MEikAlertWin_Reserved2();
- __declspec(dllexport) virtual void MEikAlertWin_Reserved3();
- };
- class MEikDebugKeys
- {
- public:
- virtual void ConstructL() = 0;
- virtual void Release() = 0;
- private:
- __declspec(dllexport) virtual void MEikDebugKeys_Reserved1();
- __declspec(dllexport) virtual void MEikDebugKeys_Reserved2();
- __declspec(dllexport) virtual void MEikDebugKeys_Reserved3();
- };
- inline CEikonEnv* CEikonEnv::Static()
- #line 604
- { return((CEikonEnv*)(CCoeEnv::Static())); }
- inline TInt CEikonEnv::EditableControlStandardHeight() const
- { return(iEditableControlStandardHeight); }
- inline CEikProcess* CEikonEnv::Process() const
- { return(iProcess); }
- inline CEikAppUi* CEikonEnv::EikAppUi() const
- { return((CEikAppUi*)iAppUi); }
- inline const MEikAlertWin* CEikonEnv::Alert() const
- { return(iAlertWin); }
- inline TChar CEikonEnv::NudgeCharMinus() const
- {return(iNudgeChars[0]);}
- inline TChar CEikonEnv::NudgeCharPlus() const
- {return(iNudgeChars[1]);}
- inline TRgb CEikonEnv::Color(TLogicalColor aLogicalColor) const
- {return ColorList().Color(aLogicalColor); }
- inline CColorArray& CEikonEnv::CustomColorArray() const
- {return *(ColorList().ColorArray(TUid::Uid(KEikCustomColorsArrayValue)));}
- inline CColorList& CEikonEnv::ColorList() const
- {(void)((iColorList)||(User::Invariant(),0)) ; return *iColorList; }
- inline void CEikonEnv::SetColor(TLogicalColor aLogicalColor, TRgb aColor)
- { ColorList().SetColor(aLogicalColor, aColor); }
- inline void CEikonEnv::SetCDlgDialogFactory(MEikCDlgDialogFactory* aDialogFactory)
- {iCDlgDialogFactory=aDialogFactory;}
- inline void CEikonEnv::SetPrintDialogFactory(MEikPrintDialogFactory* aDialogFactory)
- {iPrintDialogFactory=aDialogFactory;}
- inline void CEikonEnv::SetFileDialogFactory(MEikFileDialogFactory* aDialogFactory)
- {iFileDialogFactory=aDialogFactory;}
- inline void CEikonEnv::SetIrFactory(MEikIrFactory* aIrFactory)
- {iIrFactory=aIrFactory;}
- inline MEikCDlgDialogFactory* CEikonEnv::CDlgDialogFactory() const
- {return iCDlgDialogFactory;}
- inline MEikPrintDialogFactory* CEikonEnv::PrintDialogFactory() const
- {return iPrintDialogFactory;}
- inline MEikFileDialogFactory* CEikonEnv::FileDialogFactory() const
- {return iFileDialogFactory;}
- inline MEikIrFactory* CEikonEnv::IrFactory() const
- {return iIrFactory;}
- inline TInt CEikonEnv::AddLibraryL(TCreateByTypeFunction aControlFactory)
- {return(AddLibraryL(aControlFactory, 0 ));}
- inline TInt CEikonEnv::AddLibraryL(TFileName* aResourceFile)
- {return(AddLibraryL(0 , aResourceFile));}
- inline void CEikonEnv::RemoveLibrary(TCreateByTypeFunction aControlFactory)
- {RemoveLibrary(aControlFactory, 0 );}
- inline void CEikonEnv::RemoveLibrary(TInt aResourceFileOffset)
- {RemoveLibrary(0 , aResourceFileOffset);}
- inline CBase* CEikonEnv::Extension() const
- {return iExtension;}
- inline TInt CEikonEnv::StatusPaneCoreResId() const
- {return iStatusPaneCoreResId;}
- inline void CEikonEnv::SetStatusPaneCoreResId(TInt aStatusPaneCoreResId)
- {iStatusPaneCoreResId=aStatusPaneCoreResId;}
- inline CEikAutoMenuTitleArray* CEikonEnv::AutoMenuTitleArray() const
- {return iAutoMenuTitleArray;}
- inline const CEikDialog* MEikAlertWin::AsEikDialog() const
- {return (const CEikDialog*)const_cast<MEikAlertWin*>(this)->AsEikDialog();}
- inline const CCoeControl* MEikAlertWin::AsCoeControl() const
- {return (const CCoeControl*)const_cast<MEikAlertWin*>(this)->AsCoeControl();}
- enum TEikPortFlag
- {
- ESerialPort =0x01,
- EParallelPort =0x02,
- EIrdaPort= 0x04,
- EFilePort=0x08,
- EViaPCPort=0x10
- };
- __declspec(dllexport) void InternalizeL(TEikPortFlag& aThing,RReadStream& aStream);
- inline RWriteStream& operator<<(RWriteStream& aStream,const TEikPortFlag& aThing)
- {aStream.WriteUint8L(aThing);return aStream;}
- inline RReadStream& operator>>(RReadStream& aStream,TEikPortFlag& aThing)
- {InternalizeL(aThing,aStream);return aStream;}
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrvs.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrv.pan" /* stack depth 5 */
- #line 17
- enum TEikServPanic
- {
- EEikServPanicNotifyBadDescriptor,
- EEikServPanicAlarmAlertServiceNotSupported,
- EEikServPanicNoTaskListDialog,
- EEikServPanicTaskNull,
- EEsPanicAlarmAlert,
- EEikServPanicAlarmAlertServerAlreadyConnected,
- EEikServEnvPanicNullAppUi,
- EEikServPanicNoSuchLabelInAlarm,
- EEikServPanicDriveIndexOutOfRange,
- EEikServPanicNotiferArrayNotNull,
- EEikServPanicChannelIndexOutOfRange,
- EEikServPanicNullObservedList,
- EEikServPanicQueueIndexOutOfRange,
- EEikServPanicNotifyAlertQueueEmpty,
- EEikSrvClientPanicInconsistentMessageParameters,
- };
- extern void Panic(TEikServPanic aPanic);
- #line 18 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrvs.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apgtask.h" /* stack depth 5 */
- #line 13
- class RWsSession;
- struct TKeyEvent;
- #line 25
- enum TApaSystemEvent
- {
- EApaSystemEventShutdown=1,
- EApaSystemEventBackupStarting,
- EApaSystemEventBackupComplete,
- EApaSystemEventBroughtToForeground
- };
- #line 71
- const TInt KUidApaMessageSwitchOpenFileValue16=0x10003A39;
- const TUid KUidApaMessageSwitchOpenFile16={KUidApaMessageSwitchOpenFileValue16};
- const TInt KUidApaMessageSwitchCreateFileValue16=0x10003A3A;
- const TUid KUidApaMessageSwitchCreateFile16={KUidApaMessageSwitchCreateFileValue16};
- class TApaTask
- #line 105
- {
- public:
- __declspec(dllexport) TApaTask(RWsSession& aWsSession);
- __declspec(dllexport) void SetWgId(TInt aWgId);
- __declspec(dllexport) TInt WgId() const;
- __declspec(dllexport) TBool Exists() const;
- __declspec(dllexport) TThreadId ThreadId() const;
- __declspec(dllexport) void BringToForeground();
- __declspec(dllexport) void SendToBackground();
- __declspec(dllexport) void EndTask();
- __declspec(dllexport) void KillTask();
- __declspec(dllexport) void SendKey(TInt aKeyCode,TInt aModifiers);
- __declspec(dllexport) void SendKey(const TKeyEvent& aKey);
- __declspec(dllexport) void SendSystemEvent(TApaSystemEvent aEvent);
- __declspec(dllexport) TInt SwitchOpenFile(const TDesC& aFilename);
- __declspec(dllexport) TInt SwitchCreateFile(const TDesC& aFilename);
- __declspec(dllexport) TInt SendMessage(TUid aUid, const TDesC8& aParams);
- private:
- TInt CheckSwitchFile() const;
- private:
- RWsSession& iWsSession;
- TInt iWgId;
- TInt iTApaTask_Reserved1;
- };
- class TApaTaskList
- #line 144
- {
- public:
- enum TCycleDirection
- {
- EForwards,
- EBackwards
- };
- public:
- __declspec(dllexport) TApaTaskList(RWsSession& aWsSession);
- __declspec(dllexport) TApaTask FindApp(const TDesC& aAppName);
- __declspec(dllexport) TApaTask FindDoc(const TDesC& aDocName);
- __declspec(dllexport) TApaTask FindByPos(TInt aPos);
- __declspec(dllexport) TApaTask FindApp(TUid aAppUid);
- __declspec(dllexport) TInt CycleTasks(TUid aAppUid,TCycleDirection aDirection=EForwards);
- private:
- void FindByPosL(TApaTask& aTask,TInt aPos);
- private:
- RWsSession& iWsSession;
- TInt iTApaTaskList_Reserved1;
- };
- #line 22 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrvs.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrv.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\vwsappst.h" /* stack depth 6 */
- #line 9
- class MVwsAppStarter
- #line 18
- {
- public:
- virtual void StartAppL(TUid aAppUid,TThreadId& aThreadId)=0;
- };
- #line 12 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrv.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikunder.h" /* stack depth 6 */
- #line 13
- class RThread;
- class MEikUndertakerObserver
- {
- public:
- virtual void HandleThreadExitL(RThread& aThread)=0;
- };
- class CEikUndertaker : public CActive
- {
- public:
- __declspec(dllexport) static CEikUndertaker* NewL(MEikUndertakerObserver& aObserver);
- __declspec(dllexport) ~CEikUndertaker();
- private:
- CEikUndertaker(MEikUndertakerObserver& aObserver);
- void ConstructL();
- void Request();
- private:
- virtual void DoCancel();
- virtual void RunL();
- private:
- MEikUndertakerObserver& iObserver;
- RUndertaker iUndertaker;
- TInt iThreadHandle;
- };
- #line 13 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrv.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikcycledef.h" /* stack depth 6 */
- #line 9
- enum TTaskCycleDirection
- {
- EBackwards,
- EForwards
- };
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrv.h" /* stack depth 5 */
- class CDictionaryFileStore;
- class CVwsSessionWrapper;
- enum TEikAppUiServPanic
- {
- EEikSrvDefault,
- EEikSrvSvrCreateServer,
- EEikSrvSvrStartServer,
- EEikSrvSrvNotFound,
- EEikSrvBadDescriptor,
- EEikSrvIllegalError,
- EEikSrvBadRequestSequence
- };
- class CEikServAppUiSession;
- class CEikServAppUiServer : public CPolicyServer
- {
- friend class CEikServAppUiSession;
- public:
- enum {EPriority=EPriorityAbsoluteHigh};
- __declspec(dllexport) static CEikServAppUiServer* NewL();
- virtual CSession2* NewSessionL(const TVersion &aVersion,const RMessage2& aMessage) const;
- static TInt ThreadFunction(TAny* aStarted);
- CEikAppUi& AppUi();
- private:
- CEikServAppUiServer(TInt aPriority=EPriority);
- void ConstructL();
- CEikServAppUiSession* NewSessionL();
- private:
- CEikAppUi* iAppUi;
- };
- class MEikServAppUiSessionHandler
- {
- public:
- virtual void NotifyAlarmServerOfTaskChangeL() = 0;
- virtual void LaunchTaskListL() = 0;
- virtual void CycleTasksL(enum TTaskCycleDirection aDirection) = 0;
- virtual void SetStatusPaneFlags(TInt aFlags) = 0;
- virtual void SetStatusPaneLayoutL(TInt aLayoutResId) = 0;
- virtual void BlankScreenL() = 0;
- virtual void UnblankScreen() = 0;
- virtual void EnableTaskListL() = 0;
- virtual void Extension(TUid aExtensionUid,const TDesC8& aBuffer,RMessagePtr2 aMessage) = 0;
- protected:
- __declspec(dllexport) MEikServAppUiSessionHandler();
- private:
- __declspec(dllexport) virtual void MEikServAppUiSessionHandler_Reserved1();
- __declspec(dllexport) virtual void MEikServAppUiSessionHandler_Reserved2();
- private:
- TInt iMEikServAppUiSessionHandler_Reserved1;
- };
- class CEikServAppUiSession : public CSession2
- {
- public:
- __declspec(dllexport) CEikServAppUiSession(MEikServAppUiSessionHandler* aHandler);
- __declspec(dllexport) ~CEikServAppUiSession();
- __declspec(dllexport) virtual void ConstructL();
- __declspec(dllexport) virtual void ServiceL(const RMessage2& aMessage);
- __declspec(dllexport) virtual void ServiceError(const RMessage2& aMessage,TInt aError);
- private:
- void PanicClient(const RMessage2& aMessage, TEikAppUiServPanic aCode);
- inline CEikServAppUiServer& Server() {return *(static_cast<CEikServAppUiServer*>((const_cast<CServer2*>(CSession2::Server())))) ;}
- protected:
- __declspec(dllexport) MEikServAppUiSessionHandler* SessionHandler() const;
- protected:
- CEikServAppUiServer* iAppUiServer;
- TBool iScreenBlanked;
- MEikServAppUiSessionHandler* iSessionHandler;
- private:
- TInt iNotUsed1;
- TInt iNotUsed2;
- };
- class CEikPasswordModeCategory : public CBase
- #line 118
- {
- public:
- __declspec(dllexport) static CEikPasswordModeCategory* NewLC(RFs& aFs);
- __declspec(dllexport) ~CEikPasswordModeCategory();
- __declspec(dllexport) void GetPasswordModeL(TPasswordMode& aMode) const;
- __declspec(dllexport) void SetPasswordModeL(TPasswordMode aMode);
- private:
- CEikPasswordModeCategory();
- void ConstructL(RFs& aFs);
- private:
- CDictionaryFileStore* iStore;
- };
- class CEikServNotifyServer;
- class CNotifierServerExtended;
- class CEikServBackupServer;
- class CEikServAlarmAlertServer;
- class CEikKeyWindow;
- class CEikUndertaker;
- class CEikPasswordControl;
- class CEikTaskListDialog;
- class MEikServNotifyAlert;
- class MEikServAlarmFactory;
- class CEikServDllClose;
- class TEikServCtrlFactories
- {
- public:
- inline TEikServCtrlFactories();
- inline TEikServCtrlFactories(MEikServNotifyAlert* aAlert,MEikServAlarmFactory* aAlarmAlert);
- public:
- MEikServNotifyAlert* iAlert;
- MEikServAlarmFactory* iAlarmAlert;
- private:
- TInt iTEikServCtrlFactories_Reserved1;
- };
- class MEikServAppUiSessionFactory
- {
- public:
- virtual CEikServAppUiSession* CreateSessionL() = 0;
- protected:
- __declspec(dllexport) MEikServAppUiSessionFactory();
- private:
- __declspec(dllexport) virtual void MEikServAppUiSessionFactory_Reserved1();
- __declspec(dllexport) virtual void MEikServAppUiSessionFactory_Reserved2();
- private:
- TInt iMEikServAppUiSessionFactory_Reserved1;
- };
- class CEikServEnv : public CEikonEnv
- {
- public:
- __declspec(dllexport) CEikServEnv();
- __declspec(dllexport) ~CEikServEnv();
- __declspec(dllexport) void DestroyEnvironment();
- public:
- __declspec(dllexport) void SetEikServAppUiSessionFactory(MEikServAppUiSessionFactory* aSessionFactory);
- __declspec(dllexport) MEikServAppUiSessionFactory* EikServAppUiSessionFactory() const;
- __declspec(dllexport) TBool IsTaskListEnabled() const;
- __declspec(dllexport) void EnableTaskList();
- public:
- void SetEikServer(CEikServAppUiServer* aServer);
- __declspec(dllexport) void SetUiDll(RLibrary& aDll);
- private:
- __declspec(dllexport) virtual void CEikServEnv_Reserved1();
- __declspec(dllexport) virtual void CEikServEnv_Reserved2();
- __declspec(dllexport) virtual void CEikonEnv_Reserved1();
- __declspec(dllexport) virtual void CEikonEnv_Reserved2();
- __declspec(dllexport) virtual void MApaAppStarter_Reserved1();
- __declspec(dllexport) virtual void MApaAppStarter_Reserved2();
- __declspec(dllexport) virtual void Reserved_1();
- __declspec(dllexport) virtual void Reserved_2();
- private:
- RLibrary iUiDll;
- CEikServAppUiServer* iServer;
- MEikServAppUiSessionFactory* iSessionFactory;
- TBool iIsTaskListEnabled;
- TInt iCEikServEnv_Reserved1;
- };
- inline TEikServCtrlFactories::TEikServCtrlFactories()
- : iAlert(0 ), iAlarmAlert(0 )
- {}
- inline TEikServCtrlFactories::TEikServCtrlFactories(MEikServNotifyAlert* aAlert,MEikServAlarmFactory* aAlarmAlert)
- : iAlert(aAlert), iAlarmAlert(aAlarmAlert)
- {}
- class CEikServSecureData : public CBase
- {
- public:
- __declspec(dllexport) static void GetInstalledFepNameL(TDes& aName);
- __declspec(dllexport) static void SetInstalledFepNameL(const TDesC& aName, TBool aRaiseFileError);
- __declspec(dllexport) static void OpenFepAttributesL();
- __declspec(dllexport) static void GetFepAttributeL(TUid aAttribUid, TDes8& aAttribData);
- __declspec(dllexport) static void SetFepAttributeL(TUid aAttribUid, const TDesC8& aAttribData);
- __declspec(dllexport) static void CommitFepAttributesL();
- __declspec(dllexport) static void CloseFepAttributes();
- __declspec(dllexport) static CBufBase* GetBufferedSystemColorListL();
- __declspec(dllexport) static void SetBufferedSystemColorListL(const TDesC8& aBuffer);
- protected:
- __declspec(dllexport) CEikServSecureData();
- private:
- __declspec(dllexport) virtual void CEikServSecureData_Reserved1();
- __declspec(dllexport) virtual void CEikServSecureData_Reserved2();
- private:
- TInt iCEikServSecureData_Reserved1;
- };
- #line 26 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrvs.h" /* stack depth 4 */
- class CDictionaryFileStore;
- const static TLitC<sizeof(L"!EikAppUiServer")/2> EIKAPPUI_SERVER_NAME={sizeof(L"!EikAppUiServer")/2-1,L"!EikAppUiServer"} ;
- const static TLitC<sizeof(L"EikAppUiServerThread")/2> EIKAPPUI_SERVER_THREAD_NAME={sizeof(L"EikAppUiServerThread")/2-1,L"EikAppUiServerThread"} ;
- const static TLitC<sizeof(L"EikAppUiServerStartSemaphore")/2> EIKAPPUI_SERVER_SEMAPHORE={sizeof(L"EikAppUiServerStartSemaphore")/2-1,L"EikAppUiServerStartSemaphore"} ;
- const TInt KEikSrvDefaultHeapSize=0x10000;
- const TInt KEikSrvDefaultMaxHeapSize=0x100000;
- enum TEikAppUiRanges
- {
- EFirstUnrestrictedOpcodeInEikAppUi
- };
- enum TEikUiOpCode
- {
- EEikAppUiFirst=EFirstUnrestrictedOpcodeInEikAppUi,
- EEikAppUiLaunchTaskList,
- EEikAppUiCycleTasks,
- EEikAppUiSetStatusPaneFlags,
- EEikAppUiSetStatusPaneLayout,
- EEikAppUiBlankScreen,
- EEikAppUiUnblankScreen,
- EEikAppUiResolveError,
- EEikAppUiExtension,
- EEikAppUiEnableTaskList,
- EEikAppUiFirstUnusedOpcode,
- };
- extern void PanicServer(TEikAppUiServPanic aPanic);
- #line 9 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrvc.h" /* stack depth 3 */
- const TInt KNumConnectRetries=5;
- typedef TThreadFunction* (*EikSrvEntrypoint)();
- class REikAppUiSession : public RSessionBase
- {
- public:
- __declspec(dllexport) REikAppUiSession();
- __declspec(dllexport) TInt Connect();
- __declspec(dllexport) void Close();
- __declspec(dllexport) TVersion Version() const;
- __declspec(dllexport) void LaunchTaskList() const;
- __declspec(dllexport) void CycleTasks(TTaskCycleDirection aDirection) const;
- __declspec(dllexport) TInt SetStatusPaneFlags(TInt aFlags) const;
- __declspec(dllexport) TInt SetStatusPaneLayout(TInt aLayoutResId) const;
- __declspec(dllexport) TInt BlankScreen() const;
- __declspec(dllexport) TInt UnblankScreen() const;
- __declspec(dllexport) CEikonEnv::TErrorValidity ResolveError(TDes& aText,TInt aError,TUid aAppUid) const;
- __declspec(dllexport) void Extension(TUid aExtensionUid,const TDesC8& aBuffer,TRequestStatus& aRequestStatus) const;
- __declspec(dllexport) TInt GetInstalledFepName(TDes& aName) const;
- __declspec(dllexport) TInt SetInstalledFepName(const TDesC& aName, TBool aRaiseFileError) const;
- __declspec(dllexport) CColorList* GetSystemColorsL() const;
- __declspec(dllexport) void SetSystemColorsL(const CColorList& aColorList) const;
- __declspec(dllexport) TInt OpenFepAttributes() const;
- __declspec(dllexport) TInt GetFepAttribute(TUid aAttribUid, TDes8& aAttribData) const;
- __declspec(dllexport) TInt SetFepAttribute(TUid aAttribUid, const TDesC8& aAttribData) const;
- __declspec(dllexport) TInt CommitFepAttributes() const;
- __declspec(dllexport) void CloseFepAttributes() const;
- __declspec(dllexport) TInt EnableTaskList() const;
- __declspec(dllexport) virtual void REikAppUiSession_Reserved1();
- __declspec(dllexport) virtual void REikAppUiSession_Reserved2();
- private:
- class CExtension;
- void StartServerL();
- private:
- RLibrary iNotUsed;
- private:
- CExtension* iExtension;
- };
- #line 68
- extern void PanicServer(TEikAppUiServPanic aPanic);
- #line 18 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikspmod.h" /* stack depth 2 */
- class TResourceReader;
- class CEikStatusPaneLayoutTree;
- class CEikonEnv;
- class CAknSgcClient;
- const TInt KEikStatusPaneDirectionBit = 0x04;
- const TInt KEikStatusPaneHiddenBit = 0x08;
- const TInt KEikStatusPaneInitInitializedBit = 0x80000000;
- typedef TUid TPaneId;
- class TEikStatusPaneInit
- {
- public:
- TEikStatusPaneInit();
- TEikStatusPaneInit(const TEikStatusPaneInit& aCopy);
- TEikStatusPaneInit& operator=(const TEikStatusPaneInit& aCopy);
- inline TPaneId Id() const;
- void LoadDefaults(TResourceReader& aResource);
- inline TBool AppOwned() const;
- inline TInt ControlTypeId() const;
- inline TInt ControlResourceId() const;
- inline void SetHidden();
- inline void ClearHidden();
- inline TBool IsHidden() const;
- private:
- inline TBool Initialized();
- inline void SetInitialized();
- private:
- TPaneId iId;
- TInt iControlId;
- TInt iControlResource;
- TInt iFlags;
- };
- class CEikStatusPaneSetInit : public CArrayFixFlat<TEikStatusPaneInit>
- {
- public:
- static CEikStatusPaneSetInit* NewL();
- ~CEikStatusPaneSetInit();
- void LoadDefaultsL(TResourceReader& aResource);
- TEikStatusPaneInit& FindL(const TPaneId& aPaneId);
- private:
- CEikStatusPaneSetInit();
- };
- class MEikStatusPaneLayoutTreeVisitor
- {
- public:
- virtual void VisitL(CEikStatusPaneLayoutTree* aNode) = 0;
- };
- class CEikStatusPaneLayoutTree : public CBase
- {
- public:
- enum TDirection
- {
- EHorizontal,
- EVertical
- };
- public:
- ~CEikStatusPaneLayoutTree();
- static CEikStatusPaneLayoutTree* NewL(TResourceReader& aResource, TDirection aDefaultDirection = EHorizontal);
- CEikStatusPaneLayoutTree* Find(const TPaneId& aPaneId);
- void AcceptL(MEikStatusPaneLayoutTreeVisitor* aVisitor);
- inline TPaneId Id() const;
- inline TRect Rect() const;
- private:
- CEikStatusPaneLayoutTree(TDirection aDefaultDirection);
- void ConstructL(TResourceReader& aResource);
- void SetRect(const TRect& aRect);
- inline TDirection Direction();
- void SetDirection(TDirection aDirection);
- inline TInt Size();
- inline TBool Stretchable();
- void SetStretchable(TBool aStretchable);
- void Layout();
- #line 130
- void Layout(TInt aLayoutResourceId);
- #line 143
- TRect AknLayoutRect(TInt aLayoutResourceId, TPaneId aPaneId);
- #line 153
- void SetAknLayoutUsed(TBool aAknLayoutUsed);
- #line 163
- TBool AknLayoutUsed();
- private:
- TPaneId iId;
- TInt iFlags;
- TRect iRect;
- TInt iSize;
- typedef CArrayPtrFlat<CEikStatusPaneLayoutTree> CSubPaneArray;
- CSubPaneArray* iSubPanes;
- private:
- friend class CEikStatusPaneLayout;
- };
- class CEikStatusPaneLayout : public CBase
- {
- public:
- static CEikStatusPaneLayout* NewL(TResourceReader& aResource, const TRect& aScreenRect);
- static CEikStatusPaneLayout* NewL(TResourceReader& aResource, const TRect& aScreenRect, TInt aLayoutId);
- ~CEikStatusPaneLayout();
- inline CEikStatusPaneLayoutTree* Find(const TPaneId& aPaneId) const;
- inline void AcceptL(MEikStatusPaneLayoutTreeVisitor* aVisitor);
- inline TRect Rect() const;
- #line 198
- void AknLayoutRefresh(TInt aLayoutResourceId);
- #line 209
- TBool AknLayoutUsed();
- private:
- CEikStatusPaneLayout();
- void ConstructL(TResourceReader& aResource, const TRect& aScreenRect, TInt aLayoutId);
- private:
- CEikStatusPaneLayoutTree* iRoot;
- };
- class CEikStatusPaneModelBase : public CBase
- {
- public:
- __declspec(dllexport) ~CEikStatusPaneModelBase();
- inline CEikStatusPaneSetInit* PaneInits() const;
- __declspec(dllexport) virtual void SetLayoutL(TInt aLayoutResId, TBool aChangeStatusPaneNow = ETrue);
- inline CEikStatusPaneLayout* CurrentLayout() const;
- __declspec(dllexport) TInt CurrentLayoutResId() const;
- #line 238
- void AknLayoutRefresh();
- #line 250
- TBool AknLayoutUsed(TInt aLayoutId);
- protected:
- class CIdLayoutPair : public CBase
- {
- public:
- CIdLayoutPair(TInt aResId, CEikStatusPaneLayout* aLayout);
- ~CIdLayoutPair();
- public:
- TInt iResId;
- CEikStatusPaneLayout* iLayout;
- };
- typedef CArrayPtrFlat<CIdLayoutPair> CLayoutIdSet;
- typedef CArrayFixFlat<TInt> CIdSet;
- protected:
- __declspec(dllexport) CEikStatusPaneModelBase(CEikonEnv& aEikEnv);
- __declspec(dllexport) void BaseConstructL(TInt aCoreResId);
- __declspec(dllexport) CEikStatusPaneLayout* LoadLayoutL(TInt aLayoutResId);
- inline CIdSet* LegalIds() const;
- TBool IsLegalId(TInt aLayoutResId) const;
- private:
- CEikStatusPaneLayout* Layout(TInt aLayoutResId);
- void CheckLayoutL(CEikStatusPaneLayout* aLayout);
- private:
- __declspec(dllexport) virtual void Reserved_1();
- private:
- class TLayoutChecker : public MEikStatusPaneLayoutTreeVisitor
- {
- public:
- TLayoutChecker(CEikStatusPaneSetInit* aPanes);
- void VisitL(CEikStatusPaneLayoutTree* aNode);
- private:
- CEikStatusPaneSetInit* iPanes;
- };
- protected:
- CLayoutIdSet* iLayouts;
- TInt iCurrentResId;
- CEikonEnv& iEikEnv;
- private:
- CEikStatusPaneSetInit* iPanes;
- CEikStatusPaneLayout* iCurrentLayout;
- CIdSet* iLegalIds;
- };
- class CEikAppStatusPaneModel : public CEikStatusPaneModelBase
- {
- public:
- static CEikAppStatusPaneModel* NewL(CEikonEnv& aEikEnv, TInt aCoreResId, TInt aAppResId = 0 , TBool aChangeStatusPaneNow = ETrue);
- ~CEikAppStatusPaneModel();
- void ApplyCurrentLayoutL();
- public:
- void SetLayoutL(TInt aLayoutResId, TBool aChangeStatusPaneNow = ETrue);
- public:
- void SetLayoutL(TInt aLayoutResId, TBool aChangeStatusPaneNow, TBool aNotfiyServerSide);
- private:
- CEikAppStatusPaneModel(CEikonEnv& aEikEnv);
- void ConstructL(TInt aCoreResId, TInt aAppResId, TBool aChangeStatusPaneNow = ETrue);
- };
- inline TPaneId TEikStatusPaneInit::Id() const { return iId; }
- inline TBool TEikStatusPaneInit::AppOwned() const { return iFlags & 1 ; }
- inline TInt TEikStatusPaneInit::ControlTypeId() const { return iControlId; }
- inline TInt TEikStatusPaneInit::ControlResourceId() const { return iControlResource; }
- inline void TEikStatusPaneInit::SetHidden() {iFlags|=KEikStatusPaneHiddenBit;}
- inline void TEikStatusPaneInit::ClearHidden() {iFlags&=~KEikStatusPaneHiddenBit;}
- inline TBool TEikStatusPaneInit::IsHidden() const {return iFlags&KEikStatusPaneHiddenBit;}
- inline CEikStatusPaneLayoutTree* CEikStatusPaneLayout::Find(const TPaneId& aPaneId) const { return iRoot->Find(aPaneId); }
- inline void CEikStatusPaneLayout::AcceptL(MEikStatusPaneLayoutTreeVisitor* aVisitor) { iRoot->AcceptL(aVisitor); }
- inline TRect CEikStatusPaneLayout::Rect() const { return iRoot->Rect(); }
- inline TPaneId CEikStatusPaneLayoutTree::Id() const { return iId; }
- inline TRect CEikStatusPaneLayoutTree::Rect() const { return iRect; }
- inline CEikStatusPaneSetInit* CEikStatusPaneModelBase::PaneInits() const { return iPanes; }
- inline CEikStatusPaneLayout* CEikStatusPaneModelBase::CurrentLayout() const { return iCurrentLayout; }
- inline CEikStatusPaneModelBase::CIdSet* CEikStatusPaneModelBase::LegalIds() const { return iLegalIds; }
- #line 10 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikspane.h" /* stack depth 1 */
- #line 21
- class CCoeBrushAndPenContext;
- class CEikStatusPaneContainer;
- class TEikStatusPaneSyncDrawer;
- class CEikStatusPaneBaseExtension;
- class CAknStatuspaneClearer;
- const TInt KStatusPaneCapsPresentBit = 1;
- const TInt KStatusPaneCapsAppOwnedBit = 2;
- const TInt KStatusPaneCapsInCurrentLayoutBit = 4;
- #line 38
- class MEikStatusPaneObserver
- {
- public:
- virtual void HandleStatusPaneSizeChange() = 0;
- };
- class CEikStatusPaneBase : public CBase
- {
- public:
- class TPaneCapabilities
- {
- public:
- TPaneCapabilities();
- inline TBool IsPresent() const;
- inline TBool IsAppOwned() const;
- inline TBool IsInCurrentLayout() const;
- private:
- inline void SetPresent();
- inline void SetAppOwned();
- inline void SetInCurrentLayout();
- private:
- TInt iFlags;
- private:
- friend class CEikStatusPaneBase;
- };
- public:
- __declspec(dllexport) ~CEikStatusPaneBase();
- __declspec(dllexport) static CEikStatusPaneBase* Current();
- inline void SetObserver(MEikStatusPaneObserver* aObserver);
- __declspec(dllexport) void ReduceRect(TRect& aBoundingRect) const;
- __declspec(dllexport) void GetShapeL(TRegion& aRegion, TBool aIncludeAppPanes, TBool aIncludeServerPanes) const;
- __declspec(dllexport) virtual void SwitchLayoutL(TInt aLayoutResourceId);
- __declspec(dllexport) virtual void MakeVisible(TBool aVisible);
- __declspec(dllexport) virtual void SetDimmed(TBool aDimmed);
- __declspec(dllexport) virtual void SetFaded(TBool aFaded);
- __declspec(dllexport) virtual void HandleResourceChange(TInt aType);
- __declspec(dllexport) virtual TBool OkToChangeStatusPaneNow();
- __declspec(dllexport) void SetFlags(TInt aFlags);
- __declspec(dllexport) TInt Flags() const;
- __declspec(dllexport) TBool IsVisible() const;
- __declspec(dllexport) TBool IsDimmed() const;
- __declspec(dllexport) TBool IsFaded() const;
- __declspec(dllexport) TPaneCapabilities PaneCapabilities(TPaneId aPaneId) const;
- __declspec(dllexport) TRect PaneRectL(TPaneId aPaneId) const;
- __declspec(dllexport) CCoeControl* ControlL(TPaneId aPaneId) const;
- __declspec(dllexport) CCoeControl* SwapControlL(TPaneId aPaneId, CCoeControl* aNewControl);
- __declspec(dllexport) CCoeControl* ContainerControlL(TPaneId aPaneId) const;
- inline RWindowGroup* WindowGroup() const;
- __declspec(dllexport) void DrawNow();
- __declspec(dllexport) TInt CurrentLayoutResId() const;
- protected:
- __declspec(dllexport) CEikStatusPaneBase(CEikonEnv& aEikEnv, RWindowGroup* aParent);
- __declspec(dllexport) void BaseConstructL(TInt aCoreResId);
- virtual CEikStatusPaneModelBase* CreateModelL(TInt aCoreResId) const = 0;
- void CreatePanesL();
- void CreatePaneL(const TEikStatusPaneInit& aPaneInit);
- CEikStatusPaneContainer* Find(TPaneId aPaneId) const;
- virtual TBool IsApp() const = 0;
- inline TRect Rect() const;
- enum TDrawCmd { ENoDraw, EDrawNow, EDrawDeferred };
- void DoDrawNow(TDrawCmd aDraw);
- CAknStatuspaneClearer* Clearer();
- __declspec(dllexport) void DisableClearer(TBool aDisabled);
- __declspec(dllexport) void CommonPrepareForAppExit();
- private:
- void DoSwitchLayoutL(TInt aLayoutResourceId, TDrawCmd aDraw);
- void ApplyLayoutL(CEikStatusPaneLayout* aLayout, TDrawCmd aDraw);
- void SetAllInvisible();
- void SetNotNeededInvisible();
- public:
- void ReportSizeChange();
- private:
- class TSetRectAndVisibility : public MEikStatusPaneLayoutTreeVisitor
- {
- public:
- TSetRectAndVisibility(TBool aIsApp, CEikStatusPaneBase* aStatusPane);
- void VisitL(CEikStatusPaneLayoutTree* aNode);
- private:
- TBool iIsApp;
- CEikStatusPaneBase* iStatusPane;
- };
- friend class TSetRectAndVisibility;
- private:
- void SetLastUsedResourceId(TInt aResourceId);
- TInt LastUsedResourceId();
- TInt ReadInitialUsedResourceIdL(TInt aCoreResId);
- TInt InitialUsedResourceId();
- TRect LargestBoundingRect(TRegion& aWholeRegion, TRegion& aRemovedRegion) const;
- protected:
- void SetInitialUsedResourceId(TInt aResourceId);
- protected:
- CEikonEnv& iEikEnv;
- CEikStatusPaneModelBase* iModel;
- TInt iFlags;
- private:
- typedef CArrayPtrFlat<CEikStatusPaneContainer> CContainerControls;
- CContainerControls* iControls;
- MEikStatusPaneObserver* iObserver;
- RWindowGroup* iParentWindowGroup;
- CEikStatusPaneBaseExtension* iExtension;
- };
- class CEikStatusPane : public CEikStatusPaneBase, public MCoeForegroundObserver
- {
- public:
- __declspec(dllexport) static CEikStatusPane* NewL(CEikonEnv& aEikEnv, RWindowGroup* aParent, TInt aCoreStatusPaneModelResId, TInt aAppStatusPaneModelResId=0 );
- __declspec(dllexport) ~CEikStatusPane();
- __declspec(dllexport) void ApplyCurrentSettingsL();
- __declspec(dllexport) void PrepareForAppExit();
- __declspec(dllexport) virtual void MakeVisible(TBool aVisible);
- __declspec(dllexport) virtual void SetDimmed(TBool aDimmed);
- __declspec(dllexport) virtual void SetFaded(TBool aFaded);
- __declspec(dllexport) virtual void HandleResourceChange(TInt aType);
- __declspec(dllexport) virtual TBool OkToChangeStatusPaneNow();
- private:
- CEikStatusPane(CEikonEnv& aEikEnv, RWindowGroup* aParent, TInt aAppStatusPaneModelId);
- void ConstructL(TInt aCoreStatusPaneModelResId);
- virtual CEikStatusPaneModelBase* CreateModelL(TInt aCoreResId) const;
- TBool IsApp() const;
- void ApplyCurrentFlags();
- void HideAppPanes(TBool aHide);