31 //Function declarations |
31 //Function declarations |
32 LOCAL_C void SetPropertiesL( const TXnPropertyProxy aTable[], TInt aCount, TAny* aData ); |
32 LOCAL_C void SetPropertiesL( const TXnPropertyProxy aTable[], TInt aCount, TAny* aData ); |
33 LOCAL_C void SetCommonPropertiesL( TAny* aData ); |
33 LOCAL_C void SetCommonPropertiesL( TAny* aData ); |
34 LOCAL_C void SetElementWithTextPropertiesL( TAny* aData ); |
34 LOCAL_C void SetElementWithTextPropertiesL( TAny* aData ); |
35 LOCAL_C void SetTextElementPropertiesL( TAny* aData ); |
35 LOCAL_C void SetTextElementPropertiesL( TAny* aData ); |
36 LOCAL_C void SetGridAndListPropertiesL( TAny* aData ); |
|
37 LOCAL_C void SetDataGridAndGridPropertiesL( TAny* aData ); |
|
38 LOCAL_C void SetViewsAndViewPropertiesL( TAny* aData ); |
36 LOCAL_C void SetViewsAndViewPropertiesL( TAny* aData ); |
39 LOCAL_C void SetViewPropertiesL( TAny* aData ); |
37 LOCAL_C void SetViewPropertiesL( TAny* aData ); |
40 |
38 |
41 const TXnElementVisitor KXnElementVisitorTable[]= |
39 const TXnElementVisitor KXnElementVisitorTable[]= |
42 { |
40 { |
54 { (const void*)&KNote, &SetTextElementPropertiesL, EEmpty}, |
52 { (const void*)&KNote, &SetTextElementPropertiesL, EEmpty}, |
55 { (const void*)&KUiDefinition, NULL, EEmpty}, |
53 { (const void*)&KUiDefinition, NULL, EEmpty}, |
56 { (const void*)&KApplication, NULL, EEmpty}, |
54 { (const void*)&KApplication, NULL, EEmpty}, |
57 { (const void*)&KDesc, NULL, EPCData}, |
55 { (const void*)&KDesc, NULL, EPCData}, |
58 { (const void*)&KButton, &SetTextElementPropertiesL, EEmpty}, |
56 { (const void*)&KButton, &SetTextElementPropertiesL, EEmpty}, |
59 { (const void*)&KGrid, &SetDataGridAndGridPropertiesL, EEmpty}, |
|
60 { (const void*)&KListItem, &SetElementWithTextPropertiesL, EEmpty}, |
|
61 { (const void*)&KDataGrid, &SetDataGridAndGridPropertiesL, EEmpty}, |
|
62 { (const void*)&KGridCellTemplate, &SetCommonPropertiesL, EEmpty}, |
|
63 { (const void*)&KList, &SetGridAndListPropertiesL, EEmpty}, |
|
64 { (const void*)&KDataList, &SetGridAndListPropertiesL, EEmpty}, |
|
65 { (const void*)&KListRowTemplate, &SetCommonPropertiesL, EEmpty}, |
|
66 { (const void*)&KMenuBar, NULL, EEmpty}, |
57 { (const void*)&KMenuBar, NULL, EEmpty}, |
67 { (const void*)&KMenu, NULL, EEmpty}, |
58 { (const void*)&KMenu, NULL, EEmpty}, |
68 { (const void*)&KMenuItem, NULL, EEmpty}, |
59 { (const void*)&KMenuItem, NULL, EEmpty}, |
69 { (const void*)&KText, &SetTextElementPropertiesL, EPCData}, |
60 { (const void*)&KText, &SetTextElementPropertiesL, EPCData}, |
70 { (const void*)&KImage, &SetCommonPropertiesL, EEmpty}, |
61 { (const void*)&KImage, &SetCommonPropertiesL, EEmpty}, |
139 LOCAL_C void SetTextElementPropertiesL( TAny* aData ) |
130 LOCAL_C void SetTextElementPropertiesL( TAny* aData ) |
140 { |
131 { |
141 SetElementWithTextPropertiesL( aData ); |
132 SetElementWithTextPropertiesL( aData ); |
142 TInt count( sizeof (KXnTextElementPropertyTable) / sizeof(TXnPropertyProxy) ); |
133 TInt count( sizeof (KXnTextElementPropertyTable) / sizeof(TXnPropertyProxy) ); |
143 SetPropertiesL( KXnTextElementPropertyTable, count, aData ); |
134 SetPropertiesL( KXnTextElementPropertyTable, count, aData ); |
144 } |
135 } |
145 |
|
146 LOCAL_C void SetGridAndListPropertiesL( TAny* aData ) |
|
147 { |
|
148 SetCommonPropertiesL( aData ); |
|
149 TInt count( sizeof (KXnGridAndListPropertyTable) / sizeof(TXnPropertyProxy) ); |
|
150 SetPropertiesL( KXnGridAndListPropertyTable, count, aData ); |
|
151 } |
|
152 |
|
153 LOCAL_C void SetDataGridAndGridPropertiesL( TAny* aData ) |
|
154 { |
|
155 SetGridAndListPropertiesL( aData ); |
|
156 TInt count( sizeof (KXnDataGridAndGridPropertyTable) / sizeof(TXnPropertyProxy) ); |
|
157 SetPropertiesL( KXnDataGridAndGridPropertyTable, count, aData ); |
|
158 } |
|
159 |
|
160 |
136 |
161 LOCAL_C void SetViewsAndViewPropertiesL( TAny* aData ) |
137 LOCAL_C void SetViewsAndViewPropertiesL( TAny* aData ) |
162 { |
138 { |
163 SetCommonPropertiesL( aData ); |
139 SetCommonPropertiesL( aData ); |
164 TInt count( sizeof (KXnViewsAndViewPropertyTable) / sizeof(TXnPropertyProxy) ); |
140 TInt count( sizeof (KXnViewsAndViewPropertyTable) / sizeof(TXnPropertyProxy) ); |