Table Naming, Sorting, Charting and Autoformatting

From Apache OpenOffice Wiki
Jump to: navigation, search



Each table has a unique name that can be read and written using the interface com.sun.star.container.XNamed.

A text table is a XNamed. Its method createSortDescriptor() returns a sequence of com.sun.star.beans.PropertyValue structs that provides the elements as described in the service com.sun.star.text.TextSortDescriptor. The method sort() sorts the table content by the given parameters.

The interface com.sun.star.chart.XChartDataArray is used to connect a table or a range inside of a table to a chart. It reads and writes the values of a range, and sets the column and row labels. The inherited interface com.sun.star.chart.XChartData enables the chart to connect listeners to be notified when changes to the values of a table are made. For details about charting, refer to chapter Charts.

The interface com.sun.star.table.XAutoFormattable provides in its method autoFormat() a method to format the table using a predefined table format. To access the available auto formats, the service com.sun.star.sheet.TableAutoFormats has to be accessed. For details, refer to chapter Table Auto Formats.

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