32#include <com/sun/star/ui/XUIConfigurationManager.hpp>
33#include <com/sun/star/awt/XWindowListener.hpp>
34#include <com/sun/star/ui/XUIElementFactory.hpp>
35#include <com/sun/star/ui/DockingArea.hpp>
36#include <com/sun/star/awt/XWindow2.hpp>
37#include <com/sun/star/awt/XDockableWindow.hpp>
38#include <com/sun/star/awt/XDockableWindowListener.hpp>
46 css::ui::XUIConfigurationListener,
47 css::awt::XWindowListener >
60 css::uno::Reference< css::ui::XUIElementFactory > xUIElementFactory,
65 void attach(
const css::uno::Reference< css::frame::XFrame >& xFrame,
66 const css::uno::Reference< css::ui::XUIConfigurationManager >& xModuleCfgMgr,
67 const css::uno::Reference< css::ui::XUIConfigurationManager >& xDocCfgMgr,
68 const css::uno::Reference< css::container::XNameAccess >& xPersistentWindowState );
70 void setParentWindow(
const css::uno::Reference< css::awt::XVclWindowPeer >& xParentWindow );
82 void doLayout(const ::Size& aContainerSize);
93 bool showToolbar( std::u16string_view rResourceURL );
94 bool hideToolbar( std::u16string_view rResourceURL );
101 bool dockToolbar( std::u16string_view rResourceURL, css::ui::DockingArea eDockingArea,
const css::awt::Point& aPos );
104 bool lockToolbar( std::u16string_view rResourceURL );
106 void setToolbarPos( std::u16string_view rResourceURL,
const css::awt::Point& aPos );
107 void setToolbarSize( std::u16string_view rResourceURL,
const css::awt::Size& aSize );
108 void setToolbarPosSize( std::u16string_view rResourceURL,
const css::awt::Point& aPos,
const css::awt::Size& aSize );
113 css::awt::Point
getToolbarPos( std::u16string_view rResourceURL );
114 css::awt::Size
getToolbarSize( std::u16string_view rResourceURL );
115 css::uno::Reference< css::ui::XUIElement >
getToolbar( std::u16string_view aName );
116 css::uno::Sequence< css::uno::Reference< css::ui::XUIElement > >
getToolbars();
125 virtual void SAL_CALL
acquire() noexcept override;
126 virtual
void SAL_CALL
release() noexcept override;
130 virtual
void SAL_CALL
disposing( const css::lang::EventObject& aEvent ) override;
133 virtual
void SAL_CALL
windowResized( const css::awt::WindowEvent& aEvent ) override;
134 virtual
void SAL_CALL
windowMoved( const css::awt::WindowEvent& aEvent ) override;
135 virtual
void SAL_CALL
windowShown( const css::lang::EventObject& aEvent ) override;
136 virtual
void SAL_CALL
windowHidden( const css::lang::EventObject& aEvent ) override;
139 virtual
void SAL_CALL
startDocking( const css::awt::DockingEvent& e ) override;
140 virtual css::awt::
DockingData SAL_CALL
docking( const css::awt::DockingEvent& e ) override;
141 virtual
void SAL_CALL
endDocking( const css::awt::EndDockingEvent& e ) override;
144 virtual
void SAL_CALL
closed( const css::lang::EventObject& e ) override;
145 virtual
void SAL_CALL
endPopupMode( const css::awt::EndPopupModeEvent& e ) override;
148 virtual
void SAL_CALL
elementInserted( const css::ui::ConfigurationEvent& Event ) override;
149 virtual
void SAL_CALL
elementRemoved( const css::ui::ConfigurationEvent& Event ) override;
150 virtual
void SAL_CALL
elementReplaced( const css::ui::ConfigurationEvent& Event ) override;
199 const ::Size& rContainerSize );
208 css::uno::Reference< css::awt::XWindow >
implts_getXWindow( std::u16string_view aName );
223 const ::tools::Rectangle& rDockedElementRect,
224 std::u16string_view rMovedElementName,
225 const ::tools::Rectangle& rMovedElementRect );
229 const ::tools::Rectangle& rTrackingRect,
230 const ::tools::Rectangle& rRowColumnRect,
231 const ::Size& rContainerWinSize );
255 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
256 css::uno::Reference< css::frame::XFrame >
m_xFrame;