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