S60UIExampleInitialView.inc
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:1156k
源码类别:
Symbian
开发平台:
C/C++
- EExtractAll = 0,
- EExtractVisible = 1
- };
- __declspec(dllexport) void ExtractSelectively(TDes& aBuf,TInt aPos,TInt aLength,TUint aFlags);
- __declspec(dllexport) virtual void CopyToStoreL(CStreamStore& aStore,CStreamDictionary& aDictionary,TInt aPos,TInt aLength) const;
- __declspec(dllexport) virtual TInt PasteFromStoreL(const CStreamStore& aStore,const CStreamDictionary& aDictionary,TInt aPos);
- __declspec(dllexport) void SetPageTable(TPageTable* aPageTable);
- __declspec(dllexport) TInt PageContainingPos(TInt aPos) const;
- __declspec(dllexport) virtual TInt DocumentLength() const;
- __declspec(dllexport) virtual TInt WordCount() const;
- __declspec(dllexport) virtual TInt ParagraphCount() const;
- __declspec(dllexport) virtual TInt ToParagraphStart(TInt& aPos) const;
- __declspec(dllexport) virtual TInt CharPosOfParagraph(TInt& aLength,TInt aParaOffset) const;
- __declspec(dllexport) virtual TInt ParagraphNumberForPos(TInt& aPos) const;
- __declspec(dllexport) virtual void GetWordInfo(TInt aCurrentPos,TInt& aStartPos,TInt& aLength,
- TBool aPictureIsDelimiter,TBool aPunctuationIsDelimiter) const;
- __declspec(dllexport) virtual TInt ScanWords(TInt& aPos,TUint& aScanMask) const;
- __declspec(dllexport) virtual TInt ScanParas(TInt& aPos,TUint& aScanMask) const;
- __declspec(dllexport) virtual TEtextComponentInfo ComponentInfo() const;
- __declspec(dllexport) void SetFieldFactory(MTextFieldFactory* aFactory);
- inline const MTextFieldFactory* FieldFactory() const;
- __declspec(dllexport) CTextField* NewTextFieldL(TUid aFieldType) const;
- __declspec(dllexport) void InsertFieldL(TInt aPos,CTextField* aField,TUid aFieldType);
- __declspec(dllexport) virtual void UpdateFieldL(TInt aPos);
- __declspec(dllexport) void UpdateAllFieldsL();
- __declspec(dllexport) TInt FieldCount() const;
- __declspec(dllexport) const CTextField* TextField(TInt aPos) const;
- __declspec(dllexport) TBool FindFields(TInt aPos) const;
- __declspec(dllexport) TBool FindFields(TFindFieldInfo& aInfo,TInt aPos,TInt aRange=0) const;
- __declspec(dllexport) TBool RemoveField(TInt aPos);
- __declspec(dllexport) TBool ConvertFieldToText(TInt aPos);
- __declspec(dllexport) void ConvertAllFieldsToText();
- __declspec(dllexport) void ExtendedInterface(TAny*& aInterface, TUid aInterfaceId);
- protected:
- __declspec(dllexport) CPlainText();
- __declspec(dllexport) void ConstructL(TDocumentStorage aStorage = ESegmentedStorage,
- TInt aDefaultTextGranularity = EDefaultTextGranularity);
- __declspec(dllexport) void ConstructL(const CStreamStore& aStore,TStreamId aStreamId,MTextFieldFactory* aFieldFactory,
- TDocumentStorage aStorage = ESegmentedStorage);
- __declspec(dllexport) void DoConstructL(TDocumentStorage aStorage,TInt aDefaultTextGranularity,
- MTextFieldFactory* aFieldFactory = 0 );
- void DoExtract(TDes& aBuf,TInt aPos,TInt aLength,TUint aFlags = 0) const;
- __declspec(dllexport) void PtInsertL(TInt aInsertPos,const TDesC& aBuf);
- __declspec(dllexport) void DoPtInsertL(TInt aPos,const TDesC& aBuf);
- __declspec(dllexport) TBool DoPtDelete(TInt aPos,TInt aLength);
- void InsertL(TInt aPos,const CPlainText* aText);
- TBool Delete(TInt aPos,TInt aLength);
- __declspec(dllexport) void DoExternalizeFieldDataL(RWriteStream& aStream) const;
- __declspec(dllexport) void DoInternalizeFieldDataL(RReadStream& aStream);
- __declspec(dllexport) void DoExternalizePlainTextL(RWriteStream& aStream) const;
- __declspec(dllexport) void DoInternalizePlainTextL(RReadStream& aStream);
- TStreamId DoCopyToStoreL(CStreamStore& aStore,CStreamDictionary& aDictionary,TInt aPos,TInt aLength) const;
- TInt DoPasteFromStoreL(const CStreamStore& aStore,TStreamId aStreamId,TInt aPos);
- void CopyComponentsL(CStreamStore& aStore,CStoreMap& aMap,TInt aPos,TInt aLength) const;
- void PasteComponentsL(const CStreamStore& aStore,TInt aPos);
- void CopyToStreamL(RWriteStream& aStream,TInt aPos,TInt aLength) const;
- inline static void ConsumeAdornmentL(RReadStream& aStream);
- inline static TUid UidFromStreamL(RReadStream& aStream);
- protected:
- enum
- {
- EImportBufSize = 512,
- EBiggestCharacterPaste=0x100000
- };
- enum TUnitOfText
- {
- EUnitIsWord,
- EUnitIsParagraph
- };
- struct SScanData
- {
- TInt pos;
- TInt oldPos;
- TText* buf;
- TInt currentSegLen;
- TInt totalBufLen;
- TInt delta;
- TUint32 scanMask;
- enum
- {
- EInsideUnit = 0x10000000,
- EStopEnd = 0x20000000,
- EStopBegin = 0x40000000,
- EIsDelimiter = 0x80000000
- };
- };
- private:
- CPlainText(const CPlainText& aPlainTextDoc);
- CPlainText& operator=(const CPlainText& aPlainTextDoc);
- TInt PasteFromStreamL(RReadStream& aStream,TInt aPos);
- TInt DoPasteFromStreamL(RReadStream& aStream, TInt aPos);
- void InsertEodL();
- void InitScanControl(TInt& aPos,TUint& aScanMask,TUnitOfText aContext,SScanData& aScanData) const;
- void InitScanData(TInt aPos,SScanData& aScanData) const;
- void KillFieldSet();
- TInt CountUnits(TUnitOfText aContext) const;
- TInt ScanUnit(TInt& aPos,TUnitOfText aContext,SScanData& aScanData) const;
- TBool TestForDelimiter(TUnitOfText aContext,SScanData& aScanData) const;
- TBool GetChar(SScanData& aScanData,TChar& aChar) const;
- void UpdatePageTable(TInt aPos,TInt aLength);
- inline TBool FieldSetPresent() const;
- void CreateFieldSetL(TInt aDocumentLength);
- __declspec(dllexport) virtual void Reserved_2();
- void* iReserved_1;
- protected:
- CBufBase* iByteStore;
- TSwizzle<CTextFieldSet> iFieldSet;
- TPageTable* iPageTable;
- MTextFieldFactory* iFieldFactory;
- public: void __DbgTestInvariant() const; void __DbgTest(TAny *aPtr) const ;
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtetext.inl" /* stack depth 11 */
- TBool CEditableText::HasChanged()const
- {return iHasChanged;}
- TBool CPlainText::FieldSetPresent()const
- {return (iFieldSet.IsPtr() && iFieldSet.AsPtr()!=0 );}
- const MTextFieldFactory* CPlainText::FieldFactory()const
- {return (FieldSetPresent()) ? iFieldSet->FieldFactory() : 0 ;}
- void CPlainText::ConsumeAdornmentL(RReadStream& aStream)
- {
- TStreamId id;
- aStream>> id;
- }
- TUid CPlainText::UidFromStreamL(RReadStream& aStream)
- {
- TUid uid;
- aStream>> uid;
- return uid;
- }
- #line 714 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtetext.h" /* stack depth 10 */
- #line 13 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmtlay.h" /* stack depth 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmlaydt.h" /* stack depth 10 */
- #line 23
- class CLayoutData
- {
- public:
- enum
- {
- EFLargeNumber = KMaxTInt / 3,
- EFFontHeightIncreaseFactor = 7,
- EFMinimumLineDescent = 3,
- EFBaseLinePosition = 82
- };
- enum
- {
- EFHeightForFormattingAllText = EFLargeNumber,
- EFBodyWidthForNoWrapping = EFLargeNumber
- };
- enum
- {
- EFIndividualChars = 0,
- EFWholeLinesOnly = 1,
- EFWholeTBoxesOnly=EFWholeLinesOnly,
- EFDisambiguateEndOfLine = 2,
- };
- enum TFormatMode
- {
- EFScreenMode,
- EFPrintMode,
- EFPrintPreviewMode,
- EFWysiwygMode
- };
- private:
- CLayoutData(CLayoutData&);
- };
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmtlay.h" /* stack depth 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmparam.h" /* stack depth 10 */
- #line 36
- class MFormParam
- {
- public:
- #line 66
- virtual TRgb SystemColor(TUint aColorIndex,TRgb aDefaultColor) const = 0;
- __declspec(dllexport) virtual void Reserved();
- __declspec(dllexport) static void Set(const MFormParam* aParam);
- __declspec(dllexport) static const MFormParam* Get();
- };
- #line 15 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmtlay.h" /* stack depth 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmvis.h" /* stack depth 10 */
- #line 12
- class RReadStream;
- class RWriteStream;
- #line 25
- class TNonPrintingCharVisibility
- {
- private:
- enum TShowFormatChars
- {
- EFNothingVisible=0x000,
- EFTabsVisible=0x001,
- EFSpacesVisible=0x002,
- EFParagraphDelimitersVisible=0x004,
- EFLineBreaksVisible=0x008,
- EFPotentialHyphensVisible=0x010,
- EFNonBreakingHyphensVisible=0x020,
- EFNonBreakingSpacesVisible=0x040,
- EFPageBreaksVisible=0x080,
- EFEverythingVisible=0xffffffff
- };
- public:
- __declspec(dllexport) TNonPrintingCharVisibility();
- __declspec(dllexport) TNonPrintingCharVisibility(const TNonPrintingCharVisibility& aVisibility);
- __declspec(dllexport) TNonPrintingCharVisibility& operator=(const TNonPrintingCharVisibility& aVisibility);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream)const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void SetAllVisible();
- __declspec(dllexport) void SetNoneVisible();
- __declspec(dllexport) void SetTabsVisible(TBool aVisible);
- __declspec(dllexport) void SetSpacesVisible(TBool aVisible);
- __declspec(dllexport) void SetParagraphDelimitersVisible(TBool aVisible);
- __declspec(dllexport) void SetLineBreaksVisible(TBool aVisible);
- __declspec(dllexport) void SetPotentialHyphensVisible(TBool aVisible);
- __declspec(dllexport) void SetNonBreakingHyphensVisible(TBool aVisible);
- __declspec(dllexport) void SetNonBreakingSpacesVisible(TBool aVisible);
- __declspec(dllexport) void SetPageBreaksVisible(TBool aVisible);
- inline TBool AllVisible()const{return iVisible==EFEverythingVisible;};
- inline TBool NoneVisible()const{return iVisible==EFNothingVisible;};
- inline TBool TabsVisible()const{return iVisible&EFTabsVisible;};
- inline TBool SpacesVisible()const{return iVisible&EFSpacesVisible;};
- inline TBool ParagraphDelimitersVisible()const{return iVisible&EFParagraphDelimitersVisible;};
- inline TBool LineBreaksVisible()const{return iVisible&EFLineBreaksVisible;};
- inline TBool PotentialHyphensVisible()const{return iVisible&EFPotentialHyphensVisible;};
- inline TBool NonBreakingHyphensVisible()const{return iVisible&EFNonBreakingHyphensVisible;};
- inline TBool NonBreakingSpacesVisible()const{return iVisible&EFNonBreakingSpacesVisible;};
- inline TBool PageBreaksVisible()const{return iVisible&EFPageBreaksVisible;};
- private:
- TUint32 iVisible;
- };
- #line 16 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmtlay.h" /* stack depth 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\tagma.h" /* stack depth 10 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtstyle.h" /* stack depth 11 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtfmlyr.h" /* stack depth 12 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtfmstm.h" /* stack depth 13 */
- #line 15
- class RReadStream;
- class RWriteStream;
- class TCharFormatX;
- class TCharFormatXMask;
- class RFormatStream
- {
- public:
- RFormatStream();
- void CopyL(const RFormatStream& aSource);
- void ExternalizeL(RWriteStream& aStream) const;
- void InternalizeL(RReadStream& aStream);
- void Reset();
- const TUint8* Ptr(TInt& aSize) const;
- void SetParaFormatL(const CParaFormat* aDesiredFormat,const TParaFormatMask& aDesiredMask,const CParaFormat* aCurrentFormat);
- void SenseParaFormatL(CParaFormat* aParaFormat,TParaFormatMask& aMask,CParaFormat::TParaFormatGetMode aMode)const;
- void SetCharFormatL(const TCharFormatX& aCharFormat,const TCharFormatXMask& aMask);
- void SenseCharFormat(TCharFormatX& aCharFormat,TCharFormatXMask& aMask)const;
- void Swap(RFormatStream& aStream);
- private:
- void AllocL(TInt aSize);
- TInt Length(TUint8*& aPtr,TTextFormatAttribute aType)const;
- TInt DoCalcSizeParaFormat(const CParaFormat* aDesiredFormat,TParaFormatMask aMask,const CParaFormat* aCurrentFormat);
- void DoSetParaFormat(const CParaFormat* aDesiredFormat,TParaFormatMask aMask,const CParaFormat* aCurrentFormat);
- void RemoveRedundantCharFormat(TCharFormatMask& aMask,const TCharFormatX& aFormat,const TCharFormatX& aEffectiveFormat);
- TInt DoCalcSizeCharFormat(const TCharFormatX& aCharFormat,const TCharFormatXMask& aMask);
- void DoStoreCharFormat(const TCharFormatX& aCharFormat,TCharFormatXMask aMask);
- TUint8* StoreBullet(TUint8* aPtr,const TBullet& aSource);
- TUint8* StoreBorder(TUint8* aPtr,TTextFormatAttribute aType,const TParaBorder& aSource);
- TUint8* StoreTab(TUint8* aPtr,const TTabStop& aSource);
- TInt StoreTabs(TUint8*& aPtr,const CParaFormat* aDesiredFormat,const CParaFormat* aCurrentFormat,TBool aStoreData);
- TInt MergeTabLists(TUint8*& aPtr,const CParaFormat* aDesiredFormat,TInt aDesiredTabCount,
- const CParaFormat* aCurrentFormat,TInt aCurrentTabCount,TBool aStoreData);
- void StoreAllTabs(TUint8*& aPtr,const CParaFormat* aSource);
- TUint8* Store(TUint8* aPtr,const TLogicalRgb& aRgb);
- TUint8* Store(TUint8* aPtr,const TTypeface& aTypeface);
- TUint8* ReadValue(TUint8* aPtr,TLogicalRgb& aRgb)const;
- TUint8* ReadValue(TUint8* aPtr,TTypeface& aTypeface)const;
- TUint8* ReadValue(TUint8* aPtr,TParaBorder& aBorder)const;
- TUint8* ReadValue(TUint8* aPtr,TBullet& aBullet)const;
- TUint8* ReadTabL(TUint8* aPtr,CParaFormat* aTarget)const;
- TUint8* iBase;
- TUint8* iEnd;
- public: void __DbgTestInvariant() const; void __DbgTest(TAny *aPtr) const ;
- private:
- void TestInvariantL() const;
- TBool DoInvariantCheck() const;
- };
- #line 11 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtfmlyr.h" /* stack depth 12 */
- class CFormatStream;
- class RReadStream;
- class RWriteStream;
- class TCharFormatX;
- const TUid KNormalParagraphStyleUid={268435531};
- #line 55
- class CFormatLayer : public CBase
- {
- public:
- __declspec(dllexport) void Reset();
- __declspec(dllexport) void SetBase(const CFormatLayer* aBaseFormatLayer);
- __declspec(dllexport) const CFormatLayer* SenseBase()const;
- __declspec(dllexport) TInt ChainCount()const;
- #line 76
- virtual void InternalizeL(RReadStream& aStream,const CFormatLayer* aBase=0 )=0;
- #line 85
- virtual void ExternalizeL(RWriteStream& aStream)const=0;
- __declspec(dllexport) void InternalizeChainL(RReadStream& aStream,const CFormatLayer* aBase=0 );
- __declspec(dllexport) void ExternalizeChainL(RWriteStream& aStream,TInt aExcludeCount=0)const;
- #line 101
- virtual TBool IsIdentical(CFormatLayer* aLayer,TBool aCheckBasedOnLink=ETrue)const=0;
- __declspec(dllexport) TBool IsEmpty()const;
- void Swap(CFormatLayer& aLayer);
- private:
- CFormatLayer(const CFormatLayer& aFormatLayer);
- CFormatLayer& operator=(const CFormatLayer& aFormatLayer);
- virtual CFormatLayer* DoCloneL()const=0;
- protected:
- CFormatLayer();
- ~CFormatLayer();
- virtual CFormatLayer* RestoreNewL(RReadStream& aStream)=0;
- void ExternalizeLayersRecurseL(RWriteStream& aStream,TInt aDescendantCount)const;
- TBool IsIdentical(const TUint8* aPtr,TInt aSize)const;
- const TUint8* Ptr(TInt& aSize)const;
- void CloneLayerL(CFormatLayer* aClone)const;
- protected:
- RFormatStream iStore;
- const CFormatLayer* iBasedOn;
- public: void __DbgTestInvariant() const; void __DbgTest(TAny *aPtr) const ;
- };
- #line 134
- class CParaFormatLayer : public CFormatLayer
- {
- public:
- __declspec(dllexport) static CParaFormatLayer* NewL();
- __declspec(dllexport) static CParaFormatLayer* NewL(const CParaFormat* aParaFormat,const TParaFormatMask& aMask);
- __declspec(dllexport) static CParaFormatLayer* NewL(RReadStream& aStream);
- static CParaFormatLayer* NewL(const CParaFormatLayer* aLayer);
- static CParaFormatLayer* NewCopyBaseL(const CParaFormatLayer* aLayer);
- __declspec(dllexport) virtual void InternalizeL(RReadStream& aStream,const CFormatLayer* aBase=0 );
- __declspec(dllexport) virtual void ExternalizeL(RWriteStream& aStream)const;
- __declspec(dllexport) void SetL(const CParaFormat* aDesiredEffectiveFormat,const TParaFormatMask& aMask);
- __declspec(dllexport) void SenseEffectiveL(CParaFormat* aParaFormat,CParaFormat::TParaFormatGetMode aMode=CParaFormat::EAllAttributes)const;
- __declspec(dllexport) void SenseL(CParaFormat* aParaFormat,TParaFormatMask& aMask,CParaFormat::TParaFormatGetMode aMode=CParaFormat::EAllAttributes)const;
- inline CParaFormatLayer* CloneL()const;
- __declspec(dllexport) TBool IsIdenticalL(const CParaFormat* aParaFormat,const TParaFormatMask& aMask)const;
- __declspec(dllexport) virtual TBool IsIdentical(CFormatLayer* aLayer,TBool aCheckBasedOnLink=ETrue)const;
- __declspec(dllexport) virtual TUid Type()const;
- __declspec(dllexport) const TUint8* Ptr(TInt& aSize)const;
- private:
- CParaFormatLayer(const CParaFormatLayer& aParaFormatLayer);
- CParaFormatLayer& operator=(const CParaFormatLayer& aParaFormatLayer);
- __declspec(dllexport) virtual CFormatLayer* DoCloneL()const;
- void FillParaFormatL(CParaFormat* aParaFormat,TParaFormatMask& aMask,CParaFormat::TParaFormatGetMode aMode)const;
- void CleanupEffectiveFormat(CParaFormat* aParaFormat,TParaFormatMask aMask)const;
- void CleanupBorders(CParaFormat* aParaFormat)const;
- protected:
- CParaFormatLayer();
- virtual CFormatLayer* RestoreNewL(RReadStream& aStream);
- };
- #line 185
- class CCharFormatLayer : public CFormatLayer
- {
- public:
- __declspec(dllexport) static CCharFormatLayer* NewL();
- __declspec(dllexport) static CCharFormatLayer* NewL(const TCharFormat& aFormat,const TCharFormatMask& aMask);
- __declspec(dllexport) static CCharFormatLayer* NewL(RReadStream& aStream);
- __declspec(dllexport) virtual void InternalizeL(RReadStream& aStream,const CFormatLayer* aBase=0 );
- __declspec(dllexport) virtual void ExternalizeL(RWriteStream& aStream)const;
- __declspec(dllexport) void SetL(const TCharFormat& aCharFormat,const TCharFormatMask& aMask);
- __declspec(dllexport) void SenseEffective(TCharFormat& aCharFormat)const;
- __declspec(dllexport) void Sense(TCharFormat& aCharFormat,TCharFormatMask& aMask)const;
- inline CCharFormatLayer* CloneL()const;
- __declspec(dllexport) virtual TBool IsIdentical(CFormatLayer* aLayer,TBool aCheckBasedOnLink=ETrue)const;
- __declspec(dllexport) TBool IsIdentical(const TCharFormat& aCharFormat,const TCharFormatMask& aMask)const;
- __declspec(dllexport) const TUint8* Ptr(TInt& aSize)const;
- static CCharFormatLayer* NewL(const CCharFormatLayer* aLayer);
- static CCharFormatLayer* NewCopyBaseL(const CCharFormatLayer* aLayer);
- static CCharFormatLayer* NewL(const TCharFormatX& aFormat,const TCharFormatXMask& aMask);
- void SetL(const TCharFormatX& aCharFormat,const TCharFormatXMask& aMask);
- void SenseEffective(TCharFormatX& aCharFormat)const;
- void Sense(TCharFormatX& aCharFormat,TCharFormatXMask& aMask) const;
- private:
- CCharFormatLayer();
- virtual CFormatLayer* RestoreNewL(RReadStream& aStream);
- virtual void FillCharFormat(TCharFormatX& aCharFormat,TCharFormatXMask& aMask)const;
- __declspec(dllexport) virtual CFormatLayer* DoCloneL()const;
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtfmlyr.inl" /* stack depth 13 */
- #line 9
- inline CParaFormatLayer* CParaFormatLayer::CloneL()const
- {return (static_cast<CParaFormatLayer*>(DoCloneL())) ;}
- inline CCharFormatLayer* CCharFormatLayer::CloneL()const
- {return (static_cast<CCharFormatLayer*>(DoCloneL())) ;}
- #line 217 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtfmlyr.h" /* stack depth 12 */
- #line 11 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtstyle.h" /* stack depth 11 */
- class CParagraphStyle;
- class CStyleTable;
- class RReadStream;
- class RWriteStream;
- const TInt KMaxParagraphStyleName=0x20;
- typedef TBuf<KMaxParagraphStyleName> TParagraphStyleName;
- const TUid KUserDefinedParagraphStyleUid={268435535};
- class RParagraphStyleInfo
- #line 62
- {
- public:
- inline RParagraphStyleInfo();
- inline RParagraphStyleInfo(CParagraphStyle* aStyle,CParagraphStyle* aStyleForNextPara=0 );
- inline void Discard();
- public:
- CParagraphStyle* iStyle;
- CParagraphStyle* iStyleForNextPara;
- };
- class CParagraphStyle : public CParaFormatLayer
- #line 96
- {
- public:
- friend class CStyleList;
- friend class CRichTextIndex;
- enum TStylePasteMode
- {
- EAddNewStyles,
- EConvertNewStyles,
- EIgnoreNewStyles
- };
- enum TApplyParaStyleMode
- {
- ERetainAllSpecificFormats,
- ERetainNoSpecificFormats,
- ERetainSpecificParaFormat,
- ERetainSpecificCharFormat
- };
- public:
- __declspec(dllexport) static CParagraphStyle* NewL(const CParaFormatLayer& aGlobalParaFormatLayer,const CCharFormatLayer& aGlobalCharFormatLayer);
- __declspec(dllexport) ~CParagraphStyle();
- inline CCharFormatLayer* CharFormatLayer()const;
- inline TInt OutlineLevel()const;
- inline void SetOutlineLevel(TInt aOutlineLevel);
- __declspec(dllexport) virtual TUid Type()const;
- inline void SetType(TUid aType);
- inline CParagraphStyle* CloneL()const;
- private:
- CParagraphStyle();
- void ConstructL(const CParaFormatLayer& aGlobalParaFormatLayer,
- const CCharFormatLayer& aGlobalCharFormatLayer);
- __declspec(dllexport) virtual CFormatLayer* DoCloneL()const;
- static CParagraphStyle* NewL(RReadStream& aStream,const CParaFormatLayer& aGlobalParaFormatLayer,const CCharFormatLayer& aGlobalCharFormatLayer);
- virtual void InternalizeL(RReadStream& aStream,const CFormatLayer* aParaLayerBase,const CFormatLayer* aCharLayerBase);
- virtual void ExternalizeL(RWriteStream& aStream)const;
- private:
- TUid iType;
- TInt iOutlineLevel;
- CCharFormatLayer* iCharFormatLayer;
- public:
- TParagraphStyleName iName;
- };
- const TInt KMaxStyleListGranularity=0x04;
- class CStyleList : public CBase
- #line 210
- {
- public:
- __declspec(dllexport) static CStyleList* NewL(TInt aCapacity=KMaxStyleListGranularity);
- __declspec(dllexport) static CStyleList* NewL(RReadStream& aStream,
- const CParaFormatLayer* aGlobalParaFormatLayer,
- const CCharFormatLayer* aGlobalCharFormatLayer);
- __declspec(dllexport) ~CStyleList();
- inline const RParagraphStyleInfo& operator[](TInt aIndex)const;
- inline RParagraphStyleInfo& operator[](TInt aIndex);
- __declspec(dllexport) const RParagraphStyleInfo& At(TInt aIndex)const;
- __declspec(dllexport) RParagraphStyleInfo& At(TInt aIndex);
- __declspec(dllexport) TStreamId StoreL(CStreamStore& aStore)const;
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream)const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream,
- const CParaFormatLayer* aGlobalParaFormatLayer,
- const CCharFormatLayer* aGlobalCharFormatLayer);
- __declspec(dllexport) void Reset();
- __declspec(dllexport) TInt AppendL(RParagraphStyleInfo* aStyleSet);
- __declspec(dllexport) void Remove(CParagraphStyle* aStyle);
- __declspec(dllexport) TInt SetStyleToFollow(const RParagraphStyleInfo& aStyleSet);
- __declspec(dllexport) CStyleList* DeepCloneL()const;
- __declspec(dllexport) RParagraphStyleInfo* PtrByName(const TParagraphStyleName& aName)const;
- __declspec(dllexport) RParagraphStyleInfo* PtrByType(const TUid aType)const;
- __declspec(dllexport) TInt IndexByPtr(const CParaFormatLayer* aPtr)const;
- __declspec(dllexport) TInt IndexByName(const TDesC& aName)const;
- inline TInt Count()const;
- protected:
- __declspec(dllexport) CStyleList();
- __declspec(dllexport) void ConstructL(TInt aGranularity);
- private:
- void KillStyleList();
- private:
- CArrayFixFlat<RParagraphStyleInfo> * iList;
- public: void __DbgTestInvariant() const; void __DbgTest(TAny *aPtr) const ;
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtstyle.inl" /* stack depth 12 */
- RParagraphStyleInfo::RParagraphStyleInfo()
- : iStyle(0 ),iStyleForNextPara(0 )
- {}
- RParagraphStyleInfo::RParagraphStyleInfo(CParagraphStyle* aStyle,CParagraphStyle* aStyleForNextPara)
- : iStyle(aStyle),iStyleForNextPara(aStyleForNextPara)
- {}
- void RParagraphStyleInfo::Discard()
- {delete iStyle;}
- CCharFormatLayer* CParagraphStyle::CharFormatLayer()const
- {return iCharFormatLayer;}
- TInt CParagraphStyle::OutlineLevel()const
- {return iOutlineLevel;}
- void CParagraphStyle::SetOutlineLevel(TInt aOutlineLevel)
- {iOutlineLevel=aOutlineLevel;}
- void CParagraphStyle::SetType(TUid aType)
- {iType=aType;}
- CParagraphStyle* CParagraphStyle::CloneL()const
- {return (static_cast<CParagraphStyle*>(DoCloneL())) ;}
- const RParagraphStyleInfo& CStyleList::operator[](TInt aIndex)const
- #line 104
- {return iList->At(aIndex);}
- RParagraphStyleInfo& CStyleList::operator[](TInt aIndex)
- {return iList->At(aIndex);}
- TInt CStyleList::Count()const
- {return (iList) ? iList->Count() : 0;}
- #line 259 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtstyle.h" /* stack depth 11 */
- #line 18 "C:\Symbian\9.1\S60_3rd\epoc32\include\tagma.h" /* stack depth 10 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\LineBreak.h" /* stack depth 11 */
- #line 10
- class MContingentLineBreaker;
- class MContingentLineBreakerL;
- class TDesC16;
- class TUid;
- #line 22
- enum TLineBreakPanic
- {
- ELineBreakPanic_Unknown = 0,
- ELineBreakPanic_BadTable = 1,
- ELineBreakPanic_InvalidInputParam = 2,
- ELineBreakPanic_InvalidOutputParam = 3,
- };
- class MLineBreaker
- {
- public:
- enum
- {
- EOpLineBreakClass,
- EClLineBreakClass,
- EQuLineBreakClass,
- EGlLineBreakClass,
- ENsLineBreakClass,
- EExLineBreakClass,
- ESyLineBreakClass,
- EIsLineBreakClass,
- EPrLineBreakClass,
- EPoLineBreakClass,
- ENuLineBreakClass,
- EAlLineBreakClass,
- EIdLineBreakClass,
- EInLineBreakClass,
- EHyLineBreakClass,
- EBaLineBreakClass,
- EBbLineBreakClass,
- EB2LineBreakClass,
- EZwLineBreakClass,
- ECmLineBreakClass,
- EBkLineBreakClass,
- ECrLineBreakClass,
- ELfLineBreakClass,
- ESgLineBreakClass,
- ECbLineBreakClass,
- ESpLineBreakClass,
- ESaLineBreakClass,
- EAiLineBreakClass,
- EXxLineBreakClass,
- ELineBreakClasses
- };
- __declspec(dllexport) virtual TUint LineBreakClass(TUint aCode,
- TUint& aRangeStart, TUint& aRangeEnd) const;
- __declspec(dllexport) virtual TBool LineBreakPossible(TUint aPrevClass, TUint aNextClass,
- TBool aHaveSpaces) const;
- __declspec(dllexport) virtual TBool GetLineBreakInContext(const TDesC16& aText,
- TInt aMinBreakPos, TInt aMaxBreakPos, TBool aForwards,
- TInt& aBreakPos) const;
- __declspec(dllexport) virtual TBool IsHangingCharacter(TUint aChar) const;
- __declspec(dllexport) TBool GetLineBreak(const TDesC16& aText,
- TInt aMinBreakPos, TInt aMaxBreakPos, TBool aForwards,
- MContingentLineBreaker* aCbDelegate,
- TInt& aBreakPos, TInt& aBreakPosAfterSpaces) const;
- __declspec(dllexport) TBool GetLineBreakL(const TDesC16& aText,
- TInt aMinBreakPos, TInt aMaxBreakPos, TBool aForwards,
- MContingentLineBreakerL* aCbDelegate,
- TInt& aBreakPos, TInt& aBreakPosAfterSpaces) const;
- __declspec(dllexport) virtual void* ExtendedInterface(TUid& aUid) const;
- };
- class MContingentLineBreaker
- {
- public:
- #line 171
- virtual TBool IsLegalBreakBefore(TInt aTextPosition, TInt aPrecedingClass,
- TBool aHasSpaces) = 0;
- #line 181
- virtual TBool IsLegalBreakAfter(TInt aTextPosition, TInt aFollowingClass,
- TBool aHasSpaces) = 0;
- };
- class MContingentLineBreakerL
- {
- public:
- #line 205
- virtual TBool IsLegalBreakBeforeL(TInt aTextPosition, TInt aPrecedingClass,
- TBool aHasSpaces) = 0;
- #line 215
- virtual TBool IsLegalBreakAfterL(TInt aTextPosition, TInt aFollowingClass,
- TBool aHasSpaces) = 0;
- };
- #line 20 "C:\Symbian\9.1\S60_3rd\epoc32\include\tagma.h" /* stack depth 10 */
- class TTmLineInfo;
- class CTmTextImp;
- class RWindow;
- class RWsSession;
- class RParagraphStyleInfo;
- class CStyleList;
- class TTmDocPosSpec;
- class TTmDocPos;
- class TTmCharFormatMask
- {
- public:
- enum TAttrib
- {
- EFontName = 0x1,
- EFontCoverage = 0x2,
- EBold = 0x4,
- EItalic = 0x8,
- ESerif = 0x10,
- EMonoWidth = 0x20,
- EHeight = 0x40,
- EPrintPosition = 0x80,
- ETextColor = 0x100,
- EBackgroundColor = 0x200,
- EBackground = 0x400,
- EUnderline = 0x800,
- EStrikethrough = 0x1000,
- EShadow = 0x2000,
- EUserDefinedEffects = 0x4000,
- ELanguage = 0x8000,
- EPictureAlignment = 0x10000
- };
- inline TTmCharFormatMask();
- __declspec(dllexport) TTmCharFormatMask(const TCharFormatMask& aMask);
- __declspec(dllexport) void GetTCharFormatMask(TCharFormatMask& aMask) const;
- inline void Clear(TAttrib aAttrib);
- inline void Set(TAttrib aAttrib);
- inline TBool IsSet(TAttrib aAttrib);
- TUint iFlags;
- };
- #line 81
- class TTmCharFormat
- {
- public:
- enum
- {
- EBackground = 1,
- ERounded = 2,
- EUnderline = 4,
- EStrikethrough = 8,
- EShadow = 16,
- EUserDefinedMask = 0xFF000000,
- EUserDefinedShift = 24,
- ENoMatchesIndicator = 0x4000000,
- ECustomDrawEffectIsExternallyDefined = 0x80000000
- };
- enum TPictureAlignment
- {
- EPictureAlignBaseline,
- EPictureAlignTop,
- EPictureAlignBottom,
- EPictureAlignCenter
- };
- __declspec(dllexport) TTmCharFormat();
- __declspec(dllexport) TTmCharFormat(const TDesC& aFontName,TInt aFontHeight);
- __declspec(dllexport) void operator=(const TCharFormat& aFormat);
- inline TTmCharFormat(const TCharFormat& aFormat);
- __declspec(dllexport) void GetTCharFormat(TCharFormat& aFormat) const;
- __declspec(dllexport) TBool operator==(const TTmCharFormat& aFormat) const;
- inline TBool operator!=(const TTmCharFormat& aFormat) const;
- TOpenFontSpec iFontSpec;
- TLogicalRgb iTextColor;
- TLogicalRgb iBackgroundColor;
- TUint iEffects;
- TUint iLanguage;
- TPictureAlignment iPictureAlignment;
- TUint iTag;
- };
- class TTmTab
- {
- public:
- enum TType
- {
- EStandardTab,
- ECenterTab,
- EReverseTab
- };
- inline TTmTab();
- inline TTmTab(const TTabStop& aTab);
- __declspec(dllexport) void operator=(const TTabStop& aTab);
- __declspec(dllexport) void GetTTabStop(TTabStop& aTab) const;
- __declspec(dllexport) TBool operator==(const TTmTab& aTab) const;
- inline TBool operator!=(const TTmTab& aTab) const;
- TInt iPosition;
- TType iType;
- };
- class TTmBullet
- {
- public:
- enum TStyle
- {
- EBulletStyle,
- EArabicNumberStyle,
- ESmallRomanNumberStyle,
- ECapitalRomanNumberStyle,
- ESmallLetterStyle,
- ECapitalLetterStyle
- };
- enum TAlignment
- {
- ELeftAlign,
- ECenterAlign,
- ERightAlign
- };
- __declspec(dllexport) TTmBullet();
- __declspec(dllexport) void operator=(const TBullet& aBullet);
- inline TTmBullet(const TBullet& aBullet);
- __declspec(dllexport) void GetTBullet(TBullet& aBullet) const;
- __declspec(dllexport) TBool operator==(const TTmBullet& aBullet) const;
- inline TBool operator!=(const TTmBullet& aBullet) const;
- TChar iCharacterCode;
- TOpenFontSpec iFontSpec;
- TBool iHangingIndent;
- TLogicalRgb iColor;
- TStyle iStyle;
- TInt iStartNumber;
- TAlignment iAlignment;
- };
- class TTmParBorder
- {
- public:
- enum TStyle
- {
- ESolidStyle,
- EDoubleStyle,
- EDotStyle,
- EDashStyle,
- EDotDashStyle,
- EDotDotDashStyle
- };
- __declspec(dllexport) TTmParBorder();
- __declspec(dllexport) void operator=(const TParaBorder& aBorder);
- inline TTmParBorder(const TParaBorder& aBorder);
- __declspec(dllexport) void GetTParaBorder(TParaBorder& aBorder) const;
- __declspec(dllexport) TBool operator==(const TTmParBorder& aBorder) const;
- inline TBool operator!=(const TTmParBorder& aBorder) const;
- TStyle iStyle;
- TInt iWeight;
- TLogicalRgb iColor;
- TBool iAutoColor;
- };
- class TTmParFormatMask
- {
- public:
- enum TAttrib
- {
- EAlignment = 0x1,
- EDirection = 0x2,
- EKeepTogether = 0x4,
- EKeepWithNext = 0x8,
- EStartNewPage = 0x10,
- EWidowOrphan = 0x20,
- ENoWrap = 0x40,
- EExactLineSpacing = 0x80,
- EPixelLineSpacing = 0x100,
- ELeadingMargin = 0x200,
- ETrailingMargin = 0x400,
- EFirstLineIndent = 0x800,
- ELineSpacing = 0x1000,
- ESpaceAbove = 0x2000,
- ESpaceBelow = 0x4000,
- ETabSize = 0x8000,
- EBorderMargin = 0x10000,
- ETabList = 0x20000,
- EBullet = 0x40000,
- EBorder = 0x80000
- };
- inline TTmParFormatMask();
- __declspec(dllexport) TTmParFormatMask(const TParaFormatMask& aMask);
- __declspec(dllexport) void GetTParaFormatMask(TParaFormatMask& aMask) const;
- inline void Clear(TAttrib aAttrib);
- inline void Set(TAttrib aAttrib);
- inline TBool IsSet(TAttrib aAttrib);
- TUint iFlags;
- };
- class RTmParFormat
- {
- public:
- enum TBorderIndex
- {
- ETopBorder = 0,
- EBottomBorder = 1,
- ELeadingBorder = 2,
- ETrailingBorder = 3,
- };
- enum
- {
- ERightToLeft = 1,
- EKeepTogether = 2,
- EKeepWithNext = 4,
- EStartNewPage = 8,
- EWidowOrphan = 16,
- ENoWrap = 32,
- EExactLineSpacing = 64,
- EPixelLineSpacing = 128,
- EDirectionalityFromText = 256
- };
- enum TAlignment
- {
- EAlignNormalBidirectional,
- EAlignNormal = EAlignNormalBidirectional,
- EAlignCenter,
- EAlignReverseBidirectional,
- EAlignReverse = EAlignReverseBidirectional,
- EAlignJustify,
- EAlignAbsoluteLeft,
- EAlignAbsoluteRight
- };
- __declspec(dllexport) RTmParFormat();
- __declspec(dllexport) void Close();
- inline ~RTmParFormat();
- __declspec(dllexport) void CopyL(const RTmParFormat& aFormat);
- __declspec(dllexport) void CopyL(const CParaFormat& aFormat);
- __declspec(dllexport) void GetCParaFormatL(CParaFormat& aFormat) const;
- __declspec(dllexport) TBool operator==(const RTmParFormat& aFormat) const;
- inline TBool operator!=(const RTmParFormat& aFormat) const;
- __declspec(dllexport) TInt Tabs() const;
- inline const TTmTab& Tab(TInt aIndex) const;
- inline const TTmBullet* Bullet() const;
- inline const TTmParBorder* Border(TBorderIndex aIndex) const;
- __declspec(dllexport) TBool HaveBorders() const;
- inline TBool RightToLeft() const;
- TAlignment iAlignment;
- TUint iFlags;
- TInt iLeadingMargin;
- TInt iTrailingMargin;
- TInt iFirstLineIndent;
- TInt iLineSpacing;
- TInt iSpaceAbove;
- TInt iSpaceBelow;
- TInt iTabSize;
- TInt iBorderMargin;
- TLogicalRgb iBackgroundColor;
- private:
- RTmParFormat(const RTmParFormat& aFormat);
- void operator=(const RTmParFormat& aFormat);
- RArray<TTmTab> * iTabList;
- TTmBullet* iBullet;
- TTmParBorder* iBorder[4];
- };
- #line 389
- class MTmCustom
- : public MLineBreaker
- {
- public:
- #line 403
- class TLineHeightParam
- {
- public:
- inline TLineHeightParam();
- TInt iMaxCharHeight;
- TInt iMaxCharDepth;
- TInt iMaxTopPictureHeight;
- TInt iMaxBottomPictureHeight;
- TInt iMaxCenterPictureHeight;
- TInt iFontMaxCharHeight;
- TInt iFontMaxCharDepth;
- TInt iFontMaxAscent;
- TInt iFontMaxDescent;
- TInt iDesiredLineHeight;
- TBool iExactLineHeight;
- };
- #line 438
- enum
- {
- EOpLineBreakClass,
- EClLineBreakClass,
- EQuLineBreakClass,
- EGlLineBreakClass,
- ENsLineBreakClass,
- EExLineBreakClass,
- ESyLineBreakClass,
- EIsLineBreakClass,
- EPrLineBreakClass,
- EPoLineBreakClass,
- ENuLineBreakClass,
- EAlLineBreakClass,
- EIdLineBreakClass,
- EInLineBreakClass,
- EHyLineBreakClass,
- EBaLineBreakClass,
- EBbLineBreakClass,
- EB2LineBreakClass,
- EZwLineBreakClass,
- ECmLineBreakClass,
- EBkLineBreakClass,
- ECrLineBreakClass,
- ELfLineBreakClass,
- ESgLineBreakClass,
- ECbLineBreakClass,
- ESpLineBreakClass,
- ESaLineBreakClass,
- EAiLineBreakClass,
- EXxLineBreakClass,
- ELineBreakClasses
- };
- __declspec(dllexport) virtual TRgb SystemColor(TUint aColorIndex,TRgb aDefaultColor) const;
- __declspec(dllexport) virtual TInt Stretch(TUint aChar) const;
- __declspec(dllexport) virtual TUint Map(TUint aChar) const;
- __declspec(dllexport) virtual void SetLineHeight(const TLineHeightParam& aParam,TInt& aAscent,TInt& aDescent) const;
- __declspec(dllexport) virtual void DrawBackground(CGraphicsContext& aGc,const TPoint& aTextLayoutTopLeft,const TRect& aRect,
- const TLogicalRgb& aBackground,TRect& aRectDrawn) const;
- __declspec(dllexport) virtual void DrawLineGraphics(CGraphicsContext& aGc,const TPoint& aTextLayoutTopLeft,const TRect& aRect,
- const TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) virtual void DrawText(CGraphicsContext& aGc,const TPoint& aTopLeft,const TRect& aRect,
- const TTmLineInfo& aLineInfo,const TTmCharFormat& aFormat,
- const TDesC& aText,const TPoint& aTextOrigin,TInt aExtraPixels) const;
- __declspec(dllexport) virtual void DrawPicture(CGraphicsContext& aGc,
- const TPoint& aTextLayoutTopLeft, const TRect& aRect,
- MGraphicsDeviceMap& aDevice, const CPicture& aPicture) const;
- __declspec(dllexport) virtual TUint LineBreakClass(TUint aCode,TUint& aRangeStart,TUint& aRangeEnd) const;
- __declspec(dllexport) virtual TBool LineBreakPossible(TUint aPrevClass,TUint aNextClass,TBool aHaveSpaces) const;
- __declspec(dllexport) virtual TBool GetLineBreakInContext(const TDesC& aText,TInt aMinBreakPos,TInt aMaxBreakPos,
- TBool aForwards,TInt& aBreakPos) const;
- __declspec(dllexport) virtual TBool IsHangingCharacter(TUint aChar) const;
- __declspec(dllexport) void SetPenColor(CGraphicsContext& aGc,TLogicalRgb aColor) const;
- __declspec(dllexport) void SetBrushColor(CGraphicsContext& aGc,TLogicalRgb aColor) const;
- __declspec(dllexport) TRgb SystemColor(TLogicalRgb aColor) const;
- };
- const TUid KTmTextDrawExtId = {0x10203665};
- #line 564
- class MTmTextDrawExt
- {
- public:
- virtual void DrawLine(CGraphicsContext& aGc, const TPoint& aPt1, const TPoint& aPt2) const = 0;
- virtual void DrawText(CGraphicsContext& aGc, const TDesC& aText, const TPoint& aPt) const = 0;
- virtual void DrawRect(CGraphicsContext& aGc, const TRect& aRc) const = 0;
- };
- const TUid KFormLabelApiExtensionUid = { 0x101FD03C};
- #line 584
- class MTmSource: public MTmCustom
- {
- public:
- enum TLabelType
- {
- ENoLabel,
- EParLabel
- };
- enum
- {
- ELineBreakContext = 32
- };
- virtual MGraphicsDeviceMap& FormatDevice() const = 0;
- virtual MGraphicsDeviceMap& InterpretDevice() const = 0;
- virtual TInt DocumentLength() const = 0;
- virtual void GetText(TInt aPos,TPtrC& aText,TTmCharFormat& aFormat) const = 0;
- virtual void GetParagraphFormatL(TInt aPos,RTmParFormat& aFormat) const = 0;
- virtual TInt ParagraphStart(TInt aPos) const = 0;
- __declspec(dllexport) virtual CPicture* PictureL(TInt aPos) const;
- __declspec(dllexport) virtual TInt GetPictureSizeInTwipsL(TInt aPos,TSize& aSize) const;
- __declspec(dllexport) virtual TAny* GetExtendedInterface(const TUid& aInterfaceId);
- __declspec(dllexport) virtual void MTmSource_Reserved_1();
- __declspec(dllexport) virtual void MTmSource_Reserved_2();
- __declspec(dllexport) virtual TBool PageBreakInRange(TInt aStartPos,TInt aEndPos) const;
- __declspec(dllexport) TInt ParagraphEnd(TInt aPos) const;
- __declspec(dllexport) TBool GetLineBreakL(const TDesC& aText,TInt aDocPos,TInt aMinBreakPos,TInt aMaxBreakPos,TBool aForwards,
- TInt& aBreakPos,TInt& aHangingChars,TInt& aBreakPosAfterSpaces) const;
- __declspec(dllexport) static void GetStandardLineBreak(const TDesC& aText,TInt aMinBreakPos,TInt aMaxBreakPos,
- TInt& aBreakPos,TInt& aNextLineStart);
- };
- #line 664
- class MFormLabelApi
- {
- public:
- __declspec(dllexport) virtual TBool LabelModeSelect(MTmSource::TLabelType aType, TInt aPos);
- __declspec(dllexport) virtual void LabelModeCancel();
- __declspec(dllexport) virtual void LabelMetrics(MTmSource::TLabelType aType, TSize& aLabelSize, TInt& aMarginSize) const;
- };
- class CTmBufSeg: public CBufSeg
- {
- public:
- inline CTmBufSeg(TInt aExpandSize);
- TInt MemoryUsed() const;
- };
- class CTmCode: public CBase
- {
- public:
- inline ~CTmCode();
- void InsertByteL(TUint8 aByte,TInt aPos);
- TInt InsertNumberL(TInt aNumber,TInt aPos);
- TInt InsertRectL(const TRect& aRect,TInt aPos);
- void AppendByteL(TUint8 aByte);
- TInt AppendNumberL(TInt aNumber);
- TInt AppendRectL(const TRect& aRect);
- void ChangeL(TInt aStart,TInt aEnd,CTmCode& aNewCode);
- TInt MemoryUsed() const;
- TInt Size() const;
- void Delete(TInt aPos,TInt aLength);
- void Reset();
- inline TPtr8 Ptr(TInt aPos);
- void CreateBufferL();
- inline CBufBase* Buffer();
- inline const CBufBase* Buffer() const;
- private:
- enum
- {
- EExpandSize = 512
- };
- TInt WriteNumber(TInt aNumber,TUint8* aBuffer);
- CTmBufSeg* iBuffer;
- };
- class TTmFormatParamBase
- {
- public:
- enum
- {
- EWrap = 1,
- EAtLeastMaxHeight = 2,
- ETruncateWithEllipsis = 4,
- ELegalLineBreaksOnly = 8
- };
- __declspec(dllexport) TTmFormatParamBase();
- inline TBool IsWrapping() const;
- inline TBool IsTruncatingWithEllipsis() const;
- inline TBool LegalLineBreaksOnly() const;
- TInt iWrapWidth;
- TInt iMaxHeight;
- TInt iMaxLines;
- TInt iFlags;
- TChar iEllipsis;
- };
- class TTmFormatParam: public TTmFormatParamBase
- {
- public:
- __declspec(dllexport) TTmFormatParam();
- __declspec(dllexport) TTmFormatParam(const TTmFormatParamBase& aBase);
- TInt iStartChar;
- TInt iEndChar;
- TInt iLineInPar;
- };
- class TTmReformatParam
- {
- public:
- __declspec(dllexport) TTmReformatParam();
- TInt iStartChar;
- TInt iOldLength;
- TInt iNewLength;
- TInt iMaxExtraLines;
- TBool iParFormatChanged;
- TBool iParInvalid;
- };
- class TTmReformatResult
- {
- public:
- __declspec(dllexport) TTmReformatResult();
- TRect iRedrawRect;
- TInt iHeightChange;
- TInt iUnchangedTop;
- TInt iUnformattedStart;
- };
- #line 806
- class TTmLineInfo
- {
- public:
- enum
- {
- EParStart = 1,
- EParEnd = 2,
- EParRightToLeft = 4,
- ELineEndsInForcedLineBreak = 8
- };
- inline TTmLineInfo();
- TRect iOuterRect;
- TRect iInnerRect;
- TInt iBaseline;
- TInt iStart;
- TInt iEnd;
- TInt iLineNumber;
- TInt iParNumber;
- TInt iLineInPar;
- TInt iParTop;
- TUint iFlags;
- };
- #line 871
- class TTmDocPosSpec
- {
- public:
- enum TType
- {
- ETrailing,
- ELeading,
- ELeftToRight,
- ERightToLeft
- };
- inline TTmDocPosSpec();
- inline TTmDocPosSpec(TInt aPos,TType aType);
- inline TTmDocPosSpec(const TTmDocPos& aRawDocPos);
- TInt iPos;
- TType iType;
- };
- #line 913
- class TTmDocPos
- {
- public:
- inline TTmDocPos();
- inline TTmDocPos(TInt aPos,TBool aLeadingEdge);
- __declspec(dllexport) TBool operator==(const TTmDocPos& aPos) const;
- inline TBool operator!=(const TTmDocPos& aPos) const;
- __declspec(dllexport) TBool operator>(const TTmDocPos& aPos) const;
- __declspec(dllexport) TBool operator>=(const TTmDocPos& aPos) const;
- inline TBool operator<(const TTmDocPos& aPos) const;
- inline TBool operator<=(const TTmDocPos& aPos) const;
- TInt iPos;
- TBool iLeadingEdge;
- };
- class TTmPosInfo2
- {
- public:
- TTmDocPos iDocPos;
- TBool iRightToLeft;
- TPoint iEdge;
- };
- class TTmPosInfo
- {
- public:
- TTmPosInfo() {}
- TTmPosInfo(const TTmPosInfo2& a) : iDocPos(a.iDocPos), iEdge(a.iEdge) {}
- TTmDocPos iDocPos;
- TPoint iEdge;
- };
- class TTmHighlightExtensions
- {
- public:
- inline TTmHighlightExtensions();
- inline void SetAll(TInt aExtension);
- inline void SetLeftExtension(TInt aExtension);
- inline void SetRightExtension(TInt aExtension);
- inline void SetTopExtension(TInt aExtension);
- inline void SetBottomExtension(TInt aExtension);
- inline TInt LeftExtension() const;
- inline TInt RightExtension() const;
- inline TInt TopExtension() const;
- inline TInt BottomExtension() const;
- inline TBool Extends() const;
- inline void ExtendRect(TRect& aRect) const;
- inline void AdjustRect(TRect& aRect) const;
- public:
- TInt iLeftExtension;
- TInt iRightExtension;
- TInt iTopExtension;
- TInt iBottomExtension;
- };
- enum TTmCursorPlacement
- {
- ECursorVertical,
- ECursorUnderlineNext,
- ECursorUnderlinePrev
- };
- #line 1041
- class CTmTextLayout: public CBase
- {
- public:
- class TTmChunkDescription
- {
- public:
- TInt iStart;
- TInt iEnd;
- TBool iRightToLeft;
- };
- __declspec(dllexport) CTmTextLayout();
- __declspec(dllexport) ~CTmTextLayout();
- __declspec(dllexport) void SetTextL(MTmSource& aSource,const TTmFormatParam& aParam);
- __declspec(dllexport) void FormatL(const TTmFormatParamBase& aParam,const TTmReformatParam& aReformatParam,
- TTmReformatResult& TTmReformatResult);
- __declspec(dllexport) TBool AddParL(const TTmFormatParamBase& aParam,TBool aAtStart,TInt& aHeightIncrease,TInt& aParagraphsIncrease);
- __declspec(dllexport) TBool DeletePar(const TTmFormatParamBase& aParam,TBool aAtStart,TInt aMaxDeletedHeight,TInt& aHeightDecrease);
- __declspec(dllexport) void Clear();
- __declspec(dllexport) void DrawLayout(CGraphicsContext& aGc,const TPoint& aTopLeft,const TRect& aClipRect,
- const TLogicalRgb* aDocBackground,TBool aDrawParBackground) const;
- __declspec(dllexport) void DrawBackground(CGraphicsContext& aGc,const TPoint& aTopLeft,const TRect& aClipRect,
- const TLogicalRgb& aBackground) const;
- __declspec(dllexport) void InvertLayout(CGraphicsContext& aGc, const TPoint& aTopLeft,
- TInt aStartDocPos, TInt aEndDocPos) const;
- __declspec(dllexport) void HighlightSection(CGraphicsContext& aGc, const TPoint& aTopLeft,
- TInt aStartDocPos, TInt aEndDocPos, const TRect& aClipRect) const;
- __declspec(dllexport) void DrawSection(CGraphicsContext& aGc, const TPoint& aTopLeft,
- TInt aStartDocPos, TInt aEndDocPos, const TRect& aClipRect) const;
- __declspec(dllexport) void HighlightSection(CGraphicsContext& aGc, const TPoint& aTopLeft,
- TInt aStartDocPos, TInt aEndDocPos, const TRect& aClipRect, const TTmHighlightExtensions& aHighlightExtensions,
- TInt aHighlightStartDocPos, TInt aHighlightEndDocPos) const;
- __declspec(dllexport) void InvertLayout(CGraphicsContext& aGc,
- const TPoint& aTopLeft, TInt aStartDocPos,TInt aEndDocPos, const TTmHighlightExtensions& aHighlightExtensions,
- TInt aHighlightStartDocPos, TInt aHighlightEndDocPos) const;
- __declspec(dllexport) void DrawSection(CGraphicsContext& aGc, const TPoint& aTopLeft,
- TInt aStartDocPos, TInt aEndDocPos, const TRect& aClipRect, const TTmHighlightExtensions& aHighlightExtensions,
- TInt aHighlightStartDocPos, TInt aHighlightEndDocPos) const;
- __declspec(dllexport) TBool FindDocPos(const TTmDocPosSpec& aDocPos,TTmPosInfo2& aPosInfo,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool FindXyPos(const TPoint& aXyPos,TTmPosInfo2& aPosInfo,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool FindXyPosWithDisambiguation(const TPoint& aXyPos,
- TTmPosInfo2& aPosLeft, TTmPosInfo2& aPosRight,
- TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TInt FindNextPos(TInt aStart) const;
- __declspec(dllexport) TInt FindPreviousPos(TInt aStart) const;
- __declspec(dllexport) TInt Lines() const;
- __declspec(dllexport) TInt Paragraphs() const;
- __declspec(dllexport) TBool DocPosToLine(const TTmDocPosSpec& aDocPos,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool LineNumberToLine(TInt aLineNumber,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool ParNumberToLine(TInt aParNumber,TInt aLineInPar,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool YPosToLine(TInt aYPos,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool GetDisplayedTextL(TInt aLineNumber,TDes& aText,TInt& aNeeded) const;
- __declspec(dllexport) void GetMinimumLayoutSizeL(TInt aWrapWidth,TSize& aSize) const;
- __declspec(dllexport) void GetMinimumLayoutSizeL(TInt aWrapWidth,TBool aAllowLegalLineBreaksOnly,TSize& aSize) const;
- __declspec(dllexport) TInt WidthOfWidestLine(TInt aTop = 0,TInt aBottom = KMaxTInt) const;
- __declspec(dllexport) void HorizontalExtremes(TInt &aLeft, TInt &aRight,
- TInt aTopY = 0, TInt aBottomY = KMaxTInt) const;
- __declspec(dllexport) TBool GetNextVisualCursorPos(const TTmDocPosSpec& aDocPos,TTmPosInfo2& aInfo,TBool aToLeft) const;
- __declspec(dllexport) TBool GetNextPosLeftWithDisambiguation(const TTmDocPosSpec& aDocPos,
- TTmPosInfo2& aPosLeft, TTmPosInfo2& aPosRight) const;
- __declspec(dllexport) TBool GetNextPosRightWithDisambiguation(const TTmDocPosSpec& aDocPos,
- TTmPosInfo2& aPosLeft, TTmPosInfo2& aPosRight) const;
- __declspec(dllexport) TBool LineExtreme(const TTmDocPosSpec& aPos, TBool aToRight,
- TTmDocPos& aExtreme) const;
- __declspec(dllexport) TBool FindAdjacentChunks(const TTmDocPosSpec& aPos,
- TTmChunkDescription& aLeft, TTmChunkDescription& aRight) const;
- __declspec(dllexport) TBool GetCursor(const TTmDocPosSpec& aDocPos,TTmCursorPlacement aPlacement,
- TTmLineInfo& aLineInfo,TPoint& aOrigin,TInt& aWidth,TInt& aAscent,TInt& aDescent) const;
- __declspec(dllexport) TInt MemoryUsed() const;
- inline TInt StartChar() const;
- inline TInt EndChar() const;
- inline TInt LayoutWidth() const;
- inline TInt LayoutHeight() const;
- inline MTmSource* Source();
- inline const MTmSource* Source() const;
- inline const CTmCode& Code() const;
- __declspec(dllexport) TBool GetDisplayedText(TInt aLineNumber,TDes& aText,TInt& aNeeded) const;
- __declspec(dllexport) TBool FindDocPos(const TTmDocPos& aDocPos,TTmPosInfo& aPosInfo,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool FindXyPos(const TPoint& aXyPos,TTmPosInfo& aPosInfo,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool GetNextVisualCursorPos(const TTmDocPos& aDocPos,TTmPosInfo& aInfo,TBool aToLeft) const;
- __declspec(dllexport) TBool DocPosToLine(const TTmDocPos& aDocPos,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool GetCursor(const TTmDocPos& aDocPos,
- TTmCursorPlacement aPlacement, TTmLineInfo& aLineInfo,
- TPoint& aOrigin, TInt& aWidth, TInt& aAscent, TInt& aDescent) const;
- private:
- void Invariant() const;
- void AdjustWidth(const TTmFormatParamBase& aParam,TInt aWidthOfNewText);
- void HighlightRect(CGraphicsContext& aGc, const TPoint& aTopLeft, const TRect& aClipRect, const TTmHighlightExtensions& aHighlightExtensions, const TRect& aRect) const;
- void InvertLayout(CGraphicsContext& aGc, const TPoint& aTopLeft, const TRect& aClipRect, const TTmHighlightExtensions& aHighlightExtensions, TInt aStartDocPos,TInt aEndDocPos, TInt aHighlightStartDocPos, TInt aHighlightEndDocPos) const;
- void InvertRect(CGraphicsContext& aGc, const TPoint& aTopLeft, const TTmHighlightExtensions& aHighlightExtensions, const TRect& aInvertRect,TInt aOriginalHighlightStartPos,TInt aOriginalHighlightEndPos, TInt aNewHighlightStartPos,TInt aNewHighlightEndPos) const;
- TBool FindOverlapRect(const TPoint& aTopLeft, const TTmHighlightExtensions& aHighlightExtensions, const TRect& aRect, TInt aHighlightStartPos,TInt aHighlightEndPos, TRect& aOverlapRect) const;
- void DrawRect(CGraphicsContext& aGc, const TPoint& aTopLeft, const TRect& aClipRect, const TTmHighlightExtensions& aHighlightExtensions, const TRect& aRect) const;
- void DrawRectExcludingHighlight(CGraphicsContext& aGc, const TPoint& aTopLeft, const TRect& aClipRect, const TTmHighlightExtensions& aHighlightExtensions, TInt aHighlightStartPos,TInt aHighlightEndPos, const TRect& aRect) const;
- MTmSource* iSource;
- CTmCode iCode;
- TInt iWidth;
- TInt iHeight;
- TInt iStartChar;
- TInt iEndChar;
- };
- #line 1181
- class MTmTextLayoutForwarder
- {
- public:
- __declspec(dllexport) void DrawLayout(CGraphicsContext& aGc,const TPoint& aTopLeft,const TRect& aClipRect,
- const TLogicalRgb* aDocBackground,TBool aDrawParBackground) const;
- __declspec(dllexport) void DrawBackground(CGraphicsContext& aGc,const TPoint& aTopLeft,const TRect& aClipRect,
- const TLogicalRgb& aBackground) const;
- __declspec(dllexport) void InvertLayout(CGraphicsContext& aGc,const TPoint& aTopLeft,TInt aStartDocPos,TInt aEndDocPos);
- __declspec(dllexport) TBool FindDocPos(const TTmDocPosSpec& aDocPos,TTmPosInfo2& aPosInfo,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool FindXyPos(const TPoint& aXyPos,TTmPosInfo2& aPosInfo,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool FindXyPosWithDisambiguation(const TPoint& aXyPos,
- TTmPosInfo2& aPosLeft, TTmPosInfo2& aPosRight,
- TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool DocPosToLine(const TTmDocPosSpec& aDocPos,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool LineNumberToLine(TInt aLineNumber,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool ParNumberToLine(TInt aParNumber,TInt aLineInPar,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool YPosToLine(TInt aYPos,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TInt WidthOfWidestLine(TInt aTop = 0,TInt aBottom = KMaxTInt) const;
- __declspec(dllexport) void HorizontalExtremes(TInt &aLeft, TInt &aRight,
- TInt aTopY = 0, TInt aBottomY = KMaxTInt) const;
- __declspec(dllexport) TBool GetNextVisualCursorPos(const TTmDocPosSpec& aDocPos,TTmPosInfo2& aInfo,TBool aToLeft) const;
- __declspec(dllexport) TBool GetNextPosLeftWithDisambiguation(const TTmDocPosSpec& aDocPos,
- TTmPosInfo2& aPosLeft, TTmPosInfo2& aPosRight) const;
- __declspec(dllexport) TBool GetNextPosRightWithDisambiguation(const TTmDocPosSpec& aDocPos,
- TTmPosInfo2& aPosLeft, TTmPosInfo2& aPosRight) const;
- __declspec(dllexport) TBool GetCursor(const TTmDocPosSpec& aDocPos,TTmCursorPlacement aPlacement,
- TTmLineInfo& aLineInfo,TPoint& aOrigin,TInt& aWidth,TInt& aAscent,TInt& aDescent) const;
- __declspec(dllexport) TInt Lines() const;
- __declspec(dllexport) TInt Paragraphs() const;
- __declspec(dllexport) TBool GetDisplayedText(TInt aLineNumber,TDes& aText,TInt& aNeeded) const;
- __declspec(dllexport) void GetMinimumLayoutSizeL(TInt aWrapWidth,TSize& aSize) const;
- __declspec(dllexport) void GetMinimumLayoutSizeL(TInt aWrapWidth,TBool aAllowLegalLineBreaksOnly,TSize& aSize) const;
- __declspec(dllexport) TInt StartChar() const;
- __declspec(dllexport) TInt EndChar() const;
- __declspec(dllexport) TInt LayoutWidth() const;
- __declspec(dllexport) TInt LayoutHeight() const;
- __declspec(dllexport) TBool FindDocPos(const TTmDocPos& aDocPos,TTmPosInfo& aPosInfo,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool FindXyPos(const TPoint& aXyPos,TTmPosInfo& aPosInfo,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool DocPosToLine(const TTmDocPos& aDocPos,TTmLineInfo& aLineInfo) const;
- __declspec(dllexport) TBool GetNextVisualCursorPos(const TTmDocPos& aDocPos,TTmPosInfo& aInfo,TBool aToLeft) const;
- __declspec(dllexport) TBool GetCursor(const TTmDocPos& aDocPos,
- TTmCursorPlacement aPlacement, TTmLineInfo& aLineInfo,
- TPoint& aOrigin, TInt& aWidth, TInt& aAscent, TInt& aDescent) const;
- private:
- virtual const CTmTextLayout& TextLayout() const = 0;
- __declspec(dllexport) virtual void GetOrigin(TPoint& aPoint) const;
- void FixUpLineInfo(TTmLineInfo& aInfo,const TPoint* aOrigin = 0 ) const;
- };
- class TTmCharFormatLayer
- {
- public:
- inline TTmCharFormatLayer();
- __declspec(dllexport) TTmCharFormatLayer(const CCharFormatLayer& aFormat);
- TTmCharFormat iFormat;
- TTmCharFormatMask iMask;
- };
- class RTmParFormatLayer
- {
- public:
- inline void Close();
- __declspec(dllexport) void CopyL(const CParaFormatLayer& aFormat);
- RTmParFormat iFormat;
- TTmParFormatMask iMask;
- };
- class RTmStyle
- {
- public:
- enum
- {
- EMaxName = KMaxParagraphStyleName
- };
- inline void Close();
- __declspec(dllexport) void CopyL(const RParagraphStyleInfo& aStyle);
- __declspec(dllexport) void GetRParagraphStyleInfoL(RParagraphStyleInfo& aStyle,
- const CParaFormatLayer& aGlobalParaFormatLayer,const CCharFormatLayer& aGlobalCharFormatLayer,
- const CStyleList& aList) const;
- TBuf<KMaxName> iName;
- TBuf<KMaxName> iNextStyleName;
- TTmCharFormatLayer iCharFormat;
- RTmParFormatLayer iParFormat;
- TInt iOutlineLevel;
- };
- class CTmText: public CBase, public MTmTextLayoutForwarder
- {
- public:
- __declspec(dllexport) static CTmText* NewL(MGraphicsDeviceMap* aDevice = 0 ,const TTmFormatParamBase* aFormatParam = 0 );
- __declspec(dllexport) static CTmText* NewL(MGraphicsDeviceMap& aDevice,const TTmFormatParamBase& aFormatParam);
- __declspec(dllexport) static CTmText* NewL(MGraphicsDeviceMap& aDevice,TInt aWrapWidth,TInt aFlags);
- __declspec(dllexport) ~CTmText();
- __declspec(dllexport) void InsertL(TInt aPos,const TDesC& aText,
- const TTmCharFormat* aCharFormat = 0 ,const RTmParFormat* aParFormat = 0 ,
- TRect* aRedrawRect = 0 ,TInt* aScroll = 0 );
- __declspec(dllexport) void GetFormat(TTmFormatParamBase& aFormatParam) const;
- __declspec(dllexport) void SetWrapWidthL(TInt aWrapWidth);
- __declspec(dllexport) void ChangeFormatL(const TTmFormatParamBase& aFormatParam);
- __declspec(dllexport) void Clear();
- __declspec(dllexport) void CustomizeL(const MTmCustom* aCustom);
- __declspec(dllexport) TInt MemoryUsed() const;
- inline void Draw(CGraphicsContext& aGc,const TPoint& aTopLeft,const TRect& aClipRect,
- const TLogicalRgb* aDocBackground,TBool aDrawParBackground);
- private:
- CTmText();
- __declspec(dllexport) void Spare1();
- const CTmTextLayout& TextLayout() const;
- CTmTextImp* iImp;
- };
- TTmCharFormatMask::TTmCharFormatMask(): iFlags(0xFFFFFFFF)
- {
- }
- void TTmCharFormatMask::Clear(TAttrib aAttrib)
- {
- iFlags &= ~aAttrib;
- }
- void TTmCharFormatMask::Set(TAttrib aAttrib)
- {
- iFlags |= aAttrib;
- }
- TBool TTmCharFormatMask::IsSet(TAttrib aAttrib)
- {
- return iFlags & aAttrib;
- }
- TTmCharFormat::TTmCharFormat(const TCharFormat& aFormat)
- {
- *this = aFormat;
- }
- TBool TTmCharFormat::operator!=(const TTmCharFormat& aFormat) const
- {
- return !operator==(aFormat);
- }
- TTmTab::TTmTab():
- iPosition(0),
- iType(EStandardTab)
- {
- }
- TTmTab::TTmTab(const TTabStop& aTab)
- {
- *this = aTab;
- }
- TBool TTmTab::operator!=(const TTmTab& aTab) const
- {
- return !operator==(aTab);
- }
- TTmBullet::TTmBullet(const TBullet& aBullet)
- {
- *this = aBullet;
- }
- TBool TTmBullet::operator!=(const TTmBullet& aBullet) const
- {
- return !operator==(aBullet);
- }
- TTmParBorder::TTmParBorder(const TParaBorder& aBorder)
- {
- *this = aBorder;
- }
- TBool TTmParBorder::operator!=(const TTmParBorder& aBorder) const
- {
- return !operator==(aBorder);
- }
- TTmParFormatMask::TTmParFormatMask():
- iFlags(0xFFFFFFFF)
- {
- }
- void TTmParFormatMask::Clear(TAttrib aAttrib)
- {
- iFlags &= ~aAttrib;
- }
- void TTmParFormatMask::Set(TAttrib aAttrib)
- {
- iFlags |= aAttrib;
- }
- TBool TTmParFormatMask::IsSet(TAttrib aAttrib)
- {
- return iFlags & aAttrib;
- }
- RTmParFormat::~RTmParFormat()
- {
- (void)((!iTabList && !iBullet && !HaveBorders())||( User::Invariant(),0)) ;
- }
- TBool RTmParFormat::operator!=(const RTmParFormat& aFormat) const
- {
- return !operator==(aFormat);
- }
- const TTmTab& RTmParFormat::Tab(TInt aIndex) const
- {
- return (*iTabList)[aIndex];
- }
- const TTmBullet* RTmParFormat::Bullet() const
- {
- return iBullet;
- }
- const TTmParBorder* RTmParFormat::Border(TBorderIndex aIndex) const
- {
- return iBorder[aIndex];
- }
- TBool RTmParFormat::RightToLeft() const
- {
- return iFlags & ERightToLeft;
- }
- MTmCustom::TLineHeightParam::TLineHeightParam()
- {
- Mem::FillZ(this,sizeof(*this));
- }
- CTmBufSeg::CTmBufSeg(TInt aExpandSize):
- CBufSeg(aExpandSize)
- {
- }
- CTmCode::~CTmCode()
- {
- delete iBuffer;
- }
- TPtr8 CTmCode::Ptr(TInt aPos)
- {
- return iBuffer->Ptr(aPos);
- }
- CBufBase* CTmCode::Buffer()
- {
- return iBuffer;
- }
- const CBufBase* CTmCode::Buffer() const
- {
- return iBuffer;
- }
- TBool TTmFormatParamBase::IsWrapping() const
- {
- return iFlags & EWrap;
- }
- TBool TTmFormatParamBase::IsTruncatingWithEllipsis() const
- {
- return iFlags & ETruncateWithEllipsis;
- }
- TBool TTmFormatParamBase::LegalLineBreaksOnly() const
- {
- return iFlags & ELegalLineBreaksOnly;
- }
- TTmLineInfo::TTmLineInfo()
- {
- Mem::FillZ(this,sizeof(*this));
- }
- TTmDocPos::TTmDocPos():
- iPos(0),
- iLeadingEdge(0 )
- {
- }
- TTmDocPos::TTmDocPos(TInt aPos,TBool aLeadingEdge):
- iPos(aPos),
- iLeadingEdge(aLeadingEdge)
- {
- }
- TTmDocPosSpec::TTmDocPosSpec():
- iPos(0),
- iType(ETrailing)
- {
- }
- TBool TTmDocPos::operator!=(const TTmDocPos& aPos) const { return !((*this)==aPos); }
- TBool TTmDocPos::operator<(const TTmDocPos& aPos) const { return !((*this)>=aPos); }
- TBool TTmDocPos::operator<=(const TTmDocPos& aPos) const { return !((*this)>aPos); }
- TTmDocPosSpec::TTmDocPosSpec(TInt aPos,TType aType):
- iPos(aPos),
- iType(aType)
- {
- }
- TTmDocPosSpec::TTmDocPosSpec(const TTmDocPos& aDocPos):
- iPos(aDocPos.iPos),
- iType(aDocPos.iLeadingEdge ? ELeading : ETrailing)
- {
- }
- TInt CTmTextLayout::StartChar() const
- {
- return iStartChar;
- }
- TInt CTmTextLayout::EndChar() const
- {
- return iEndChar;
- }
- TInt CTmTextLayout::LayoutWidth() const
- {
- return iWidth;
- }
- TInt CTmTextLayout::LayoutHeight() const
- {
- return iHeight;
- }
- MTmSource* CTmTextLayout::Source()
- {
- return iSource;
- }
- const MTmSource* CTmTextLayout::Source() const
- {
- return iSource;
- }
- const CTmCode& CTmTextLayout::Code() const
- {
- return iCode;
- }
- TTmCharFormatLayer::TTmCharFormatLayer()
- {
- }
- void RTmParFormatLayer::Close()
- {
- iFormat.Close();
- }
- void RTmStyle::Close()
- {
- iParFormat.Close();
- }
- void CTmText::Draw(CGraphicsContext& aGc,const TPoint& aTopLeft,const TRect& aClipRect,
- const TLogicalRgb* aDocBackground,TBool aDrawParBackground)
- {
- DrawLayout(aGc,aTopLeft,aClipRect,aDocBackground,aDrawParBackground);
- }
- TTmHighlightExtensions::TTmHighlightExtensions()
- {
- }
- void TTmHighlightExtensions::SetAll(TInt aExtension)
- {
- iLeftExtension=iRightExtension=iTopExtension=iBottomExtension=aExtension;
- }
- void TTmHighlightExtensions::SetLeftExtension(TInt aExtension)
- {
- iLeftExtension=aExtension;
- }
- void TTmHighlightExtensions::SetRightExtension(TInt aExtension)
- {
- iRightExtension=aExtension;
- }
- void TTmHighlightExtensions::SetTopExtension(TInt aExtension)
- {
- iTopExtension=aExtension;
- }
- void TTmHighlightExtensions::SetBottomExtension(TInt aExtension)
- {
- iBottomExtension=aExtension;
- }
- TInt TTmHighlightExtensions::LeftExtension() const
- {
- return iLeftExtension;
- }
- TInt TTmHighlightExtensions::RightExtension() const
- {
- return iRightExtension;
- }
- TInt TTmHighlightExtensions::TopExtension() const
- {
- return iTopExtension;
- }
- TInt TTmHighlightExtensions::BottomExtension() const
- {
- return iBottomExtension;
- }
- TBool TTmHighlightExtensions::Extends() const
- {
- if (iTopExtension>0 || iBottomExtension>0 || iLeftExtension>0 || iRightExtension>0)
- return ETrue;
- else
- return EFalse;
- }
- inline void TTmHighlightExtensions::ExtendRect(TRect& aRect) const
- {
- if (iLeftExtension>0)
- aRect.iTl.iX-=iLeftExtension;
- if (iRightExtension>0)
- aRect.iBr.iX+=iRightExtension;
- if (iTopExtension>0)
- aRect.iTl.iY-=iTopExtension;
- if (iBottomExtension>0)
- aRect.iBr.iY+=iBottomExtension;
- }
- inline void TTmHighlightExtensions::AdjustRect(TRect& aRect) const
- {
- aRect.iTl.iX-=iLeftExtension;
- aRect.iTl.iY-=iTopExtension;
- aRect.iBr.iX+=iRightExtension;
- aRect.iBr.iY+=iBottomExtension;
- }
- #line 17 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmtlay.h" /* stack depth 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();