epoc32/include/mparser.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef __MPARSER_H__
    17 #define __MPARSER_H__
    18 
    19 #include <e32base.h>
    20 #include <e32std.h>
    21 
    22 class CRichText;
    23 class TCharFormat;
    24 
    25 /**
    26  * @internalTechnology
    27  * Internal to Symbian
    28  */
    29 class MParser
    30 	{
    31 public:
    32 	virtual TBool ParseThisText(const CRichText& aTextObj,
    33 								TBool aAllowBack,
    34 								TInt aStartScan,
    35 								TInt aScanLength,
    36 								TInt& aStartTag,
    37 								TInt& aTagLength) = 0;
    38 
    39 	virtual const TDesC& CreateDoItText(const CRichText& aTextObj,
    40 										TInt aStartText,
    41 										TInt aLength) = 0;
    42 
    43 	virtual void ActivateThisTextL(const CRichText& aTextObj,
    44 								   TInt aStartText,
    45 								   TInt aLength) = 0;
    46 
    47 	IMPORT_C virtual TBool ReformatOnRecognise() const;
    48 
    49 	IMPORT_C virtual TBool ReformatOnRollover() const;
    50 
    51 	IMPORT_C virtual void GetRecogniseFormat(TCharFormat& aFormat);
    52 
    53 	IMPORT_C virtual void GetRolloverFormat(TCharFormat& aFormat);
    54 
    55 	IMPORT_C virtual TBool ConfirmCursorOverTag(const CRichText& aTextObj,
    56 												TInt aTagStart,
    57 												TInt aTagLen,
    58 												TInt aCurPos);
    59 
    60 	IMPORT_C virtual void MParser_Reserved_2();
    61 
    62 	//++ ADD COMMENT HERE (poss. provide default implement that panics)
    63 	virtual void Release() = 0;
    64 	};
    65 
    66 #endif