diff options
Diffstat (limited to 'offapi/com/sun/star/awt/XLayoutFlow.idl')
-rw-r--r-- | offapi/com/sun/star/awt/XLayoutFlow.idl | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/offapi/com/sun/star/awt/XLayoutFlow.idl b/offapi/com/sun/star/awt/XLayoutFlow.idl new file mode 100644 index 000000000000..1ec260aeab83 --- /dev/null +++ b/offapi/com/sun/star/awt/XLayoutFlow.idl @@ -0,0 +1,32 @@ +#ifndef __com_sun_star_awt_XLayoutFlow_idl__ +#define __com_sun_star_awt_XLayoutFlow_idl__ + +//============================================================================= + +#include <com/sun/star/uno/XInterface.idl> + +module com { module sun { module star { module awt { + +//============================================================================= + +/** Enables height-for-width layout negociations, which allows for label wrapping + and flow containers. Can be implemented by either a container or an ordinary widget; + whether its parent will honor it is another story, so keep implementing + getMinimumSize(). + + @since OOo 3.0 + */ +interface XLayoutFlow +{ + /** returns the prefered high this layout element would need for the given width. */ + long getHeightForWidth( [in] long Width ); + + /** Allow the container/widget to toggle the functionality. */ + boolean hasHeightForWidth(); +}; + +//============================================================================= + +}; }; }; }; + +#endif |