xml/legacyminidomparser/xmldom/src/gmxmltext.cpp
changeset 34 c7e9f1c97567
parent 0 e35f40988205
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 // MDXMLText.cpp
       
    15 // @file
       
    16 // This class represents a text section of an XML file -
       
    17 // basically it is a chunk of text which has a place in the
       
    18 // object tree but has no children.
       
    19 // 
       
    20 //
       
    21 
       
    22 #include <f32file.h>
       
    23 
       
    24 #include <gmxmldomconstants.h>
       
    25 #include <gmxmlnode.h>
       
    26 #include <gmxmlcharacterdata.h>
       
    27 #include <gmxmltext.h>
       
    28 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS 
       
    29 #include "gmxmldummydtd.h"
       
    30 #endif
       
    31 
       
    32 EXPORT_C CMDXMLText* CMDXMLText::NewLC( CMDXMLDocument* aOwnerDocument )
       
    33 //
       
    34 // Two phase constructor
       
    35 // @param aOwnerDocument Pointer to the document at the root of the DOM tree
       
    36 // @return Created CMDXMLText
       
    37 // @leave can Leave due to OOM
       
    38 //
       
    39 	{
       
    40 	CMDXMLText* secPtr = new(ELeave) CMDXMLText( aOwnerDocument );
       
    41 	CleanupStack::PushL( secPtr );
       
    42 	const TDesC& nodeName = KXMLTextNodeName;
       
    43 	secPtr->SetNodeNameL( nodeName );
       
    44 	return secPtr;
       
    45 	}
       
    46 
       
    47 EXPORT_C CMDXMLText* CMDXMLText::NewL( CMDXMLDocument* aOwnerDocument )
       
    48 //
       
    49 // Two phase constructor
       
    50 // @param aOwnerDocument Pointer to the document at the root of the DOM tree
       
    51 // @return Created CMDXMLText
       
    52 // @leave can Leave due to OOM
       
    53 //
       
    54 	{
       
    55 	CMDXMLText* secPtr = CMDXMLText::NewLC( aOwnerDocument );
       
    56 	CleanupStack::Pop(1); // secPtr
       
    57 	return secPtr;
       
    58 	}
       
    59 
       
    60 CMDXMLText::CMDXMLText( CMDXMLDocument* aOwnerDocument ):
       
    61 CMDXMLCharacterData( ETextNode, aOwnerDocument)
       
    62 //
       
    63 // Constructor
       
    64 // @param aOwnerDocument The document at the root of the DOM tree
       
    65 //
       
    66 	{
       
    67 	}
       
    68 
       
    69 EXPORT_C CMDXMLText::~CMDXMLText()
       
    70 	{
       
    71 	}
       
    72 
       
    73 
       
    74 
       
    75 // End Of File