1*102b8ff7SWang Lei/**************************************************************
2*102b8ff7SWang Lei *
3*102b8ff7SWang Lei * Licensed to the Apache Software Foundation (ASF) under one
4*102b8ff7SWang Lei * or more contributor license agreements.  See the NOTICE file
5*102b8ff7SWang Lei * distributed with this work for additional information
6*102b8ff7SWang Lei * regarding copyright ownership.  The ASF licenses this file
7*102b8ff7SWang Lei * to you under the Apache License, Version 2.0 (the
8*102b8ff7SWang Lei * "License"); you may not use this file except in compliance
9*102b8ff7SWang Lei * with the License.  You may obtain a copy of the License at
10*102b8ff7SWang Lei *
11*102b8ff7SWang Lei *   http://www.apache.org/licenses/LICENSE-2.0
12*102b8ff7SWang Lei *
13*102b8ff7SWang Lei * Unless required by applicable law or agreed to in writing,
14*102b8ff7SWang Lei * software distributed under the License is distributed on an
15*102b8ff7SWang Lei * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*102b8ff7SWang Lei * KIND, either express or implied.  See the License for the
17*102b8ff7SWang Lei * specific language governing permissions and limitations
18*102b8ff7SWang Lei * under the License.
19*102b8ff7SWang Lei *
20*102b8ff7SWang Lei *************************************************************/
21*102b8ff7SWang Lei
22*102b8ff7SWang Lei
23*102b8ff7SWang Lei
24*102b8ff7SWang Lei#ifndef __com_sun_star_sheet_XNamedRanges2_idl__
25*102b8ff7SWang Lei#define __com_sun_star_sheet_XNamedRanges2_idl__
26*102b8ff7SWang Lei
27*102b8ff7SWang Lei//=============================================================================
28*102b8ff7SWang Lei#ifndef __com_sun_star_sheet_XNamedRanges_idl__
29*102b8ff7SWang Lei#include <com/sun/star/sheet/XNamedRanges.idl>
30*102b8ff7SWang Lei#endif
31*102b8ff7SWang Lei
32*102b8ff7SWang Lei#ifndef __com_sun_star_sheet_RangeScopeName_idl__
33*102b8ff7SWang Lei#include <com/sun/star/sheet/RangeScopeName.idl>
34*102b8ff7SWang Lei#endif
35*102b8ff7SWang Lei
36*102b8ff7SWang Leimodule com {  module sun {  module star {  module sheet {
37*102b8ff7SWang Lei
38*102b8ff7SWang Lei
39*102b8ff7SWang Lei
40*102b8ff7SWang Lei//=============================================================================
41*102b8ff7SWang Lei
42*102b8ff7SWang Lei/** provides access to the members in a collection user defined named ranges with duplicate names and to
43*102b8ff7SWang Lei	insert and remove them.
44*102b8ff7SWang Lei
45*102b8ff7SWang Lei	@see com::sun::star::sheet::NamedRanges2
46*102b8ff7SWang Lei	@see com::sun::star::sheet::NamedRange2
47*102b8ff7SWang Lei */
48*102b8ff7SWang Leipublished interface XNamedRanges2: com::sun::star::sheet::XNamedRanges
49*102b8ff7SWang Lei{
50*102b8ff7SWang Lei	//-------------------------------------------------------------------------
51*102b8ff7SWang Lei
52*102b8ff7SWang Lei	void addNewByScopeName(
53*102b8ff7SWang Lei			[in] string aScopeName,
54*102b8ff7SWang Lei			[in] string aRangeName,
55*102b8ff7SWang Lei			[in] string aContent,
56*102b8ff7SWang Lei			[in] com::sun::star::table::CellAddress aPosition,
57*102b8ff7SWang Lei			[in] long nType );
58*102b8ff7SWang Lei
59*102b8ff7SWang Lei	void removeByScopeName( [in] string aScopeName, [in] string aRangeName );
60*102b8ff7SWang Lei
61*102b8ff7SWang Lei	boolean hasByScopeName( [in] string aScopeName, [in] string aRangeName );
62*102b8ff7SWang Lei
63*102b8ff7SWang Lei	any getByScopeName( [in] string aScopeName, [in] string aRangeName )
64*102b8ff7SWang Lei			raises( com::sun::star::container::NoSuchElementException,
65*102b8ff7SWang Lei					com::sun::star::lang::WrappedTargetException );
66*102b8ff7SWang Lei
67*102b8ff7SWang Lei        sequence<com::sun::star::sheet::RangeScopeName> getElementScopeNames();
68*102b8ff7SWang Lei
69*102b8ff7SWang Lei};
70*102b8ff7SWang Lei
71*102b8ff7SWang Lei//=============================================================================
72*102b8ff7SWang Lei
73*102b8ff7SWang Lei}; }; }; };
74*102b8ff7SWang Lei
75*102b8ff7SWang Lei#endif
76*102b8ff7SWang Lei
77