svgtopt/SVG/Xmldomimpl/inc/SVGXmlDocument.h
changeset 46 88edb906c587
equal deleted inserted replaced
-1:000000000000 46:88edb906c587
       
     1 /*
       
     2 * Copyright (c) 2003 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:  XML DOM Implementation header file
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SVGXMLDOCUMENT_H
       
    20 #define SVGXMLDOCUMENT_H
       
    21 
       
    22 #if !defined(__E32BASE_H__)
       
    23 #include <e32base.h>
       
    24 #endif
       
    25 
       
    26 #include "SVGXmlElement.h"
       
    27 
       
    28 
       
    29 /**
       
    30  * Class description
       
    31  */
       
    32 class MXmlDocument
       
    33     {
       
    34     public:
       
    35 
       
    36         /**
       
    37          * Create a XML element with the given tag
       
    38          *
       
    39          * @since 1.0
       
    40          * @param aTagName - A string buffer containing the name tag for the XML element
       
    41          * @return An element object as a pointer to a MXmlElement interface
       
    42          */
       
    43        virtual MXmlElement* CreateElementL( const TDesC& aTagName ) = 0;
       
    44 
       
    45 		virtual MXmlElement* CreateElementL( const TUint8 aTagName ) = 0;
       
    46 
       
    47 
       
    48         /**
       
    49          * Create an attribute for a given attribute name
       
    50          * Strictly speaking a Node element should be created for an attribute
       
    51          * This is not implemented for this release
       
    52          *
       
    53          * @since 1.0
       
    54          * @param aName - A string buffer containing the name of the attribute
       
    55          * @return An integer containing success/failure information
       
    56          */
       
    57         virtual TInt        CreateAttribute( const TDesC& aName ) = 0;
       
    58 
       
    59 
       
    60         /**
       
    61          * Find an element that matches a given element ID
       
    62          *
       
    63          * @since 1.0
       
    64          * @param aElementId - A string buffer containing the required element ID
       
    65          * @return An element object as a pointer to a MXmlElement interface
       
    66          */
       
    67         virtual MXmlElement* GetElementById( const TDesC& aElementId ) = 0;
       
    68 
       
    69 
       
    70         /**
       
    71          * Append an 'svg' element to its document
       
    72          *
       
    73          * @since 1.0
       
    74          * @param aAppendChild - An XML element pointer to the object that needs
       
    75          *                       to be appended
       
    76          * @return A pointer to the element just appended if it is an 'svg'
       
    77                    Otherwise NULL
       
    78          */
       
    79         virtual MXmlElement* AppendChildL( MXmlElement* aAppendChild ) = 0;
       
    80 
       
    81         /**
       
    82          * Method for notification from child element of AppendChildL or
       
    83          * RemoveChild.
       
    84          *
       
    85          * @since 1.0
       
    86          * @return none
       
    87          */
       
    88         virtual void ElementAppendedOrRemoved() = 0;
       
    89     };
       
    90 
       
    91 #endif      // SVGXMLDOCUMENT_H