(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

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

interface XLayerManager
Base Interfaces
XLayerManager
┗ ::com::sun::star::container::XIndexAccess
   ┗ ::com::sun::star::container::XElementAccess

::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 Layers of a document.
See also
LayerManager
Developers Guide
Drawings - Layer Handling

Methods' Summary
insertNewByIndex creates a new Layer  
remove removes a Layer and all Shapes on this Layer.  
attachShapeToLayer attaches a Shape to the given Layer.  
getLayerForShape queries the Layer that a Shape is attached to  
Methods' Details
insertNewByIndex
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] XLayer  xLayer )
raises( ::com::sun::star::container::NoSuchElementException );

Description
removes a Layer and all Shapes on this Layer.
Parameter xLayer
this Layer will be removed and disposed
attachShapeToLayer
void
attachShapeToLayer( [in] XShape  xShape,
[in] 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
XLayer
getLayerForShape( [in] 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

Apache Feather

Copyright & License | Privacy | Contact Us

Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.