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 .
21 module com
{ module sun
{ module star
{ module sheet
{
24 /** provides access to the members in a collection of named ranges and to
25 insert and remove them.
27 @see com::sun::star::sheet::NamedRanges
28 @see com::sun::star::sheet::NamedRange
30 published
interface XNamedRanges
: com
::sun
::star
::container
::XNameAccess
33 /** adds a new named range to the collection.
36 the new name of the named range.
39 the formula expression.
41 <p>A cell range address is one possible content of a named
45 specifies the base address for relative cell references.
48 a combination of flags that specify the type of a named range,
49 as defined in NamedRangeFlag.
51 <p>This parameter will be zero for any common named range.</p>
56 [in] com
::sun
::star
::table
::CellAddress aPosition
,
60 /** creates named cell ranges from titles in a cell range.
62 <p>The names for the named ranges are taken from title cells in the
63 top or bottom row, or from the cells of the left or right column
64 of the range (depending on the parameter aBorder.
65 The named ranges refer to single columns or rows in the inner
66 part of the original range, excluding the labels.</p>
68 <p>Example: The source range is A1:B3. The named ranges shall be
69 created using row titles. This requires Border::TOP
70 for the second parameter. The method creates two named ranges. The
71 name of the first is equal to the content of cell A1 and contains the
72 range $Sheet.$A$2:$A$3 (excluding the title cell). The latter named
73 range is named using cell B1 and contains the cell range address
77 the cell range used to create the named ranges.
80 specifies the location of the title cells.
82 void addNewFromTitles
(
83 [in] com
::sun
::star
::table
::CellRangeAddress aSource
,
84 [in] com
::sun
::star
::sheet
::Border aBorder
);
87 /** removes a named range from the collection.
89 void removeByName
( [in] string aName
);
92 /** writes a list of all named ranges into the document.
94 <p>The first column of the list contains the names. The second
95 column contains the contents of the named ranges.</p>
97 @param aOutputPosition
98 specifies the top left cell of the output range.
100 void outputList
( [in] com
::sun
::star
::table
::CellAddress aOutputPosition
);
107 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */