(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: embed ::

interface XInplaceObject
Description
represents common functionality for inplace embedded objects.

Methods' Summary
setObjectRectangles sets the visible part of the inplace object.  
enableModeless enables or disables modeless dialogs of the object.  
translateAccelerators provides accelerator table the container whants to use during inplace editing.  
Methods' Details
setObjectRectangles
void
setObjectRectangles( [in] ::com::sun::star::awt::Rectangle  aPosRect,
[in] ::com::sun::star::awt::Rectangle  aClipRect )
raises( WrongStateException,
::com::sun::star::uno::Exception );

Description
sets the visible part of the inplace object.

Both rectangles are provided in object's parent window coordinates in pixels. The intersection of rectangles specifies the visible part of the object. In case the position window has a size that is different from object's visual area size, the object should either scale or deactivate.

The method must activate object repainting.

Parameter aPosRect
specifies a new position rectangle
Parameter aClipRect
specifies a new clip rectangle
Throws
com::sun::star::embed::WrongStateException the object is in invalid state
Throws
com::sun::star::uno::Exception in case of other problems
enableModeless
void
enableModeless( [in] boolean  bEnable )
raises( WrongStateException,
::com::sun::star::uno::Exception );

Description
enables or disables modeless dialogs of the object.

In case contaner whants to show a modal dialog it should disable modeless of embedded object dialogs with this call. Later the same call can be used to enable it.

Parameter bEnable
true to enable object modeless false to disable it
Throws
com::sun::star::embed::WrongStateException the object is in wrong state
Throws
com::sun::star::uno::Exception in case of other problems
translateAccelerators
void
translateAccelerators( [in] sequence< ::com::sun::star::awt::KeyEvent >  aKeys )
raises( WrongStateException );

Description
provides accelerator table the container whants to use during inplace editing.
Returns
an accelerator table from container
Throws
com::sun::star::embed::WrongStateException the object is in unexpected state
Top of Page

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.

Copyright & License
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.