1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef __com_sun_star_sheet_SubTotalDescriptor_idl__
29 #define __com_sun_star_sheet_SubTotalDescriptor_idl__
31 #ifndef __com_sun_star_sheet_XSubTotalDescriptor_idl__
32 #include
<com
/sun
/star
/sheet
/XSubTotalDescriptor.idl
>
35 #ifndef __com_sun_star_beans_XPropertySet_idl__
36 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
38 #ifndef __com_sun_star_container_XEnumerationAccess_idl__
39 #include
<com
/sun
/star
/container
/XEnumerationAccess.idl
>
41 #ifndef __com_sun_star_container_XIndexAccess_idl__
42 #include
<com
/sun
/star
/container
/XIndexAccess.idl
>
45 //=============================================================================
47 module com
{ module sun
{ module star
{ module sheet
{
49 //=============================================================================
51 /** represents a description of how subtotals are created.
53 <p>The descriptor contains properties and a collection of subtotal fields
54 which control the behaviour of operation.</p>
56 published service SubTotalDescriptor
58 //-------------------------------------------------------------------------
60 /** provides access to the collection of subtotal fields.
62 interface com
::sun
::star
::sheet
::XSubTotalDescriptor
;
64 //-------------------------------------------------------------------------
66 /** creates an enumeration of all sub total fields.
68 @see com::sun::star::sheet::SubTotalFieldsEnumeration
70 interface com
::sun
::star
::container
::XEnumerationAccess
;
72 //-------------------------------------------------------------------------
74 /** provides access to the sub total fields in the collection via index.
76 interface com
::sun
::star
::container
::XIndexAccess
;
78 //-------------------------------------------------------------------------
80 //!published service PropertySet
81 /** procides access to the properties.
83 interface com
::sun
::star
::beans
::XPropertySet
;
85 //=========================================================================
87 /** specifies if page breaks are inserted after each group change.
89 [property
] boolean InsertPageBreaks
;
91 //-------------------------------------------------------------------------
93 /** specifies if the case of letters is important when comparing entries.
95 [property
] boolean IsCaseSensitive
;
97 //-------------------------------------------------------------------------
99 /** specifies if a user defined sorting list is used.
101 [property
] boolean EnableUserSortList
;
103 //-------------------------------------------------------------------------
105 /** specifies which user defined sorting list is used.
107 <p>This property is only used if
108 <member>SubTotalDescriptor::EnableUserSortList</member>
111 [property
] long UserSortListIndex
;
113 //-------------------------------------------------------------------------
115 /** specifies if cell formats are moved with the contents they belong to.
117 [property
] boolean BindFormatsToContent
;
119 //-------------------------------------------------------------------------
121 /** specifies if the contents of the fields will be sorted to groups
122 while performing a subtotal operation.
124 [property
] boolean EnableSort
;
126 //-------------------------------------------------------------------------
128 /** specifies the sorting order if
129 <member>SubTotalDescriptor::EnableSort</member> is set to <TRUE/>.
131 [property
] boolean SortAscending
;
133 //-------------------------------------------------------------------------
135 /** returns the maximum number of subtotal fields the descriptor can
138 <p>This read-only property indicates the maximum count of fields the
139 current implementation supports.</p>
141 [readonly, property
] long MaxFieldCount
;
145 //=============================================================================