svgtopt/SVG/SVGImpl/inc/SVGMetadataElementImpl.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:  SVG Implementation header file
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _INC_CSVGMETADATAELEMENTIMPL_
       
    20 #define _INC_CSVGMETADATAELEMENTIMPL_
       
    21 
       
    22 #include "SVGElementImpl.h"
       
    23 #include "GfxFloatFixPt.h"
       
    24 
       
    25 class   CSvgDocumentImpl;
       
    26 
       
    27 
       
    28 /**
       
    29  * Class description goes here.
       
    30  *
       
    31  *  @lib SVGEngine.lib
       
    32  *  @since 1.0
       
    33  */
       
    34 class CSvgMetadataElementImpl : public CSvgElementImpl
       
    35     {
       
    36     public:
       
    37 
       
    38         // Constructor/deconstructor
       
    39 
       
    40 
       
    41         /**
       
    42          * Need method description
       
    43          *
       
    44          * @since 1.0
       
    45          * @param
       
    46          * @return
       
    47          */
       
    48         static CSvgMetadataElementImpl* NewL( const TUint8 aElemID,
       
    49                                               CSvgDocumentImpl* aDoc );
       
    50 
       
    51 
       
    52         /**
       
    53          * Need method description
       
    54          *
       
    55          * @since 1.0
       
    56          * @param
       
    57          * @return
       
    58          */
       
    59         static CSvgMetadataElementImpl* NewLC( const TUint8 aElemID,
       
    60                                                CSvgDocumentImpl* aDoc );
       
    61 
       
    62 
       
    63         /**
       
    64          * Need method description
       
    65          *
       
    66          * @since 1.0
       
    67          * @param
       
    68          * @return
       
    69          */
       
    70         virtual                         ~CSvgMetadataElementImpl();
       
    71 
       
    72 
       
    73         /**
       
    74          * Need method description
       
    75          *
       
    76          * @since 1.0
       
    77          * @param
       
    78          * @return
       
    79          */
       
    80         CSvgElementImpl*                SvgElementImpl();
       
    81 
       
    82         // From MXmlElement API
       
    83 
       
    84 
       
    85         /**
       
    86          * Need method description
       
    87          *
       
    88          * @since 1.0
       
    89          * @param
       
    90          * @return
       
    91          */
       
    92         TInt                            SetAttributeL( const TDesC& aName,
       
    93                                                        const TDesC& aValue );
       
    94 
       
    95 				TInt 												SetAttributeDesL( const TInt aNameId,
       
    96                                             const TDesC& aValue );
       
    97         
       
    98         TInt 												GetAttributeDes( const TInt aNameId, TPtrC16& aValue );
       
    99                                         
       
   100         // From CSvgElementImpl
       
   101 
       
   102 
       
   103         /**
       
   104          * Need method description
       
   105          *
       
   106          * @since 1.0
       
   107          * @param
       
   108          * @return
       
   109          */
       
   110         TBool                           DrawL( CGfx2dGc* aGc,
       
   111                                                CSvgElementImpl* aElement );
       
   112 
       
   113 		
       
   114 		 /**
       
   115          * Need method description
       
   116          *
       
   117          * @since 1.0
       
   118          * @param
       
   119          * @return
       
   120          */
       
   121         MXmlElement*        CloneL(MXmlElement* aParentElement);
       
   122         
       
   123         void 								CopyL( CSvgMetadataElementImpl* aDestElement );
       
   124         
       
   125 		void Print( TBool aIsEncodeOn );
       
   126 		
       
   127 				void 														SetTextL( const TDesC& aText );
       
   128 				
       
   129     private:
       
   130 
       
   131         /**
       
   132          * Need method description
       
   133          *
       
   134          * @since 1.0
       
   135          * @param
       
   136          * @return
       
   137          */
       
   138         void                            ConstructL( const TUint8 aElemID );
       
   139 
       
   140 
       
   141         /**
       
   142          * Need method description
       
   143          *
       
   144          * @since 1.0
       
   145          * @param
       
   146          * @return
       
   147          */
       
   148                                         CSvgMetadataElementImpl( CSvgDocumentImpl* aDoc );
       
   149         
       
   150         
       
   151         
       
   152         
       
   153         HBufC*                      iText;
       
   154         
       
   155     };
       
   156 
       
   157 #endif