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 .
20 #ifndef __com_sun_star_sheet_NamedRange_idl__
21 #define __com_sun_star_sheet_NamedRange_idl__
23 #include
<com
/sun
/star
/sheet
/XNamedRange.idl
>
24 #include
<com
/sun
/star
/container
/XNamed.idl
>
25 #include
<com
/sun
/star
/sheet
/XCellRangeReferrer.idl
>
28 module com
{ module sun
{ module star
{ module sheet
{
31 /** represents a named range in a spreadsheet document.
33 <p>In fact a named range is a named formula expression. A cell range
34 address is one possible content of a named range.</p>
36 @see com::sun::star::sheet::NamedRanges
38 published service NamedRange
41 /** provides access to the settings of the named range.
43 interface com
::sun
::star
::sheet
::XNamedRange
;
46 /** provides access to the cell range object referred by this named range.
48 <p>This works only, if the named range contains a single cell range
51 interface com
::sun
::star
::sheet
::XCellRangeReferrer
;
54 /** returns the index used to refer to this name in token arrays.
56 <p>A token describing a defined name shall contain the op-code obtained
57 from the FormulaMapGroupSpecialOffset::NAME offset and
58 this index as data part.</p>
60 @see com::sun::star::sheet::FormulaToken
61 @see com::sun::star::sheet::FormulaMapGroupSpecialOffset::NAME
65 [optional, readonly, property
] long TokenIndex
;
68 /** Determines if this defined name represents a shared formula.
70 <p>This special property shall not be used externally. It is used by
71 import and export filters for compatibility with spreadsheet
72 documents containing shared formulas. Shared formulas are shared
73 by several cells to save memory and to decrease file size.</p>
75 <p>A defined name with this property set will not appear in the user
76 interface of Calc, and its name will not appear in cell formulas. A
77 formula referring to this defined name will show the formula
78 definition contained in the name instead.</p>
82 [optional, property
] boolean IsSharedFormula
;
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */