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