1d1766043SAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4d1766043SAndrew Rist * or more contributor license agreements. See the NOTICE file 5d1766043SAndrew Rist * distributed with this work for additional information 6d1766043SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the 8d1766043SAndrew Rist * "License"); you may not use this file except in compliance 9d1766043SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11d1766043SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing, 14d1766043SAndrew Rist * software distributed under the License is distributed on an 15d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16d1766043SAndrew Rist * KIND, either express or implied. See the License for the 17d1766043SAndrew Rist * specific language governing permissions and limitations 18d1766043SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20d1766043SAndrew Rist *************************************************************/ 21d1766043SAndrew Rist 22d1766043SAndrew Rist 23cdf0e10cSrcweir#ifndef __com_sun_star_sheet_DatabaseRange_idl__ 24cdf0e10cSrcweir#define __com_sun_star_sheet_DatabaseRange_idl__ 25cdf0e10cSrcweir 26cdf0e10cSrcweir#ifndef __com_sun_star_sheet_XDatabaseRange_idl__ 27cdf0e10cSrcweir#include <com/sun/star/sheet/XDatabaseRange.idl> 28cdf0e10cSrcweir#endif 29cdf0e10cSrcweir 30cdf0e10cSrcweir#ifndef __com_sun_star_sheet_XCellRangeReferrer_idl__ 31cdf0e10cSrcweir#include <com/sun/star/sheet/XCellRangeReferrer.idl> 32cdf0e10cSrcweir#endif 33cdf0e10cSrcweir 34cdf0e10cSrcweir#ifndef __com_sun_star_beans_XPropertySet_idl__ 35cdf0e10cSrcweir#include <com/sun/star/beans/XPropertySet.idl> 36cdf0e10cSrcweir#endif 37cdf0e10cSrcweir 38cdf0e10cSrcweir#ifndef __com_sun_star_container_XNamed_idl__ 39cdf0e10cSrcweir#include <com/sun/star/container/XNamed.idl> 40cdf0e10cSrcweir#endif 41cdf0e10cSrcweir 42cdf0e10cSrcweir#ifndef __com_sun_star_util_XRefreshable_idl__ 43cdf0e10cSrcweir#include <com/sun/star/util/XRefreshable.idl> 44cdf0e10cSrcweir#endif 45cdf0e10cSrcweir 46cdf0e10cSrcweir#ifndef __com_sun_star_table_CellRangeAddress_idl__ 47cdf0e10cSrcweir#include <com/sun/star/table/CellRangeAddress.idl> 48cdf0e10cSrcweir#endif 49cdf0e10cSrcweir 50cdf0e10cSrcweir 51cdf0e10cSrcweir//============================================================================= 52cdf0e10cSrcweir 53cdf0e10cSrcweir module com { module sun { module star { module sheet { 54cdf0e10cSrcweir 55cdf0e10cSrcweir//============================================================================= 56cdf0e10cSrcweir 57cdf0e10cSrcweir/** represents a database range in a spreadsheet document. 58cdf0e10cSrcweir 59cdf0e10cSrcweir <p>A database range is a name for a cell range that also stores filtering, 60cdf0e10cSrcweir sorting, subtotal and data import settings and options.</p> 61cdf0e10cSrcweir 62cdf0e10cSrcweir @see com::sun::star::sheet::DatabaseRanges 63cdf0e10cSrcweir */ 64cdf0e10cSrcweirpublished service DatabaseRange 65cdf0e10cSrcweir{ 66cdf0e10cSrcweir // DocMerge: empty anyway 67cdf0e10cSrcweir interface com::sun::star::sheet::XDatabaseRange; 68cdf0e10cSrcweir 69cdf0e10cSrcweir // DocMerge: empty anyway 70cdf0e10cSrcweir interface com::sun::star::sheet::XCellRangeReferrer; 71cdf0e10cSrcweir 72cdf0e10cSrcweir // DocMerge: empty anyway 73cdf0e10cSrcweir interface com::sun::star::beans::XPropertySet; 74cdf0e10cSrcweir 75cdf0e10cSrcweir // DocMerge: empty anyway 76cdf0e10cSrcweir interface com::sun::star::container::XNamed; 77cdf0e10cSrcweir 78cdf0e10cSrcweir [optional] interface com::sun::star::util::XRefreshable; 79cdf0e10cSrcweir 80cdf0e10cSrcweir //------------------------------------------------------------------------- 81cdf0e10cSrcweir 82cdf0e10cSrcweir // DocMerge from xml: property com::sun::star::sheet::DatabaseRange::MoveCells 83cdf0e10cSrcweir /** if this property is set, columns or rows are inserted or deleted 84cdf0e10cSrcweir when the size of the range is changed by an update operation. 85cdf0e10cSrcweir */ 86cdf0e10cSrcweir [property] boolean MoveCells; 87cdf0e10cSrcweir 88cdf0e10cSrcweir //------------------------------------------------------------------------- 89cdf0e10cSrcweir 90cdf0e10cSrcweir // DocMerge from xml: property com::sun::star::sheet::DatabaseRange::KeepFormats 91cdf0e10cSrcweir /** if this property is set, cell formats are extended 92cdf0e10cSrcweir when the size of the range is changed by an update operation. 93cdf0e10cSrcweir */ 94cdf0e10cSrcweir [property] boolean KeepFormats; 95cdf0e10cSrcweir 96cdf0e10cSrcweir //------------------------------------------------------------------------- 97cdf0e10cSrcweir 98cdf0e10cSrcweir // DocMerge from xml: property com::sun::star::sheet::DatabaseRange::StripData 99cdf0e10cSrcweir /** if this property is set, the cell contents within the database 100cdf0e10cSrcweir range are left out when the document is saved. 101cdf0e10cSrcweir */ 102cdf0e10cSrcweir [property] boolean StripData; 103cdf0e10cSrcweir 104cdf0e10cSrcweir //------------------------------------------------------------------------- 105cdf0e10cSrcweir 106cdf0e10cSrcweir /** specifies whether the AutoFilter is enabled or not. 107cdf0e10cSrcweir 108*fbef625eSJürgen Schmidt @since OpenOffice 1.1.2 109cdf0e10cSrcweir */ 110cdf0e10cSrcweir [optional, property] boolean AutoFilter; 111cdf0e10cSrcweir 112cdf0e10cSrcweir //------------------------------------------------------------------------- 113cdf0e10cSrcweir 114cdf0e10cSrcweir /** specifies whether the filter criteria should be taken from a CellRange. 115cdf0e10cSrcweir 116*fbef625eSJürgen Schmidt @since OpenOffice 1.1.2 117cdf0e10cSrcweir */ 118cdf0e10cSrcweir [optional, property] boolean UseFilterCriteriaSource; 119cdf0e10cSrcweir 120cdf0e10cSrcweir //------------------------------------------------------------------------- 121cdf0e10cSrcweir 122cdf0e10cSrcweir /** specifies the range where the filter can find the filter criterias. 123cdf0e10cSrcweir <p>This is only used if <member>SheetFilterDescriptor::UseFilterCriteriaSource</member> is <TRUE/>.</p> 124cdf0e10cSrcweir 125*fbef625eSJürgen Schmidt @since OpenOffice 1.1.2 126cdf0e10cSrcweir */ 127cdf0e10cSrcweir [optional, property] com::sun::star::table::CellRangeAddress FilterCriteriaSource; 128cdf0e10cSrcweir 129cdf0e10cSrcweir //------------------------------------------------------------------------- 130cdf0e10cSrcweir 131cdf0e10cSrcweir /** specifies the time between two refresh actions in seconds. 132cdf0e10cSrcweir 133*fbef625eSJürgen Schmidt @since OpenOffice 2.0 134cdf0e10cSrcweir */ 135cdf0e10cSrcweir [optional, property] long RefreshPeriod; 136cdf0e10cSrcweir 137cdf0e10cSrcweir //------------------------------------------------------------------------- 138cdf0e10cSrcweir 139cdf0e10cSrcweir /** specifies whether the imported data is only a selection of the database. 140cdf0e10cSrcweir 141*fbef625eSJürgen Schmidt @since OpenOffice 2.0 142cdf0e10cSrcweir */ 143cdf0e10cSrcweir [optional, property] boolean FromSelection; 144cdf0e10cSrcweir 145cdf0e10cSrcweir //------------------------------------------------------------------------- 146cdf0e10cSrcweir 147cdf0e10cSrcweir /** returns the index used to refer to this range in token arrays. 148cdf0e10cSrcweir 149cdf0e10cSrcweir <p>A token describing a database range shall contain the op-code 150cdf0e10cSrcweir obtained from the <const>FormulaMapGroupSpecialOffset::DB_AREA</const> 151cdf0e10cSrcweir and this index as data part.</p> 152cdf0e10cSrcweir 153cdf0e10cSrcweir @see com::sun::star::sheet::FormulaToken 154cdf0e10cSrcweir @see com::sun::star::sheet::FormulaMapGroupSpecialOffset::DB_AREA 155cdf0e10cSrcweir 156*fbef625eSJürgen Schmidt @since OpenOffice 3.0 157cdf0e10cSrcweir */ 158cdf0e10cSrcweir [optional, readonly, property] long TokenIndex; 159cdf0e10cSrcweir}; 160cdf0e10cSrcweir 161cdf0e10cSrcweir//============================================================================= 162cdf0e10cSrcweir 163cdf0e10cSrcweir}; }; }; }; 164cdf0e10cSrcweir 165cdf0e10cSrcweir/*============================================================================= 166cdf0e10cSrcweir 167cdf0e10cSrcweir=============================================================================*/ 168cdf0e10cSrcweir#endif 169