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