S60UIExamplePlayView.inc
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:1975k
源码类别:
Symbian
开发平台:
C/C++
- inline TCharFormatMask();
- inline void SetAttrib(TTextFormatAttribute aAttribute);
- inline void ClearAttrib(TTextFormatAttribute aAttribute);
- inline TBool AttribIsSet(TTextFormatAttribute aAttribute) const;
- __declspec(dllexport) void SetAll();
- __declspec(dllexport) void ClearAll();
- inline TBool IsNull()const;
- __declspec(dllexport) TBool operator==(const TCharFormatMask& aMask) const;
- inline TBool operator!=(const TCharFormatMask& aMask) const;
- private:
- TUint32 iGuard;
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtfrmat.inl" /* stack depth 11 */
- TBool TTabStop::operator!=(const TTabStop& aTabStop)const
- {return !(*this==aTabStop);}
- TBool TParaBorder::operator!=(const TParaBorder& aParaBorder)const
- {return !(*this==aParaBorder);}
- TBool TBullet::operator!=(const TBullet& aBullet)const
- {return !(*this==aBullet);}
- void CParaFormat::RemoveAllTabs()
- {
- if (iTabList)
- {
- delete iTabList;
- iTabList = 0 ;
- }
- }
- TInt CParaFormat::TabCount()const
- {return (iTabList)?iTabList->Count():0;}
- TParaFormatMask::TParaFormatMask()
- :iGuard(0)
- {}
- void TParaFormatMask::SetAttrib(TTextFormatAttribute aAttribute)
- {iGuard|=(1<<aAttribute);}
- void TParaFormatMask::ClearAttrib(TTextFormatAttribute aAttribute)
- {iGuard&=~(1<<aAttribute);}
- TBool TParaFormatMask::AttribIsSet(TTextFormatAttribute aAttribute)const
- {return (iGuard&(1<<aAttribute));}
- TBool TParaFormatMask::IsNull()const
- {return !iGuard;}
- TBool TParaFormatMask::operator!=(const TParaFormatMask& aMask)const
- {return !(*this==aMask);}
- TCharFormatMask::TCharFormatMask()
- :iGuard(0)
- {}
- void TCharFormatMask::SetAttrib(TTextFormatAttribute aAttribute)
- {iGuard|=(1<<((aAttribute-KMaxParaAttributes)-1));}
- void TCharFormatMask::ClearAttrib(TTextFormatAttribute aAttribute)
- {iGuard&=~(1<<((aAttribute-KMaxParaAttributes)-1));}
- TBool TCharFormatMask::AttribIsSet(TTextFormatAttribute aAttribute)const
- {return iGuard&(1<<((aAttribute-KMaxParaAttributes)-1));}
- TBool TCharFormatMask::IsNull()const
- {return !iGuard;}
- TBool TCharFormatMask::operator!=(const TCharFormatMask& aMask)const
- {return !(*this==aMask);}
- #line 796 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtfrmat.h" /* stack depth 10 */
- #line 12 "C:\Symbian\9.1\S60_3rd\epoc32\include\frmtlay.h" /* stack depth 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtetext.h" /* stack depth 10 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\fldset.h" /* stack depth 11 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\fldinfo.h" /* stack depth 12 */
- #line 13
- class TFindFieldInfo
- #line 23
- {
- public:
- __declspec(dllexport) TBool operator==(const TFindFieldInfo& aInfo)const;
- __declspec(dllexport) TBool operator!=(const TFindFieldInfo& aInfo)const;
- public:
- TInt iFieldCountInRange;
- TInt iFirstFieldPos;
- TInt iFirstFieldLen;
- };
- #line 11 "C:\Symbian\9.1\S60_3rd\epoc32\include\fldset.h" /* stack depth 11 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\fldbase.h" /* stack depth 12 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32stor.h" /* stack depth 13 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32share.h" /* stack depth 14 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32buf.h" /* stack depth 15 */
- #line 17
- enum TStreamLocation
- {EStreamBeginning,
- EStreamMark,
- EStreamEnd};
- #line 46
- class TStreamPos
- {
- public:
- TStreamPos() {}
- inline TStreamPos(TInt anOffset);
- inline TBool operator==(TStreamPos aPos) const;
- inline TBool operator!=(TStreamPos aPos) const;
- inline TBool operator<(TStreamPos aPos) const;
- inline TBool operator<=(TStreamPos aPos) const;
- inline TBool operator>(TStreamPos aPos) const;
- inline TBool operator>=(TStreamPos aPos) const;
- inline TInt operator-(TStreamPos aPos) const;
- inline TStreamPos operator+(TInt anOffset) const;
- inline TStreamPos operator-(TInt anOffset) const;
- inline TStreamPos& operator+=(TInt anOffset);
- inline TStreamPos& operator-=(TInt anOffset);
- inline TInt Offset() const;
- private:
- TInt iOff;
- };
- inline TStreamPos operator+(TInt anOffset,TStreamPos aPos);
- #line 98
- class TStreamTransfer
- {
- public:
- enum TUnlimited {EUnlimited};
- public:
- #line 115
- TStreamTransfer() {}
- inline TStreamTransfer(TInt aMaxLength);
- inline TStreamTransfer(TUnlimited);
- inline TBool operator==(TInt aLength) const;
- inline TBool operator>(TInt aLength) const;
- inline TStreamTransfer operator-(TInt aLength) const;
- inline TInt operator[](TInt aMaxLength) const;
- inline TStreamTransfer& operator-=(TInt aLength);
- inline TInt Left() const;
- private:
- TInt iVal;
- private:
- __declspec(dllexport) static void __DbgChkNonNegative(TInt aLength);
- };
- inline TBool operator==(TInt aLength,TStreamTransfer aTransfer);
- inline TBool operator<(TInt aLength,TStreamTransfer aTransfer);
- #line 146
- class MStreamInput;
- class MStreamOutput;
- #line 184
- class MStreamBuf
- {
- public:
- enum TRead {ERead=0x01};
- enum TWrite {EWrite=0x02};
- #line 208
- typedef TInt TMark;
- public:
- __declspec(dllexport) void Close();
- inline void Release();
- __declspec(dllexport) TInt Synch();
- inline void SynchL();
- __declspec(dllexport) void PushL();
- inline TInt ReadL(TAny* aPtr,TInt aMaxLength);
- __declspec(dllexport) TInt Read(TDes8& aDes,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Read(TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus);
- __declspec(dllexport) TInt ReadL(TDes8& aDes,TRequestStatus& aStatus);
- inline TInt ReadL(TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus);
- inline TStreamTransfer ReadL(MStreamInput& anInput,TStreamTransfer aTransfer);
- __declspec(dllexport) TInt ReadL(MStreamInput& anInput,TInt aMaxLength);
- inline void ReadL(MStreamInput& anInput);
- inline void WriteL(const TAny* aPtr,TInt aLength);
- __declspec(dllexport) TInt Write(const TDesC8& aDes,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Write(const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus);
- __declspec(dllexport) TInt WriteL(const TDesC8& aDes,TRequestStatus& aStatus);
- inline TInt WriteL(const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus);
- inline TStreamTransfer WriteL(MStreamOutput& anOutput,TStreamTransfer aTransfer);
- __declspec(dllexport) TInt WriteL(MStreamOutput& anOutput,TInt aMaxLength);
- inline void WriteL(MStreamOutput& anOutput);
- inline void SeekL(TMark aMark,TStreamPos aPos);
- inline TStreamPos SeekL(TMark aMark,TStreamLocation aLocation,TInt anOffset=0);
- inline TStreamPos SeekL(TRead,TStreamLocation aLocation,TInt anOffset=0);
- inline TStreamPos SeekL(TWrite,TStreamLocation aLocation,TInt anOffset=0);
- inline TStreamPos SeekL(TRead,TInt anOffset);
- inline TStreamPos SeekL(TWrite,TInt anOffset);
- inline TStreamPos TellL(TRead) const;
- inline TStreamPos TellL(TWrite) const;
- inline TInt SizeL() const;
- protected:
- MStreamBuf() {}
- private:
- MStreamBuf(const MStreamBuf&);
- MStreamBuf& operator=(const MStreamBuf&);
- virtual __declspec(dllexport) void DoRelease();
- virtual __declspec(dllexport) void DoSynchL();
- virtual __declspec(dllexport) TInt DoReadL(TAny* aPtr,TInt aMaxLength);
- virtual __declspec(dllexport) TInt DoReadL(TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus);
- virtual __declspec(dllexport) TStreamTransfer DoReadL(MStreamInput& anInput,TStreamTransfer aTransfer);
- virtual __declspec(dllexport) void DoWriteL(const TAny* aPtr,TInt aLength);
- virtual __declspec(dllexport) TInt DoWriteL(const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus);
- virtual __declspec(dllexport) TStreamTransfer DoWriteL(MStreamOutput& anOutput,TStreamTransfer aTransfer);
- virtual __declspec(dllexport) TStreamPos DoSeekL(TMark aMark,TStreamLocation aLocation,TInt anOffset);
- };
- #line 276
- class MStreamInput
- {
- public:
- #line 291
- virtual TInt PushL(const TAny* aPtr,TInt aMaxLength)=0;
- #line 306
- virtual TStreamTransfer ReadFromL(MStreamBuf& aSource,TStreamTransfer aTransfer)=0;
- };
- #line 323
- class MStreamOutput
- {
- public:
- #line 338
- virtual TInt PullL(TAny* aPtr,TInt aMaxLength)=0;
- #line 353
- virtual TStreamTransfer WriteToL(MStreamBuf& aSink,TStreamTransfer aTransfer)=0;
- };
- #line 375
- class TStreamBuf : public MStreamBuf
- {
- protected:
- #line 391
- typedef TInt TArea;
- protected:
- __declspec(dllexport) TStreamBuf();
- __declspec(dllexport) void SetBuf(TArea anArea,TUint8* aPtr,TUint8* anEnd);
- __declspec(dllexport) void SetPtr(TArea anArea,TUint8* aPtr);
- __declspec(dllexport) void SetEnd(TArea anArea,TUint8* anEnd);
- __declspec(dllexport) TUint8* Ptr(TArea anArea) const;
- __declspec(dllexport) TUint8* End(TArea anArea) const;
- __declspec(dllexport) TInt Avail(TArea anArea) const;
- __declspec(dllexport) TInt DoReadL(TAny* aPtr,TInt aMaxLength);
- __declspec(dllexport) TStreamTransfer DoReadL(MStreamInput& anInput,TStreamTransfer aTransfer);
- __declspec(dllexport) void DoWriteL(const TAny* aPtr,TInt aLength);
- __declspec(dllexport) TStreamTransfer DoWriteL(MStreamOutput& anOutput,TStreamTransfer aTransfer);
- inline void SetBuf(TRead,TUint8* aPtr,TUint8* anEnd);
- inline void SetBuf(TWrite,TUint8* aPtr,TUint8* anEnd);
- inline void SetPtr(TRead,TUint8* aPtr);
- inline void SetPtr(TWrite,TUint8* aPtr);
- inline void SetEnd(TRead,TUint8* anEnd);
- inline void SetEnd(TWrite,TUint8* anEnd);
- inline TUint8* Ptr(TRead) const;
- inline TUint8* Ptr(TWrite) const;
- inline TUint8* End(TRead) const;
- inline TUint8* End(TWrite) const;
- inline TInt Avail(TRead) const;
- inline TInt Avail(TWrite) const;
- private:
- #line 429
- virtual TInt UnderflowL(TInt aMaxLength)=0;
- virtual void OverflowL()=0;
- private:
- TUint8* iRPtr;
- TUint8* iREnd;
- TUint8* iWPtr;
- TUint8* iWEnd;
- };
- #line 454
- class TStreamFilter : public MStreamBuf
- {
- public:
- enum {EAttached=0x10};
- protected:
- __declspec(dllexport) TStreamFilter();
- inline void Set(MStreamBuf* aHost,TInt aMode);
- inline void Committed();
- inline TBool IsCommitted() const;
- __declspec(dllexport) void EmitL(const TAny* aPtr,TInt aLength);
- __declspec(dllexport) void DoRelease();
- __declspec(dllexport) void DoSynchL();
- __declspec(dllexport) TInt DoReadL(TAny* aPtr,TInt aMaxLength);
- __declspec(dllexport) void DoWriteL(const TAny* aPtr,TInt aLength);
- private:
- virtual TInt Capacity(TInt aMaxLength)=0;
- #line 488
- virtual TInt FilterL(TAny* aPtr,TInt aMaxLength,const TUint8*& aFrom,const TUint8* anEnd)=0;
- private:
- MStreamBuf* iHost;
- TInt iMode;
- private:
- friend class TFilterInput;
- friend class TFilterOutput;
- private:
- __declspec(dllexport) static void __DbgChkMode(TInt aMode);
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32buf.inl" /* stack depth 16 */
- inline TStreamPos::TStreamPos(TInt anOffset)
- : iOff(anOffset)
- {}
- inline TBool TStreamPos::operator==(TStreamPos aPos) const
- {return iOff==aPos.iOff;}
- inline TBool TStreamPos::operator!=(TStreamPos aPos) const
- {return iOff!=aPos.iOff;}
- inline TBool TStreamPos::operator<(TStreamPos aPos) const
- {return iOff<aPos.iOff;}
- inline TBool TStreamPos::operator<=(TStreamPos aPos) const
- {return iOff<=aPos.iOff;}
- inline TBool TStreamPos::operator>(TStreamPos aPos) const
- {return iOff>aPos.iOff;}
- inline TBool TStreamPos::operator>=(TStreamPos aPos) const
- {return iOff>=aPos.iOff;}
- inline TInt TStreamPos::operator-(TStreamPos aPos) const
- {return iOff-aPos.iOff;}
- inline TStreamPos TStreamPos::operator+(TInt anOffset) const
- {return TStreamPos(iOff+anOffset);}
- inline TStreamPos TStreamPos::operator-(TInt anOffset) const
- {return TStreamPos(iOff-anOffset);}
- inline TStreamPos& TStreamPos::operator+=(TInt anOffset)
- {iOff+=anOffset;return *this;}
- inline TStreamPos& TStreamPos::operator-=(TInt anOffset)
- {iOff-=anOffset;return *this;}
- inline TInt TStreamPos::Offset() const
- {return iOff;}
- inline TStreamPos operator+(TInt anOffset,TStreamPos aPos)
- {return aPos+anOffset;}
- inline TStreamTransfer::TStreamTransfer(TInt aMaxLength)
- : iVal(aMaxLength)
- {
- __DbgChkNonNegative(aMaxLength);
- }
- inline TStreamTransfer::TStreamTransfer(TUnlimited)
- : iVal(-1)
- #line 124
- {}
- inline TBool TStreamTransfer::operator==(TInt aLength) const
- {
- __DbgChkNonNegative(aLength);
- return iVal==aLength;
- }
- inline TBool TStreamTransfer::operator>(TInt aLength) const
- {
- __DbgChkNonNegative(aLength);
- return TUint(iVal)>TUint(aLength);
- }
- inline TStreamTransfer TStreamTransfer::operator-(TInt aLength) const
- #line 161
- {
- __DbgChkNonNegative(aLength);
- return iVal<0?*this:TStreamTransfer(iVal-aLength);
- }
- inline TInt TStreamTransfer::operator[](TInt aMaxLength) const
- {return *this>aMaxLength?aMaxLength:iVal;}
- inline TStreamTransfer& TStreamTransfer::operator-=(TInt aLength)
- #line 184
- {
- __DbgChkNonNegative(aLength);
- if (iVal>=0)
- {
- iVal-=aLength;
- __DbgChkNonNegative(iVal);
- }
- return *this;
- }
- inline TInt TStreamTransfer::Left() const
- {
- __DbgChkNonNegative(iVal);
- return iVal;
- }
- inline TBool operator==(TInt aLength,TStreamTransfer aTransfer)
- {return aTransfer==aLength;}
- inline TBool operator<(TInt aLength,TStreamTransfer aTransfer)
- {return aTransfer>aLength;}
- inline void MStreamBuf::Release()
- #line 223
- {DoRelease();}
- inline void MStreamBuf::SynchL()
- {DoSynchL();}
- inline TInt MStreamBuf::ReadL(TAny* aPtr,TInt aMaxLength)
- #line 244
- {return DoReadL(aPtr,aMaxLength);}
- inline TInt MStreamBuf::ReadL(TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus)
- #line 261
- {return DoReadL(aDes,aMaxLength,aStatus);}
- inline TStreamTransfer MStreamBuf::ReadL(MStreamInput& anInput,TStreamTransfer aTransfer)
- #line 271
- {return DoReadL(anInput,aTransfer);}
- inline void MStreamBuf::ReadL(MStreamInput& anInput)
- #line 281
- {DoReadL(anInput,TStreamTransfer(TStreamTransfer::EUnlimited) );}
- inline void MStreamBuf::WriteL(const TAny* aPtr,TInt aLength)
- #line 292
- {DoWriteL(aPtr,aLength);}
- inline TInt MStreamBuf::WriteL(const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus)
- #line 310
- {return DoWriteL(aDes,aMaxLength,aStatus);}
- inline TStreamTransfer MStreamBuf::WriteL(MStreamOutput& anOutput,TStreamTransfer aTransfer)
- #line 321
- {return DoWriteL(anOutput,aTransfer);}
- inline void MStreamBuf::WriteL(MStreamOutput& anOutput)
- #line 332
- {DoWriteL(anOutput,TStreamTransfer(TStreamTransfer::EUnlimited) );}
- inline void MStreamBuf::SeekL(TMark aMark,TStreamPos aPos)
- #line 346
- {DoSeekL(aMark,EStreamBeginning,aPos.Offset());}
- inline TStreamPos MStreamBuf::SeekL(TMark aMark,TStreamLocation aLocation,TInt anOffset)
- #line 372
- {return DoSeekL(aMark,aLocation,anOffset);}
- inline TStreamPos MStreamBuf::SeekL(TRead,TStreamLocation aLocation,TInt anOffset)
- #line 394
- {return DoSeekL(ERead,aLocation,anOffset);}
- inline TStreamPos MStreamBuf::SeekL(TWrite,TStreamLocation aLocation,TInt anOffset)
- #line 416
- {return DoSeekL(EWrite,aLocation,anOffset);}
- inline TStreamPos MStreamBuf::SeekL(TRead,TInt anOffset)
- #line 429
- {return DoSeekL(ERead,EStreamMark,anOffset);}
- inline TStreamPos MStreamBuf::SeekL(TWrite,TInt anOffset)
- #line 442
- {return DoSeekL(EWrite,EStreamMark,anOffset);}
- inline TStreamPos MStreamBuf::TellL(TRead) const
- {return (const_cast<MStreamBuf*>(this)) ->DoSeekL(ERead,EStreamMark,0);}
- inline TStreamPos MStreamBuf::TellL(TWrite) const
- {return (const_cast<MStreamBuf*>(this)) ->DoSeekL(EWrite,EStreamMark,0);}
- inline TInt MStreamBuf::SizeL() const
- {return (const_cast<MStreamBuf*>(this)) ->DoSeekL(0,EStreamEnd,0).Offset();}
- inline void TStreamBuf::SetBuf(TRead,TUint8* aPtr,TUint8* anEnd)
- #line 478
- {iRPtr=aPtr;iREnd=anEnd;}
- inline void TStreamBuf::SetBuf(TWrite,TUint8* aPtr,TUint8* anEnd)
- #line 489
- {iWPtr=aPtr;iWEnd=anEnd;}
- inline void TStreamBuf::SetPtr(TRead,TUint8* aPtr)
- {iRPtr=aPtr;}
- inline void TStreamBuf::SetPtr(TWrite,TUint8* aPtr)
- {iWPtr=aPtr;}
- inline void TStreamBuf::SetEnd(TRead,TUint8* anEnd)
- {iREnd=anEnd;}
- inline void TStreamBuf::SetEnd(TWrite,TUint8* anEnd)
- {iWEnd=anEnd;}
- inline TUint8* TStreamBuf::Ptr(TRead) const
- {return iRPtr;}
- inline TUint8* TStreamBuf::Ptr(TWrite) const
- {return iWPtr;}
- inline TUint8* TStreamBuf::End(TRead) const
- {return iREnd;}
- inline TUint8* TStreamBuf::End(TWrite) const
- {return iWEnd;}
- inline TInt TStreamBuf::Avail(TRead) const
- {return iREnd-iRPtr;}
- inline TInt TStreamBuf::Avail(TWrite) const
- {return iWEnd-iWPtr;}
- inline void TStreamFilter::Set(MStreamBuf* aHost,TInt aMode)
- #line 577
- {
- __DbgChkMode(aMode);
- iHost=aHost;iMode=aMode;
- }
- inline void TStreamFilter::Committed()
- {iMode&=~EWrite;}
- inline TBool TStreamFilter::IsCommitted() const
- {return iHost==0 ||!(iMode&EWrite);}
- #line 499 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32buf.h" /* stack depth 15 */
- #line 8 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32share.h" /* stack depth 14 */
- class TStreamExchange;
- #line 29
- class TStreamMark
- {
- public:
- inline TStreamMark();
- inline TStreamMark(TStreamPos aPos);
- inline TStreamMark& operator=(TStreamPos aPos);
- inline operator TStreamMark*();
- inline operator const TStreamMark*() const;
- inline TBool operator==(const TStreamMark& aMark) const;
- inline TBool operator==(const TStreamMark* aPtr) const;
- inline TBool operator!=(const TStreamMark& aMark) const;
- inline TBool operator!=(const TStreamMark* aPtr) const;
- inline TBool IsEmpty() const;
- inline void Clear();
- inline TStreamPos Position() const;
- inline TBool IsWith(TStreamExchange& aHost) const;
- inline TBool RelatesTo(TStreamExchange& aHost) const;
- inline void Withdraw(TStreamExchange& aHost);
- inline void ExtractL(TStreamExchange& aHost);
- inline TInt ReadL(TStreamExchange& aHost,TAny* aPtr,TInt aMaxLength);
- __declspec(dllexport) TInt ReadL(TStreamExchange& aHost,TDes8& aDes,TRequestStatus& aStatus);
- inline TInt ReadL(TStreamExchange& aHost,TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus);
- inline TStreamTransfer ReadL(TStreamExchange& aHost,MStreamInput& anInput,TStreamTransfer aTransfer);
- inline TInt ReadL(TStreamExchange& aHost,MStreamInput& anInput,TInt aMaxLength);
- inline void ReadL(TStreamExchange& aHost,MStreamInput& anInput);
- inline void WriteL(TStreamExchange& aHost,const TAny* aPtr,TInt aLength);
- __declspec(dllexport) TInt WriteL(TStreamExchange& aHost,const TDesC8& aDes,TRequestStatus& aStatus);
- inline TInt WriteL(TStreamExchange& aHost,const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus);
- inline TStreamTransfer WriteL(TStreamExchange& aHost,MStreamOutput& anOutput,TStreamTransfer aTransfer);
- inline TInt WriteL(TStreamExchange& aHost,MStreamOutput& anOutput,TInt aMaxLength);
- inline void WriteL(TStreamExchange& aHost,MStreamOutput& anOutput);
- inline void SeekL(TStreamExchange& aHost,TStreamPos aPos);
- inline TStreamPos SeekL(TStreamExchange& aHost,TStreamLocation aLocation,TInt anOffset=0);
- inline TStreamPos SeekL(TStreamExchange& aHost,TInt anOffset);
- inline TStreamPos TellL(TStreamExchange& aHost) const;
- private:
- TStreamMark(const TStreamMark&);
- TStreamMark& operator=(const TStreamMark&);
- private:
- TStreamPos iPos;
- private:
- inline TBool IsTracking(TStreamMark*const& aRef) const;
- inline void Track(TStreamMark*const& aRef);
- private:
- friend class TStreamExchange;
- private:
- __declspec(dllexport) static void __DbgChkPos(TStreamPos aPos);
- };
- #line 106
- class TStreamExchange
- {
- public:
- inline TStreamExchange();
- inline TStreamExchange(MStreamBuf* aHost);
- inline void Share(MStreamBuf* aHost);
- inline TBool IsActive() const;
- __declspec(dllexport) MStreamBuf* Host();
- __declspec(dllexport) MStreamBuf* HostL();
- __declspec(dllexport) void Release();
- __declspec(dllexport) TInt SizeL() const;
- private:
- #line 132
- typedef MStreamBuf::TMark TMark;
- private:
- TStreamExchange(const TStreamExchange&);
- TStreamExchange& operator=(const TStreamExchange&);
- __declspec(dllexport) TBool RefersTo(const TStreamMark& aMark);
- __declspec(dllexport) void Drop(const TStreamMark& aMark);
- __declspec(dllexport) void GetL(TStreamMark& aMark);
- __declspec(dllexport) TInt DoReadL(TAny* aPtr,TInt aMaxLength,TStreamMark& aMark);
- __declspec(dllexport) TInt DoReadL(TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus,TStreamMark& aMark);
- __declspec(dllexport) TStreamTransfer DoReadL(MStreamInput& anInput,TStreamTransfer aTransfer,TStreamMark& aMark);
- __declspec(dllexport) void DoWriteL(const TAny* aPtr,TInt aLength,TStreamMark& aMark);
- __declspec(dllexport) TInt DoWriteL(const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus,TStreamMark& aMark);
- __declspec(dllexport) TStreamTransfer DoWriteL(MStreamOutput& anOutput,TStreamTransfer aTransfer,TStreamMark& aMark);
- __declspec(dllexport) TStreamPos DoSeekL(TStreamMark& aMark,TStreamLocation aLocation,TInt anOffset);
- void PrepareForReadingL(TStreamMark& aMark);
- void PrepareForWritingL(TStreamMark& aMark);
- TInt PrepareAndReadL(TAny* aPtr,TInt aMaxLength,TStreamMark& aMark);
- TInt PrepareAndReadL(TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus,TStreamMark& aMark);
- TStreamTransfer PrepareAndReadL(MStreamInput& anInput,TStreamTransfer aTransfer,TStreamMark& aMark);
- void PrepareAndWriteL(const TAny* aPtr,TInt aLength,TStreamMark& aMark);
- TInt PrepareAndWriteL(const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus,TStreamMark& aMark);
- TStreamTransfer PrepareAndWriteL(MStreamOutput& anOutput,TStreamTransfer aTransfer,TStreamMark& aMark);
- TStreamPos MarkSeekL(TStreamMark& aMark,TStreamLocation aLocation,TInt anOffset);
- inline MStreamBuf& BufL() const;
- inline MStreamBuf& Buf() const;
- private:
- MStreamBuf* iHost;
- TStreamMark* iRMrk;
- TStreamMark* iWMrk;
- private:
- friend class TStreamMark;
- };
- #line 197
- class RShareBuf : public MStreamBuf
- {
- public:
- __declspec(dllexport) RShareBuf();
- __declspec(dllexport) void Open(TStreamExchange& aHost,TStreamPos aPos,TInt aMode=ERead|EWrite);
- inline void Open(TStreamExchange& aHost,TInt aMode=ERead|EWrite);
- protected:
- __declspec(dllexport) void DoRelease();
- __declspec(dllexport) TInt DoReadL(TAny* aPtr,TInt aMaxLength);
- __declspec(dllexport) TInt DoReadL(TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus);
- __declspec(dllexport) TStreamTransfer DoReadL(MStreamInput& anInput,TStreamTransfer aTransfer);
- __declspec(dllexport) void DoWriteL(const TAny* aPtr,TInt aLength);
- __declspec(dllexport) TInt DoWriteL(const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus);
- __declspec(dllexport) TStreamTransfer DoWriteL(MStreamOutput& anOutput,TStreamTransfer aTransfer);
- __declspec(dllexport) TStreamPos DoSeekL(TMark aMark,TStreamLocation aLocation,TInt anOffset);
- private:
- inline TStreamExchange& Host() const;
- private:
- TStreamExchange* iHost;
- TStreamMark iRMark;
- TStreamMark iWMark;
- };
- #line 233
- class RShareReadStream : public RReadStream
- {
- public:
- RShareReadStream() {}
- __declspec(dllexport) RShareReadStream(TStreamExchange& aHost,TStreamPos aPos=TStreamPos(0) );
- __declspec(dllexport) void Open(TStreamExchange& aHost,TStreamPos aPos=TStreamPos(0) );
- private:
- RShareBuf iSource;
- };
- #line 261
- class RShareWriteStream : public RWriteStream
- {
- public:
- RShareWriteStream() {}
- inline RShareWriteStream(const MExternalizer<TStreamRef>& anExter);
- __declspec(dllexport) RShareWriteStream(TStreamExchange& aHost,TStreamPos aPos=TStreamPos(0) );
- __declspec(dllexport) void Open(TStreamExchange& aHost,TStreamPos aPos=TStreamPos(0) );
- private:
- RShareBuf iSink;
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32share.inl" /* stack depth 15 */
- inline TStreamMark::TStreamMark()
- : iPos(TStreamPos(0) -1)
- {}
- inline TStreamMark::TStreamMark(TStreamPos aPos)
- : iPos(aPos)
- {
- __DbgChkPos(aPos);
- }
- inline TStreamMark& TStreamMark::operator=(TStreamPos aPos)
- {
- __DbgChkPos(aPos);
- iPos=aPos;
- return *this;
- }
- inline TStreamMark::operator TStreamMark*()
- {return this;}
- inline TStreamMark::operator const TStreamMark*() const
- {return this;}
- inline TBool TStreamMark::operator==(const TStreamMark& aMark) const
- {return this==&aMark;}
- inline TBool TStreamMark::operator==(const TStreamMark* aPtr) const
- {return this==aPtr;}
- inline TBool TStreamMark::operator!=(const TStreamMark& aMark) const
- {return this!=&aMark;}
- inline TBool TStreamMark::operator!=(const TStreamMark* aPtr) const
- {return this!=aPtr;}
- inline TBool TStreamMark::IsEmpty() const
- {return iPos<TStreamPos(0) ;}
- inline void TStreamMark::Clear()
- {iPos=TStreamPos(0) -1;}
- inline TStreamPos TStreamMark::Position() const
- {
- __DbgChkPos(iPos);
- return iPos;
- }
- inline TBool TStreamMark::IsWith(TStreamExchange& aHost) const
- {return aHost.RefersTo(*this);}
- inline TBool TStreamMark::RelatesTo(TStreamExchange& aHost) const
- #line 104
- {return iPos>=TStreamPos(0) ||aHost.RefersTo(*this);}
- inline void TStreamMark::Withdraw(TStreamExchange& aHost)
- {aHost.Drop(*this);}
- inline void TStreamMark::ExtractL(TStreamExchange& aHost)
- {aHost.GetL(*this);}
- inline TInt TStreamMark::ReadL(TStreamExchange& aHost,TAny* aPtr,TInt aMaxLength)
- {return aHost.DoReadL(aPtr,aMaxLength,*this);}
- inline TInt TStreamMark::ReadL(TStreamExchange& aHost,TDes8& aDes,TInt aMaxLength,TRequestStatus& aStatus)
- #line 139
- {return aHost.DoReadL(aDes,aMaxLength,aStatus,*this);}
- inline TStreamTransfer TStreamMark::ReadL(TStreamExchange& aHost,MStreamInput& anInput,TStreamTransfer aTransfer)
- {return aHost.DoReadL(anInput,aTransfer,*this);}
- inline TInt TStreamMark::ReadL(TStreamExchange& aHost,MStreamInput& anInput,TInt aMaxLength)
- {return aMaxLength-aHost.DoReadL(anInput,TStreamTransfer(aMaxLength),*this).Left();}
- inline void TStreamMark::ReadL(TStreamExchange& aHost,MStreamInput& anInput)
- {aHost.DoReadL(anInput,TStreamTransfer(TStreamTransfer::EUnlimited) ,*this);}
- inline void TStreamMark::WriteL(TStreamExchange& aHost,const TAny* aPtr,TInt aLength)
- {aHost.DoWriteL(aPtr,aLength,*this);}
- inline TInt TStreamMark::WriteL(TStreamExchange& aHost,const TDesC8& aDes,TInt aMaxLength,TRequestStatus& aStatus)
- #line 189
- {return aHost.DoWriteL(aDes,aMaxLength,aStatus,*this);}
- inline TStreamTransfer TStreamMark::WriteL(TStreamExchange& aHost,MStreamOutput& anOutput,TStreamTransfer aTransfer)
- {return aHost.DoWriteL(anOutput,aTransfer,*this);}
- inline TInt TStreamMark::WriteL(TStreamExchange& aHost,MStreamOutput& anOutput,TInt aMaxLength)
- {return aMaxLength-aHost.DoWriteL(anOutput,TStreamTransfer(aMaxLength),*this).Left();}
- inline void TStreamMark::WriteL(TStreamExchange& aHost,MStreamOutput& anOutput)
- {aHost.DoWriteL(anOutput,TStreamTransfer(TStreamTransfer::EUnlimited) ,*this);}
- inline void TStreamMark::SeekL(TStreamExchange& aHost,TStreamPos aPos)
- {aHost.DoSeekL(*this,EStreamBeginning,aPos.Offset());}
- inline TStreamPos TStreamMark::SeekL(TStreamExchange& aHost,TStreamLocation aLocation,TInt anOffset)
- #line 233
- {return aHost.DoSeekL(*this,aLocation,anOffset);}
- inline TStreamPos TStreamMark::SeekL(TStreamExchange& aHost,TInt anOffset)
- {return aHost.DoSeekL(*this,EStreamMark,anOffset);}
- inline TStreamPos TStreamMark::TellL(TStreamExchange& aHost) const
- {return aHost.DoSeekL((const_cast<TStreamMark&>(*this)) ,EStreamMark,0);}
- inline TStreamExchange::TStreamExchange()
- : iHost(0 ),iRMrk(0 ),iWMrk(0 )
- {}
- inline TStreamExchange::TStreamExchange(MStreamBuf* aHost)
- : iHost(aHost),iRMrk(0 ),iWMrk(0 )
- {}
- inline void TStreamExchange::Share(MStreamBuf* aHost)
- {iHost=aHost;}
- inline TBool TStreamExchange::IsActive() const
- {return iHost!=0 ;}
- inline void RShareBuf::Open(TStreamExchange& aHost,TInt aMode)
- #line 289
- {Open(aHost,TStreamPos(0) ,aMode);}
- inline RShareWriteStream::RShareWriteStream(const MExternalizer<TStreamRef>& anExter)
- : RWriteStream(anExter)
- {}
- #line 277 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32share.h" /* stack depth 14 */
- #line 11 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32stor.h" /* stack depth 13 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32page.h" /* stack depth 14 */
- #line 12
- const TInt KPoolPageSize=512;
- const TUint32 KNullPageRefValue=0;
- #line 23
- class TPageRef
- {
- public:
- inline TPageRef() {}
- inline TPageRef(TUint32 aValue);
- inline TBool operator==(TPageRef aRef) const;
- inline TBool operator!=(TPageRef aRef) const;
- inline void ExternalizeL(RWriteStream& aStream) const;
- inline void InternalizeL(RReadStream& aStream);
- inline TUint32 Value() const;
- private:
- TUint32 iVal;
- };
- class MPagePool;
- typedef void (*TPageAbandonFunction)(MPagePool& aPool);
- enum TPageReclamation
- {EPageDeleteOnly,
- EPageReclaimable};
- enum TPageChange
- {EPageNoChange,
- EPageDirty,
- EPageUpdate,
- EPageAbandon=-1};
- #line 92
- class MPagePool
- {
- public:
- __declspec(dllexport) void PushL();
- inline void Pop();
- virtual TPageAbandonFunction AcquireL()=0;
- virtual TAny* AllocL()=0;
- virtual TAny* LockL(TPageRef aRef)=0;
- virtual TPageRef AssignL(const TAny* aPage,TPageReclamation aReclamation=EPageDeleteOnly)=0;
- virtual void UpdateL(const TAny* aPage)=0;
- virtual void Unlock(const TAny* aPage,TPageChange aChange=EPageNoChange)=0;
- __declspec(dllexport) void Delete(TPageRef aRef);
- __declspec(dllexport) void DeleteL(TPageRef aRef);
- protected:
- virtual void DoDeleteL(TPageRef aRef)=0;
- };
- #line 140
- class CMemPagePool : public CBase,public MPagePool
- {
- public:
- __declspec(dllexport) static CMemPagePool* NewL();
- __declspec(dllexport) static CMemPagePool* NewLC();
- __declspec(dllexport) CMemPagePool();
- __declspec(dllexport) ~CMemPagePool();
- __declspec(dllexport) TPageAbandonFunction AcquireL();
- __declspec(dllexport) TAny* AllocL();
- __declspec(dllexport) TAny* LockL(TPageRef aRef);
- __declspec(dllexport) TPageRef AssignL(const TAny* aPage,TPageReclamation aReclamation=EPageDeleteOnly);
- __declspec(dllexport) void UpdateL(const TAny* aPage);
- __declspec(dllexport) void Unlock(const TAny* aPage,TPageChange aChange=EPageNoChange);
- protected:
- __declspec(dllexport) void DoDeleteL(TPageRef aRef);
- private:
- TAny*& PageL(TPageRef aRef);
- static void DoAbandon(MPagePool& aPool);
- private:
- CArrayFixSeg<TAny*> iPages;
- };
- class TCachePage;
- struct SCachePage;
- class TCachePagePool;
- #line 179
- class CPageCache : public CBase
- {
- public:
- enum {EDefaultPages=20};
- #line 206
- public:
- __declspec(dllexport) static CPageCache* NewL(TInt aPages=EDefaultPages);
- __declspec(dllexport) static CPageCache* NewLC(TInt aPages=EDefaultPages);
- __declspec(dllexport) CPageCache();
- __declspec(dllexport) void ConstructL(TInt aPages=EDefaultPages);
- __declspec(dllexport) ~CPageCache();
- private:
- TCachePage* Find(TCachePagePool* aPool,TPageRef aRef);
- private:
- SCachePage* iPages;
- SCachePage* iEnd;
- TDblQue<TCachePage> iFree;
- private:
- friend class TCachePagePool;
- };
- #line 241
- class TCachePagePool : public MPagePool
- {
- public:
- inline void Set(CPageCache& aCache);
- __declspec(dllexport) TPageAbandonFunction AcquireL();
- __declspec(dllexport) TAny* AllocL();
- __declspec(dllexport) TAny* LockL(TPageRef aRef);
- __declspec(dllexport) TPageRef AssignL(const TAny* aPage,TPageReclamation aReclamation=EPageDeleteOnly);
- __declspec(dllexport) void UpdateL(const TAny* aPage);
- __declspec(dllexport) void Unlock(const TAny* aPage,TPageChange aChange=EPageNoChange);
- __declspec(dllexport) TInt Flush();
- __declspec(dllexport) void FlushL();
- __declspec(dllexport) void Purge();
- protected:
- inline TCachePagePool();
- inline TCachePagePool(CPageCache& aCache);
- __declspec(dllexport) void DoDeleteL(TPageRef aRef);
- private:
- virtual TPageRef ExtendL(const TAny* aPage,TPageReclamation aReclamation)=0;
- virtual void WriteL(TPageRef aRef,const TAny* aPage,TPageChange aChange)=0;
- virtual void ReadL(TPageRef aRef,TAny* aPage)=0;
- static void DoAbandon(MPagePool& aPool);
- static TCachePage* DoAllocL(CPageCache& aCache);
- private:
- CPageCache* iCache;
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32page.inl" /* stack depth 15 */
- inline TPageRef::TPageRef(TUint32 aValue)
- : iVal(aValue)
- {}
- inline TBool TPageRef::operator==(TPageRef aRef) const
- {return iVal==aRef.iVal;}
- inline TBool TPageRef::operator!=(TPageRef aRef) const
- {return iVal!=aRef.iVal;}
- inline void TPageRef::ExternalizeL(RWriteStream& aStream) const
- {aStream<<iVal;}
- inline void TPageRef::InternalizeL(RReadStream& aStream)
- {aStream>>iVal;}
- inline TUint32 TPageRef::Value() const
- {return iVal;}
- inline void MPagePool::Pop()
- {CleanupStack::Pop();}
- #line 68
- inline void TCachePagePool::Set(CPageCache& aCache)
- {iCache=&aCache;}
- inline TCachePagePool::TCachePagePool()
- : iCache(0 )
- {}
- inline TCachePagePool::TCachePagePool(CPageCache& aCache)
- : iCache(&aCache)
- {}
- #line 271 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32page.h" /* stack depth 14 */
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32stor.h" /* stack depth 13 */
- class MIncrementalCollector;
- class CStreamStore : public CBase
- {
- public:
- inline TStreamId ExtendL();
- __declspec(dllexport) void Delete(TStreamId anId);
- __declspec(dllexport) void DeleteL(TStreamId anId);
- __declspec(dllexport) TInt Commit();
- inline void CommitL();
- __declspec(dllexport) void Revert();
- inline void RevertL();
- __declspec(dllexport) TInt ReclaimL();
- __declspec(dllexport) TInt CompactL();
- private:
- virtual __declspec(dllexport) TStreamId DoExtendL();
- virtual __declspec(dllexport) void DoDeleteL(TStreamId anId);
- #line 52
- virtual MStreamBuf* DoReadL(TStreamId anId) const=0;
- #line 61
- virtual MStreamBuf* DoCreateL(TStreamId& anId)=0;
- virtual __declspec(dllexport) MStreamBuf* DoWriteL(TStreamId anId);
- virtual __declspec(dllexport) MStreamBuf* DoReplaceL(TStreamId anId);
- virtual __declspec(dllexport) void DoCommitL();
- virtual __declspec(dllexport) void DoRevertL();
- virtual __declspec(dllexport) MIncrementalCollector* DoReclaimL();
- virtual __declspec(dllexport) MIncrementalCollector* DoCompactL();
- private:
- friend class RStoreReadStream;
- friend class RStoreWriteStream;
- friend class RStoreReclaim;
- };
- #line 86
- class CPersistentStore : public CStreamStore
- {
- public:
- inline TStreamId Root() const;
- inline void SetRootL(TStreamId anId);
- protected:
- inline CPersistentStore();
- private:
- virtual __declspec(dllexport) void DoSetRootL(TStreamId anId);
- protected:
- TStreamId iRoot;
- };
- #line 123
- class RStoreReclaim
- {
- public:
- inline RStoreReclaim();
- __declspec(dllexport) void OpenL(CStreamStore& aStore,TInt& aCount);
- __declspec(dllexport) void OpenLC(CStreamStore& aStore,TInt& aCount);
- __declspec(dllexport) void CompactL(CStreamStore& aStore,TInt& aCount);
- __declspec(dllexport) void CompactLC(CStreamStore& aStore,TInt& aCount);
- inline void Close();
- __declspec(dllexport) void Release();
- __declspec(dllexport) void ResetL(TInt& aCount);
- __declspec(dllexport) void NextL(TInt& aStep);
- __declspec(dllexport) void Next(TPckgBuf<TInt>& aStep,TRequestStatus& aStatus);
- __declspec(dllexport) void NextL(TPckgBuf<TInt>& aStep,TRequestStatus& aStatus);
- __declspec(dllexport) TInt Next(TInt& aStep);
- inline TInt Available() const;
- private:
- MIncrementalCollector* iCol;
- TPckgBuf<TInt> iAvail;
- };
- #line 162
- class CEmbeddedStore : public CPersistentStore
- {
- public:
- __declspec(dllexport) static CEmbeddedStore* FromL(RReadStream& aHost);
- __declspec(dllexport) static CEmbeddedStore* FromLC(RReadStream& aHost);
- __declspec(dllexport) static CEmbeddedStore* NewL(RWriteStream& aHost);
- __declspec(dllexport) static CEmbeddedStore* NewLC(RWriteStream& aHost);
- inline static TStreamPos Position(TStreamId anId);
- __declspec(dllexport) void Detach();
- inline void Reattach(MStreamBuf* aHost);
- inline MStreamBuf* Host() const;
- inline TStreamPos Start() const;
- __declspec(dllexport) CEmbeddedStore(MStreamBuf* aHost);
- __declspec(dllexport) void MarshalL(RReadStream& aStream);
- __declspec(dllexport) void ConstructL(RWriteStream& aStream);
- __declspec(dllexport) ~CEmbeddedStore();
- protected:
- __declspec(dllexport) MStreamBuf* DoReadL(TStreamId anId) const;
- __declspec(dllexport) MStreamBuf* DoCreateL(TStreamId& anId);
- private:
- __declspec(dllexport) void DoSetRootL(TStreamId anId);
- __declspec(dllexport) void DoCommitL();
- static CEmbeddedStore* DoNewLC(MStreamBuf* aHost);
- private:
- TStreamExchange iHost;
- TStreamPos iStart;
- };
- #line 218
- class CDictionaryStore : public CBase
- {
- public:
- __declspec(dllexport) TBool IsNullL() const;
- __declspec(dllexport) TBool IsPresentL(TUid aUid) const;
- __declspec(dllexport) void Remove(TUid aUid);
- __declspec(dllexport) void RemoveL(TUid aUid);
- __declspec(dllexport) TInt Commit();
- __declspec(dllexport) void CommitL();
- __declspec(dllexport) void Revert();
- __declspec(dllexport) void RevertL();
- __declspec(dllexport) ~CDictionaryStore();
- protected:
- __declspec(dllexport) void ConstructL();
- private:
- CStreamDictionary* DictionaryL() const;
- MStreamBuf* GetSourceL(TUid aUid) const;
- MStreamBuf* GetSinkL(TUid aUid);
- protected:
- CPersistentStore* iStore;
- private:
- CStreamDictionary* iDictionary;
- TBool iDictionaryHasChanged;
- private:
- friend class RDictionaryReadStream;
- friend class RDictionaryWriteStream;
- friend class HDictionaryStoreBuf;
- };
- const TInt KDictionaryCommitThreshold = 1024;
- #line 261
- class RDictionaryReadStream : public RReadStream
- {
- public:
- __declspec(dllexport) void OpenL(const CDictionaryStore& aDictStore,TUid aUid);
- __declspec(dllexport) void OpenLC(const CDictionaryStore& aDictStore,TUid aUid);
- };
- #line 275
- class RDictionaryWriteStream : public RWriteStream
- {
- public:
- RDictionaryWriteStream() {}
- inline RDictionaryWriteStream(const MExternalizer<TStreamRef>& anExter);
- __declspec(dllexport) void AssignL(CDictionaryStore& aDictStore,TUid aUid);
- __declspec(dllexport) void AssignLC(CDictionaryStore& aDictStore,TUid aUid);
- };
- #line 293
- class TStorePagePoolToken
- {
- public:
- enum TEmpty
- {EEmpty};
- public:
- TStorePagePoolToken() {}
- inline TStorePagePoolToken(TEmpty);
- inline void Touch();
- inline TBool HasAvailable() const;
- inline TBool IsEmpty() const;
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- private:
- inline TStorePagePoolToken(TStreamId aHead,TPageRef anAvail);
- private:
- TStreamId iHead;
- TPageRef iAvail;
- private:
- friend class RStorePagePool;
- };
- #line 354
- class RStorePagePool : public TCachePagePool
- {
- friend class StorePagePool;
- public:
- __declspec(dllexport) RStorePagePool();
- __declspec(dllexport) RStorePagePool(CPageCache& aCache);
- __declspec(dllexport) RStorePagePool(CStreamStore& aStore);
- __declspec(dllexport) RStorePagePool(CStreamStore& aStore,const TStorePagePoolToken& aToken);
- __declspec(dllexport) void Create(CStreamStore& aStore);
- __declspec(dllexport) void Open(CStreamStore& aStore,const TStorePagePoolToken& aToken);
- __declspec(dllexport) TStorePagePoolToken Token() const;
- __declspec(dllexport) void Close();
- inline void Release();
- inline TBool IsDirty() const;
- inline void MarkCurrent();
- inline void MarkDirty();
- inline TBool HasAvailable() const;
- inline void Discard();
- inline TBool IsEmpty() const;
- __declspec(dllexport) TBool ReclaimL();
- __declspec(dllexport) void ReclaimAllL();
- protected:
- __declspec(dllexport) TPageRef ExtendL(const TAny* aPage,TPageReclamation aReclamation);
- __declspec(dllexport) void WriteL(TPageRef aRef,const TAny* aPage,TPageChange aChange);
- __declspec(dllexport) void ReadL(TPageRef aRef,TAny* aPage);
- __declspec(dllexport) void DoDeleteL(TPageRef aRef);
- private:
- inline void CacheDeleteL(TPageRef aRef);
- private:
- CStreamStore* iStore;
- TStreamId iHead;
- TPageRef iAvail;
- TBool iDirty;
- };
- #line 413
- class MIncrementalCollector
- {
- public:
- inline void Close();
- inline void Release();
- inline void ResetL(TInt& aCount);
- inline void NextL(TInt& aStep,TInt& aTotal);
- inline void NextL(TPckgBuf<TInt>& aStep,TRequestStatus& aStatus,TPckgBuf<TInt>& aTotal);
- protected:
- #line 431
- MIncrementalCollector() {}
- private:
- #line 441
- MIncrementalCollector(const MIncrementalCollector&);
- MIncrementalCollector& operator=(const MIncrementalCollector&);
- virtual __declspec(dllexport) void DoRelease();
- virtual void DoResetL(TInt& aCount)=0;
- #line 466
- virtual void DoNextL(TInt& aStep,TInt& aTotal)=0;
- virtual __declspec(dllexport) void DoNextL(TPckgBuf<TInt>& aStep,TRequestStatus& aStatus,TPckgBuf<TInt>& aTotal);
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32stor.inl" /* stack depth 14 */
- inline TStreamId CStreamStore::ExtendL()
- {return DoExtendL();}
- inline void CStreamStore::CommitL()
- {DoCommitL();}
- inline void CStreamStore::RevertL()
- {DoRevertL();}
- inline CPersistentStore::CPersistentStore()
- {}
- inline TStreamId CPersistentStore::Root() const
- {return iRoot;}
- inline void CPersistentStore::SetRootL(TStreamId anId)
- {DoSetRootL(anId);}
- inline RStoreReclaim::RStoreReclaim()
- : iCol(0 )
- {}
- inline void RStoreReclaim::Close()
- #line 62
- {Release();}
- inline TInt RStoreReclaim::Available() const
- {return (const_cast<TPckgBuf<TInt>&>(iAvail)) ();}
- inline TStreamPos CEmbeddedStore::Position(TStreamId anId)
- {return TStreamPos(anId.Value());}
- inline void CEmbeddedStore::Reattach(MStreamBuf* aHost)
- {iHost.Share(aHost);}
- inline MStreamBuf* CEmbeddedStore::Host() const
- {return (const_cast<TStreamExchange&>(iHost)) .Host();}
- inline TStreamPos CEmbeddedStore::Start() const
- {return iStart;}
- inline RDictionaryWriteStream::RDictionaryWriteStream(const MExternalizer<TStreamRef>& anExter)
- : RWriteStream(anExter)
- {}
- inline TStorePagePoolToken::TStorePagePoolToken(TEmpty)
- : iHead(TStreamId(KNullStreamIdValue) ),iAvail(TPageRef(KNullPageRefValue) )
- {}
- inline void TStorePagePoolToken::Touch()
- {iAvail=TPageRef(KNullPageRefValue) ;}
- inline TBool TStorePagePoolToken::HasAvailable() const
- {return iAvail!=TPageRef(KNullPageRefValue) ;}
- inline TBool TStorePagePoolToken::IsEmpty() const
- {return iHead==TStreamId(KNullStreamIdValue) ;}
- inline void RStorePagePool::Release()
- {Purge();iStore=0 ;}
- inline TBool RStorePagePool::IsDirty() const
- {return iDirty;}
- inline void RStorePagePool::MarkCurrent()
- {iDirty=EFalse;}
- inline void RStorePagePool::MarkDirty()
- {iDirty=ETrue;}
- inline TBool RStorePagePool::HasAvailable() const
- {return iAvail!=TPageRef(KNullPageRefValue) ;}
- inline void RStorePagePool::Discard()
- {iAvail=TPageRef(KNullPageRefValue) ;}
- inline TBool RStorePagePool::IsEmpty() const
- {return iHead==TStreamId(KNullStreamIdValue) ;}
- inline void MIncrementalCollector::Close()
- {DoRelease();}
- inline void MIncrementalCollector::Release()
- {DoRelease();}
- inline void MIncrementalCollector::ResetL(TInt& aCount)
- {DoResetL(aCount);}
- inline void MIncrementalCollector::NextL(TInt& aStep,TInt& aTotal)
- #line 198
- {DoNextL(aStep,aTotal);}
- inline void MIncrementalCollector::NextL(TPckgBuf<TInt>& aStep,TRequestStatus& aStatus,TPckgBuf<TInt>& aTotal)
- #line 217
- {DoNextL(aStep,aStatus,aTotal);}
- #line 470 "C:\Symbian\9.1\S60_3rd\epoc32\include\s32stor.h" /* stack depth 13 */
- #line 11 "C:\Symbian\9.1\S60_3rd\epoc32\include\fldbase.h" /* stack depth 12 */
- class CTextField;
- class MTextFieldFactory;
- class CTextField : public CBase
- #line 34
- {
- public:
- __declspec(dllexport) virtual TStreamId StoreL(CStreamStore& aStore)const;
- __declspec(dllexport) virtual void RestoreL(const CStreamStore& aStore,TStreamId aId);
- __declspec(dllexport) virtual void ExternalizeL(RWriteStream& aStream)const;
- virtual void InternalizeL(RReadStream& aStream)=0;
- #line 54
- virtual TInt Value(TPtr& aValueText)=0;
- virtual TUid Type()const=0;
- };
- class MTextFieldFactory
- #line 90
- {
- public:
- virtual CTextField* NewFieldL(TUid aFieldType)=0;
- };
- #line 12 "C:\Symbian\9.1\S60_3rd\epoc32\include\fldset.h" /* stack depth 11 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\fldbltin.h" /* stack depth 12 */
- #line 14
- class MFieldPageNumInfo;
- class MFieldNumPagesInfo;
- class MFieldFileNameInfo;
- class CDateTimeField;
- class CPageNumField;
- class CNumPagesField;
- class CFileNameField;
- class TRomanNumeral;
- class RReadStream;
- class RWriteStream;
- #line 39
- class MFieldPageNumInfo
- {
- public:
- virtual TInt UpdateFieldPageNum()const=0;
- };
- #line 60
- class MFieldNumPagesInfo
- {
- public:
- virtual TInt UpdateFieldNumPages()const=0;
- };
- #line 83
- class MFieldFileNameInfo
- {
- public:
- #line 96
- virtual TInt UpdateFieldFileName(TPtr& aValueText)const=0;
- };
- #line 111
- class CDateTimeField : public CTextField
- {
- public:
- __declspec(dllexport) CDateTimeField();
- __declspec(dllexport) void SetFormat(const TDesC& aFormat);
- __declspec(dllexport) virtual TInt Value(TPtr& aValueText);
- __declspec(dllexport) virtual void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) virtual void ExternalizeL(RWriteStream& aStream)const;
- __declspec(dllexport) const TDesC& FormatString()const;
- __declspec(dllexport) TUid Type()const;
- protected:
- TBuf<64> iFormatString;
- };
- #line 140
- class CPageFieldBase : public CTextField
- {
- public:
- enum TNumberStyle {
- EArabic,
- ERomanUpper,
- ERomanLower,
- EAlphabeticUpper,
- EAlphabeticLower
- };
- public:
- inline void SetNumberStyle(TNumberStyle aStyle) { iStyle = aStyle; }
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream)const;
- __declspec(dllexport) TNumberStyle NumberStyle()const;
- protected:
- TInt InsertValue(TPtr& aValueText,TInt aValue);
- protected:
- TNumberStyle iStyle;
- };
- #line 184
- class CPageNumField : public CPageFieldBase
- {
- public:
- inline void SetPageNumInfo(MFieldPageNumInfo* aInfo) { iPageNumInfo=aInfo; }
- __declspec(dllexport) TInt Value(TPtr& aValueText);
- __declspec(dllexport) TUid Type()const;
- protected:
- MFieldPageNumInfo* iPageNumInfo;
- };
- #line 210
- class CNumPagesField : public CPageFieldBase
- {
- public:
- inline void SetNumPagesInfo(MFieldNumPagesInfo* aInfo) { iNumPagesInfo=aInfo; }
- __declspec(dllexport) TInt Value(TPtr& aValueText);
- __declspec(dllexport) TUid Type()const;
- protected:
- MFieldNumPagesInfo* iNumPagesInfo;
- };
- #line 238
- class CFileNameField : public CTextField
- {
- public:
- inline void SetFileNameInfo(MFieldFileNameInfo* aInfo) { iFileNameInfo=aInfo; }
- __declspec(dllexport) virtual TStreamId StoreL(CStreamStore& aStore)const;
- __declspec(dllexport) virtual void RestoreL(const CStreamStore& aStore,TStreamId aId);
- __declspec(dllexport) virtual TInt Value(TPtr& aValueText);
- inline virtual void InternalizeL(RReadStream& ) {};
- __declspec(dllexport) TUid Type()const;
- protected:
- MFieldFileNameInfo* iFileNameInfo;
- };
- #line 13 "C:\Symbian\9.1\S60_3rd\epoc32\include\fldset.h" /* stack depth 11 */
- class CTextFieldSet;
- class RReadStream;
- class RWriteStream;
- class TTextFieldEntry;
- class CStreamStore;
- class CStoreMap;
- class TRollbackInfo;
- const TInt KFieldArrayGranularity=1;
- class CTextFieldSet : public CBase
- {
- public:
- enum {ENoPasteLimit=-1};
- public:
- __declspec(dllexport) static CTextFieldSet* NewL(TInt aDocumentLength=0);
- __declspec(dllexport) static CTextFieldSet* NewL(const MTextFieldFactory* aFactory,const CStreamStore& aStore,TStreamId aStreamId);
- __declspec(dllexport) ~CTextFieldSet();
- __declspec(dllexport) void SetFieldFactory(MTextFieldFactory* aFactory);
- __declspec(dllexport) MTextFieldFactory* FieldFactory()const;
- __declspec(dllexport) void Reset();
- __declspec(dllexport) TStreamId StoreL(CStreamStore& aStore)const;
- __declspec(dllexport) void RestoreL(const CStreamStore& aFieldStore,TStreamId aStreamId);
- __declspec(dllexport) void StoreFieldsL(CStreamStore& aStore,CStoreMap& aMap)const;
- __declspec(dllexport) void RestoreFieldsL(const CStreamStore& aFieldStore);
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream)const;
- __declspec(dllexport) TStreamId CopyToStoreL(CStreamStore& aStore,TInt aPos,TInt aLength)const;
- __declspec(dllexport) void CopyComponentsL(CStreamStore& aStore,CStoreMap& aMap,TInt aPos,TInt aLength)const;
- __declspec(dllexport) void CopyToStreamL(RWriteStream& aStream,TInt aPos,TInt aLength)const;
- __declspec(dllexport) void PasteFromStoreL(const CStreamStore& aFieldStore,TStreamId aStreamId,TInt aPos,TInt aMaxLen=ENoPasteLimit);
- __declspec(dllexport) void PasteComponentsL(const CStreamStore& aFieldStore,TInt aPos);
- __declspec(dllexport) void PasteFromStreamL(RReadStream& aStream,TInt aPos,TInt aMaxLen=ENoPasteLimit);
- __declspec(dllexport) CTextField* NewFieldL(TUid aFieldType);
- __declspec(dllexport) TInt InsertFieldL(TInt aPos,CTextField* aField,TUid aFieldType);
- __declspec(dllexport) TInt RemoveField(TInt aPos);
- __declspec(dllexport) TInt NewFieldValueL(HBufC*& aBuf, TInt aPos);
- __declspec(dllexport) void NotifyInsertion(TInt aPos, TInt aNumberAdded);
- __declspec(dllexport) void NotifyDeletion(TInt aPos, TInt aNumberRemoved);
- __declspec(dllexport) void NotifyFieldUpdate(TInt aPos, TInt aNewFieldValueLength);
- __declspec(dllexport) TInt FieldCount() const;
- __declspec(dllexport) TInt CharCount() const;
- __declspec(dllexport) TBool FindFields(TInt aPos) const;
- __declspec(dllexport) TBool FindFields(TFindFieldInfo& aInfo,TInt aPos,TInt aRange=0) const;
- __declspec(dllexport) const CTextField* TextField(TInt aPos)const;
- __declspec(dllexport) void RollbackPaste();
- protected:
- CTextFieldSet();
- void ConstructL(TInt aDocumentLength);
- void ConstructL(const CStreamStore& aFieldStore,TStreamId aStreamId);
- private:
- void StoreFieldsL(CStreamStore& aStore,CStoreMap& aMap,CArrayFixSeg<TTextFieldEntry> * aArray)const;
- void DoRestoreL(const CStreamStore& aFieldStore,TStreamId aStreamId);
- void DoRestoreFieldsL(CArrayFixSeg<TTextFieldEntry> * aArray,const CStreamStore& aFieldStore,TInt aStartIndex=0);
- void InternalizeL(CArrayFixSeg<TTextFieldEntry> * aArray,RReadStream& aStream);
- void ExternalizeL(RWriteStream& aStream,CArrayFixSeg<TTextFieldEntry> * aArray)const;
- void DoPasteL(CArrayFixSeg<TTextFieldEntry> * aSourceArray,TInt aPos);
- void AddInitialFieldEntryL(CArrayFixSeg<TTextFieldEntry> * aArray,TInt aDocumentLength);
- void InsertEntryL(TInt aIndex,TTextFieldEntry& aEntry);
- void InsertEntryL(TInt aIndex,TTextFieldEntry& aEntry,CArrayFixSeg<TTextFieldEntry> * aArray);
- void AppendEntryL(TTextFieldEntry& aEntry);
- void AppendEntryL(TTextFieldEntry& aEntry,CArrayFixSeg<TTextFieldEntry> * aArray);
- void CopyToArrayL(CArrayFixSeg<TTextFieldEntry> * aArray,TInt aPos,TInt aLength)const;
- TBool InField(const TInt aPos, TInt& anIndex, TInt& anOffset) const;
- void DeleteFieldEntry(TInt anIndex);
- void DeleteFieldEntry(CArrayFixSeg<TTextFieldEntry> * aArray,TInt anIndex);
- TTextFieldEntry SplitEntry(TInt aIndex,TInt aOffset,TInt aRange)const;
- TInt EntryLen(const TTextFieldEntry& aEntry)const;
- TInt EntryLen(TInt aIndex)const;
- void RecordRollbackInfoL(TInt aPastePos);
- private:
- MTextFieldFactory* iFieldFactory;
- CArrayFixSeg<TTextFieldEntry> * iFieldArray;
- TRollbackInfo* iRollbackInfo;
- public: void __DbgTestInvariant() const; void __DbgTest(TAny *aPtr) const ;
- };
- class TFieldMapExternalizer : public MExternalizer<TStreamRef>
- {
- private:
- friend class CPlainText;
- friend class CTextFieldSet;
- private:
- __declspec(dllexport) TFieldMapExternalizer(const CStoreMap& aMap);
- __declspec(dllexport) void ExternalizeL(const TStreamRef& anObject,RWriteStream& aStream) const;
- private:
- const CStoreMap* iMap;
- };
- #line 11 "C:\Symbian\9.1\S60_3rd\epoc32\include\txtetext.h" /* stack depth 10 */
- class CParaFormatLayer;
- class CCharFormatLayer;
- class MTextFieldFactory;
- class CTextFieldSet;
- class CTextField;
- class TFindFieldInfo;
- class CInlineEditData;
- class MFepInlineTextFormatRetriever;
- class TCharFormat;
- class CEditableTextOptionalData;
- class RFs;
- const TUid KPlainTextFieldDataUid = {268435555};
- const TUid KEditableTextUid = {268450334};
- const TUid KPlainTextCharacterDataUid = {268450341};
- const TUid KClipboardUidTypePlainText = {268450333};
- const TUid KUidRichText = {271013233};
- const TInt KMaxFieldBufferSize=0x14;
- #line 64
- class CEditableText : public CBase
- {
- public:
- __declspec(dllexport) ~CEditableText();
- __declspec(dllexport) TStreamId StoreL(CStreamStore& aStore) const;
- __declspec(dllexport) void RestoreL(const CStreamStore& aStore,TStreamId aStreamId);
- virtual void ExternalizeL(RWriteStream& aStream) const;
- virtual void InternalizeL(RReadStream& aStream);
- #line 82
- virtual void StoreComponentsL(CStreamStore& aStore,CStoreMap& aMap) const = 0;
- virtual void RestoreComponentsL(const CStreamStore& aStore) = 0;
- virtual void Reset() = 0;
- virtual void InsertL(TInt aInsertPos,const TChar& aChar) = 0;
- virtual void InsertL(TInt aInsertPos,const TDesC& aBuf) = 0;
- #line 121
- virtual TBool DeleteL(TInt aPos,TInt aLength) = 0;
- #line 132
- virtual TPtrC Read(TInt aStartPos) const = 0;
- #line 142
- virtual TPtrC Read(TInt aStartPos,TInt aLength) const = 0;
- #line 153
- virtual void Extract(TDes& aBuf,TInt aPos=0) const = 0;
- #line 163
- virtual void Extract(TDes& aBuf,TInt aPos,TInt aLength) const = 0;
- #line 172
- virtual void CopyToStoreL(CStreamStore& aStore,CStreamDictionary& aDictionary,TInt aPos,TInt aLength) const = 0;
- #line 181
- virtual TInt PasteFromStoreL(const CStreamStore& aStore,const CStreamDictionary& aDictionary,TInt aPos) = 0;
- virtual TInt WordCount() const = 0;
- virtual TInt ParagraphCount() const = 0;
- virtual TInt DocumentLength() const = 0;
- virtual TInt ToParagraphStart(TInt& aPos) const = 0;
- inline TBool HasChanged() const;
- #line 226
- virtual void GetWordInfo(TInt aCurrentPos,TInt& aStartPos,TInt& aLength,
- TBool aPictureIsDelimiter,TBool aPunctuationIsDelimiter) const = 0;
- __declspec(dllexport) virtual TInt ScanWords(TInt& aPos,TUint& aScanMask) const;
- __declspec(dllexport) virtual TInt ScanParas(TInt& aPos,TUint& aScanMask) const;
- __declspec(dllexport) virtual void SetHasChanged(TBool aHasChanged);
- __declspec(dllexport) void StartFepInlineEditL(TBool& aParagraphContainingStartPositionOfInlineTextHasChangedFormat,TInt& aNumberOfCharactersSuccessfullyDeleted,TInt& aNumberOfCharactersSuccessfullyInserted,TInt& aPositionOfInsertionPointInDocument,TInt aNewPositionOfInsertionPointInDocument,const TDesC& aInitialInlineText,TInt aPositionOfInlineTextInDocument,TInt aNumberOfCharactersToHide,MFepInlineTextFormatRetriever& aInlineTextFormatRetriever);
- __declspec(dllexport) void UpdateFepInlineTextL(TBool& aParagraphContainingStartPositionOfInlineTextHasChangedFormat,TInt& aNumberOfCharactersSuccessfullyDeleted,TInt& aNumberOfCharactersSuccessfullyInserted,TInt& aPositionOfInsertionPointInDocument,TInt aNewPositionOfInsertionPointInDocument,const TDesC& aNewInlineText);
- __declspec(dllexport) void CommitFepInlineEditL(TBool& aParagraphContainingStartPositionOfInlineTextHasChangedFormat,TInt& aNumberOfCharactersSuccessfullyDeleted,TInt& aNumberOfCharactersSuccessfullyInserted,TInt& aPositionOfInsertionPointInDocument,TInt aNewPositionOfInsertionPointInDocument);
- __declspec(dllexport) void CancelFepInlineEdit(TBool& aParagraphContainingStartPositionOfInlineTextHasChangedFormat,TInt& aNumberOfCharactersSuccessfullyDeleted,TInt& aNumberOfCharactersSuccessfullyInserted,TInt& aPositionOfInsertionPointInDocument,TInt aNewPositionOfInsertionPointInDocument);
- __declspec(dllexport) virtual void ExtendedInterface(TAny*& aInterface, TUid aInterfaceId);
- enum TDocumentStorage
- {
- EFlatStorage,
- ESegmentedStorage
- };
- enum
- {
- EDefaultTextGranularity = 256
- };
- enum
- {
- ETabCharacter = 0x0009,
- EPageBreak = 0x000C,
- ESpace = 0x0020,
- EApostrophe = 0x0027,
- EHyphenMinus = 0x002D,
- ENonBreakingSpace = 0x00A0,
- EPotentialHyphen = 0x00AD,
- EHyphen = 0x2010,
- ENonBreakingHyphen = 0x2011,
- ELeftSingleQuote = 0x2018,
- ERightSingleQuote = 0x2019,
- ELeftDoubleQuote = 0x201C,
- ERightDoubleQuote = 0x201D,
- EBullet = 0x2022,
- EEllipsis = 0x2026,
- ELineBreak = 0x2028,
- EParagraphDelimiter = 0x2029,
- EPictureCharacter = 0xFFFC,
- EZeroWidthNoBreakSpace = 0xFEFF,
- EByteOrderMark = 0xFEFF,
- EReversedByteOrderMark = 0xFFFE
- };
- protected:
- __declspec(dllexport) void OverrideFormatOfInlineTextIfApplicable(TPtrC& aView,TCharFormat& aFormat,TInt aStartPos) const;
- TBool iHasChanged;
- private:
- void SetAndTransferOwnershipOfInlineEditDataL(CInlineEditData* aInlineEditData);
- CInlineEditData* InlineEditData() const;
- void DeleteInlineEditDataAndSetToNull();
- TBool DeleteWithoutDestroyingFormatL(TInt aPos, TInt aLength);
- CEditableTextOptionalData* iOptionalData;
- };
- #line 328
- class TEtextComponentInfo
- {
- public:
- __declspec(dllexport) TEtextComponentInfo();
- __declspec(dllexport) TEtextComponentInfo(TInt aFieldCount,TInt aPictureCount,TInt aStyleCount);
- public:
- TInt iFieldCount;
- TInt iPictureCount;
- TInt iStyleCount;
- };
- #line 350
- typedef CArrayFix<TInt> TPageTable;
- #line 372
- class CPlainText: public CEditableText
- {
- public:
- enum TTextOrganisation
- {
- EOrganiseByParagraph,
- EOrganiseByLine
- };
- enum
- {
- EScanBackwards = 0x01,
- EScanStayIfBoundary = 0x02,
- EScanToUnitStart = 0x04,
- EScanToUnitEnd = 0x08,
- EScanJoinDelimiters = 0x10,
- EScanPictureIsDelimiter = 0x20,
- EScanPunctuationIsDelimiter = 0x40
- };
- enum TScanDataEnd
- {
- EScanEndOfData = -1
- };
- class TImportExportParam
- {
- public:
- TImportExportParam():
- iOrganisation(EOrganiseByParagraph),
- iMaxOutputChars(KMaxTInt),
- iMaxInputChars(KMaxTInt),
- iMaxLineLength(KMaxTInt),
- iOutputInternal(0 ),
- iInputInternal(0 ),
- iForeignEncoding(0),
- iGuessForeignEncoding(0 ),
- iFileSession(0 ),
- iReserved(0)
- {
- }
- TTextOrganisation iOrganisation;
- TInt iMaxOutputChars;
- TInt iMaxInputChars;
- TInt iMaxLineLength;
- TBool iOutputInternal;
- TBool iInputInternal;
- TUint iForeignEncoding;
- TBool iGuessForeignEncoding;
- RFs* iFileSession;
- TUint iReserved;
- };
- class TImportExportResult
- {
- public:
- TImportExportResult():
- iOutputChars(0),
- iInputChars(0),
- iForeignEncoding(0),
- iReserved(0)
- {
- }
- TInt iOutputChars;
- TInt iInputChars;
- TUint iForeignEncoding;
- TUint iReserved;
- };
- __declspec(dllexport) static CPlainText* NewL(TDocumentStorage aStorage = ESegmentedStorage,
- TInt aDefaultTextGranularity = EDefaultTextGranularity);
- __declspec(dllexport) static CPlainText* NewL(const CStreamStore& aStore,TStreamId aStreamId,
- MTextFieldFactory* aFieldFactory = 0 ,
- TDocumentStorage aStorage = ESegmentedStorage);
- __declspec(dllexport) virtual ~CPlainText();
- __declspec(dllexport) virtual void StoreComponentsL(CStreamStore& aStore,CStoreMap& aMap) const;
- __declspec(dllexport) virtual void RestoreComponentsL(const CStreamStore& aStore);
- __declspec(dllexport) virtual void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) virtual void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizePlainTextL(RWriteStream& aStream) const;
- __declspec(dllexport) void InternalizePlainTextL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizePlainTextNoLengthCountL(RWriteStream& aStream) const;
- __declspec(dllexport) void InternalizePlainTextL(RReadStream& aStream,TInt aLength);
- __declspec(dllexport) void ImportTextL(TInt aPos,RReadStream& aInput,TTextOrganisation aTextOrganisation,
- TInt aMaxOutputChars = KMaxTInt,TInt aMaxInputChars = KMaxTInt,
- TInt* aOutputChars = 0 ,TInt* aInputChars = 0 );
- __declspec(dllexport) void ExportTextL(TInt aPos,RWriteStream& aOutput,TTextOrganisation aTextOrganisation,
- TInt aMaxOutputChars = KMaxTInt,TInt aMaxInputChars = KMaxTInt,
- TInt aMaxLineLength = KMaxTInt,
- TInt* aOutputChars = 0 ,TInt* aInputChars = 0 ) const;
- __declspec(dllexport) virtual TInt ImportTextFileL(TInt aPos,const TDes& aFileName,TTextOrganisation aTextOrganisation);
- __declspec(dllexport) virtual void ExportAsTextL(const TDes& aFileName,TTextOrganisation aTextOrganisation,
- TInt aMaxLineLength) const;
- __declspec(dllexport) void ImportTextL(TInt aPos,RReadStream& aInput,
- const TImportExportParam& aParam,TImportExportResult& aResult);
- __declspec(dllexport) void ExportTextL(TInt aPos,RWriteStream& aOutput,
- const TImportExportParam& aParam,TImportExportResult& aResult) const;
- __declspec(dllexport) void StoreFieldComponentsL(CStreamStore& aStore,CStoreMap& aMap) const;
- __declspec(dllexport) void RestoreFieldComponentsL(const CStreamStore& aStore);
- __declspec(dllexport) void ExternalizeFieldDataL(RWriteStream& aStream) const;
- __declspec(dllexport) void InternalizeFieldDataL(RReadStream& aStream);
- __declspec(dllexport) virtual void Reset();
- __declspec(dllexport) virtual void InsertL(TInt aPos,const TChar& aChar);
- __declspec(dllexport) virtual void InsertL(TInt aPos,const TDesC& aBuf);
- __declspec(dllexport) virtual TBool DeleteL(TInt aPos,TInt aLength);
- __declspec(dllexport) virtual TPtrC Read(TInt aStartPos) const;
- __declspec(dllexport) virtual TPtrC Read(TInt aStartPos,TInt aLength) const;
- __declspec(dllexport) virtual void Extract(TDes& aBuf,TInt aPos=0) const;
- __declspec(dllexport) virtual void Extract(TDes& aBuf,TInt aPos,TInt aLength) const;
- enum
- {
- 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;