equal
deleted
inserted
replaced
25 |
25 |
26 #include "LayoutCompilerErr.h" |
26 #include "LayoutCompilerErr.h" |
27 #include "CodeGenConsts.h" |
27 #include "CodeGenConsts.h" |
28 #include "UsefulDefinitions.h" |
28 #include "UsefulDefinitions.h" |
29 |
29 |
30 #include "Akndef.hrh" |
30 #include <AknDef.hrh> |
31 |
31 |
32 #include <set> |
32 #include <set> |
33 #include <sstream> |
33 #include <sstream> |
34 #include <iostream> |
34 #include <iostream> |
35 #include <algorithm> |
35 #include <algorithm> |
104 : |
104 : |
105 iFormulaString(aOther.iFormulaString), |
105 iFormulaString(aOther.iFormulaString), |
106 iZoomId(aOther.iZoomId), |
106 iZoomId(aOther.iZoomId), |
107 iFormulaTree(aOther.iFormulaTree) |
107 iFormulaTree(aOther.iFormulaTree) |
108 { |
108 { |
109 int x = 0; |
109 |
110 } |
110 } |
111 |
111 |
112 const TMLEqCompDataFormula& TMLEqCompDataFormula::operator=(const TMLEqCompDataFormula& aOther) |
112 const TMLEqCompDataFormula& TMLEqCompDataFormula::operator=(const TMLEqCompDataFormula& aOther) |
113 { |
113 { |
114 if(this == &aOther) |
114 if(this == &aOther) |
320 // TMLEqCompDataLine |
320 // TMLEqCompDataLine |
321 // |
321 // |
322 |
322 |
323 TMLEqCompDataLine::TMLEqCompDataLine() |
323 TMLEqCompDataLine::TMLEqCompDataLine() |
324 : iId(0), |
324 : iId(0), |
325 iIsUnique(true), |
325 iName(KEqCompDataUnknown), |
326 iIsMirroredHorizontally(false), |
|
327 iType(EUnknownComponent), |
326 iType(EUnknownComponent), |
328 iName(KEqCompDataUnknown), |
|
329 iDrawingOrder(-1), |
327 iDrawingOrder(-1), |
330 iParentTable(0), |
328 iParentTable(0), |
331 iParentInfo(0), |
329 iParentInfo(0), |
|
330 iIsUnique(true), |
|
331 iGlobalIndex(0), |
|
332 iIsMirroredHorizontally(false), |
332 // iAttributeInfo(0), |
333 // iAttributeInfo(0), |
333 iNumCols(1), |
334 iNumCols(1), |
334 iNumRows(1), |
335 iNumRows(1) |
335 iGlobalIndex(0) |
336 |
336 { |
337 { |
337 |
338 |
338 } |
339 } |
339 |
340 |
340 TMLEqCompDataLine::TMLEqCompDataLine(const TMLEqCompDataLine& aOther) |
341 TMLEqCompDataLine::TMLEqCompDataLine(const TMLEqCompDataLine& aOther) |
736 // TMLEqCompDataTable |
737 // TMLEqCompDataTable |
737 // |
738 // |
738 |
739 |
739 TMLEqCompDataTable::TMLEqCompDataTable(TMLEqCompData* aTables) |
740 TMLEqCompDataTable::TMLEqCompDataTable(TMLEqCompData* aTables) |
740 : |
741 : |
|
742 iId(0), |
|
743 iTables(aTables), |
|
744 iParentLine(NULL) |
|
745 { |
|
746 } |
|
747 |
|
748 TMLEqCompDataTable::TMLEqCompDataTable(TMLEqCompData* aTables, const TMLEqCompDataTable& aOther) |
|
749 : |
|
750 iId(aOther.iId), |
741 iTables(aTables), |
751 iTables(aTables), |
742 iParentLine(NULL), |
752 iParentLine(NULL), |
743 iId(0) |
753 iParentName(aOther.iParentName) |
744 { |
|
745 } |
|
746 |
|
747 TMLEqCompDataTable::TMLEqCompDataTable(TMLEqCompData* aTables, const TMLEqCompDataTable& aOther) |
|
748 : |
|
749 iTables(aTables), |
|
750 iParentLine(NULL), |
|
751 iParentName(aOther.iParentName), |
|
752 iId(aOther.iId) |
|
753 { |
754 { |
754 for (const_iterator pOptionSet = aOther.begin(); pOptionSet != aOther.end(); ++pOptionSet) |
755 for (const_iterator pOptionSet = aOther.begin(); pOptionSet != aOther.end(); ++pOptionSet) |
755 { |
756 { |
756 insert(make_pair(pOptionSet->first, TMLEqCompDataTableOptionSet(pOptionSet->second))); |
757 insert(make_pair(pOptionSet->first, TMLEqCompDataTableOptionSet(pOptionSet->second))); |
757 } |
758 } |
1019 TMLEqParChildComponent* parChild = iParChildComponents[line.iId]; |
1020 TMLEqParChildComponent* parChild = iParChildComponents[line.iId]; |
1020 int parentId = parChild->iParentId; |
1021 int parentId = parChild->iParentId; |
1021 if(parentId != 0) |
1022 if(parentId != 0) |
1022 { |
1023 { |
1023 TMLEqCompDataTable* parentTable = FindTable(parentId); |
1024 TMLEqCompDataTable* parentTable = FindTable(parentId); |
1024 TMLEqCompDataLine* parentLine = iComponents[parentId]; |
|
1025 if(parentTable) |
1025 if(parentTable) |
1026 { |
1026 { |
1027 line.iParentTable = parentTable; |
1027 line.iParentTable = parentTable; |
1028 |
1028 |
1029 // iterate through the line and populate the table option sets as needed |
1029 // iterate through the line and populate the table option sets as needed |