messagingappbase/smilengine/xhtml/src/xhtmlstackmanager.cpp
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2007 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:   Provides class methods of classes that are stored to CXhtmlStack.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include "xhtmlstack.h"
       
    21 #include "xhtmlstackmanager.h"
       
    22 
       
    23 
       
    24 // ---------------------------------------------------------
       
    25 // CXhtmlStackManager::NewL
       
    26 // ---------------------------------------------------------
       
    27 //
       
    28 CXhtmlStackManager* CXhtmlStackManager::NewL()
       
    29 	{
       
    30 	CXhtmlStackManager* self = new(ELeave) CXhtmlStackManager();
       
    31 	CleanupStack::PushL( self );
       
    32 	self->ConstructL();
       
    33 	CleanupStack::Pop( self ); 
       
    34 	return self;
       
    35 	};
       
    36 
       
    37 // ---------------------------------------------------------
       
    38 // CXhtmlStackManager::~CXhtmlStackManager 
       
    39 // ---------------------------------------------------------
       
    40 //
       
    41 CXhtmlStackManager::~CXhtmlStackManager()
       
    42 	{
       
    43 	delete iStyleStack;
       
    44 	delete iParaStack;
       
    45 	delete iListStack;
       
    46 	}
       
    47 
       
    48 // ---------------------------------------------------------
       
    49 // CXhtmlStackManager::CXhtmlStackManager
       
    50 // ---------------------------------------------------------
       
    51 //
       
    52 CXhtmlStackManager::CXhtmlStackManager( )
       
    53 	{
       
    54 	}
       
    55 
       
    56 // ---------------------------------------------------------
       
    57 // CXhtmlStackManager::ConstructL
       
    58 // ---------------------------------------------------------
       
    59 //
       
    60 void CXhtmlStackManager::ConstructL()
       
    61 	{
       
    62 	iStyleStack = CXhtmlStack<TXhtmlStyleInfo>::NewL();
       
    63 	iParaStack = CXhtmlStack<TXhtmlParaInfo>::NewL();
       
    64 	iListStack = CXhtmlStack<TXhtmlListInfo>::NewL();
       
    65 	}
       
    66