|         |      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:   | 
|         |     15 * | 
|         |     16 */ | 
|         |     17  | 
|         |     18  | 
|         |     19 #ifndef MLEQCOMPDATA2DHUIML_H | 
|         |     20 #define MLEQCOMPDATA2DHUIML_H | 
|         |     21  | 
|         |     22 #include <string> | 
|         |     23 #include <vector> | 
|         |     24 #include <iosfwd> | 
|         |     25 #include "MLEqCompData.h" | 
|         |     26 using namespace std; | 
|         |     27  | 
|         |     28  | 
|         |     29 class TEqLayoutSaxWriter; | 
|         |     30  | 
|         |     31 /** | 
|         |     32 *  MLEqCompDataToDHuiML | 
|         |     33 *  Generate a CDL interface for a layout | 
|         |     34 */ | 
|         |     35 class MLEqCompDataToDHuiML | 
|         |     36 	{ | 
|         |     37 public: | 
|         |     38 	static int Process(const vector<string>& args); | 
|         |     39 	static void ShowHelp(ostream& stream); | 
|         |     40  | 
|         |     41 	static void LayoutTablesToDeclarative(TEqLayoutSaxWriter& aSaxWriter, const TMLEqCompData& aLayout); | 
|         |     42 	static void LayoutComponentsToDeclarative(TEqLayoutSaxWriter& aSaxWriter, const TMLEqCompData& aLayout); | 
|         |     43  | 
|         |     44 	static void AddTableToDeclarative(TEqLayoutSaxWriter& aSaxWriter, TMLEqCompDataTable& aTable); | 
|         |     45 	static void AddLineToDeclarative(TEqLayoutSaxWriter& aSaxWriter, TMLEqCompDataLine& aLine, int aOptionSetId); | 
|         |     46 	static void AddCellToDeclarative(TEqLayoutSaxWriter& aSaxWriter, TMLEqCompDataValues& aValues, const string& aCellName, int aOptionSetId); | 
|         |     47 	static void AddFormulaToDeclarative(TEqLayoutSaxWriter& aSaxWriter, const TMLEqCompDataFormula& aFormula); | 
|         |     48  | 
|         |     49 private: | 
|         |     50 	static void ConvertPositionValueStr(std::string& aValueStr); | 
|         |     51 	}; | 
|         |     52  | 
|         |     53  | 
|         |     54 #endif // MLEQCOMPDATA2DHUIML_H |