1 /*******************************************************************
\r
3 * File: CSimpleTextParser.h
\r
5 * Author: Peter van Sebille (peter@yipton.net)
\r
7 * Modified/adapted for picodriveN by notaz, 2006
\r
9 * (c) Copyright 2006, notaz
\r
10 * (c) Copyright 2002, Peter van Sebille
\r
11 * All Rights Reserved
\r
13 *******************************************************************/
\r
15 #ifndef __CSIMPLE_TEXT_PARSER_H
\r
16 #define __CSIMPLE_TEXT_PARSER_H
\r
19 #include <txtrich.h> // CRichText
\r
20 #include <eikrted.h> // CEikRichTextEditor
\r
22 class CSimpleTextFormatParser : public CBase
\r
25 static CSimpleTextFormatParser* NewLC();
\r
26 void ParseL(const TDesC& aPSTText, CRichText& aRichText);
\r
29 CSimpleTextFormatParser(){}
\r
30 ~CSimpleTextFormatParser();
\r
33 void ParseTagL(const TDesC& aTag);
\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
44 void NewParagraph();
\r
45 void SetAlignment(CParaFormat::TAlignment aAlignment);
\r
46 void SetBackgroundColor(const TRgb& aColor);
\r
48 void AppendTextL(const TDesC& aText);
\r
53 CRichText* iRichText;
\r
54 TCharFormat iCharFormat;
\r
55 TCharFormatMask iCharMask;
\r
56 CParaFormat* iParaFormat;
\r
57 TParaFormatMask iParaMask;
\r
62 #endif /* __CSIMPLE_TEXT_PARSER_H */
\r