Top   Module   Use   Manual   Index 
 EXPORTING SERVICES | METHODS' SUMMARY | METHODS' DETAILS 

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

interface XLayerManager

Base Interface
com::sun::star::container::XIndexAccess

Description
This interface makes it possible to access and manage the Layer s of a document.
See also
LayerManager


Known Services which Export this Interface

com::sun::star::drawing::LayerManager This service is provided by documents to support Layer s.

Methods' Summary

insertNewByIndex creates a new Layer
remove removes a Layer and all Shape s on this Layer .
attachShapeToLayer attaches a Shape to the given Layer .
getLayerForShape queries the Layer that a Shape is attached to

Methods' Details

insertNewByIndex
 
com::sun::star::drawing::XLayer
insertNewByIndex(
[ in ] long nIndex );

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

Description
removes a Layer and all Shape s on this Layer .
Parameter xLayer
this 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 Shape to the given Layer .
Parameter xShape
this is the Shape that will be attached to a Layer
Parameter xLayer
this is the Layer that will be attached to a Shape
getLayerForShape
 
com::sun::star::drawing::XLayer
getLayerForShape(
[ in ] com::sun::star::drawing::XShape xShape );

Description
queries the Layer that a Shape is attached to
Parameter xShape
specifies the Shape for which the layer is requested.
Returns
the Layer to which the Shape is attached.

Top of Page