+++ /dev/null
-/*******************************************************************\r
- *\r
- * File: CSimpleTextParser.h\r
- *\r
- * Author: Peter van Sebille (peter@yipton.net)\r
- *\r
- * Modified/adapted for picodriveN by notaz, 2006\r
- *\r
- * (c) Copyright 2006, notaz\r
- * (c) Copyright 2002, Peter van Sebille\r
- * All Rights Reserved\r
- *\r
- *******************************************************************/\r
-\r
-#ifndef __CSIMPLE_TEXT_PARSER_H\r
-#define __CSIMPLE_TEXT_PARSER_H\r
-\r
-#include <e32def.h>\r
-#include <txtrich.h> // CRichText\r
-#include <eikrted.h> // CEikRichTextEditor\r
-\r
-class CSimpleTextFormatParser : public CBase\r
-{\r
-public:\r
- static CSimpleTextFormatParser* NewLC();\r
- void ParseL(const TDesC& aPSTText, CRichText& aRichText);\r
-\r
-protected:\r
- CSimpleTextFormatParser(){}\r
- ~CSimpleTextFormatParser();\r
- void ConstructL();\r
-\r
- void ParseTagL(const TDesC& aTag);\r
-\r
- TRgb ForegroundColor();\r
- void SetBold(TBool aEnable=ETrue);\r
- void SetItalic(TBool aEnable=ETrue);\r
- void SetUnderLine(TBool aEnable=ETrue);\r
- void SetFontHeight(TInt aHeight);\r
- void SetFontName(const TDesC& aName);\r
- void SetHiddenText(TBool aEnable=ETrue);\r
- void SetForegroundColor(const TRgb& aColor);\r
-\r
- void NewParagraph();\r
- void SetAlignment(CParaFormat::TAlignment aAlignment);\r
- void SetBackgroundColor(const TRgb& aColor);\r
-\r
- void AppendTextL(const TDesC& aText);\r
- TInt TextPos();\r
- TInt ParaPos();\r
-\r
-\r
- CRichText* iRichText;\r
- TCharFormat iCharFormat;\r
- TCharFormatMask iCharMask;\r
- CParaFormat* iParaFormat;\r
- TParaFormatMask iParaMask;\r
- TInt iCurrentPara;\r
- TRgb iPrevFgColor;\r
-};\r
-\r
-#endif /* __CSIMPLE_TEXT_PARSER_H */\r