update dev300-m58
[ooovba.git] / offapi / com / sun / star / sheet / XDatabaseRange.idl
blobfdfbdc42e97e5a094ec05411f13527a5ac135177
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XDatabaseRange.idl,v $
10 * $Revision: 1.10 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef __com_sun_star_sheet_XDatabaseRange_idl__
32 #define __com_sun_star_sheet_XDatabaseRange_idl__
34 #ifndef __com_sun_star_uno_XInterface_idl__
35 #include <com/sun/star/uno/XInterface.idl>
36 #endif
38 #ifndef __com_sun_star_table_CellRangeAddress_idl__
39 #include <com/sun/star/table/CellRangeAddress.idl>
40 #endif
42 #ifndef __com_sun_star_beans_PropertyValue_idl__
43 #include <com/sun/star/beans/PropertyValue.idl>
44 #endif
46 #ifndef __com_sun_star_sheet_XSheetFilterDescriptor_idl__
47 #include <com/sun/star/sheet/XSheetFilterDescriptor.idl>
48 #endif
50 #ifndef __com_sun_star_sheet_XSubTotalDescriptor_idl__
51 #include <com/sun/star/sheet/XSubTotalDescriptor.idl>
52 #endif
54 //=============================================================================
56 module com { module sun { module star { module sheet {
58 //=============================================================================
60 /** provides access to the settings and options of a database range.
62 @see com::sun::star::sheet::DatabaseRange
64 published interface XDatabaseRange: com::sun::star::uno::XInterface
66 //-------------------------------------------------------------------------
68 /** returns the data area of the database range in the
69 spreadsheet document.
71 com::sun::star::table::CellRangeAddress getDataArea();
73 //-------------------------------------------------------------------------
75 /** sets the data area of the database range.
77 void setDataArea( [in] com::sun::star::table::CellRangeAddress aDataArea );
79 //-------------------------------------------------------------------------
81 /** returns the sort descriptor stored with the database range.
83 @see com::sun::star::sheet::SheetSortDescriptor2
85 sequence< com::sun::star::beans::PropertyValue > getSortDescriptor();
87 //-------------------------------------------------------------------------
89 /** returns the filter descriptor stored with the database range.
91 <p>If the filter descriptor is modified, the new filtering is
92 carried out when <member>XDatabaseRange::refresh()</member> is
93 called.</p>
95 com::sun::star::sheet::XSheetFilterDescriptor getFilterDescriptor();
97 //-------------------------------------------------------------------------
99 /** returns the subtotal descriptor stored with the database range.
101 <p>If the subtotal descriptor is modified, the new subtotals are
102 inserted when <member>XDatabaseRange::refresh()</member> is
103 called.</p>
105 com::sun::star::sheet::XSubTotalDescriptor getSubTotalDescriptor();
107 //-------------------------------------------------------------------------
109 /** returns the database import descriptor stored with this database
110 range.
112 @see com::sun::star::sheet::DatabaseImportDescriptor
114 sequence< com::sun::star::beans::PropertyValue > getImportDescriptor();
116 //-------------------------------------------------------------------------
118 /** executes the stored import, filter, sorting, and subtotals
119 descriptors again.
121 void refresh();
125 //=============================================================================
127 }; }; }; };
129 #endif