1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef __com_sun_star_drawing_XLayerManager_idl__
28 #define __com_sun_star_drawing_XLayerManager_idl__
30 #ifndef __com_sun_star_container_XIndexAccess_idl__
31 #include
<com
/sun
/star
/container
/XIndexAccess.idl
>
34 #ifndef __com_sun_star_drawing_XLayer_idl__
35 #include
<com
/sun
/star
/drawing
/XLayer.idl
>
38 #ifndef __com_sun_star_container_NoSuchElementException_idl__
39 #include
<com
/sun
/star
/container
/NoSuchElementException.idl
>
42 #ifndef __com_sun_star_drawing_XShape_idl__
43 #include
<com
/sun
/star
/drawing
/XShape.idl
>
47 //=============================================================================
49 module com
{ module sun
{ module star
{ module drawing
{
51 //=============================================================================
53 /** This interface makes it possible to access and manage the
54 <type>Layer</type>s of a document.
58 published
interface XLayerManager
: com
::sun
::star
::container
::XIndexAccess
60 //-------------------------------------------------------------------------
62 /** creates a new <type>Layer</type>
65 the index at which the new layer is inserted
68 the new created <type>Layer</type>
70 com
::sun
::star
::drawing
::XLayer insertNewByIndex
( [in] long nIndex
);
72 //-------------------------------------------------------------------------
74 /** removes a <type>Layer</type> and all <type>Shape</type>s on
75 this <type>Layer</type>.
78 this <type>Layer</type> will be removed and disposed
80 void remove
( [in] com
::sun
::star
::drawing
::XLayer xLayer
)
81 raises
( com
::sun
::star
::container
::NoSuchElementException
);
83 //-------------------------------------------------------------------------
85 /** attaches a <type>Shape</type> to the given <type>Layer</type>.
88 this is the <type>Shape</type> that will be attached to a <type>Layer</type>
91 this is the <type>Layer</type> that will be attached to a <type>Shape</type>
93 void attachShapeToLayer
( [in] com
::sun
::star
::drawing
::XShape xShape
,
94 [in] com
::sun
::star
::drawing
::XLayer xLayer
);
96 //-------------------------------------------------------------------------
98 /** queries the <type>Layer</type> that a <type>Shape</type> is attached to
101 specifies the <type>Shape</type> for which the layer is requested.
104 the <type>Layer</type> to which the <type>Shape</type> is
108 com
::sun
::star
::drawing
::XLayer getLayerForShape
( [in] com
::sun
::star
::drawing
::XShape xShape
);
112 //=============================================================================