Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_FRAME_XLAYOUTMANAGER_HDL
2 : : #define INCLUDED_COM_SUN_STAR_FRAME_XLAYOUTMANAGER_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/awt/Size.hdl"
7 : : #include "com/sun/star/ui/DockingArea.hdl"
8 : : namespace com { namespace sun { namespace star { namespace ui { class XUIElement; } } } }
9 : : #include "com/sun/star/uno/RuntimeException.hdl"
10 : : #include "com/sun/star/awt/Rectangle.hdl"
11 : : namespace com { namespace sun { namespace star { namespace frame { class XFrame; } } } }
12 : : namespace com { namespace sun { namespace star { namespace ui { class XDockingAreaAcceptor; } } } }
13 : : #include "com/sun/star/uno/XInterface.hdl"
14 : : #include "com/sun/star/awt/Point.hdl"
15 : : #include "com/sun/star/uno/Reference.h"
16 : : #include "com/sun/star/uno/Sequence.h"
17 : : #include "cppu/macros.hxx"
18 : : #include "rtl/ustring.hxx"
19 : : #include "sal/types.h"
20 : :
21 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
22 : :
23 : : namespace com { namespace sun { namespace star { namespace frame {
24 : :
25 : 1747 : class SAL_NO_VTABLE XLayoutManager : public ::com::sun::star::uno::XInterface
26 : : {
27 : : public:
28 : :
29 : : // Methods
30 : : virtual void SAL_CALL attachFrame( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& Frame ) throw (::com::sun::star::uno::RuntimeException) = 0;
31 : : virtual void SAL_CALL reset( ) throw (::com::sun::star::uno::RuntimeException) = 0;
32 : : virtual ::com::sun::star::awt::Rectangle SAL_CALL getCurrentDockingArea( ) throw (::com::sun::star::uno::RuntimeException) = 0;
33 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::ui::XDockingAreaAcceptor > SAL_CALL getDockingAreaAcceptor( ) throw (::com::sun::star::uno::RuntimeException) = 0;
34 : : virtual void SAL_CALL setDockingAreaAcceptor( const ::com::sun::star::uno::Reference< ::com::sun::star::ui::XDockingAreaAcceptor >& xDockingAreaAcceptor ) throw (::com::sun::star::uno::RuntimeException) = 0;
35 : : virtual void SAL_CALL createElement( const ::rtl::OUString& ResourceURL ) throw (::com::sun::star::uno::RuntimeException) = 0;
36 : : virtual void SAL_CALL destroyElement( const ::rtl::OUString& ResourceURL ) throw (::com::sun::star::uno::RuntimeException) = 0;
37 : : virtual ::sal_Bool SAL_CALL requestElement( const ::rtl::OUString& ResourceURL ) throw (::com::sun::star::uno::RuntimeException) = 0;
38 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::ui::XUIElement > SAL_CALL getElement( const ::rtl::OUString& ResourceURL ) throw (::com::sun::star::uno::RuntimeException) = 0;
39 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::ui::XUIElement > > SAL_CALL getElements( ) throw (::com::sun::star::uno::RuntimeException) = 0;
40 : : virtual ::sal_Bool SAL_CALL showElement( const ::rtl::OUString& ResourceURL ) throw (::com::sun::star::uno::RuntimeException) = 0;
41 : : virtual ::sal_Bool SAL_CALL hideElement( const ::rtl::OUString& ResourceURL ) throw (::com::sun::star::uno::RuntimeException) = 0;
42 : : virtual ::sal_Bool SAL_CALL dockWindow( const ::rtl::OUString& ResourceURL, ::com::sun::star::ui::DockingArea DockingArea, const ::com::sun::star::awt::Point& Pos ) throw (::com::sun::star::uno::RuntimeException) = 0;
43 : : virtual ::sal_Bool SAL_CALL dockAllWindows( ::sal_Int16 nElementType ) throw (::com::sun::star::uno::RuntimeException) = 0;
44 : : virtual ::sal_Bool SAL_CALL floatWindow( const ::rtl::OUString& ResourceURL ) throw (::com::sun::star::uno::RuntimeException) = 0;
45 : : virtual ::sal_Bool SAL_CALL lockWindow( const ::rtl::OUString& ResourceURL ) throw (::com::sun::star::uno::RuntimeException) = 0;
46 : : virtual ::sal_Bool SAL_CALL unlockWindow( const ::rtl::OUString& ResourceURL ) throw (::com::sun::star::uno::RuntimeException) = 0;
47 : : virtual void SAL_CALL setElementSize( const ::rtl::OUString& ResourceURL, const ::com::sun::star::awt::Size& Size ) throw (::com::sun::star::uno::RuntimeException) = 0;
48 : : virtual void SAL_CALL setElementPos( const ::rtl::OUString& ResourceURL, const ::com::sun::star::awt::Point& Pos ) throw (::com::sun::star::uno::RuntimeException) = 0;
49 : : virtual void SAL_CALL setElementPosSize( const ::rtl::OUString& ResourceURL, const ::com::sun::star::awt::Point& Pos, const ::com::sun::star::awt::Size& Size ) throw (::com::sun::star::uno::RuntimeException) = 0;
50 : : virtual ::sal_Bool SAL_CALL isElementVisible( const ::rtl::OUString& ResourceURL ) throw (::com::sun::star::uno::RuntimeException) = 0;
51 : : virtual ::sal_Bool SAL_CALL isElementFloating( const ::rtl::OUString& ResourceURL ) throw (::com::sun::star::uno::RuntimeException) = 0;
52 : : virtual ::sal_Bool SAL_CALL isElementDocked( const ::rtl::OUString& ResourceURL ) throw (::com::sun::star::uno::RuntimeException) = 0;
53 : : virtual ::sal_Bool SAL_CALL isElementLocked( const ::rtl::OUString& ResourceURL ) throw (::com::sun::star::uno::RuntimeException) = 0;
54 : : virtual ::com::sun::star::awt::Size SAL_CALL getElementSize( const ::rtl::OUString& ResourceURL ) throw (::com::sun::star::uno::RuntimeException) = 0;
55 : : virtual ::com::sun::star::awt::Point SAL_CALL getElementPos( const ::rtl::OUString& ResourceURL ) throw (::com::sun::star::uno::RuntimeException) = 0;
56 : : virtual void SAL_CALL lock( ) throw (::com::sun::star::uno::RuntimeException) = 0;
57 : : virtual void SAL_CALL unlock( ) throw (::com::sun::star::uno::RuntimeException) = 0;
58 : : virtual void SAL_CALL doLayout( ) throw (::com::sun::star::uno::RuntimeException) = 0;
59 : : virtual void SAL_CALL setVisible( ::sal_Bool Visible ) throw (::com::sun::star::uno::RuntimeException) = 0;
60 : : virtual ::sal_Bool SAL_CALL isVisible( ) throw (::com::sun::star::uno::RuntimeException) = 0;
61 : :
62 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
63 : :
64 : : protected:
65 : 1656 : ~XLayoutManager() throw () {} // avoid warnings about virtual members and non-virtual dtor
66 : : };
67 : :
68 : :
69 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::frame::XLayoutManager const *);
70 : : } } } }
71 : :
72 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XLayoutManager > *) SAL_THROW(());
73 : :
74 : : #endif
|