svgtopt/SVG/SVGImpl/inc/SVGDefsElementImpl.h
changeset 0 d46562c3d99d
equal deleted inserted replaced
-1:000000000000 0:d46562c3d99d
       
     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_CSVGDEFSELEMENTIMPL_
       
    20 #define _INC_CSVGDEFSELEMENTIMPL_
       
    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 CSvgDefsElementImpl : 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 CSvgDefsElementImpl* 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 CSvgDefsElementImpl* 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                     ~CSvgDefsElementImpl();
       
    71 
       
    72 
       
    73         /**
       
    74          * Need method description
       
    75          *
       
    76          * @since 1.0
       
    77          * @param
       
    78          * @return
       
    79          */
       
    80         TInt                        SetAttributeL( const TDesC& aName,
       
    81                                                    const TDesC& aValue );
       
    82 
       
    83         // From CSvgElementImpl
       
    84 
       
    85         /**
       
    86          * Need method description
       
    87          *
       
    88          * @since 1.0
       
    89          * @param
       
    90          * @return
       
    91          */
       
    92         MXmlElement*        CloneL(MXmlElement* aParentElement);
       
    93 
       
    94 
       
    95         /**
       
    96          * Need method description
       
    97          *
       
    98          * @since 1.0
       
    99          * @param
       
   100          * @return
       
   101          */
       
   102         TBool                       DrawL( CGfx2dGc* aGc,
       
   103                                            CSvgElementImpl* aElement );
       
   104 
       
   105         // From MXmlElementOpt API
       
   106 
       
   107         /**
       
   108          * Need method description
       
   109          *
       
   110          * @since 1.0
       
   111          * @param
       
   112          * @return
       
   113          */
       
   114         TInt                        GetAttributeInt( const TInt aNameId,
       
   115                                                      TInt32& aValue );
       
   116 		
       
   117 		TInt						GetAttributeFloat( const TInt aNameId,
       
   118 														TFloatFixPt& aValue);
       
   119 		void Print( TBool aIsEncodeOn );
       
   120 		
       
   121     private:
       
   122 
       
   123         /**
       
   124          * Need method description
       
   125          *
       
   126          * @since 1.0
       
   127          * @param
       
   128          * @return
       
   129          */
       
   130         void                        ConstructL( const TUint8 aElemID );
       
   131 
       
   132 
       
   133         /**
       
   134          * Need method description
       
   135          *
       
   136          * @since 1.0
       
   137          * @param
       
   138          * @return
       
   139          */
       
   140                                     CSvgDefsElementImpl( CSvgDocumentImpl* aDoc );
       
   141     };
       
   142 
       
   143 #endif