:: com :: sun :: star :: drawing ::

interface XLayerManager
Base Interfaces
::com::sun::star::uno::XInterface
  |  
  +--::com::sun::star::container::XElementAccess
       |  
       +--::com::sun::star::container::XIndexAccess
            |  
            +--XLayerManager
::com::sun::star::container::XIndexAccess
(referenced interface's summary:)
provides access to the elements of a collection through an index.
Description
This interface makes it possible to access and manage the ::com::sun::star::drawing::Layer s of a document.
See also
::com::sun::star::drawing::LayerManager
Developers Guide
9.3.2 Drawing Documents and Presentation Documents - Working with Drawing Documents - Shapes - Shape Operations - Layer Handling

Methods' Summary
insertNewByIndex creates a new ::com::sun::star::drawing::Layer  
remove removes a ::com::sun::star::drawing::Layer and all ::com::sun::star::drawing::Shape s on this ::com::sun::star::drawing::Layer .  
attachShapeToLayer attaches a ::com::sun::star::drawing::Shape to the given ::com::sun::star::drawing::Layer .  
getLayerForShape queries the ::com::sun::star::drawing::Layer that a ::com::sun::star::drawing::Shape is attached to  
Methods' Details
insertNewByIndex
::com::sun::star::drawing::XLayer
insertNewByIndex( [in] long  nIndex );

Description
creates a new ::com::sun::star::drawing::Layer
Parameter nIndex
the index at which the new layer is inserted
Returns
the new created ::com::sun::star::drawing::Layer
remove
void
remove( [in] ::com::sun::star::drawing::XLayer  xLayer )
raises( ::com::sun::star::container::NoSuchElementException );

Description
removes a ::com::sun::star::drawing::Layer and all ::com::sun::star::drawing::Shape s on this ::com::sun::star::drawing::Layer .
Parameter xLayer
this ::com::sun::star::drawing::Layer will be removed and disposed
attachShapeToLayer
void
attachShapeToLayer( [in] ::com::sun::star::drawing::XShape  xShape,
[in] ::com::sun::star::drawing::XLayer  xLayer );

Description
attaches a ::com::sun::star::drawing::Shape to the given ::com::sun::star::drawing::Layer .
Parameter xShape
this is the ::com::sun::star::drawing::Shape that will be attached to a ::com::sun::star::drawing::Layer
Parameter xLayer
this is the ::com::sun::star::drawing::Layer that will be attached to a ::com::sun::star::drawing::Shape
getLayerForShape
::com::sun::star::drawing::XLayer
getLayerForShape( [in] ::com::sun::star::drawing::XShape  xShape );

Description
queries the ::com::sun::star::drawing::Layer that a ::com::sun::star::drawing::Shape is attached to
Parameter xShape
specifies the ::com::sun::star::drawing::Shape for which the layer is requested.
Returns
the ::com::sun::star::drawing::Layer to which the ::com::sun::star::drawing::Shape is attached.
Top of Page