1#ifndef __com_sun_star_awt_XLayoutFlow_idl__ 2#define __com_sun_star_awt_XLayoutFlow_idl__ 3 4//============================================================================= 5 6#include <com/sun/star/uno/XInterface.idl> 7 8module com { module sun { module star { module awt { 9 10//============================================================================= 11 12/** Enables height-for-width layout negociations, which allows for label wrapping 13 and flow containers. Can be implemented by either a container or an ordinary widget; 14 whether its parent will honor it is another story, so keep implementing 15 getMinimumSize(). 16 17 @since OOo 3.0 18 */ 19interface XLayoutFlow 20{ 21 /** returns the prefered high this layout element would need for the given width. */ 22 long getHeightForWidth( [in] long Width ); 23 24 /** Allow the container/widget to toggle the functionality. */ 25 boolean hasHeightForWidth(); 26}; 27 28//============================================================================= 29 30}; }; }; }; 31 32#endif 33