messagingappbase/smilengine/xhtml/inc/xhtmlentityconverter.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2007 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:  xhtmlentityconverter  declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef XHTML_ENTITY_CONVERTER_H
       
    21 #define XHTML_ENTITY_CONVERTER_H
       
    22 
       
    23 #include <gmxmldocument.h>
       
    24 #include <gmxmlentityconverter.h>
       
    25 
       
    26 
       
    27 /**
       
    28  *  Specific Converter for XHTML entities
       
    29  *
       
    30  *  @code
       
    31  *   ?good_class_usage_example(s)
       
    32  *  @endcode
       
    33  *
       
    34  *  @lib ?library
       
    35  *  @since S60 v3.2
       
    36  */
       
    37 NONSHARABLE_CLASS( CXhtmlEntityConverter ) : public CMDXMLEntityConverter
       
    38 {
       
    39 
       
    40 public:
       
    41    
       
    42      
       
    43 // from base class CMDXMLEntityConverter
       
    44 
       
    45     /**
       
    46      * From CMDXMLEntityConverter.
       
    47      *
       
    48      * OutputComposedTextL
       
    49      *
       
    50      * @since S60 v3.2
       
    51      * @param aComposer Composer
       
    52      * @param aTextToConvert Text to convert
       
    53      */
       
    54 	TInt OutputComposedTextL( CMDXMLComposer* aComposer, const TDesC& aTextToConvert );
       
    55 
       
    56 
       
    57 protected:
       
    58 
       
    59     /**
       
    60      * From CMDXMLEntityConverter.
       
    61      *
       
    62      * DTDEntityToText
       
    63      *
       
    64      * @since S60 v3.2
       
    65      * @param aTextToConvert Text to convert
       
    66      */
       
    67 	virtual TInt DTDEntityToText( TDes& aTextToConvert );
       
    68 
       
    69 private:
       
    70 
       
    71     /**
       
    72      * 
       
    73      *
       
    74      * @since S60 v3.2
       
    75      * @param aData ?description
       
    76      * @param aStart ?description
       
    77      * @param aLength ?description
       
    78      * @return ?description
       
    79      */	
       
    80 	TBool HandleEntity( TDes& aData, TInt aStart, TInt aLength );
       
    81 	
       
    82 	/**
       
    83      * 
       
    84      *
       
    85      * @since S60 v3.2
       
    86      * @param aEntity ?description
       
    87      * @param aEntityCode ?description
       
    88      * @return ?description
       
    89      */	
       
    90 	TBool MatchEntityCode( const TDesC& aEntity, TDes& aEntityCode );
       
    91 	
       
    92 	/**
       
    93      * 
       
    94      *
       
    95      * @since S60 v3.2
       
    96      * @param aEntityCode ?description
       
    97      * @return ?description
       
    98      */	
       
    99 	TPtrC MatchEntityString( const TDesC& aEntityCode ) const;
       
   100 };
       
   101 
       
   102 
       
   103 #endif
       
   104