equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __MPARSER_H__ |
|
20 #define __MPARSER_H__ |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <e32std.h> |
|
24 |
|
25 class CRichText; |
|
26 class TCharFormat; |
|
27 |
|
28 /** |
|
29 * Implement ParseThisText() in order to parse text |
|
30 * @publishedAll |
|
31 * @released |
|
32 */ |
|
33 class MParser |
|
34 { |
|
35 public: |
|
36 virtual TBool ParseThisText(const CRichText& aTextObj, |
|
37 TBool aAllowBack, |
|
38 TInt aStartScan, |
|
39 TInt aScanLength, |
|
40 TInt& aStartTag, |
|
41 TInt& aTagLength) = 0; |
|
42 |
|
43 virtual const TDesC& CreateDoItText(const CRichText& aTextObj, |
|
44 TInt aStartText, |
|
45 TInt aLength) = 0; |
|
46 |
|
47 virtual void ActivateThisTextL(const CRichText& aTextObj, |
|
48 TInt aStartText, |
|
49 TInt aLength) = 0; |
|
50 |
|
51 IMPORT_C virtual TBool ReformatOnRecognise() const; |
|
52 |
|
53 IMPORT_C virtual TBool ReformatOnRollover() const; |
|
54 |
|
55 IMPORT_C virtual void GetRecogniseFormat(TCharFormat& aFormat); |
|
56 |
|
57 IMPORT_C virtual void GetRolloverFormat(TCharFormat& aFormat); |
|
58 |
|
59 IMPORT_C virtual TBool ConfirmCursorOverTag(const CRichText& aTextObj, |
|
60 TInt aTagStart, |
|
61 TInt aTagLen, |
|
62 TInt aCurPos); |
|
63 |
|
64 IMPORT_C virtual void MParser_Reserved_2(); |
|
65 |
|
66 //++ ADD COMMENT HERE (poss. provide default implement that panics) |
|
67 virtual void Release() = 0; |
|
68 }; |
|
69 |
|
70 #endif |