mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
initial import
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@2 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
2cadbd5e56
commit
cc68a136aa
341 changed files with 180839 additions and 0 deletions
59
platform/uiq3/CSimpleTextParser.h
Normal file
59
platform/uiq3/CSimpleTextParser.h
Normal file
|
@ -0,0 +1,59 @@
|
|||
/*******************************************************************
|
||||
*
|
||||
* File: CSimpleTextParser.h
|
||||
*
|
||||
* Author: Peter van Sebille (peter@yipton.net)
|
||||
*
|
||||
* (c) Copyright 2002, Peter van Sebille
|
||||
* All Rights Reserved
|
||||
*
|
||||
*******************************************************************/
|
||||
|
||||
#ifndef __CSIMPLE_TEXT_PARSER_H
|
||||
#define __CSIMPLE_TEXT_PARSER_H
|
||||
|
||||
#include <e32def.h>
|
||||
#include <txtrich.h> // CRichText
|
||||
#include <eikrted.h> // CEikRichTextEditor
|
||||
|
||||
class CSimpleTextFormatParser : public CBase
|
||||
{
|
||||
public:
|
||||
static CSimpleTextFormatParser* NewLC();
|
||||
void ParseL(const TDesC& aPSTText, CRichText& aRichText);
|
||||
|
||||
protected:
|
||||
CSimpleTextFormatParser(){}
|
||||
~CSimpleTextFormatParser();
|
||||
void ConstructL();
|
||||
|
||||
void ParseTagL(const TDesC& aTag);
|
||||
|
||||
TRgb ForegroundColor();
|
||||
void SetBold(TBool aEnable=ETrue);
|
||||
void SetItalic(TBool aEnable=ETrue);
|
||||
void SetUnderLine(TBool aEnable=ETrue);
|
||||
void SetFontHeight(TInt aHeight);
|
||||
void SetFontName(const TDesC& aName);
|
||||
void SetHiddenText(TBool aEnable=ETrue);
|
||||
void SetForegroundColor(const TRgb& aColor);
|
||||
|
||||
void NewParagraph();
|
||||
void SetAlignment(CParaFormat::TAlignment aAlignment);
|
||||
void SetBackgroundColor(const TRgb& aColor);
|
||||
|
||||
void AppendTextL(const TDesC& aText);
|
||||
TInt TextPos();
|
||||
TInt ParaPos();
|
||||
|
||||
|
||||
CRichText* iRichText;
|
||||
TCharFormat iCharFormat;
|
||||
TCharFormatMask iCharMask;
|
||||
CParaFormat* iParaFormat;
|
||||
TParaFormatMask iParaMask;
|
||||
TInt iCurrentPara;
|
||||
TRgb iPrevFgColor;
|
||||
};
|
||||
|
||||
#endif /* __CSIMPLE_TEXT_PARSER_H */
|
Loading…
Add table
Add a link
Reference in a new issue