aknlayoutcompiler/src/LayCdl2Inst.cpp
branchRCL_3
changeset 44 8b4f687b7a95
parent 1 b700e12870ca
equal deleted inserted replaced
42:01fc9b7302d1 44:8b4f687b7a95
     1 /*
     1 /*
     2 * Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   178 	aLayout.release();
   178 	aLayout.release();
   179 
   179 
   180 	iInstance = new CCdlTkInstance(iInterface);
   180 	iInstance = new CCdlTkInstance(iInterface);
   181 	iInstance->SetName(aInstName);
   181 	iInstance->SetName(aInstName);
   182 
   182 
   183 	string extraCpp("#include <aknlayout2datadef.h>\n");
   183 	string extraCpp("#include <AknLayout2DataDef.h>\n");
   184 	extraCpp += string("#include \"") + CdlTkUtil::ToLower(aBase ? aBase->FwdDeclName() : FwdDeclName()) + "\"\n";
   184 	extraCpp += string("#include \"") + CdlTkUtil::ToLower(aBase ? aBase->FwdDeclName() : FwdDeclName()) + "\"\n";
   185 	iInstance->SetExtraCpp(extraCpp);
   185 	iInstance->SetExtraCpp(extraCpp);
   186 
   186 
   187 	for (TLayout::iterator pTab = iLayout.begin(); pTab != iLayout.end(); ++pTab)
   187 	for (TLayout::iterator pTab = iLayout.begin(); pTab != iLayout.end(); ++pTab)
   188 		{
   188 		{