Difference between revisions of "Documentation/DevGuide/Text/Sorting Text"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (1 revision(s))
m
 
(3 intermediate revisions by one other user not shown)
Line 6: Line 6:
 
|NextPage=Documentation/DevGuide/Text/Inserting Text Files
 
|NextPage=Documentation/DevGuide/Text/Inserting Text Files
 
}}
 
}}
{{DISPLAYTITLE:Sorting Text}}
+
{{Documentation/DevGuideLanguages|Documentation/DevGuide/Text/{{SUBPAGENAME}}}}
 +
{{DISPLAYTITLE:Sorting Text}}
 
<!--<idltopic>com.sun.star.util.XSortable</idltopic>-->
 
<!--<idltopic>com.sun.star.util.XSortable</idltopic>-->
 
It is possible to sort text or the content of text tables.  
 
It is possible to sort text or the content of text tables.  
Line 19: Line 20:
 
The method <code>sort()</code> sorts the text that is selected by the cursor, by the given parameters.  
 
The method <code>sort()</code> sorts the text that is selected by the cursor, by the given parameters.  
  
Sorting of tables happens directly at the table service, which supports <code>XSortable</code>. Sorting is a common feature of {{PRODUCTNAME}} and it is described in detail in [[Documentation/DevGuide/OfficeDev/Office Development|Office Development]].
+
Sorting of tables happens directly at the table service, which supports <code>XSortable</code>. Sorting is a common feature of {{AOo}} and it is described in detail in [[Documentation/DevGuide/OfficeDev/Office Development|Office Development]].
  
 
{{PDL1}}
 
{{PDL1}}
[[Category: Text Documents]]
+
 
 +
[[Category:Documentation/Developer's Guide/Text Documents]]

Latest revision as of 14:32, 15 December 2020



It is possible to sort text or the content of text tables.

Sorting of text is done by the text cursor that supports com.sun.star.util.XSortable. It contains two methods:

 sequence< com::sun::star::beans::PropertyValue > createSortDescriptor()
 void sort( [in] sequence< com::sun::star::beans::PropertyValue > xDescriptor)

The method createSortDescriptor() returns a sequence of com.sun.star.beans.PropertyValue that provides the elements as described in the service com.sun.star.text.TextSortDescriptor

The method sort() sorts the text that is selected by the cursor, by the given parameters.

Sorting of tables happens directly at the table service, which supports XSortable. Sorting is a common feature of Apache OpenOffice and it is described in detail in Office Development.

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages