25#include <com/sun/star/lang/XServiceInfo.hpp>
26#include <com/sun/star/frame/XLayoutManager2.hpp>
27#include <com/sun/star/ui/XUIConfigurationManager.hpp>
28#include <com/sun/star/frame/XModuleManager2.hpp>
29#include <com/sun/star/awt/XWindowListener.hpp>
30#include <com/sun/star/util/XURLTransformer.hpp>
31#include <com/sun/star/ui/XUIElementFactoryManager.hpp>
32#include <com/sun/star/ui/DockingArea.hpp>
33#include <com/sun/star/awt/XTopWindow2.hpp>
48 class ToolbarLayoutManager;
52 class InfoHelperBuilder;
54 typedef ::cppu::WeakImplHelper < css::lang::XServiceInfo
55 , css::frame::XLayoutManager2
56 , css::awt::XWindowListener
65 LayoutManager(
const css::uno::Reference< css::uno::XComponentContext >& xContext );
73 return "com.sun.star.comp.framework.LayoutManager";
83 css::uno::Sequence< OUString >
aSeq {
"com.sun.star.frame.LayoutManager" };
88 virtual void SAL_CALL
attachFrame(
const css::uno::Reference< css::frame::XFrame >& Frame )
override;
89 virtual void SAL_CALL
reset()
override;
92 virtual void SAL_CALL
setDockingAreaAcceptor(
const css::uno::Reference< css::ui::XDockingAreaAcceptor >& xDockingAreaAcceptor )
final override;
93 virtual void SAL_CALL
createElement(
const OUString& aName )
override;
94 virtual void SAL_CALL
destroyElement(
const OUString& aName )
override;
96 virtual css::uno::Reference< css::ui::XUIElement > SAL_CALL
getElement(
const OUString& aName )
override;
97 virtual css::uno::Sequence< css::uno::Reference< css::ui::XUIElement > > SAL_CALL
getElements( )
override;
100 virtual sal_Bool SAL_CALL
dockWindow(
const OUString& aName, css::ui::DockingArea DockingArea,
const css::awt::Point& Pos )
override;
105 virtual void SAL_CALL
setElementSize(
const OUString& aName,
const css::awt::Size& aSize )
override;
106 virtual void SAL_CALL
setElementPos(
const OUString& aName,
const css::awt::Point& aPos )
override;
107 virtual void SAL_CALL
setElementPosSize(
const OUString& aName,
const css::awt::Point& aPos,
const css::awt::Size& aSize )
override;
112 virtual css::awt::Size SAL_CALL
getElementSize(
const OUString& aName )
override;
113 virtual css::awt::Point SAL_CALL
getElementPos(
const OUString& aName )
override;
114 virtual void SAL_CALL
lock( )
override;
115 virtual void SAL_CALL
unlock( )
override;
116 virtual void SAL_CALL
doLayout( )
override;
122 virtual sal_Bool SAL_CALL
setMergedMenuBar(
const css::uno::Reference< css::container::XIndexAccess >& xMergedMenuBar )
override;
126 virtual void SAL_CALL
windowResized(
const css::awt::WindowEvent& aEvent )
override;
127 virtual void SAL_CALL
windowMoved(
const css::awt::WindowEvent& aEvent )
override;
128 virtual void SAL_CALL
windowShown(
const css::lang::EventObject& aEvent )
override;
129 virtual void SAL_CALL
windowHidden(
const css::lang::EventObject& aEvent )
override;
132 virtual void SAL_CALL
frameAction(
const css::frame::FrameActionEvent& aEvent )
override;
136 virtual void SAL_CALL
disposing(
const css::lang::EventObject& aEvent )
override;
139 virtual void SAL_CALL
elementInserted(
const css::ui::ConfigurationEvent& Event )
override;
140 virtual void SAL_CALL
elementRemoved(
const css::ui::ConfigurationEvent& Event )
override;
141 virtual void SAL_CALL
elementReplaced(
const css::ui::ConfigurationEvent& Event )
override;
144 virtual void SAL_CALL
addLayoutManagerEventListener(
const css::uno::Reference< css::frame::XLayoutManagerListener >& aLayoutManagerListener )
override;
155 const css::uno::Reference< css::container::XNameAccess > &rPersistentWindowState,
156 std::unique_ptr<GlobalSettings> &rGlobalSettings,
bool &bInGlobalSettings,
157 const css::uno::Reference< css::uno::XComponentContext > &rComponentContext );
178 css::uno::Reference< css::ui::XUIElement >
implts_findElement( std::u16string_view aName );
196 bool implts_doLayout(
bool bForceRequestBorderSpace,
bool bOuterResize );
216 const css::uno::Reference< css::container::XIndexAccess >& xMergedMenuBar );
228 const css::uno::Any& aValue )
override;
229 virtual ::cppu::IPropertyArrayHelper& SAL_CALL
getInfoHelper()
override;
230 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
getPropertySetInfo()
override;
232 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
234 css::uno::Reference< css::frame::XFrame >
m_xFrame;
void SAL_CALL disposing()
css::uno::Reference< css::container::XNameAccess > m_xPersistentWindowStateSupplier
virtual void SAL_CALL reset() override
virtual void SAL_CALL windowMoved(const css::awt::WindowEvent &aEvent) override
css::uno::Reference< css::ui::XUIElement > m_xProgressBarBackup
UIElement m_aStatusBarElement
virtual void SAL_CALL windowHidden(const css::lang::EventObject &aEvent) override
css::uno::Reference< css::frame::XFrame > m_xFrame
void implts_resetInplaceMenuBar()
css::uno::Reference< css::awt::XTopWindow2 > m_xContainerTopWindow
virtual sal_Bool SAL_CALL hideElement(const OUString &aName) override
virtual css::awt::Size SAL_CALL getElementSize(const OUString &aName) override
virtual sal_Bool SAL_CALL dockAllWindows(::sal_Int16 nElementType) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
::Size implts_getStatusBarSize()
virtual void SAL_CALL setElementSize(const OUString &aName, const css::awt::Size &aSize) override
css::uno::Reference< css::container::XNameAccess > m_xPersistentWindowState
css::uno::Reference< css::ui::XUIElement > implts_createDockingWindow(const OUString &aElementName)
bool m_bParentWindowVisible
bool implts_showStatusBar(bool bStoreState=false)
css::awt::Rectangle implts_calcDockingAreaSizes()
DECL_LINK(WindowEventListener, VclWindowEvent &, void)
virtual void SAL_CALL removeLayoutManagerEventListener(const css::uno::Reference< css::frame::XLayoutManagerListener > &aLayoutManagerListener) override
virtual sal_Bool SAL_CALL lockWindow(const OUString &ResourceURL) override
void implts_setCurrentUIVisibility(bool bShow)
void implts_setStatusBarPosSize(const ::Point &rPos, const ::Size &rSize)
virtual sal_Bool SAL_CALL isElementLocked(const OUString &ResourceURL) override
virtual void SAL_CALL windowResized(const css::awt::WindowEvent &aEvent) override
virtual void SAL_CALL elementRemoved(const css::ui::ConfigurationEvent &Event) override
void implts_notifyListeners(short nEvent, const css::uno::Any &rInfoParam)
css::uno::Reference< css::ui::XUIConfigurationManager > m_xModuleCfgMgr
virtual css::uno::Sequence< css::uno::Reference< css::ui::XUIElement > > SAL_CALL getElements() override
virtual void SAL_CALL elementReplaced(const css::ui::ConfigurationEvent &Event) override
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &aValue) override
virtual void SAL_CALL setDockingAreaAcceptor(const css::uno::Reference< css::ui::XDockingAreaAcceptor > &xDockingAreaAcceptor) final override
css::uno::Reference< css::ui::XUIElement > implts_findElement(std::u16string_view aName)
bool implts_doLayout(bool bForceRequestBorderSpace, bool bOuterResize)
void implts_destroyStatusBar()
css::uno::Reference< css::awt::XWindow > m_xContainerWindow
css::uno::Reference< css::ui::XUIElementFactoryManager > m_xUIElementFactoryManager
bool implts_resetMenuBar()
virtual css::awt::Rectangle SAL_CALL getCurrentDockingArea() override
UIElement m_aProgressBarElement
void implts_setVisibleState(bool bShow)
virtual void SAL_CALL setVisible(sal_Bool bVisible) override
virtual sal_Bool SAL_CALL setMergedMenuBar(const css::uno::Reference< css::container::XIndexAccess > &xMergedMenuBar) override
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
virtual ~LayoutManager() override
Timer m_aAsyncLayoutTimer
virtual void SAL_CALL createElement(const OUString &aName) override
void implts_doLayout_notify(bool bOuterResize)
virtual sal_Bool SAL_CALL unlockWindow(const OUString &ResourceURL) override
LayoutManager(const css::uno::Reference< css::uno::XComponentContext > &xContext)
void implts_toggleFloatingUIElementsVisibility(bool bActive)
rtl::Reference< ToolbarLayoutManager > m_xToolbarManager
::Size implts_getContainerWindowOutputSize()
bool implts_hideProgressBar()
virtual void SAL_CALL addLayoutManagerEventListener(const css::uno::Reference< css::frame::XLayoutManagerListener > &aLayoutManagerListener) override
void implts_updateMenuBarClose()
virtual sal_Bool SAL_CALL floatWindow(const OUString &aName) override
DECL_LINK(AsyncLayoutHdl, Timer *, void)
void implts_createMSCompatibleMenuBar(const OUString &rName)
virtual sal_Bool SAL_CALL isElementVisible(const OUString &aName) override
void implts_destroyElements()
css::uno::Reference< css::uno::XComponentContext > m_xContext
virtual void SAL_CALL attachFrame(const css::uno::Reference< css::frame::XFrame > &Frame) override
void implts_writeWindowStateData(const OUString &rName, const UIElement &rElementData)
DECL_LINK(MenuBarClose, void *, void)
void impl_clearUpMenuBar()
void implts_setDockingAreaWindowSizes()
virtual void SAL_CALL destroyElement(const OUString &aName) override
virtual css::uno::Reference< css::ui::XDockingAreaAcceptor > SAL_CALL getDockingAreaAcceptor() override
rtl::Reference< MenuBarManager > m_xInplaceMenuBar
virtual void SAL_CALL frameAction(const css::frame::FrameActionEvent &aEvent) override
void implts_setOffset(const sal_Int32 nBottomOffset)
void implts_backupProgressBarWrapper()
virtual sal_Bool SAL_CALL showElement(const OUString &aName) override
bool m_bPreserveContentSize
virtual sal_Bool SAL_CALL requestElement(const OUString &ResourceURL) override
virtual css::uno::Reference< css::ui::XUIElement > SAL_CALL getElement(const OUString &aName) override
css::uno::Reference< css::frame::XModuleManager2 > m_xModuleManager
css::uno::Reference< css::ui::XUIElement > implts_createElement(const OUString &aName)
css::uno::Reference< css::ui::XDockingAreaAcceptor > m_xDockingAreaAcceptor
virtual void SAL_CALL lock() override
void implts_reparentChildWindows()
virtual OUString SAL_CALL getImplementationName() override
declaration of XInterface, XTypeProvider, XServiceInfo
bool implts_resizeContainerWindow(const css::awt::Size &rContainerSize, const css::awt::Point &rComponentPos)
virtual sal_Bool SAL_CALL dockWindow(const OUString &aName, css::ui::DockingArea DockingArea, const css::awt::Point &Pos) override
void implts_reset(bool bAttach)
void implts_readStatusBarState(const OUString &rStatusBarName)
bool implts_isEmbeddedLayoutManager() const
virtual css::awt::Point SAL_CALL getElementPos(const OUString &aName) override
virtual void SAL_CALL windowShown(const css::lang::EventObject &aEvent) override
css::awt::Rectangle m_aDockingArea
css::uno::Reference< css::ui::XUIConfigurationManager > m_xDocCfgMgr
css::uno::Reference< css::ui::XUIElement > m_xMenuBar
std::unique_ptr< GlobalSettings > m_pGlobalSettings
OUString m_aModuleIdentifier
virtual void SAL_CALL elementInserted(const css::ui::ConfigurationEvent &Event) override
void implts_updateUIElementsVisibleState(bool bShow)
bool m_bMenuBarCloseButton
virtual sal_Bool SAL_CALL isVisible() override
virtual sal_Bool SAL_CALL isElementDocked(const OUString &aName) override
css::uno::Reference< css::util::XURLTransformer > m_xURLTransformer
reference to factory, which has created this instance.
virtual void SAL_CALL doLayout() override
void implts_setInplaceMenuBar(const css::uno::Reference< css::container::XIndexAccess > &xMergedMenuBar)
bool implts_showProgressBar()
void implts_destroyProgressBar()
virtual void SAL_CALL disposing(const css::lang::EventObject &aEvent) override
virtual void SAL_CALL unlock() override
bool m_bAutomaticToolbars
static bool readWindowStateData(const OUString &rName, UIElement &rElementData, const css::uno::Reference< css::container::XNameAccess > &rPersistentWindowState, std::unique_ptr< GlobalSettings > &rGlobalSettings, bool &bInGlobalSettings, const css::uno::Reference< css::uno::XComponentContext > &rComponentContext)
Reading of settings - shared with ToolbarLayoutManager.
bool implts_readWindowStateData(const OUString &rName, UIElement &rElementData)
void implts_createMenuBar(const OUString &rMenuBarName)
void implts_createProgressBar()
void implts_createStatusBar(const OUString &rStatusBarName)
virtual void SAL_CALL setElementPosSize(const OUString &aName, const css::awt::Point &aPos, const css::awt::Size &aSize) override
bool implts_hideStatusBar(bool bStoreState=false)
virtual void SAL_CALL removeMergedMenuBar() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL isElementFloating(const OUString &aName) override
virtual sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
virtual void SAL_CALL setElementPos(const OUString &aName, const css::awt::Point &aPos) override
comphelper::OMultiTypeInterfaceContainerHelper2 m_aListenerContainer
Sequence< sal_Int8 > aSeq
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
::cppu::WeakImplHelper< css::lang::XServiceInfo, css::frame::XLayoutManager2, css::awt::XWindowListener > LayoutManager_Base
::comphelper::OPropertyContainer LayoutManager_PBase
#define DECLARE_XTYPEPROVIDER()
#define DECLARE_XINTERFACE()