1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
22 module com
{ module sun
{ module star
{ module sheet
{
25 /** represents a database range in a spreadsheet document.
27 <p>A database range is a name for a cell range that also stores filtering,
28 sorting, subtotal and data import settings and options.</p>
30 @see com::sun::star::sheet::DatabaseRanges
32 published service DatabaseRange
34 interface com
::sun
::star
::sheet
::XDatabaseRange
;
35 interface com
::sun
::star
::sheet
::XCellRangeReferrer
;
36 interface com
::sun
::star
::beans
::XPropertySet
;
37 interface com
::sun
::star
::container
::XNamed
;
39 [optional] interface com
::sun
::star
::util
::XRefreshable
;
41 /** if this property is set, columns or rows are inserted or deleted
42 when the size of the range is changed by an update operation.
44 [property
] boolean MoveCells
;
46 /** if this property is set, cell formats are extended
47 when the size of the range is changed by an update operation.
49 [property
] boolean KeepFormats
;
51 /** if this property is set, the cell contents within the database
52 range are left out when the document is saved.
54 [property
] boolean StripData
;
57 /** specifies whether the AutoFilter is enabled or not.
61 [optional, property
] boolean AutoFilter
;
64 /** specifies whether the filter criteria should be taken from a CellRange.
68 [optional, property
] boolean UseFilterCriteriaSource
;
71 /** specifies the range where the filter can find the filter criteria.
72 <p>This is only used if SheetFilterDescriptor::UseFilterCriteriaSource is `TRUE`.</p>
76 [optional, property
] com
::sun
::star
::table
::CellRangeAddress FilterCriteriaSource
;
79 /** specifies the time between two refresh actions in seconds.
83 [optional, property
] long RefreshPeriod
;
86 /** specifies whether the imported data is only a selection of the database.
90 [optional, property
] boolean FromSelection
;
93 /** returns the index used to refer to this range in token arrays.
95 <p>A token describing a database range shall contain the op-code
96 obtained from the FormulaMapGroupSpecialOffset::DB_AREA
97 and this index as data part.</p>
99 @see com::sun::star::sheet::FormulaToken
100 @see com::sun::star::sheet::FormulaMapGroupSpecialOffset::DB_AREA
104 [optional, readonly, property
] long TokenIndex
;
107 /** specifies whether this range includes a bottom row of totals.
109 @since LibreOffice 5.0
111 [optional, property
] boolean TotalsRow
;
114 /** specifies whether this range includes a top row of headers.
116 @since LibreOffice 5.0
118 [optional, property
] boolean ContainsHeader
;
124 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */