Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / sheet / XDatabaseRange.idl
blob6a8d753bbaa78c54fd33e8557be81ebfee046135
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef __com_sun_star_sheet_XDatabaseRange_idl__
21 #define __com_sun_star_sheet_XDatabaseRange_idl__
23 #include <com/sun/star/uno/XInterface.idl>
24 #include <com/sun/star/table/CellRangeAddress.idl>
25 #include <com/sun/star/beans/PropertyValue.idl>
26 #include <com/sun/star/sheet/XSheetFilterDescriptor.idl>
27 #include <com/sun/star/sheet/XSubTotalDescriptor.idl>
30 module com { module sun { module star { module sheet {
33 /** provides access to the settings and options of a database range.
35 @see com::sun::star::sheet::DatabaseRange
37 published interface XDatabaseRange: com::sun::star::uno::XInterface
40 /** returns the data area of the database range in the
41 spreadsheet document.
43 com::sun::star::table::CellRangeAddress getDataArea();
46 /** sets the data area of the database range.
48 void setDataArea( [in] com::sun::star::table::CellRangeAddress aDataArea );
51 /** returns the sort descriptor stored with the database range.
53 @see SheetSortDescriptor2
55 sequence< com::sun::star::beans::PropertyValue > getSortDescriptor();
58 /** returns the filter descriptor stored with the database range.
60 <p>If the filter descriptor is modified, the new filtering is
61 carried out when XDatabaseRange::refresh() is
62 called.</p>
64 @see SheetFilterDescriptor
66 XSheetFilterDescriptor getFilterDescriptor();
69 /** returns the subtotal descriptor stored with the database range.
71 <p>If the subtotal descriptor is modified, the new subtotals are
72 inserted when XDatabaseRange::refresh() is
73 called.</p>
75 @see SubTotalDescriptor
77 XSubTotalDescriptor getSubTotalDescriptor();
80 /** returns the database import descriptor stored with this database
81 range.
83 @see DatabaseImportDescriptor
85 sequence< com::sun::star::beans::PropertyValue > getImportDescriptor();
88 /** executes the stored import, filter, sorting, and subtotals
89 descriptors again.
91 void refresh();
96 }; }; }; };
98 #endif
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */