summaryrefslogtreecommitdiff
path: root/offapi/com/sun/star/frame/XLayoutManager.idl
blob: 4cb735ed1a31ff31ec5e61971256fc45f50862b0 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#ifndef __com_sun_star_frame_XLayoutManager_idl__
#define __com_sun_star_frame_XLayoutManager_idl__

#ifndef __com_sun_star_uno_XInterface_idl__
#include <com/sun/star/uno/XInterface.idl>
#endif

#ifndef __com_sun_star_frame_XFrame_idl__
#include <com/sun/star/frame/XFrame.idl>
#endif

#ifndef __com_sun_star_awt_Point_idl__
#include <com/sun/star/awt/Point.idl>
#endif

#ifndef __com_sun_star_awt_Size_idl__
#include <com/sun/star/awt/Size.idl>
#endif

#ifndef __com_sun_star_awt_XWindow_idl__
#include <com/sun/star/awt/XWindow.idl>
#endif

#ifndef __com_sun_star_ui_XUIElement_idl__
#include <com/sun/star/ui/XUIElement.idl>
#endif

#ifndef __com_sun_star_frame_DockingArea_idl__
#include <com/sun/star/frame/DockingArea.idl>
#endif

//=============================================================================

module com { module sun { module star { module frame {

//=============================================================================

interface XLayoutManager : com::sun::star::uno::XInterface
{
    /* Starting point */
    void attachFrame( [in] com::sun::star::frame::XFrame Frame );

    /* LayoutManager rebuild ui element list */
    void rebuild();

    /* attach document window */
    void attachDocumentWindow( [in] com::sun::star::awt::XWindow xDocumentWindow );

    /* Creates a new ui element */
    void createElement( [in] string aName );

    /* Destroys an ui element */
    void destroyElement( [in] string aName );

    /* Retrieves an ui element with the specified name */
    com::sun::star::ui::XUIElement getElement( [in] string aName );

    /* Shows the specified ui element */
    boolean show( [in] string aName );

    /* Hides the specified ui element */
    boolean hide( [in] string aName );

    /* Docks a window based ui element to a specified docking area */
    boolean dockWindow( [in] string aName, [in] com::sun::star::frame::DockingArea DockingArea, [in] com::sun::star::awt::Point Pos );

    /* Let a window based ui element float if it was docked before */
    boolean floatWindow( [in] string aName );

    /* Set a new size to a window based ui element */
    void setSize( [in] string aName, [in] com::sun::star::awt::Size aSize );

    /* Set a new position to a window based ui element */
    void setPos( [in] string aName, [in] com::sun::star::awt::Point aPos );

    void setPosSize( [in] string aName, [in] com::sun::star::awt::Point aPos, [in] com::sun::star::awt::Size aSize );

    /* Retrieves the visibility state of an ui element */
    boolean isVisible( [in] string aName );

    /* Retrieves the floating state of an ui element */
    boolean isFloating( [in] string aName );

    /* Retrieves the docked state of an ui element */
    boolean isDocked( [in] string aName );

    /* Get size of ui element called aName */
    com::sun::star::awt::Size getSize( [in] string aName );

    /* Get position of ui element called aName */
    com::sun::star::awt::Point getPos( [in] string aName );

    /* Lock layout updates until unlock is called */
    void lock();

    /* Start to layout */
    void unlock();

    /* Force a complete recalculation of the layout */
    void doLayout();

};

}; }; }; };

#endif