svgtopt/SVG/SVGImpl/inc/SVGRadialGradientElementImpl.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 source file
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CSVGRADIALGRADIENTELEMENTIMPL_H
       
    20 #define CSVGRADIALGRADIENTELEMENTIMPL_H
       
    21 
       
    22 #include "SVGGradientElementImpl.h"
       
    23 
       
    24 /**
       
    25  * Class description goes here.
       
    26  *
       
    27  *  @lib SVGEngine.lib
       
    28  *  @since 1.0
       
    29  */
       
    30 class CSvgRadialGradientElementImpl : public CSvgGradientElementImpl
       
    31     {
       
    32     public:
       
    33 
       
    34         // Constructor/deconstructor
       
    35 
       
    36         /**
       
    37          * Need method description
       
    38          *
       
    39          * @since 1.0
       
    40          * @param 
       
    41          * @return
       
    42          */
       
    43         static CSvgRadialGradientElementImpl* NewL( const TUint8 aElemID,
       
    44                                           CSvgDocumentImpl* aDoc );
       
    45 
       
    46         /**
       
    47          * Need method description
       
    48          *
       
    49          * @since 1.0
       
    50          * @param 
       
    51          * @return
       
    52          */
       
    53         MGfxPaint *PaintAttribute();
       
    54 
       
    55         /**
       
    56          * Need method description
       
    57          *
       
    58          * @since 1.0
       
    59          * @param 
       
    60          * @return
       
    61          */
       
    62         static CSvgRadialGradientElementImpl* NewLC( const TUint8 aElemID,
       
    63                                            CSvgDocumentImpl* aDoc );
       
    64 
       
    65 
       
    66         /**
       
    67          * Need method description
       
    68          *
       
    69          * @since 1.0
       
    70          * @param 
       
    71          * @return
       
    72          */
       
    73         virtual                     ~CSvgRadialGradientElementImpl();
       
    74 
       
    75         // From SVG DOM
       
    76 
       
    77         /**
       
    78          * Need method description
       
    79          *
       
    80          * @since 1.0
       
    81          * @param 
       
    82          * @return
       
    83          */
       
    84         TInt                        GetAttributeFloat( const TInt aNameId,
       
    85 													   TFloatFixPt& aValue );
       
    86 
       
    87         /**
       
    88          * Need method description
       
    89          *
       
    90          * @since 1.0
       
    91          * @param
       
    92          * @return
       
    93          */
       
    94         TInt                        SetAttributeFloatL( const TInt aNameId,
       
    95                                                         const TFloatFixPt aValue );
       
    96 
       
    97         // From MXmlElement API
       
    98         /**
       
    99          * Need method description
       
   100          *
       
   101          * @since 1.0
       
   102          * @param 
       
   103          * @return
       
   104          */
       
   105         TInt SetAttributeL( const TDesC& aName, const TDesC& aValue );
       
   106 
       
   107 		void Print( TBool aIsEncodeOn );
       
   108 		
       
   109     private:
       
   110         TGfxRadialGradientPaint iGfxRadialPaint;
       
   111        
       
   112         /**
       
   113          * Need method description
       
   114          *
       
   115          * @since 1.0
       
   116          * @param 
       
   117          * @return
       
   118          */
       
   119         void                        ConstructL( const TUint8 aElemID );
       
   120 
       
   121         /**
       
   122          * Need method description
       
   123          *
       
   124          * @since 1.0
       
   125          * @param 
       
   126          * @return
       
   127          */
       
   128                                     CSvgRadialGradientElementImpl( CSvgDocumentImpl* aDoc );
       
   129     };
       
   130 
       
   131 #endif /* CSVGRADIALGRADIENTELEMENTIMPL_H */