summaryrefslogtreecommitdiff
path: root/offapi/com/sun/star/awt/XLayoutFlow.idl
blob: 94a990664fa2a56f3d6f3eea8d0ec91b906ff4f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 negotiations, 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 preferred height 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