<div dir="ltr"><div class="gmail_default" style="font-family:comic sans ms,sans-serif">Hi,</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><br></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">So the custom UI options, just like how MSO-16 and onwards, allow users to modify how the Histogram should be created. </div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">We do now have that in UI too upon selecting the Chart option from the UI in LO Calc in the sidebar pane.<br clear="all"></div><div><br></div><div><div style="font-family:comic sans ms,sans-serif" class="gmail_default"><img src="cid:ii_m0qtwgt00" alt="image.png" width="578" height="378"></div><div style="font-family:comic sans ms,sans-serif" class="gmail_default"><br></div><div style="font-family:comic sans ms,sans-serif" class="gmail_default">Now, the situation I am in is how do I sync these properties selected by the user back in the model from </div><div style="font-family:comic sans ms,sans-serif" class="gmail_default">the Template as in the chart2/source/controller/dialogs/ChartTypeDialogController.cxx<br></div><div style="font-family:comic sans ms,sans-serif" class="gmail_default"><br></div><div style="font-family:comic sans ms,sans-serif" class="gmail_default"><div style="color:rgb(204,204,204);background-color:rgb(31,31,31);font-family:"Droid Sans Mono","monospace",monospace;font-weight:normal;font-size:14px;line-height:19px;white-space:pre"><div><span style="color:rgb(86,156,214)">void</span><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(78,201,176)">HistogramChartDialogController</span><span style="color:rgb(204,204,204)">::</span><span style="color:rgb(220,220,170)">fillExtraControls</span><span style="color:rgb(204,204,204)">(</span></div><div><span style="color:rgb(204,204,204)">    </span><span style="color:rgb(86,156,214)">const</span><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(78,201,176)">rtl</span><span style="color:rgb(204,204,204)">::</span><span style="color:rgb(78,201,176)">Reference</span><span style="color:rgb(204,204,204)"><::</span><span style="color:rgb(78,201,176)">chart</span><span style="color:rgb(204,204,204)">::</span><span style="color:rgb(78,201,176)">ChartModel</span><span style="color:rgb(204,204,204)">></span><span style="color:rgb(86,156,214)">&</span><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(156,220,254)">xChartModel</span><span style="color:rgb(204,204,204)">,</span></div><div><span style="color:rgb(204,204,204)">    </span><span style="color:rgb(86,156,214)">const</span><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(78,201,176)">css</span><span style="color:rgb(204,204,204)">::</span><span style="color:rgb(78,201,176)">uno</span><span style="color:rgb(204,204,204)">::</span><span style="color:rgb(78,201,176)">Reference</span><span style="color:rgb(204,204,204)"><</span><span style="color:rgb(78,201,176)">css</span><span style="color:rgb(204,204,204)">::</span><span style="color:rgb(78,201,176)">beans</span><span style="color:rgb(204,204,204)">::</span><span style="color:rgb(78,201,176)">XPropertySet</span><span style="color:rgb(204,204,204)">></span><span style="color:rgb(86,156,214)">&</span><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(156,220,254)">xTemplateProps</span><span style="color:rgb(204,204,204)">) </span><span style="color:rgb(86,156,214)">const</span></div></div></div><div style="font-family:comic sans ms,sans-serif" class="gmail_default"><br></div><div style="font-family:comic sans ms,sans-serif" class="gmail_default">the <b>fillExtraControls</b> gets the default values from the template and the<br></div><div style="font-family:comic sans ms,sans-serif" class="gmail_default"><br></div><div style="font-family:comic sans ms,sans-serif" class="gmail_default"><div style="color:rgb(204,204,204);background-color:rgb(31,31,31);font-family:"Droid Sans Mono","monospace",monospace;font-weight:normal;font-size:14px;line-height:19px;white-space:pre"><div><span style="color:rgb(86,156,214)">void</span><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(78,201,176)">HistogramChartDialogController</span><span style="color:rgb(204,204,204)">::</span><span style="color:rgb(220,220,170)">setTemplateProperties</span><span style="color:rgb(204,204,204)">(</span></div><div>           <span style="color:rgb(86,156,214)">const</span><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(78,201,176)">css</span><span style="color:rgb(204,204,204)">::</span><span style="color:rgb(78,201,176)">uno</span><span style="color:rgb(204,204,204)">::</span><span style="color:rgb(78,201,176)">Reference</span><span style="color:rgb(204,204,204)"><</span><span style="color:rgb(78,201,176)">css</span><span style="color:rgb(204,204,204)">::</span><span style="color:rgb(78,201,176)">beans</span><span style="color:rgb(204,204,204)">::</span><span style="color:rgb(78,201,176)">XPropertySet</span><span style="color:rgb(204,204,204)">></span><span style="color:rgb(86,156,214)">&</span><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(156,220,254)">xTemplateProps</span><span style="color:rgb(204,204,204)">) </span><span style="color:rgb(86,156,214)">const</span></div></div></div><div style="font-family:comic sans ms,sans-serif" class="gmail_default"><br></div><div style="font-family:comic sans ms,sans-serif" class="gmail_default"><b>setTemplateProperties</b> sets the values selected by the user back in the template.<br><br><br></div><div style="font-family:comic sans ms,sans-serif" class="gmail_default">In the PR also <a href="https://gerrit.libreoffice.org/c/core/+/168690">https://gerrit.libreoffice.org/c/core/+/168690</a> by <i>Kurt</i> the <b>CompositeSize</b> property </div><div style="font-family:comic sans ms,sans-serif" class="gmail_default">is being used in the <span style="color:rgb(153,0,255)">chart2/source/view/charttypes/PieChart.cxx</span> <b>view.</b><br></div><br></div><div><br><div style="font-family:comic sans ms,sans-serif" class="gmail_default">But, for our case of the <i>Histogram</i>, <b>we need these properties in the model so that we can calculate the histogram again.</b><br></div><br><div style="font-family:comic sans ms,sans-serif" class="gmail_default">Both the <br><br><span style="color:rgb(153,0,255)">chart2/source/model/template/HistogramChartTypeTemplate.cxx</span><br><br></div><div style="font-family:comic sans ms,sans-serif" class="gmail_default">and<br><span style="color:rgb(153,0,255)"><br>chart2/source/model/template/HistogramChartType.cxx</span></div><br><div style="font-family:comic sans ms,sans-serif" class="gmail_default">are available in the same directory, and the Template file needs to only deal with the Template-related stuff.<br></div></div><div><br></div><div><br></div><div><div style="font-family:comic sans ms,sans-serif" class="gmail_default">I am thinking of directly syncing the properties between the model files I even tried it but doesn't seem to be right what I tried.<br></div><div style="font-family:comic sans ms,sans-serif" class="gmail_default">OR am I missing something? How these properties are accessed in the model?<br></div><br></div><div></div><div><div style="font-family:comic sans ms,sans-serif" class="gmail_default"><b>PR related to this </b> - <a href="https://gerrit.libreoffice.org/c/core/+/170909">https://gerrit.libreoffice.org/c/core/+/170909</a></div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span style="font-family:monospace"><b>Regards,</b></span></div><div><span style="font-family:monospace;color:rgb(153,0,255)"><b>Devansh</b></span><br></div></div></div></div>