1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24#ifndef __com_sun_star_table_TableSortDescriptor2_idl__ 25#define __com_sun_star_table_TableSortDescriptor2_idl__ 26 27#ifndef __com_sun_star_util_SortDescriptor2_idl__ 28#include <com/sun/star/util/SortDescriptor2.idl> 29#endif 30#ifndef __com_sun_star_beans_XPropertySet_idl__ 31#include <com/sun/star/beans/XPropertySet.idl> 32#endif 33#ifndef __com_sun_star_table_TableSortField_idl__ 34#include <com/sun/star/table/TableSortField.idl> 35#endif 36 37//============================================================================= 38 39module com { module sun { module star { module table { 40 41//============================================================================= 42 43/** specifies properties which describe sorting of fields (rows or columns) 44 in a table. 45 46 @since OpenOffice 1.1.2 47 */ 48published service TableSortDescriptor2 49{ 50 service com::sun::star::util::SortDescriptor2; 51 52 //------------------------------------------------------------------------- 53 /** specifies a list of individual sort fields. 54 55 <p>Each entry specifies properties that state the 56 row/column to be sorted and how that should be done.</p> 57 */ 58 [property] sequence< com::sun::star::table::TableSortField > SortFields; 59 60 //------------------------------------------------------------------------- 61 /** contains the maximum number of sort fields the descriptor can hold. 62 */ 63 [readonly, property] long MaxSortFieldsCount; 64 65 //------------------------------------------------------------------------- 66 /** specifies if the columns or rows are to be sorted. 67 68 <dl> 69 <dt><TRUE/></dt> 70 <dd>The columns are to be sorted.</dd> 71 <dt><FALSE/></dt> 72 <dd>The rows are to be sorted.</dd> 73 </dl> 74 */ 75 [property] boolean IsSortColumns; 76}; 77 78//============================================================================= 79 80}; }; }; }; 81 82#endif 83 84