S60UIExamplePlayView.inc
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:1975k
源码类别:
Symbian
开发平台:
C/C++
- 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 9 */
- 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 8 */
- 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 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikvcurs.h" /* stack depth 8 */
- #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 7 */
- 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 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrv.pan" /* stack depth 7 */
- #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 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\apgtask.h" /* stack depth 7 */
- #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 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrv.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\vwsappst.h" /* stack depth 8 */
- #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 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikunder.h" /* stack depth 8 */
- #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 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikcycledef.h" /* stack depth 8 */
- #line 9
- enum TTaskCycleDirection
- {
- EBackwards,
- EForwards
- };
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksrv.h" /* stack depth 7 */
- 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 6 */
- 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 5 */
- 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 4 */
- 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 3 */
- #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);
- private:
- void HandleGainingForeground();
- void HandleLosingForeground();
- private:
- TInt ReadInitialUsedResourceIdL(TInt aCoreResId, TInt aAppStatusPaneModelResId);
- void DoHandleLosingForegroundL();
- private:
- TInt iAppDeclId;
- TEikStatusPaneSyncDrawer* iSyncDrawer;
- TInt iSpare;
- };
- #line 216
- inline TBool CEikStatusPaneBase::TPaneCapabilities::IsPresent() const { return iFlags & KStatusPaneCapsPresentBit; }
- inline TBool CEikStatusPaneBase::TPaneCapabilities::IsAppOwned() const { return iFlags & KStatusPaneCapsAppOwnedBit; }
- inline TBool CEikStatusPaneBase::TPaneCapabilities::IsInCurrentLayout() const { return iFlags & KStatusPaneCapsInCurrentLayoutBit; }
- inline void CEikStatusPaneBase::SetObserver(MEikStatusPaneObserver* aObserver) { iObserver = aObserver; }
- inline TRect CEikStatusPaneBase::Rect() const { return iModel->CurrentLayout()->Rect(); }
- inline RWindowGroup* CEikStatusPaneBase::WindowGroup() const { return iParentWindowGroup; }
- #line 25 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknappui.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikcba.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikctgrp.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikbctrl.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\AknControl.h" /* stack depth 6 */
- #line 33
- class CAknControl : public CCoeControl
- {
- public:
- __declspec(dllexport) CAknControl();
- __declspec(dllexport) ~CAknControl();
- private:
- __declspec(dllexport) virtual void* ExtensionInterface( TUid aInterface );
- private:
- TInt iSpare[6];
- };
- #line 17 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikbctrl.h" /* stack depth 5 */
- class CEikBorderedControl : public CAknControl
- {
- public:
- __declspec(dllexport) CEikBorderedControl();
- __declspec(dllexport) CEikBorderedControl(const TGulBorder& aBorder);
- public:
- __declspec(dllexport) TBool HasBorder() const;
- __declspec(dllexport) void SetAdjacent(TInt aAdjacent);
- __declspec(dllexport) void GetColorUseListL(CArrayFix<TCoeColorUse>& aColorUseList) const;
- __declspec(dllexport) void HandleResourceChange(TInt aType);
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- public:
- __declspec(dllexport) void SetBorder(TGulBorder::TBorderType aBorderType);
- __declspec(dllexport) void SetBorder(TInt aBorderType);
- __declspec(dllexport) TGulBorder Border() const;
- protected:
- __declspec(dllexport) void Draw(const TRect& aRect) const;
- __declspec(dllexport) void WriteInternalStateL(RWriteStream& aWriteStream) const;
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- protected:
- TGulBorder iBorder;
- private:
- TInt iSpare[2];
- };
- #line 10 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikctgrp.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\lafpublc.h" /* stack depth 5 */
- #line 25
- const TInt KLafScrollBarButtonPositionMask = 0x00C0;
- struct SLafScrollButton
- {
- enum TType
- {
- ENudgeLeft,
- ENudgeUp,
- ENudgeRight,
- ENudgeDown,
- EPageLeft,
- EPageUp,
- EPageRight,
- EPageDown,
- EHome,
- ETop,
- EEnd,
- EBottom
- };
- };
- struct SLafScrollBar
- {
- enum TEikScrollBarFlags
- {
- EEikScrollBarDefaultBehaviour =0x0000,
- EEikScrollBarNoNudgeButtons =0x0001,
- EEikScrollBarHasPageButtons =0x0002,
- EEikScrollBarHasHomeEndButtons =0x0004,
- EEikScrollBarNoShaftOrThumb =0x0008,
- EEikScrollBarShaftButNoThumb =0x0010,
- EButtonsAtStartOfShaft =0x0040,
- EButtonsAtEndOfShaft =0x0080,
- EButtonsEitherSideOfShaft =EButtonsAtStartOfShaft|EButtonsAtEndOfShaft,
- ENoAutoDimming =0x0100
- };
- enum TOrientation
- {
- EVertical,
- EHorizontal
- };
- };
- struct SLafListBox
- {
- enum TFlags
- {
- EMultipleSelection = 0x0001,
- ENoExtendedSelection = 0x0002,
- EIncrementalMatching = 0x0004,
- EPopout = 0x0008,
- ELeftDownInViewRect = 0x0010,
- EItemDoubleClicked = 0x0020,
- EKeepModel = 0x0040,
- EScrollBarSizeExcluded = 0x0080,
- EStateChanged = 0x0100,
- ECreateOwnWindow = 0x0200,
- ENoFirstLetterMatching = 0x0400,
- EPaintedSelection = 0x0800,
- ES60StyleMultiselection = 0x00010000,
- ES60StyleMarkable = 0x00020000
- };
- enum TListItemAttribute
- {
- ECurrent = 0x0001,
- EEmphasized = 0x0002,
- ESelected = 0x0004,
- EMask = 0x0007
- };
- enum TListItemFlags
- {
- EItemDrawMarkSelection = 0x0001,
- EItemPaintedSelection = 0x0002,
- EItemDrawOnlyActiveSelection = 0x0004
- };
- };
- struct SLafScrollThumb
- {
- enum TOrientation
- {
- EVertical,
- EHorizontal
- };
- };
- struct SLafScrollBarFrame
- {
- enum TScrollBarVisibility
- {
- EOff,
- EOn,
- EAuto
- };
- enum TScrollBarSide
- {
- EBottomOrRight,
- ETopOrLeft
- };
- enum TScrollBarManagement
- {
- EComponent,
- EFloating,
- EApplicationScrollBar
- };
- };
- struct SLafControlGroup
- {
- enum TStartCorner
- {
- EFromTopLeft=0x1,
- EFromTopRight=0x2,
- EFromBottomLeft=0x3,
- EFromBottomRight=0x4
- };
- enum TOrientation
- {
- ELayHorizontally=0x10,
- ELayVertically=0x20
- };
- };
- struct SLafButtonGroupContainer
- {
- enum TUse
- {
- EView,
- EDialog,
- EToolbar,
- ECba,
- EDialogButtons
- };
- enum TOrientation
- {
- EVertical,
- EHorizontal
- };
- enum TLocation
- {
- EInternal,
- EExternal
- };
- };
- struct SLafMenuBar
- {
- enum { ENominalTextLength = 40 };
- };
- struct SLafMenuPane
- {
- enum THighlightType
- {
- ENoHighlight,
- EDrawHighlight,
- ERemoveHighlight
- };
- };
- struct SLafButtonBase
- {
- enum TDrawState
- {
- EDrawClear =0x00,
- EDrawSet =0x01,
- EDrawIndeterminate =0x02,
- EDrawClearPressed =0x10,
- EDrawSetPressed =0x11,
- EDrawIndeterminatePressed =0x12
- };
- };
- #line 13 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikctgrp.h" /* stack depth 4 */
- class TEikGroupControl
- {
- public:
- inline TEikGroupControl();
- inline TEikGroupControl(CCoeControl* aControl,TInt aId,TInt aLength,TInt aFlags);
- public:
- CCoeControl* iControl;
- TInt iId;
- TInt iLongId;
- public:
- inline TBool IsLengthSet() const;
- inline TInt Length() const;
- inline TBool IsStretchable() const;
- inline void SetLength(TInt aLength);
- inline void SetStretchable();
- public:
- enum TControlFlags
- {
- ESetLength =0x01,
- EAllowStretch =0x02
- };
- private:
- TInt iLength;
- TInt iFlags;
- };
- class CEikControlGroup : public CEikBorderedControl
- {
- friend class CTestControlGroup;
- friend class CEikCba;
- public:
- enum TStartCorner
- {
- EFromTopLeft=SLafControlGroup::EFromTopLeft,
- EFromTopRight=SLafControlGroup::EFromTopRight,
- EFromBottomLeft=SLafControlGroup::EFromBottomLeft,
- EFromBottomRight=SLafControlGroup::EFromBottomRight
- };
- enum TOrientation
- {
- ELayHorizontally=SLafControlGroup::ELayHorizontally,
- ELayVertically =SLafControlGroup::ELayVertically
- };
- public:
- __declspec(dllexport) CEikControlGroup();
- __declspec(dllexport) ~CEikControlGroup();
- __declspec(dllexport) void ConstructL(TStartCorner aStart,TOrientation aOrientation);
- __declspec(dllexport) virtual void AddControlL(CCoeControl* aControl,TInt aId);
- __declspec(dllexport) virtual void AddControlL(TEikGroupControl& aGroupControl);
- __declspec(dllexport) void InsertControlL(TEikGroupControl& aGroupControl,TInt aIndex);
- __declspec(dllexport) void DeleteControl(TInt aIndex,TInt aCount);
- __declspec(dllexport) void SetLengthInPixels(TInt aLength);
- __declspec(dllexport) void SetBreadthInPixels(TInt aBreadth);
- __declspec(dllexport) void SetControlSpacing(TInt aHSpacing,TInt aVSpacing);
- __declspec(dllexport) void SetControlLayout(TStartCorner aStart,TOrientation aOrientation);
- __declspec(dllexport) void SetNumberOfLines(TInt aNumLines,TBool aDistributeEvenly);
- __declspec(dllexport) void SetControlsAllSameSize();
- __declspec(dllexport) void LayoutControls();
- __declspec(dllexport) CCoeControl* ControlById(TInt aId) const;
- __declspec(dllexport) TInt IndexById(TInt aId) const;
- __declspec(dllexport) void Reset();
- __declspec(dllexport) TInt ControlId(CCoeControl* aControl) const;
- __declspec(dllexport) CCoeControl* Control(TInt aIndex) const;
- __declspec(dllexport) CArrayFix<TEikGroupControl> * ControlArray() const;
- __declspec(dllexport) TOrientation Orientation() const;
- __declspec(dllexport) void ControlSpacing(TInt& aHSpacing,TInt& aVSpacing) const;
- public:
- __declspec(dllexport) TSize MinimumSize();
- __declspec(dllexport) TInt CountComponentControls() const;
- __declspec(dllexport) virtual void GetColorUseListL(CArrayFix<TCoeColorUse>& aColorUseList) const;
- __declspec(dllexport) virtual void HandleResourceChange(TInt aType);
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- protected:
- enum
- {
- EDistributeEvenly =0x40,
- EAllSameSize =0x80
- };
- protected:
- __declspec(dllexport) CCoeControl* ComponentControl(TInt aIndex) const;
- __declspec(dllexport) void WriteInternalStateL(RWriteStream& aWriteStream) const;
- private:
- __declspec(dllexport) void Reserved_2();
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- __declspec(dllexport) TInt Adjacent(TInt aRow,TInt aColumn,TInt aCtrlIndex,TInt aTotalRows,TInt aTotalColumns) const;
- __declspec(dllexport) TStartCorner StartCorner() const;
- __declspec(dllexport) void DeleteAllComponents();
- __declspec(dllexport) TSize ControlMinimumSize(TInt aIndex) const;
- __declspec(dllexport) TInt ControlMinimumLength(TInt aIndex);
- __declspec(dllexport) TSize LargestControlSize() const;
- __declspec(dllexport) TBool DistributeEvenly() const;
- __declspec(dllexport) TBool AllSameSize();
- private:
- __declspec(dllexport) void SizeChanged();
- __declspec(dllexport) void Draw(const TRect& aRect) const;
- protected:
- CArrayFix<TEikGroupControl> * iControlArray;
- private:
- TInt iLayout;
- TInt iLines;
- TInt iHSpacing;
- TInt iVSpacing;
- TInt iBreadth;
- TInt iLength;
- TSize iLargestControl;
- };
- inline TEikGroupControl::TEikGroupControl()
- { iControl=0 ; iId=iFlags=iLength=0; }
- inline TEikGroupControl::TEikGroupControl(CCoeControl* aControl,TInt aId,TInt aLength,TInt aFlags)
- : iControl(aControl),iId(aId),iLength(aLength),iFlags(aFlags)
- {}
- inline TBool TEikGroupControl::IsLengthSet() const
- { return iFlags&ESetLength; }
- inline TInt TEikGroupControl::Length() const
- { return iLength; }
- inline TBool TEikGroupControl::IsStretchable() const
- { return iFlags&EAllowStretch; }
- inline void TEikGroupControl::SetLength(TInt aLength)
- { iLength=aLength; iFlags|=ESetLength; }
- inline void TEikGroupControl::SetStretchable()
- { iFlags|=EAllowStretch; }
- #line 10 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikcba.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikbtgrp.h" /* stack depth 4 */
- #line 13
- class CCoeControl;
- class CEikCommandButton;
- class CFbsBitmap;
- class MEikButtonGroup
- {
- public:
- void Release();
- virtual void SetCommandL(TInt aPosition,TInt aCommandId,const TDesC* aText,const CFbsBitmap* aBitmap,const CFbsBitmap* aMask)=0;
- virtual void SetCommandL(TInt aPosition,TInt aResourceId)=0;
- virtual void SetCommandSetL(TInt aResourceId)=0;
- virtual void AddCommandL(TInt aPosition,TInt aCommandId,const TDesC* aText,const CFbsBitmap* aBitmap,const CFbsBitmap* aMask)=0;
- virtual void AddCommandToStackL(TInt aPosition,TInt aCommandId,const TDesC* aText,const CFbsBitmap* aBitmap,const CFbsBitmap* aMask)=0;
- virtual void AddCommandToStackL(TInt aPosition,TInt aResourceId)=0;
- virtual void AddCommandSetToStackL(TInt aResourceId)=0;
- virtual void SetDefaultCommand(TInt aCommandId)=0;
- virtual TSize CalcMinimumSizeL(TInt aResourceId)=0;
- virtual void RemoveCommandFromStack(TInt aPosition,TInt aCommandId)=0;
- virtual TInt CommandPos(TInt aCommandId) const=0;
- virtual void DimCommand(TInt aCommandId,TBool aDimmed)=0;
- virtual TBool IsCommandDimmed(TInt aCommandId) const=0;
- virtual void MakeCommandVisible(TInt aCommandId,TBool aVisible)=0;
- virtual TBool IsCommandVisible(TInt aCommandId) const=0;
- __declspec(dllexport) virtual void AnimateCommand(TInt aCommandId);
- virtual CCoeControl* AsControl()=0;
- virtual const CCoeControl* AsControl() const=0;
- virtual void SetBoundingRect(const TRect& aBoundingRect)=0;
- virtual void ReduceRect(TRect& aBoundingRect) const=0;
- virtual CCoeControl* GroupControlById(TInt aCommandId) const=0;
- virtual CEikCommandButton* GroupControlAsButton(TInt aCommandId) const=0;
- virtual TInt CommandId(TInt aCommandPos) const=0;
- virtual TInt ButtonCount() const=0;
- virtual TUint ButtonGroupFlags() const=0;
- private:
- __declspec(dllexport) void Reserved_1();
- };
- class MEikEnhancedButtonGroup : public MEikButtonGroup
- {
- public:
- __declspec(dllexport) virtual void OfferCommandListL(const RArray<TInt>& aCommandList)=0;
- __declspec(dllexport) virtual void OfferCommandListL(const TInt aResourceId)=0;
- __declspec(dllexport) virtual TBool IsCommandInGroup(const TInt aCommandId) const=0;
- __declspec(dllexport) virtual void ReplaceCommand(const TInt aCommandId, const TInt aResourceId)=0;
- };
- #line 18 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikcba.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksbobs.h" /* stack depth 4 */
- #line 12
- enum TEikScrollEvent
- {
- EEikScrollLeft=1,
- EEikScrollUp,
- EEikScrollRight,
- EEikScrollDown,
- EEikScrollPageLeft,
- EEikScrollPageUp,
- EEikScrollPageRight,
- EEikScrollPageDown,
- EEikScrollHome,
- EEikScrollTop,
- EEikScrollEnd,
- EEikScrollBottom,
- EEikScrollThumbDragHoriz,
- EEikScrollThumbDragVert,
- EEikScrollThumbReleaseHoriz,
- EEikScrollThumbReleaseVert
- };
- class CEikScrollBar;
- class MEikScrollBarObserver
- {
- public:
- virtual void HandleScrollEventL(CEikScrollBar* aScrollBar, TEikScrollEvent aEventType)=0;
- };
- #line 22 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikcba.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksbfrm.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknscrlb.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikscrlb.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknscbut.h" /* stack depth 7 */
- #line 31
- class CAknScrollIndicator;
- class CAknScrollButton : public CAknControl
- {
- public:
- enum TType
- {
- ENudgeLeft,
- ENudgeUp,
- ENudgeRight,
- ENudgeDown,
- EPageLeft,
- EPageUp,
- EPageRight,
- EPageDown,
- EHome,
- ETop,
- EEnd,
- EBottom
- };
- public:
- enum TTypeOfScrollBar
- {
- ENormal =0x00,
- EArrowHead =0x01
- };
- public:
- __declspec(dllexport) static CAknScrollButton* NewL(TType aType);
- __declspec(dllexport) ~CAknScrollButton();
- __declspec(dllexport) TType Type() const;
- __declspec(dllexport) void CreateWindowOnlyForArrowsL(const CCoeControl* aParent);
- __declspec(dllexport) TBool IsNormalScrollBarUsingButton() const;
- __declspec(dllexport) void SetTypeOfScrollBarUsingButton(TTypeOfScrollBar aTypeOfScrollBar);
- __declspec(dllexport) void SetPosition(const TInt aFocusPosition, const TInt aScrollSpan);
- #line 138
- __declspec(dllexport) static CAknScrollButton* NewL(TType aType, TTypeOfScrollBar aTypeOfScrollBar);
- private:
- CAknScrollButton(TType aType);
- void ConstructL();
- void SizeChanged();
- void DrawIndicator() const;
- void ConstructL(TTypeOfScrollBar aTypeOfScrollBar);
- private:
- virtual void Draw(const TRect& aRect) const;
- private:
- friend class CAknScrollBar;
- TType iType;
- TInt iFlag;
- CAknScrollIndicator* iScrollIndicator;
- TRect iOldRect;
- };
- #line 18 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikscrlb.h" /* stack depth 6 */
- class CEikCba;
- class CAknDoubleSpanScrollIndicator;
- class CEikScrollBarExtensionImpl;
- class CEikScrollBarExtension;
- class CAknDoubleSpanScrollBarExtension;
- const TInt KEikScrollEventFromVBar=0;
- const TInt KEikScrollEventFromHBar=0x01;
- const TInt KEikScrollEventBarMask=0x01;
- const TInt KButtonPositionMask=KLafScrollBarButtonPositionMask;
- const TInt KDisplayComponentsMask=0x1f;
- class TEikScrollBarModel
- {
- public:
- inline TEikScrollBarModel();
- __declspec(dllexport) TEikScrollBarModel(TInt aScrollSpan,TInt aThumbSpan=0,TInt aThumbPosition=0);
- __declspec(dllexport) TBool operator==(const TEikScrollBarModel aModel) const;
- inline TBool operator!=(const TEikScrollBarModel aModel) const;
- public:
- __declspec(dllexport) TBool ScrollBarUseful() const;
- __declspec(dllexport) TInt MaxThumbPos() const;
- __declspec(dllexport) void CheckBounds();
- enum TEikScrollBarModelType
- {
- EEikScrollBarModel = 0x00000000,
- EAknDoubleSpanScrollBarModel = 0x80000000
- };
- TEikScrollBarModel::TEikScrollBarModelType ScrollBarModelType() const;
- public:
- TInt iScrollSpan;
- TInt iThumbSpan;
- TInt iThumbPosition;
- };
- inline TEikScrollBarModel::TEikScrollBarModel() {}
- inline TBool TEikScrollBarModel::operator!=(const TEikScrollBarModel aModel) const { return !(*this==aModel); }
- #line 81
- class TAknDoubleSpanScrollBarModel : public TEikScrollBarModel
- {
- public:
- __declspec(dllexport) TAknDoubleSpanScrollBarModel();
- #line 117
- __declspec(dllexport) TAknDoubleSpanScrollBarModel(const TEikScrollBarModel& aEikModel);
- #line 143
- __declspec(dllexport) void SetScrollSpan(TInt aValue);
- __declspec(dllexport) void SetFocusPosition(TInt aValue);
- __declspec(dllexport) void SetWindowSize(TInt aValue);
- __declspec(dllexport) void SetFieldSize(TInt aValue);
- __declspec(dllexport) void SetFieldPosition(TInt aValue);
- #line 162
- __declspec(dllexport) TInt ScrollSpan() const;
- __declspec(dllexport) TInt FocusPosition() const;
- __declspec(dllexport) TInt WindowSize() const;
- __declspec(dllexport) TInt FieldSize() const;
- __declspec(dllexport) TInt FieldPosition() const;
- #line 187
- static TBool ModelIsSupported();
- private:
- TUint16 Scale() const;
- #line 206
- void SetScale(TUint16 aScale);
- private:
- TInt16 ScrollSpanValue() const;
- TInt16 FocusPositionValue() const;
- TInt16 FieldPositionValue() const;
- TInt16 FieldSizeValue() const;
- TInt16 WindowSizeValue() const;
- #line 229
- void SetScrollSpanValue(TInt16 aValue);
- void SetFocusPositionValue(TInt16 aValue);
- void SetFieldPositionValue(TInt16 aValue);
- void SetFieldSizeValue(TInt16 aValue);
- void SetWindowSizeValue(TInt16 aValue);
- #line 242
- TInt16 LowBytes(TInt aInt) const;
- #line 251
- TInt16 HighBytes(TInt aInt) const;
- #line 261
- void SetLowBytes(TInt& aInt, TInt16 aValue);
- #line 270
- void SetHighBytes(TInt& aInt, TInt16 aValue);
- #line 281
- TInt16 PrepareScaledValue(TInt aNonScaledValue);
- #line 291
- void ReScale(TUint16 aNewScale);
- #line 301
- void SetScrollBarModelType(TEikScrollBarModelType aModelType);
- #line 312
- TInt CheckMinMaxValue(TInt aValue);
- };
- class CEikScrollThumb;
- class CEikScrollBarFrame;
- class CEikScrollBar : public CEikBorderedControl, public MCoeControlObserver
- {
- friend class CEikScrollBarExtension;
- friend class CAknDoubleSpanScrollBarExtension;
- public:
- enum TOrientation
- {
- EVertical = SLafScrollBar::EVertical,
- EHorizontal = SLafScrollBar::EHorizontal
- };
- enum TScrollBarType
- {
- ENormalScrollBar =0x0,
- EArrowHead =0x200,
- EDoubleSpan =0x400
- };
- enum TEikScrollBarFlags
- {
- EEikScrollBarDefaultBehaviour =SLafScrollBar::EEikScrollBarDefaultBehaviour,
- EEikScrollBarNoNudgeButtons =SLafScrollBar::EEikScrollBarNoNudgeButtons,
- EEikScrollBarHasPageButtons =SLafScrollBar::EEikScrollBarHasPageButtons,
- EEikScrollBarHasHomeEndButtons =SLafScrollBar::EEikScrollBarHasHomeEndButtons,
- EEikScrollBarNoShaftOrThumb =SLafScrollBar::EEikScrollBarNoShaftOrThumb,
- EEikScrollBarShaftButNoThumb =SLafScrollBar::EEikScrollBarShaftButNoThumb,
- EButtonsAtStartOfShaft =SLafScrollBar::EButtonsAtStartOfShaft,
- EButtonsAtEndOfShaft =SLafScrollBar::EButtonsAtEndOfShaft,
- EButtonsEitherSideOfShaft =SLafScrollBar::EButtonsEitherSideOfShaft,
- ENoAutoDimming =SLafScrollBar::ENoAutoDimming
- };
- typedef TEikScrollBarFlags TAknScrollBarFlags;
- public:
- __declspec(dllexport) ~CEikScrollBar();
- __declspec(dllexport) CEikScrollBar();
- public:
- __declspec(dllexport) virtual void ConstructL(MEikScrollBarObserver* aScrollBarObserver,const CCoeControl* aParent,
- TOrientation aOrientation,TInt aLength,TInt aScrollBarFlags=EEikScrollBarDefaultBehaviour);
- __declspec(dllexport) void SetLengthL(TInt aLength);
- __declspec(dllexport) void SetModelL(const TEikScrollBarModel* aModel);
- __declspec(dllexport) void SetModel(const TEikScrollBarModel* aModel);
- __declspec(dllexport) void SetLengthAndModelL(TInt aLength,const TEikScrollBarModel* aModel);
- __declspec(dllexport) void SetModelThumbPosition(TInt aThumbPos);
- __declspec(dllexport) void SetFocusPosToThumbPos(TInt aFocusPosition);
- __declspec(dllexport) static TInt DefaultScrollBarBreadth();
- #line 387
- void SetScrollBarObserver(MEikScrollBarObserver* aScrollBarObserver);
- inline const TEikScrollBarModel* Model() const;
- __declspec(dllexport) TInt ThumbPosition() const;
- __declspec(dllexport) TInt ScrollBarBreadth() const;
- __declspec(dllexport) static TInt MinVisibleLength(const TInt aScrollBarFlags);
- __declspec(dllexport) void SetDecreaseButtonsDimmed(TBool aDimmed);
- __declspec(dllexport) void SetIncreaseButtonsDimmed(TBool aDimmed);
- __declspec(dllexport) void SetAllButtonsDimmed(TBool aDimmed);
- inline CAknScrollButton* IncreaseNudgeButton() const;
- inline CAknScrollButton* DecreaseNudgeButton() const;
- __declspec(dllexport) void SetContainingCba(CEikCba* aCba);
- __declspec(dllexport) void MakeVisible(TBool aVisible);
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- protected:
- __declspec(dllexport) CCoeControl* ComponentControl(TInt aIndex) const;
- __declspec(dllexport) TInt CountComponentControls() const;
- private:
- __declspec(dllexport) virtual void HandleControlEventL(CCoeControl* aControl, TCoeEvent aEventType);
- private:
- __declspec(dllexport) virtual void Reserved_2();
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- protected:
- friend class CEikScrollBarFrame;
- enum TPrivateScrollBarFlags
- {
- ENoComponentsToDisplay =0x10000,
- EIncreaseButtonsDimmed =0x20000,
- EDecreaseButtonsDimmed =0x40000
- };
- enum TPointerDownOn
- {
- ENone,
- EHomeButton,
- EDecreasePageButton,
- EDecreaseNudgeButton,
- EDecreaseShaft,
- EThumb,
- EIncreaseShaft,
- EIncreaseNudgeButton,
- EIncreasePageButton,
- EEndButton
- };
- enum TShaftRedrawRequired
- {
- ENoRedrawRequired,
- ERedrawShaft
- };
- enum TWhichButtons
- {
- EIncreaseOnly,
- EDecreaseOnly,
- EAll
- };
- struct SEikScrollBarButtons
- {
- CAknScrollButton* iDecreaseNudge;
- CAknScrollButton* iIncreaseNudge;
- };
- private:
- __declspec(dllexport) virtual void CreateButtonL(CAknScrollButton*& aButton,CAknScrollButton::TType aType);
- void SizeChanged();
- void DoSetModel(const TEikScrollBarModel* aModel);
- CEikCba* Cba() const;
- void AddExternalFrameL(CEikScrollBarFrame* aFrame);
- void RemoveExternalFrame(CEikScrollBarFrame* aFrame);
- void DisconnectExternalFrames();
- protected:
- void CreateRequiredComponentsL();
- void DestroyButton(CAknScrollButton*& aButton);
- __declspec(dllexport) virtual void SetButtonPositionL(CAknScrollButton* aButton);
- public:
- TScrollBarType ScrollBarType();
- public:
- TDblQueLink iSBLink;
- protected:
- SEikScrollBarButtons iButtons;
- TOrientation iOrientation;
- private:
- TEikScrollBarModel iModel;
- protected:
- CEikScrollBarExtensionImpl* iExtension;
- };
- #line 512
- class CEikArrowHeadScrollBar : public CEikScrollBar
- {
- public:
- __declspec(dllexport) CEikArrowHeadScrollBar(CCoeControl* aParentWindow);
- __declspec(dllexport) ~CEikArrowHeadScrollBar();
- public:
- __declspec(dllexport) void ConstructL(MEikScrollBarObserver* aScrollBarObserver,const CCoeControl* aParent,
- TOrientation aOrientation,TInt aLength,TInt aScrollBarFlags=EEikScrollBarDefaultBehaviour);
- public:
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- private:
- void CreateButtonL(CAknScrollButton*& aButton,CAknScrollButton::TType aType);
- void SetButtonPositionL(CAknScrollButton* aButton);
- private:
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- CCoeControl* iParentControl;
- TInt iSpare;
- };
- #line 551
- class CAknDoubleSpanScrollBar : public CEikScrollBar
- {
- public:
- __declspec(dllexport) CAknDoubleSpanScrollBar(CCoeControl* aParentWindow);
- __declspec(dllexport) ~CAknDoubleSpanScrollBar();
- #line 565
- __declspec(dllexport) void SetFixedLayoutRect(TRect aScrollBarRect);
- #line 579
- __declspec(dllexport) void ConstructL(TBool aWindowOwning, MEikScrollBarObserver* aScrollBarObserver,const CCoeControl* aParent,
- TOrientation aOrientation,TInt aLength,TInt aScrollBarFlags=EEikScrollBarDefaultBehaviour);
- TRect FixedLayoutRect();
- public:
- __declspec(dllexport) void ConstructL(MEikScrollBarObserver* aScrollBarObserver,const CCoeControl* aParent,
- TOrientation aOrientation,TInt aLength,TInt aScrollBarFlags=EEikScrollBarDefaultBehaviour);
- __declspec(dllexport) void MakeVisible(TBool aVisible);
- public:
- __declspec(dllexport) void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- protected:
- __declspec(dllexport) CCoeControl* ComponentControl(TInt aIndex) const;
- __declspec(dllexport) TInt CountComponentControls() const;
- private:
- __declspec(dllexport) void SizeChanged();
- private:
- __declspec(dllexport) void* ExtensionInterface( TUid aInterface );
- private:
- void CreateButtonL(CAknScrollButton*& aButton,CAknScrollButton::TType aType);
- void SetButtonPositionL(CAknScrollButton* aButton);
- #line 619
- void SetTransparentBackground(TBool aTransparentBackground);
- private:
- CCoeControl* iParentControl;
- TInt iSpare;
- };
- inline const TEikScrollBarModel* CEikScrollBar::Model() const
- { return &iModel; }
- inline CAknScrollButton* CEikScrollBar::IncreaseNudgeButton() const
- { return iButtons.iIncreaseNudge; }
- inline CAknScrollButton* CEikScrollBar::DecreaseNudgeButton() const
- { return iButtons.iDecreaseNudge; }
- #line 10 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknscrlb.h" /* stack depth 5 */
- #line 11 "C:\Symbian\9.1\S60_3rd\epoc32\include\eiksbfrm.h" /* stack depth 4 */
- class CEikCba;
- class TEikScrollBarFrameLayout
- {
- public:
- enum TTilingMode
- {
- EClientRectConstant,
- EInclusiveRectConstant
- };
- public:
- __declspec(dllexport) TEikScrollBarFrameLayout();
- __declspec(dllexport) void SetInclusiveMargin(TInt aMargin);
- __declspec(dllexport) void SetClientMargin(TInt aMargin);
- public:
- TMargins iInclusiveMargin;
- TMargins iClientMargin;
- TSize iClientAreaGranularity;
- TTilingMode iTilingMode;
- };
- class CEikCornerWindow;
- class CEikScrollBarFrameExtension;
- class CEikScrollBarFrame : public CBase
- {
- public:
- enum { ETypeId = 0x101F8672 };
- enum TScrollBarVisibility
- {
- EOff,
- EOn,
- EAuto
- };
- enum TScrollBarType
- {
- ENormalScrollBar =0x0,
- EArrowHead =0x200,
- EDoubleSpan =0x400
- };
- enum TScrollBarSide
- {
- EBottomOrRight =0x0,
- ETopOrLeft =0x800
- };
- enum TScrollBarManagement
- {
- EComponent ,
- EFloating ,
- EApplicationScrollBar
- };
- enum TScrollBarFrameFlags
- {
- EHVisible =0x01,
- EVVisible =0x02,
- };
- private:
- enum TMarginsAdjustmentMode
- {
- EGrow,
- EShrink
- };
- public:
- CEikScrollBarFrame(){}
- __declspec(dllexport) CEikScrollBarFrame(CCoeControl* aParentWindow, MEikScrollBarObserver* aObserver, TBool aPreAlloc=EFalse);
- __declspec(dllexport) ~CEikScrollBarFrame();
- CEikScrollBarFrame(CCoeControl* aParentWindow, MEikScrollBarObserver* aObserver, TBool aPreAlloc, TBool aDoubleSpan);
- void InitExtension(CCoeControl* aParentWindow, MEikScrollBarObserver* aObserver);
- __declspec(dllexport) void DrawScrollBarsNow() const;
- __declspec(dllexport) void SetScrollBarVisibilityL(TScrollBarVisibility aHVisibility, TScrollBarVisibility aVVisibility);
- #line 132
- inline TScrollBarVisibility VScrollBarVisibility() const;
- #line 141
- __declspec(dllexport) void SetScrollBarFrameObserver(MEikScrollBarObserver* aObserver);
- #line 153
- __declspec(dllexport) TBool Tile(TEikScrollBarModel* aVModel);
- #line 181
- __declspec(dllexport) TBool TileL(TEikScrollBarModel* aHModel, TEikScrollBarModel* aVModel,
- TRect& aClientRect, TRect& aInclusiveRect, const TEikScrollBarFrameLayout& aLayout);
- #line 196
- __declspec(dllexport) void MoveThumbsBy(TInt aDeltaX, TInt aDeltaY);
- #line 207
- __declspec(dllexport) void MoveHorizThumbTo(TInt aHorizThumbPos);
- #line 218
- __declspec(dllexport) void MoveVertThumbTo(TInt aVertThumbPos);
- #line 228
- __declspec(dllexport) void SetVFocusPosToThumbPos(TInt aFocusPosition);
- #line 237
- __declspec(dllexport) TInt ScrollBarBreadth(CEikScrollBar::TOrientation aOrientation) const;
- #line 246
- __declspec(dllexport) void SetAdjustsHorizontalModel(TBool aAdjusts);
- __declspec(dllexport) void SetAdjustsVerticalModel(TBool aAdjusts);
- #line 263
- inline void SetScrollBarFrameFlags(TInt aMask);
- #line 272
- __declspec(dllexport) TBool ScrollBarExists(CEikScrollBar::TOrientation aOrientation) const;
- #line 282
- __declspec(dllexport) TInt CountComponentControls() const;
- #line 291
- __declspec(dllexport) CCoeControl* ComponentControl(TInt aIndex) const;