rm unused file
[picodrive.git] / platform / uiq2 / launcher / CSimpleTextParser.h
CommitLineData
cc68a136 1/*******************************************************************\r
2 *\r
3 * File: CSimpleTextParser.h\r
4 *\r
5 * Author: Peter van Sebille (peter@yipton.net)\r
6 *\r
7 * Modified/adapted for picodriveN by notaz, 2006\r
8 *\r
9 * (c) Copyright 2006, notaz\r
10 * (c) Copyright 2002, Peter van Sebille\r
11 * All Rights Reserved\r
12 *\r
13 *******************************************************************/\r
14\r
15#ifndef __CSIMPLE_TEXT_PARSER_H\r
16#define __CSIMPLE_TEXT_PARSER_H\r
17\r
18#include <e32def.h>\r
19#include <txtrich.h> // CRichText\r
20#include <eikrted.h> // CEikRichTextEditor\r
21\r
22class CSimpleTextFormatParser : public CBase\r
23{\r
24public:\r
25 static CSimpleTextFormatParser* NewLC();\r
26 void ParseL(const TDesC& aPSTText, CRichText& aRichText);\r
27\r
28protected:\r
29 CSimpleTextFormatParser(){}\r
30 ~CSimpleTextFormatParser();\r
31 void ConstructL();\r
32\r
33 void ParseTagL(const TDesC& aTag);\r
34\r
35 TRgb ForegroundColor();\r
36 void SetBold(TBool aEnable=ETrue);\r
37 void SetItalic(TBool aEnable=ETrue);\r
38 void SetUnderLine(TBool aEnable=ETrue);\r
39 void SetFontHeight(TInt aHeight);\r
40 void SetFontName(const TDesC& aName);\r
41 void SetHiddenText(TBool aEnable=ETrue);\r
42 void SetForegroundColor(const TRgb& aColor);\r
43\r
44 void NewParagraph();\r
45 void SetAlignment(CParaFormat::TAlignment aAlignment);\r
46 void SetBackgroundColor(const TRgb& aColor);\r
47\r
48 void AppendTextL(const TDesC& aText);\r
49 TInt TextPos();\r
50 TInt ParaPos();\r
51\r
52\r
53 CRichText* iRichText;\r
54 TCharFormat iCharFormat;\r
55 TCharFormatMask iCharMask;\r
56 CParaFormat* iParaFormat;\r
57 TParaFormatMask iParaMask;\r
58 TInt iCurrentPara;\r
59 TRgb iPrevFgColor;\r
60};\r
61\r
62#endif /* __CSIMPLE_TEXT_PARSER_H */\r