Apache OpenOffice (AOO) Bugzilla – Issue 121168
Typo errors in IDL of getCurrentSortOrder
Last modified: 2013-02-24 21:09:29 UTC
IDL page : c.s.s.awt.grid.XSortableMutableGridData Type of return data reads : ::com::sun::star::beans::Pair< string, string > It should be written : ::com::sun::star::beans::StringPair Paragraph Returns reads : ::com::sun::star::beans::Pair::First denotes the column by which the data is sorted, or -1 if the data is currently unsorted. ::com::sun::star::beans::Pair::Second is true if the data is sorted ascending, false otherwise. It should be written : ::com::sun::star::beans::StringPair::First denotes the column by which the data is sorted, or -1 if the data is currently unsorted. ::com::sun::star::beans::StringPair::Second is true if the data is sorted ascending, false otherwise.
Definition of getCurrentSortOrder method in revision 1208211 is [1] ::com::sun::star::beans::Pair< long, boolean > getCurrentSortOrder(); But IDL reference on api.openoffice shows ::com::sun::star::beans::Pair< string, string > getCurrentSortOrder(); Note css.beans.Pair is not shown in the reference because of autodoc problem. Current implementation is match with generated definition in C++ header [3]. In my local copy of IDL reference for AOO 3.4.1, the return value is defined as Pair<any, any>. [1] http://svn.apache.org/viewvc/incubator/ooo/trunk/main/offapi/com/sun/star/awt/grid/XSortableGridData.idl?view=markup#l64 [2] http://www.openoffice.org/api/docs/common/ref/com/sun/star/awt/grid/XSortableGridData.html#getCurrentSortOrder [3] http://svn.apache.org/viewvc/incubator/ooo/trunk/main/toolkit/source/controls/grid/sortablegriddatamodel.cxx?view=markup#l576
The autodoc problem for ::com::sun::star::beans::Pair is already described in Bug 116191. Further confusion for me came from the fact that ::com::sun::star::beans::Pair does not appear in the HTML view of the IDL, only ::com::sun::star::beans::StringPair appears.
(In reply to comment #2) > Further confusion for me came from the fact that > ::com::sun::star::beans::Pair does not appear in the HTML view of the IDL This is Bug 98568