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 // MDXMLComment.cpp |
|
15 // @file |
|
16 // This class represents a Comment 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 #include <gmxmldomconstants.h> |
|
24 #include <gmxmlnode.h> |
|
25 #include <gmxmlcharacterdata.h> |
|
26 #include <gmxmlcomment.h> |
|
27 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
28 #include "gmxmldummydtd.h" |
|
29 #endif |
|
30 |
|
31 EXPORT_C CMDXMLComment* CMDXMLComment::NewLC( CMDXMLDocument* aOwnerDocument ) |
|
32 // |
|
33 // Two phase constructor |
|
34 // @param aOwnerDocument Pointer to the document at the root of the DOM tree |
|
35 // @return Created CMDXMComment |
|
36 // @leave can Leave due to OOM |
|
37 // |
|
38 { |
|
39 CMDXMLComment* secPtr = new(ELeave) CMDXMLComment( aOwnerDocument ); |
|
40 CleanupStack::PushL( secPtr ); |
|
41 const TDesC& nodeName = KXMLCommentNodeName; |
|
42 secPtr->SetNodeNameL( nodeName ); |
|
43 return secPtr; |
|
44 } |
|
45 |
|
46 EXPORT_C CMDXMLComment* CMDXMLComment::NewL( CMDXMLDocument* aOwnerDocument ) |
|
47 // |
|
48 // Two phase constructor |
|
49 // @param aOwnerDocument Pointer to the document at the root of the DOM tree |
|
50 // @return Created CMDXMLElement |
|
51 // @leave can Leave due to OOM |
|
52 // |
|
53 { |
|
54 CMDXMLComment* secPtr = CMDXMLComment::NewLC( aOwnerDocument ); |
|
55 CleanupStack::Pop(1); // secPtr |
|
56 return secPtr; |
|
57 } |
|
58 |
|
59 CMDXMLComment::CMDXMLComment( CMDXMLDocument* aOwnerDocument ): |
|
60 CMDXMLCharacterData( ECommentNode, aOwnerDocument) |
|
61 // |
|
62 // Constructor |
|
63 // @param aOwnerDocument The document at the root of the DOM tree |
|
64 // |
|
65 { |
|
66 } |
|
67 |
|
68 EXPORT_C CMDXMLComment::~CMDXMLComment() |
|
69 { |
|
70 } |
|
71 |
|
72 |
|
73 |
|
74 // End Of File |
|