1.1 --- a/epoc32/include/xml/dom/xmlengnode.inl Wed Mar 31 12:27:01 2010 +0100
1.2 +++ b/epoc32/include/xml/dom/xmlengnode.inl Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -1,25 +1,18 @@
1.4 -/*
1.5 -* Copyright (c) 2004-2005 Nokia Corporation and/or its subsidiary(-ies).
1.6 -* All rights reserved.
1.7 -* This component and the accompanying materials are made available
1.8 -* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.9 -* which accompanies this distribution, and is available
1.10 -* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 -*
1.12 -* Initial Contributors:
1.13 -* Nokia Corporation - initial contribution.
1.14 -*
1.15 -* Contributors:
1.16 -*
1.17 -* Description: Node functions implementation
1.18 -*
1.19 -*/
1.20 -
1.21 -
1.22 -
1.23 -
1.24 -
1.25 -
1.26 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
1.27 +// All rights reserved.
1.28 +// This component and the accompanying materials are made available
1.29 +// under the terms of "Eclipse Public License v1.0"
1.30 +// which accompanies this distribution, and is available
1.31 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.32 +//
1.33 +// Initial Contributors:
1.34 +// Nokia Corporation - initial contribution.
1.35 +//
1.36 +// Contributors:
1.37 +//
1.38 +// Description:
1.39 +// Node functions implementation
1.40 +//
1.41
1.42 inline TXmlEngNode::TXmlEngNode()
1.43 : iInternal(NULL) {}
1.44 @@ -43,15 +36,9 @@
1.45 inline TBool TXmlEngNode::IsSameNode(TXmlEngNode aOther) const
1.46 {return iInternal == aOther.iInternal;}
1.47
1.48 -// ------------------------------------------------------------------------
1.49 -// Moves the node to another part of the tree or another document
1.50 -// The node is unliked from current postion (if any) and appended
1.51 -// to the its new parent.
1.52 -//
1.53 -// @note
1.54 -// In many cases this method call should be followed by ReconcileNamespacesL() on the moved node
1.55 -// ------------------------------------------------------------------------
1.56 -//
1.57 +inline TXmlEngNode TXmlEngNode::MoveToL(TXmlEngNode aParent)
1.58 + {return aParent.AppendChildL(Unlink());}
1.59 +
1.60 inline TXmlEngNode TXmlEngNode::MoveTo(TXmlEngNode aParent)
1.61 {return aParent.AppendChildL(Unlink());}
1.62
1.63 @@ -85,10 +72,11 @@
1.64 inline TXmlEngCDATASection& TXmlEngNode::AsCDATASection() const
1.65 {return *reinterpret_cast<TXmlEngCDATASection*>(const_cast<TXmlEngNode*>(this));}
1.66
1.67 -
1.68 inline TXmlEngEntityReference& TXmlEngNode::AsEntityReference() const
1.69 {return *reinterpret_cast<TXmlEngEntityReference*>(const_cast<TXmlEngNode*>(this));}
1.70
1.71 inline TXmlEngProcessingInstruction& TXmlEngNode::AsProcessingInstruction() const
1.72 {return *reinterpret_cast<TXmlEngProcessingInstruction*>(const_cast<TXmlEngNode*>(this));}
1.73
1.74 +inline TXmlEngDocumentFragment& TXmlEngNode::AsDocumentFragment() const
1.75 + {return *reinterpret_cast<TXmlEngDocumentFragment*>(const_cast<TXmlEngNode*>(this));}