xml/legacyminidomparser/XMLDom/INC/GMXMLText.h
changeset 34 c7e9f1c97567
parent 25 417699dc19c9
child 36 172b09aa4eb6
equal deleted inserted replaced
25:417699dc19c9 34:c7e9f1c97567
     1 // Copyright (c) 2001-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 "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18 */
       
    19 
       
    20 #ifndef __GMXMLTEXT_H__
       
    21 #define __GMXMLTEXT_H__
       
    22 
       
    23 #include <e32base.h>
       
    24 #include <gmxmlcharacterdata.h>
       
    25 
       
    26 class CMDXMLText : public CMDXMLCharacterData
       
    27 /** A text section of an XML file.
       
    28 
       
    29 Objects of this type hold text. They cannot have child nodes. 
       
    30 @publishedPartner
       
    31 @released
       
    32 */
       
    33 {
       
    34 public:
       
    35 	/** Allocates and constructs a new CMDXMLText, leaving the object on the cleanup 
       
    36 	stack.
       
    37 	
       
    38 	@param aOwnerDocument Pointer to the document at the root of the DOM tree
       
    39 	@return The new CMDXMLText
       
    40 	@leave KErrNoMemory Out of memory */
       
    41 	IMPORT_C static CMDXMLText* NewLC( CMDXMLDocument* aOwnerDocument );
       
    42 
       
    43 	/** Allocates and constructs a new CMDXMLText.
       
    44 	
       
    45 	@param aOwnerDocument Pointer to the document at the root of the DOM tree
       
    46 	@return The new CMDXMLText 
       
    47 	@leave KErrNoMemory Out of memory */
       
    48 	IMPORT_C static CMDXMLText* NewL( CMDXMLDocument* aOwnerDocument );
       
    49 
       
    50 	/** Destructor. */
       
    51 	IMPORT_C virtual ~CMDXMLText();
       
    52 
       
    53 
       
    54 protected:
       
    55 	/*
       
    56 	 * Constructor
       
    57 	 * @param aOwnerDocument The document at the root of the DOM tree
       
    58 	 */
       
    59 	CMDXMLText( CMDXMLDocument* aOwnerDocument );
       
    60 };
       
    61 
       
    62 
       
    63 #endif