<div dir="ltr"><div>Hi all,</div><div><br></div><div>I try to use the <a href="https://www.openoffice.org/api/docs/common/ref/com/sun/star/awt/grid/SortableGridDataModel.html">SortableGridDataModel</a> service with the help of my own <a href="https://www.openoffice.org/api/docs/common/ref/com/sun/star/awt/grid/XMutableGridDataModel.html">XMutableGridDataModel</a> interface implementation (ie: the delegator).</div><div><br></div><div><span class="gmail-HwtZe" lang="en"><span class="gmail-jCAhz gmail-ChMk0b"><span class="gmail-ryNqvb">After creating the service </span></span></span><a href="https://www.openoffice.org/api/docs/common/ref/com/sun/star/awt/grid/SortableGridDataModel.html">SortableGridDataModel</a><span class="gmail-HwtZe" lang="en"><span class="gmail-jCAhz gmail-ChMk0b"><span class="gmail-ryNqvb">, when initializing with the </span></span></span><a href="https://www.openoffice.org/api/docs/common/ref/com/sun/star/awt/grid/XMutableGridDataModel.html">XMutableGridDataModel</a> delegator,<span class="gmail-HwtZe" lang="en"><span class="gmail-jCAhz gmail-ChMk0b"><span class="gmail-ryNqvb"> an <a href="https://www.openoffice.org/api/docs/common/ref/com/sun/star/awt/grid/XGridDataListener.html">XGridDataListener</a> listener tries to register to the delegator with the method </span></span></span><a name="MethodsDetails"></a><a name="addGridDataListener" class="gmail-membertitle">addGridDataListener(). <span class="gmail-HwtZe" lang="en"><span class="gmail-jCAhz gmail-ChMk0b"><span class="gmail-ryNqvb">But it seems that this listener does not have the required interface </span></span></span><span class="gmail-HwtZe" lang="en"><span class="gmail-jCAhz gmail-ChMk0b"><span class="gmail-ryNqvb"></span></span></span></a><a href="https://www.openoffice.org/api/docs/common/ref/com/sun/star/awt/grid/XGridDataListener.html">XGridDataListener</a><span class="gmail-HwtZe" lang="en"><span class="gmail-jCAhz gmail-ChMk0b"><span class="gmail-ryNqvb"> (ie: getTypes() does not return </span></span></span><span class="gmail-HwtZe" lang="en"><span class="gmail-jCAhz gmail-ChMk0b"><span class="gmail-ryNqvb"><a href="https://www.openoffice.org/api/docs/common/ref/com/sun/star/awt/grid/XGridDataListener.html">XGridDataListener</a>)</span></span></span></div><div><a name="addGridDataListener" class="gmail-membertitle"><span class="gmail-HwtZe" lang="en"><span class="gmail-jCAhz gmail-ChMk0b"><span class="gmail-ryNqvb"><br></span></span></span></a></div><div><span class="gmail-HwtZe" lang="en"><span class="gmail-jCAhz gmail-ChMk0b"><span class="gmail-ryNqvb">If I look at the source code and more precisely the file <a href="https://github.com/LibreOffice/core/blob/master/toolkit/source/controls/grid/sortablegriddatamodel.cxx">libreoffice/toolkit/source/controls/grid/sortablegriddatamodel.cxx</a> it appears the attempt to add the listener line <a href="https://github.com/LibreOffice/core/blob/master/toolkit/source/controls/grid/sortablegriddatamodel.cxx#L318">318</a>, but it seems to me that the type </span></span></span><a name="addGridDataListener" class="gmail-membertitle"><span class="gmail-HwtZe" lang="en"><span class="gmail-jCAhz gmail-ChMk0b"><span class="gmail-ryNqvb"></span></span></span><span class="gmail-HwtZe" lang="en"><span class="gmail-jCAhz gmail-ChMk0b"><span class="gmail-ryNqvb"></span></span></span></a><a href="https://www.openoffice.org/api/docs/common/ref/com/sun/star/awt/grid/XGridDataListener.html">XGridDataListener</a><span class="gmail-HwtZe" lang="en"><span class="gmail-jCAhz gmail-ChMk0b"><span class="gmail-ryNqvb"></span></span></span><span class="gmail-HwtZe" lang="en"><span class="gmail-jCAhz gmail-ChMk0b"><span class="gmail-ryNqvb"> is excluded from the types to return line <a href="https://github.com/LibreOffice/core/blob/master/toolkit/source/controls/grid/sortablegriddatamodel.cxx#L271">271</a>.</span></span></span></div><div><a name="addGridDataListener" class="gmail-membertitle"><span class="gmail-HwtZe" lang="en"><span class="gmail-jCAhz gmail-ChMk0b"><span class="gmail-ryNqvb"><br></span></span></span></a></div><div><a name="addGridDataListener" class="gmail-membertitle"><span class="gmail-HwtZe" lang="en"><span class="gmail-jCAhz gmail-ChMk0b"><span class="gmail-ryNqvb">Is this normal?</span></span><br></span></a></div><div><a name="addGridDataListener" class="gmail-membertitle"><span class="gmail-HwtZe" lang="en"><span class="gmail-jCAhz"><span class="gmail-ryNqvb"><br></span></span></span></a></div><div><a name="addGridDataListener" class="gmail-membertitle"><span class="gmail-HwtZe" lang="en"><span class="gmail-jCAhz"><span class="gmail-ryNqvb">Thank for your help.<br></span></span></span></a></div><div><a name="addGridDataListener" class="gmail-membertitle"><br></a></div><div><a name="addGridDataListener" class="gmail-membertitle"><br></a></div>
</div>