(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: util ::

interface XSortable
Description
makes it possible to sort the contents of this object.

The available properties describing the sort criterias are defined in the sort descriptor implemented by the object that implements this interface.

There are older deprecated sort descriptors:

  • com::sun::star::util::SortDescriptor
  • com::sun::star::table::TableSortDescriptor
  • com::sun::star::text::TextSortDescriptor

And a new set of sort descriptors:

  • com::sun::star::util::SortDescriptor2
  • com::sun::star::table::TableSortDescriptor2
  • com::sun::star::text::TextSortDescriptor2

Both types may be implemented by the same object. When calling the sort method however properties from different descriptors must not be mixed.

Developers Guide
Text - Sorting Text

Methods' Summary
createSortDescriptor  
sort sorts the contents of the object according to the specified properties.  
Methods' Details
createSortDescriptor
sequence< ::com::sun::star::beans::PropertyValue >
createSortDescriptor();

Returns
a sequence of properties which allows to specify/modify the sort criteria.

The set of properties is specific to the type of object that implements this interface. Therefore they can usually be used only for objects of that same type.

See also
SortDescriptor, ::com::sun::star::table::TableSortDescriptor, ::com::sun::star::text::TextSortDescriptor, SortDescriptor2, ::com::sun::star::table::TableSortDescriptor2, ::com::sun::star::text::TextSortDescriptor2
sort
void
sort( [in] sequence< ::com::sun::star::beans::PropertyValue >  xDescriptor );

Description
sorts the contents of the object according to the specified properties.

The specified properties are usually the same or a subset of those obtained by calling createSortDescriptor on the same type of object.

See also
SortDescriptor, ::com::sun::star::table::TableSortDescriptor, ::com::sun::star::text::TextSortDescriptor, SortDescriptor2, ::com::sun::star::table::TableSortDescriptor2, ::com::sun::star::text::TextSortDescriptor2
Top of Page

Apache Feather

Copyright & License | Privacy | Contact Us

Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.