Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / drawing / XLayerManager.idl
blobd39dda2628407f4cda94e77d74abe0a853991806
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XLayerManager.idl,v $
10 * $Revision: 1.8 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_drawing_XLayerManager_idl__
31 #define __com_sun_star_drawing_XLayerManager_idl__
33 #ifndef __com_sun_star_container_XIndexAccess_idl__
34 #include <com/sun/star/container/XIndexAccess.idl>
35 #endif
37 #ifndef __com_sun_star_drawing_XLayer_idl__
38 #include <com/sun/star/drawing/XLayer.idl>
39 #endif
41 #ifndef __com_sun_star_container_NoSuchElementException_idl__
42 #include <com/sun/star/container/NoSuchElementException.idl>
43 #endif
45 #ifndef __com_sun_star_drawing_XShape_idl__
46 #include <com/sun/star/drawing/XShape.idl>
47 #endif
50 //=============================================================================
52 module com { module sun { module star { module drawing {
54 //=============================================================================
56 /** This interface makes it possible to access and manage the
57 <type>Layer</type>s of a document.
59 @see LayerManager
61 published interface XLayerManager: com::sun::star::container::XIndexAccess
63 //-------------------------------------------------------------------------
65 /** creates a new <type>Layer</type>
67 @param nIndex
68 the index at which the new layer is inserted
70 @returns
71 the new created <type>Layer</type>
73 com::sun::star::drawing::XLayer insertNewByIndex( [in] long nIndex );
75 //-------------------------------------------------------------------------
77 /** removes a <type>Layer</type> and all <type>Shape</type>s on
78 this <type>Layer</type>.
80 @param xLayer
81 this <type>Layer</type> will be removed and disposed
83 void remove( [in] com::sun::star::drawing::XLayer xLayer )
84 raises( com::sun::star::container::NoSuchElementException );
86 //-------------------------------------------------------------------------
88 /** attaches a <type>Shape</type> to the given <type>Layer</type>.
90 @param xShape
91 this is the <type>Shape</type> that will be attached to a <type>Layer</type>
93 @param xLayer
94 this is the <type>Layer</type> that will be attached to a <type>Shape</type>
96 void attachShapeToLayer( [in] com::sun::star::drawing::XShape xShape,
97 [in] com::sun::star::drawing::XLayer xLayer );
99 //-------------------------------------------------------------------------
101 /** queries the <type>Layer</type> that a <type>Shape</type> is attached to
103 @param xShape
104 specifies the <type>Shape</type> for which the layer is requested.
106 @returns
107 the <type>Layer</type> to which the <type>Shape</type> is
108 attached.
111 com::sun::star::drawing::XLayer getLayerForShape( [in] com::sun::star::drawing::XShape xShape );
115 //=============================================================================
117 }; }; }; };
119 #endif