LibreOffice Module framework (master) 1
Classes | Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
framework::ToolbarLayoutManager Class Reference

#include <toolbarlayoutmanager.hxx>

Inheritance diagram for framework::ToolbarLayoutManager:
[legend]
Collaboration diagram for framework::ToolbarLayoutManager:
[legend]

Classes

struct  SingleRowColumnWindowData
 

Public Types

enum  { DOCKINGAREAS_COUNT = 4 }
 
enum  PreviewFrameDetection {
  PREVIEWFRAME_UNKNOWN ,
  PREVIEWFRAME_NO ,
  PREVIEWFRAME_YES
}
 

Public Member Functions

 ToolbarLayoutManager (css::uno::Reference< css::uno::XComponentContext > xContext, css::uno::Reference< css::ui::XUIElementFactory > xUIElementFactory, LayoutManager *pParentLayouter)
 
virtual ~ToolbarLayoutManager () override
 
void reset ()
 
void attach (const css::uno::Reference< css::frame::XFrame > &xFrame, const css::uno::Reference< css::ui::XUIConfigurationManager > &xModuleCfgMgr, const css::uno::Reference< css::ui::XUIConfigurationManager > &xDocCfgMgr, const css::uno::Reference< css::container::XNameAccess > &xPersistentWindowState)
 
void setParentWindow (const css::uno::Reference< css::awt::XVclWindowPeer > &xParentWindow)
 
void setDockingAreaOffsets (const ::tools::Rectangle &rOffsets)
 
void resetDockingArea ()
 
css::awt::Rectangle getDockingArea ()
 
void setDockingArea (const css::awt::Rectangle &rDockingArea)
 
bool isPreviewFrame ()
 
bool isLayoutDirty () const
 
void doLayout (const ::Size &aContainerSize)
 
void createStaticToolbars ()
 
void destroyToolbars ()
 
bool requestToolbar (const OUString &rResourceURL)
 
bool createToolbar (const OUString &rResourceURL)
 
bool destroyToolbar (std::u16string_view rResourceURL)
 
bool showToolbar (std::u16string_view rResourceURL)
 
bool hideToolbar (std::u16string_view rResourceURL)
 
void refreshToolbarsVisibility (bool bAutomaticToolbars)
 
void setFloatingToolbarsVisibility (bool bVisible)
 
void setVisible (bool bVisible)
 
bool dockToolbar (std::u16string_view rResourceURL, css::ui::DockingArea eDockingArea, const css::awt::Point &aPos)
 
bool dockAllToolbars ()
 
bool floatToolbar (std::u16string_view rResourceURL)
 
bool lockToolbar (std::u16string_view rResourceURL)
 
bool unlockToolbar (std::u16string_view rResourceURL)
 
void setToolbarPos (std::u16string_view rResourceURL, const css::awt::Point &aPos)
 
void setToolbarSize (std::u16string_view rResourceURL, const css::awt::Size &aSize)
 
void setToolbarPosSize (std::u16string_view rResourceURL, const css::awt::Point &aPos, const css::awt::Size &aSize)
 
bool isToolbarVisible (std::u16string_view rResourceURL)
 
bool isToolbarFloating (std::u16string_view rResourceURL)
 
bool isToolbarDocked (std::u16string_view rResourceURL)
 
bool isToolbarLocked (std::u16string_view rResourceURL)
 
css::awt::Point getToolbarPos (std::u16string_view rResourceURL)
 
css::awt::Size getToolbarSize (std::u16string_view rResourceURL)
 
css::uno::Reference< css::ui::XUIElement > getToolbar (std::u16string_view aName)
 
css::uno::Sequence< css::uno::Reference< css::ui::XUIElement > > getToolbars ()
 
void updateToolbarsTips ()
 
void childWindowEvent (VclSimpleEvent const *pEvent)
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL windowResized (const css::awt::WindowEvent &aEvent) override
 
virtual void SAL_CALL windowMoved (const css::awt::WindowEvent &aEvent) override
 
virtual void SAL_CALL windowShown (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL windowHidden (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL startDocking (const css::awt::DockingEvent &e) override
 
virtual css::awt::DockingData SAL_CALL docking (const css::awt::DockingEvent &e) override
 
virtual void SAL_CALL endDocking (const css::awt::EndDockingEvent &e) override
 
virtual sal_Bool SAL_CALL prepareToggleFloatingMode (const css::lang::EventObject &e) override
 
virtual void SAL_CALL toggleFloatingMode (const css::lang::EventObject &e) override
 
virtual void SAL_CALL closed (const css::lang::EventObject &e) override
 
virtual void SAL_CALL endPopupMode (const css::awt::EndPopupModeEvent &e) override
 
virtual void SAL_CALL elementInserted (const css::ui::ConfigurationEvent &Event) override
 
virtual void SAL_CALL elementRemoved (const css::ui::ConfigurationEvent &Event) override
 
virtual void SAL_CALL elementReplaced (const css::ui::ConfigurationEvent &Event) override
 

Private Types

enum  DockingOperation {
  DOCKOP_BEFORE_COLROW ,
  DOCKOP_ON_COLROW ,
  DOCKOP_AFTER_COLROW
}
 
typedef std::vector< UIElementUIElementVector
 

Private Member Functions

bool implts_isParentWindowVisible () const
 
::tools::Rectangle implts_calcDockingArea ()
 
void implts_sortUIElements ()
 
void implts_reparentToolbars ()
 
OUString implts_generateGenericAddonToolbarTitle (sal_Int32 nNumber) const
 
void implts_setElementData (UIElement &rUIElement, const css::uno::Reference< css::awt::XDockableWindow > &rDockWindow)
 
void implts_destroyDockingAreaWindows ()
 
void implts_setDockingAreaWindowSizes (const css::awt::Rectangle &rBorderSpace)
 
css::awt::Point implts_findNextCascadeFloatingPos ()
 
void implts_renumberRowColumnData (css::ui::DockingArea eDockingArea, const UIElement &rUIElement)
 
void implts_calcWindowPosSizeOnSingleRowColumn (sal_Int32 nDockingArea, sal_Int32 nOffset, SingleRowColumnWindowData &rRowColumnWindowData, const ::Size &rContainerSize)
 
void implts_setLayoutDirty ()
 
void implts_setLayoutInProgress (bool bInProgress=true)
 
UIElement implts_findToolbar (std::u16string_view aName)
 
UIElement implts_findToolbar (const css::uno::Reference< css::uno::XInterface > &xToolbar)
 
UIElementimpl_findToolbar (std::u16string_view aName)
 
css::uno::Reference< css::awt::XWindow > implts_getXWindow (std::u16string_view aName)
 
vcl::Windowimplts_getWindow (std::u16string_view aName)
 
bool implts_insertToolbar (const UIElement &rUIElement)
 
void implts_setToolbar (const UIElement &rUIElement)
 
::Size implts_getTopBottomDockingAreaSizes ()
 
void implts_getUIElementVectorCopy (UIElementVector &rCopy)
 
::tools::Rectangle implts_calcHotZoneRect (const ::tools::Rectangle &rRect, sal_Int32 nHotZoneOffset)
 
void implts_calcDockingPosSize (UIElement &aUIElement, DockingOperation &eDockOperation, ::tools::Rectangle &rTrackingRect, const Point &rMousePos)
 
DockingOperation implts_determineDockingOperation (css::ui::DockingArea DockingArea, const ::tools::Rectangle &rRowColRect, const Point &rMousePos)
 
::tools::Rectangle implts_getWindowRectFromRowColumn (css::ui::DockingArea DockingArea, const SingleRowColumnWindowData &rRowColumnWindowData, const ::Point &rMousePos, std::u16string_view rExcludeElementName)
 
::tools::Rectangle implts_determineFrontDockingRect (css::ui::DockingArea eDockingArea, sal_Int32 nRowCol, const ::tools::Rectangle &rDockedElementRect, std::u16string_view rMovedElementName, const ::tools::Rectangle &rMovedElementRect)
 
::tools::Rectangle implts_calcTrackingAndElementRect (css::ui::DockingArea eDockingArea, sal_Int32 nRowCol, UIElement &rUIElement, const ::tools::Rectangle &rTrackingRect, const ::tools::Rectangle &rRowColumnRect, const ::Size &rContainerWinSize)
 
void implts_getDockingAreaElementInfos (css::ui::DockingArea DockingArea, std::vector< SingleRowColumnWindowData > &rRowColumnsWindowData)
 
void implts_getDockingAreaElementInfoOnSingleRowCol (css::ui::DockingArea, sal_Int32 nRowCol, SingleRowColumnWindowData &rRowColumnWindowData)
 
void implts_findNextDockingPos (css::ui::DockingArea DockingArea, const ::Size &aUIElementSize, css::awt::Point &rVirtualPos, ::Point &rPixelPos)
 
void implts_setTrackingRect (css::ui::DockingArea eDockingArea, const ::Point &rMousePos, ::tools::Rectangle &rTrackingRect)
 
void implts_createAddonsToolBars ()
 
void implts_createCustomToolBars ()
 
void implts_createNonContextSensitiveToolBars ()
 
void implts_createCustomToolBars (const css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > &aCustomTbxSeq)
 
void implts_createCustomToolBar (const OUString &aTbxResName, const OUString &aTitle)
 
void implts_setToolbarCreation (bool bStart=true)
 
bool implts_isToolbarCreationActive ()
 
bool implts_readWindowStateData (const OUString &aName, UIElement &rElementData)
 
void implts_writeWindowStateData (const UIElement &rElementData)
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::frame::XFrame > m_xFrame
 
css::uno::Reference< css::awt::XWindow2 > m_xContainerWindow
 
css::uno::Reference< css::awt::XWindow > m_xDockAreaWindows [DOCKINGAREAS_COUNT]
 
css::uno::Reference< css::ui::XUIElementFactory > m_xUIElementFactoryManager
 
css::uno::Reference< css::ui::XUIConfigurationManager > m_xModuleCfgMgr
 
css::uno::Reference< css::ui::XUIConfigurationManager > m_xDocCfgMgr
 
css::uno::Reference< css::container::XNameAccess > m_xPersistentWindowState
 
LayoutManagerm_pParentLayouter
 
UIElementVector m_aUIElements
 
UIElement m_aDockUIElement
 
tools::Rectangle m_aDockingArea
 
tools::Rectangle m_aDockingAreaOffsets
 
DockingOperation m_eDockOperation
 
PreviewFrameDetection m_ePreviewDetection
 
std::unique_ptr< AddonsOptions > m_pAddonOptions
 
std::unique_ptr< GlobalSettingsm_pGlobalSettings
 
bool m_bComponentAttached
 
bool m_bLayoutDirty
 
bool m_bGlobalSettings
 
bool m_bDockingInProgress
 
bool m_bLayoutInProgress
 
bool m_bToolbarCreation
 

Detailed Description

Definition at line 45 of file toolbarlayoutmanager.hxx.

Member Typedef Documentation

◆ UIElementVector

Definition at line 160 of file toolbarlayoutmanager.hxx.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
DOCKINGAREAS_COUNT 

Definition at line 50 of file toolbarlayoutmanager.hxx.

◆ DockingOperation

Enumerator
DOCKOP_BEFORE_COLROW 
DOCKOP_ON_COLROW 
DOCKOP_AFTER_COLROW 

Definition at line 153 of file toolbarlayoutmanager.hxx.

◆ PreviewFrameDetection

Enumerator
PREVIEWFRAME_UNKNOWN 
PREVIEWFRAME_NO 
PREVIEWFRAME_YES 

Definition at line 52 of file toolbarlayoutmanager.hxx.

Constructor & Destructor Documentation

◆ ToolbarLayoutManager()

framework::ToolbarLayoutManager::ToolbarLayoutManager ( css::uno::Reference< css::uno::XComponentContext >  xContext,
css::uno::Reference< css::ui::XUIElementFactory >  xUIElementFactory,
LayoutManager pParentLayouter 
)

Definition at line 56 of file toolbarlayoutmanager.cxx.

◆ ~ToolbarLayoutManager()

framework::ToolbarLayoutManager::~ToolbarLayoutManager ( )
overridevirtual

Definition at line 76 of file toolbarlayoutmanager.cxx.

References m_pAddonOptions, and m_pGlobalSettings.

Member Function Documentation

◆ acquire()

void SAL_CALL framework::ToolbarLayoutManager::acquire ( )
overridevirtualnoexcept

Definition at line 84 of file toolbarlayoutmanager.cxx.

◆ attach()

void framework::ToolbarLayoutManager::attach ( const css::uno::Reference< css::frame::XFrame > &  xFrame,
const css::uno::Reference< css::ui::XUIConfigurationManager > &  xModuleCfgMgr,
const css::uno::Reference< css::ui::XUIConfigurationManager > &  xDocCfgMgr,
const css::uno::Reference< css::container::XNameAccess > &  xPersistentWindowState 
)

◆ childWindowEvent()

void framework::ToolbarLayoutManager::childWindowEvent ( VclSimpleEvent const *  pEvent)

◆ closed()

void SAL_CALL framework::ToolbarLayoutManager::closed ( const css::lang::EventObject &  e)
overridevirtual

◆ createStaticToolbars()

void framework::ToolbarLayoutManager::createStaticToolbars ( )

◆ createToolbar()

bool framework::ToolbarLayoutManager::createToolbar ( const OUString &  rResourceURL)

◆ destroyToolbar()

bool framework::ToolbarLayoutManager::destroyToolbar ( std::u16string_view  rResourceURL)

◆ destroyToolbars()

void framework::ToolbarLayoutManager::destroyToolbars ( )

◆ disposing()

void SAL_CALL framework::ToolbarLayoutManager::disposing ( const css::lang::EventObject &  aEvent)
overridevirtual

◆ dockAllToolbars()

bool framework::ToolbarLayoutManager::dockAllToolbars ( )

◆ docking()

awt::DockingData SAL_CALL framework::ToolbarLayoutManager::docking ( const css::awt::DockingEvent &  e)
overridevirtual

◆ dockToolbar()

bool framework::ToolbarLayoutManager::dockToolbar ( std::u16string_view  rResourceURL,
css::ui::DockingArea  eDockingArea,
const css::awt::Point &  aPos 
)

◆ doLayout()

void framework::ToolbarLayoutManager::doLayout ( const ::Size aContainerSize)

◆ elementInserted()

void SAL_CALL framework::ToolbarLayoutManager::elementInserted ( const css::ui::ConfigurationEvent &  Event)
overridevirtual

◆ elementRemoved()

void SAL_CALL framework::ToolbarLayoutManager::elementRemoved ( const css::ui::ConfigurationEvent &  Event)
overridevirtual

◆ elementReplaced()

void SAL_CALL framework::ToolbarLayoutManager::elementReplaced ( const css::ui::ConfigurationEvent &  Event)
overridevirtual

◆ endDocking()

void SAL_CALL framework::ToolbarLayoutManager::endDocking ( const css::awt::EndDockingEvent &  e)
overridevirtual

◆ endPopupMode()

void SAL_CALL framework::ToolbarLayoutManager::endPopupMode ( const css::awt::EndPopupModeEvent &  e)
overridevirtual

Definition at line 3759 of file toolbarlayoutmanager.cxx.

◆ floatToolbar()

bool framework::ToolbarLayoutManager::floatToolbar ( std::u16string_view  rResourceURL)

◆ getDockingArea()

awt::Rectangle framework::ToolbarLayoutManager::getDockingArea ( )

◆ getToolbar()

uno::Reference< ui::XUIElement > framework::ToolbarLayoutManager::getToolbar ( std::u16string_view  aName)

◆ getToolbarPos()

awt::Point framework::ToolbarLayoutManager::getToolbarPos ( std::u16string_view  rResourceURL)

◆ getToolbars()

uno::Sequence< uno::Reference< ui::XUIElement > > framework::ToolbarLayoutManager::getToolbars ( )

Definition at line 3926 of file toolbarlayoutmanager.cxx.

References aSeq, m_aUIElements, and nCount.

Referenced by framework::LayoutManager::getElements().

◆ getToolbarSize()

awt::Size framework::ToolbarLayoutManager::getToolbarSize ( std::u16string_view  rResourceURL)

◆ hideToolbar()

bool framework::ToolbarLayoutManager::hideToolbar ( std::u16string_view  rResourceURL)

◆ impl_findToolbar()

UIElement & framework::ToolbarLayoutManager::impl_findToolbar ( std::u16string_view  aName)
private

◆ implts_calcDockingArea()

tools::Rectangle framework::ToolbarLayoutManager::implts_calcDockingArea ( )
private

◆ implts_calcDockingPosSize()

void framework::ToolbarLayoutManager::implts_calcDockingPosSize ( UIElement aUIElement,
DockingOperation eDockOperation,
::tools::Rectangle rTrackingRect,
const Point rMousePos 
)
private

Definition at line 2571 of file toolbarlayoutmanager.cxx.

References tools::Rectangle::Bottom(), tools::Rectangle::BottomRight(), ToolBox::CalcWindowSizePixel(), tools::Rectangle::Contains(), DOCKOP_AFTER_COLROW, DOCKOP_BEFORE_COLROW, DOCKOP_ON_COLROW, VclPtr< class reference_type >::get(), tools::Rectangle::getOpenHeight(), tools::Rectangle::getOpenWidth(), vcl::Window::GetOutputSizePixel(), vcl::Window::GetPosPixel(), tools::Rectangle::GetSize(), vcl::Window::GetSizePixel(), VCLUnoHelper::GetWindow(), Height, Size::Height(), i, framework::ImplConvertAlignment(), implts_calcTrackingAndElementRect(), implts_determineDockingOperation(), implts_determineFrontDockingRect(), implts_getDockingAreaElementInfos(), implts_getTopBottomDockingAreaSizes(), implts_getWindowRectFromRowColumn(), implts_setTrackingRect(), tools::Rectangle::IsEmpty(), tools::Rectangle::Left(), framework::UIElement::m_aDockedData, m_aDockingAreaOffsets, framework::UIElement::m_aName, framework::DockedData::m_aPos, framework::DockedData::m_nDockedArea, m_xContainerWindow, m_xDockAreaWindows, framework::UIElement::m_xUIElement, tools::Rectangle::Move(), nCount, nIndex, vcl::Window::OutputToScreenPixel(), tools::Rectangle::Right(), SAL_MAX_INT32, vcl::Window::ScreenToOutputPixel(), tools::Rectangle::setHeight(), tools::Rectangle::SetPos(), tools::Rectangle::SetSize(), tools::Rectangle::setWidth(), tools::Rectangle::Top(), tools::Rectangle::TopLeft(), Width, Size::Width(), Point::X(), and Point::Y().

Referenced by docking().

◆ implts_calcHotZoneRect()

tools::Rectangle framework::ToolbarLayoutManager::implts_calcHotZoneRect ( const ::tools::Rectangle rRect,
sal_Int32  nHotZoneOffset 
)
private

◆ implts_calcTrackingAndElementRect()

tools::Rectangle framework::ToolbarLayoutManager::implts_calcTrackingAndElementRect ( css::ui::DockingArea  eDockingArea,
sal_Int32  nRowCol,
UIElement rUIElement,
const ::tools::Rectangle rTrackingRect,
const ::tools::Rectangle rRowColumnRect,
const ::Size rContainerWinSize 
)
private

◆ implts_calcWindowPosSizeOnSingleRowColumn()

void framework::ToolbarLayoutManager::implts_calcWindowPosSizeOnSingleRowColumn ( sal_Int32  nDockingArea,
sal_Int32  nOffset,
SingleRowColumnWindowData rRowColumnWindowData,
const ::Size rContainerSize 
)
private

◆ implts_createAddonsToolBars()

void framework::ToolbarLayoutManager::implts_createAddonsToolBars ( )
private

◆ implts_createCustomToolBar()

void framework::ToolbarLayoutManager::implts_createCustomToolBar ( const OUString &  aTbxResName,
const OUString &  aTitle 
)
private

◆ implts_createCustomToolBars() [1/2]

void framework::ToolbarLayoutManager::implts_createCustomToolBars ( )
private

◆ implts_createCustomToolBars() [2/2]

void framework::ToolbarLayoutManager::implts_createCustomToolBars ( const css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > &  aCustomTbxSeq)
private

◆ implts_createNonContextSensitiveToolBars()

void framework::ToolbarLayoutManager::implts_createNonContextSensitiveToolBars ( )
private

◆ implts_destroyDockingAreaWindows()

void framework::ToolbarLayoutManager::implts_destroyDockingAreaWindows ( )
private

Definition at line 1511 of file toolbarlayoutmanager.cxx.

References m_xDockAreaWindows.

Referenced by disposing().

◆ implts_determineDockingOperation()

framework::ToolbarLayoutManager::DockingOperation framework::ToolbarLayoutManager::implts_determineDockingOperation ( css::ui::DockingArea  DockingArea,
const ::tools::Rectangle rRowColRect,
const Point rMousePos 
)
private

◆ implts_determineFrontDockingRect()

tools::Rectangle framework::ToolbarLayoutManager::implts_determineFrontDockingRect ( css::ui::DockingArea  eDockingArea,
sal_Int32  nRowCol,
const ::tools::Rectangle rDockedElementRect,
std::u16string_view  rMovedElementName,
const ::tools::Rectangle rMovedElementRect 
)
private

◆ implts_findNextCascadeFloatingPos()

awt::Point framework::ToolbarLayoutManager::implts_findNextCascadeFloatingPos ( )
private

◆ implts_findNextDockingPos()

void framework::ToolbarLayoutManager::implts_findNextDockingPos ( css::ui::DockingArea  DockingArea,
const ::Size aUIElementSize,
css::awt::Point &  rVirtualPos,
::Point rPixelPos 
)
private

◆ implts_findToolbar() [1/2]

UIElement framework::ToolbarLayoutManager::implts_findToolbar ( const css::uno::Reference< css::uno::XInterface > &  xToolbar)
private

◆ implts_findToolbar() [2/2]

UIElement framework::ToolbarLayoutManager::implts_findToolbar ( std::u16string_view  aName)
private

◆ implts_generateGenericAddonToolbarTitle()

OUString framework::ToolbarLayoutManager::implts_generateGenericAddonToolbarTitle ( sal_Int32  nNumber) const
private

◆ implts_getDockingAreaElementInfoOnSingleRowCol()

void framework::ToolbarLayoutManager::implts_getDockingAreaElementInfoOnSingleRowCol ( css::ui::DockingArea  ,
sal_Int32  nRowCol,
SingleRowColumnWindowData rRowColumnWindowData 
)
private

◆ implts_getDockingAreaElementInfos()

void framework::ToolbarLayoutManager::implts_getDockingAreaElementInfos ( css::ui::DockingArea  DockingArea,
std::vector< SingleRowColumnWindowData > &  rRowColumnsWindowData 
)
private

◆ implts_getTopBottomDockingAreaSizes()

Size framework::ToolbarLayoutManager::implts_getTopBottomDockingAreaSizes ( )
private

◆ implts_getUIElementVectorCopy()

void framework::ToolbarLayoutManager::implts_getUIElementVectorCopy ( UIElementVector rCopy)
private

◆ implts_getWindow()

vcl::Window * framework::ToolbarLayoutManager::implts_getWindow ( std::u16string_view  aName)
private

Definition at line 1665 of file toolbarlayoutmanager.cxx.

References aName, VCLUnoHelper::GetWindow(), and implts_getXWindow().

Referenced by getToolbarSize().

◆ implts_getWindowRectFromRowColumn()

tools::Rectangle framework::ToolbarLayoutManager::implts_getWindowRectFromRowColumn ( css::ui::DockingArea  DockingArea,
const SingleRowColumnWindowData rRowColumnWindowData,
const ::Point rMousePos,
std::u16string_view  rExcludeElementName 
)
private

◆ implts_getXWindow()

uno::Reference< awt::XWindow > framework::ToolbarLayoutManager::implts_getXWindow ( std::u16string_view  aName)
private

◆ implts_insertToolbar()

bool framework::ToolbarLayoutManager::implts_insertToolbar ( const UIElement rUIElement)
private

◆ implts_isParentWindowVisible()

bool framework::ToolbarLayoutManager::implts_isParentWindowVisible ( ) const
private

Definition at line 241 of file toolbarlayoutmanager.cxx.

References bVisible, and m_xContainerWindow.

Referenced by implts_setElementData().

◆ implts_isToolbarCreationActive()

bool framework::ToolbarLayoutManager::implts_isToolbarCreationActive ( )
private

Definition at line 1378 of file toolbarlayoutmanager.cxx.

References m_bToolbarCreation.

Referenced by childWindowEvent().

◆ implts_readWindowStateData()

bool framework::ToolbarLayoutManager::implts_readWindowStateData ( const OUString &  aName,
UIElement rElementData 
)
private

◆ implts_renumberRowColumnData()

void framework::ToolbarLayoutManager::implts_renumberRowColumnData ( css::ui::DockingArea  eDockingArea,
const UIElement rUIElement 
)
private

◆ implts_reparentToolbars()

void framework::ToolbarLayoutManager::implts_reparentToolbars ( )
private

◆ implts_setDockingAreaWindowSizes()

void framework::ToolbarLayoutManager::implts_setDockingAreaWindowSizes ( const css::awt::Rectangle &  rBorderSpace)
private

◆ implts_setElementData()

void framework::ToolbarLayoutManager::implts_setElementData ( UIElement rUIElement,
const css::uno::Reference< css::awt::XDockableWindow > &  rDockWindow 
)
private

◆ implts_setLayoutDirty()

void framework::ToolbarLayoutManager::implts_setLayoutDirty ( )
private

◆ implts_setLayoutInProgress()

void framework::ToolbarLayoutManager::implts_setLayoutInProgress ( bool  bInProgress = true)
private

Definition at line 2553 of file toolbarlayoutmanager.cxx.

References m_bLayoutInProgress.

Referenced by toggleFloatingMode().

◆ implts_setToolbar()

void framework::ToolbarLayoutManager::implts_setToolbar ( const UIElement rUIElement)
private

◆ implts_setToolbarCreation()

void framework::ToolbarLayoutManager::implts_setToolbarCreation ( bool  bStart = true)
private

Definition at line 1372 of file toolbarlayoutmanager.cxx.

References m_bToolbarCreation.

Referenced by createToolbar().

◆ implts_setTrackingRect()

void framework::ToolbarLayoutManager::implts_setTrackingRect ( css::ui::DockingArea  eDockingArea,
const ::Point rMousePos,
::tools::Rectangle rTrackingRect 
)
private

◆ implts_sortUIElements()

void framework::ToolbarLayoutManager::implts_sortUIElements ( )
private

◆ implts_writeWindowStateData()

void framework::ToolbarLayoutManager::implts_writeWindowStateData ( const UIElement rElementData)
private

◆ isLayoutDirty()

bool framework::ToolbarLayoutManager::isLayoutDirty ( ) const
inline

◆ isPreviewFrame()

bool framework::ToolbarLayoutManager::isPreviewFrame ( )

◆ isToolbarDocked()

bool framework::ToolbarLayoutManager::isToolbarDocked ( std::u16string_view  rResourceURL)

Definition at line 4041 of file toolbarlayoutmanager.cxx.

References isToolbarFloating().

Referenced by framework::LayoutManager::isElementDocked().

◆ isToolbarFloating()

bool framework::ToolbarLayoutManager::isToolbarFloating ( std::u16string_view  rResourceURL)

◆ isToolbarLocked()

bool framework::ToolbarLayoutManager::isToolbarLocked ( std::u16string_view  rResourceURL)

Definition at line 4046 of file toolbarlayoutmanager.cxx.

References implts_getXWindow().

Referenced by framework::LayoutManager::isElementLocked().

◆ isToolbarVisible()

bool framework::ToolbarLayoutManager::isToolbarVisible ( std::u16string_view  rResourceURL)

◆ lockToolbar()

bool framework::ToolbarLayoutManager::lockToolbar ( std::u16string_view  rResourceURL)

◆ prepareToggleFloatingMode()

sal_Bool SAL_CALL framework::ToolbarLayoutManager::prepareToggleFloatingMode ( const css::lang::EventObject &  e)
overridevirtual

◆ queryInterface()

uno::Any SAL_CALL framework::ToolbarLayoutManager::queryInterface ( const css::uno::Type &  rType)
overridevirtual

Definition at line 94 of file toolbarlayoutmanager.cxx.

References a.

◆ refreshToolbarsVisibility()

void framework::ToolbarLayoutManager::refreshToolbarsVisibility ( bool  bAutomaticToolbars)

◆ release()

void SAL_CALL framework::ToolbarLayoutManager::release ( )
overridevirtualnoexcept

Definition at line 89 of file toolbarlayoutmanager.cxx.

◆ requestToolbar()

bool framework::ToolbarLayoutManager::requestToolbar ( const OUString &  rResourceURL)

◆ reset()

void framework::ToolbarLayoutManager::reset ( )

◆ resetDockingArea()

void framework::ToolbarLayoutManager::resetDockingArea ( )

◆ setDockingArea()

void framework::ToolbarLayoutManager::setDockingArea ( const css::awt::Rectangle &  rDockingArea)

◆ setDockingAreaOffsets()

void framework::ToolbarLayoutManager::setDockingAreaOffsets ( const ::tools::Rectangle rOffsets)

Definition at line 1047 of file toolbarlayoutmanager.cxx.

References m_aDockingAreaOffsets, and m_bLayoutDirty.

◆ setFloatingToolbarsVisibility()

void framework::ToolbarLayoutManager::setFloatingToolbarsVisibility ( bool  bVisible)

◆ setParentWindow()

void framework::ToolbarLayoutManager::setParentWindow ( const css::uno::Reference< css::awt::XVclWindowPeer > &  xParentWindow)

◆ setToolbarPos()

void framework::ToolbarLayoutManager::setToolbarPos ( std::u16string_view  rResourceURL,
const css::awt::Point &  aPos 
)

◆ setToolbarPosSize()

void framework::ToolbarLayoutManager::setToolbarPosSize ( std::u16string_view  rResourceURL,
const css::awt::Point &  aPos,
const css::awt::Size &  aSize 
)

◆ setToolbarSize()

void framework::ToolbarLayoutManager::setToolbarSize ( std::u16string_view  rResourceURL,
const css::awt::Size &  aSize 
)

◆ setVisible()

void framework::ToolbarLayoutManager::setVisible ( bool  bVisible)

◆ showToolbar()

bool framework::ToolbarLayoutManager::showToolbar ( std::u16string_view  rResourceURL)

◆ startDocking()

void SAL_CALL framework::ToolbarLayoutManager::startDocking ( const css::awt::DockingEvent &  e)
overridevirtual

◆ toggleFloatingMode()

void SAL_CALL framework::ToolbarLayoutManager::toggleFloatingMode ( const css::lang::EventObject &  e)
overridevirtual

◆ unlockToolbar()

bool framework::ToolbarLayoutManager::unlockToolbar ( std::u16string_view  rResourceURL)

◆ updateToolbarsTips()

void framework::ToolbarLayoutManager::updateToolbarsTips ( )

Definition at line 3907 of file toolbarlayoutmanager.cxx.

References m_aUIElements.

◆ windowHidden()

void SAL_CALL framework::ToolbarLayoutManager::windowHidden ( const css::lang::EventObject &  aEvent)
overridevirtual

Definition at line 3227 of file toolbarlayoutmanager.cxx.

◆ windowMoved()

void SAL_CALL framework::ToolbarLayoutManager::windowMoved ( const css::awt::WindowEvent &  aEvent)
overridevirtual

Definition at line 3219 of file toolbarlayoutmanager.cxx.

◆ windowResized()

void SAL_CALL framework::ToolbarLayoutManager::windowResized ( const css::awt::WindowEvent &  aEvent)
overridevirtual

◆ windowShown()

void SAL_CALL framework::ToolbarLayoutManager::windowShown ( const css::lang::EventObject &  aEvent)
overridevirtual

Definition at line 3223 of file toolbarlayoutmanager.cxx.

Member Data Documentation

◆ m_aDockingArea

tools::Rectangle framework::ToolbarLayoutManager::m_aDockingArea
private

Definition at line 267 of file toolbarlayoutmanager.hxx.

Referenced by doLayout(), getDockingArea(), and setDockingArea().

◆ m_aDockingAreaOffsets

tools::Rectangle framework::ToolbarLayoutManager::m_aDockingAreaOffsets
private

◆ m_aDockUIElement

UIElement framework::ToolbarLayoutManager::m_aDockUIElement
private

Definition at line 266 of file toolbarlayoutmanager.hxx.

Referenced by docking(), endDocking(), startDocking(), and toggleFloatingMode().

◆ m_aUIElements

UIElementVector framework::ToolbarLayoutManager::m_aUIElements
private

◆ m_bComponentAttached

bool framework::ToolbarLayoutManager::m_bComponentAttached
private

◆ m_bDockingInProgress

bool framework::ToolbarLayoutManager::m_bDockingInProgress
private

◆ m_bGlobalSettings

bool framework::ToolbarLayoutManager::m_bGlobalSettings
private

Definition at line 277 of file toolbarlayoutmanager.hxx.

Referenced by implts_readWindowStateData().

◆ m_bLayoutDirty

bool framework::ToolbarLayoutManager::m_bLayoutDirty
private

◆ m_bLayoutInProgress

bool framework::ToolbarLayoutManager::m_bLayoutInProgress
private

Definition at line 279 of file toolbarlayoutmanager.hxx.

Referenced by doLayout(), implts_setLayoutInProgress(), and windowResized().

◆ m_bToolbarCreation

bool framework::ToolbarLayoutManager::m_bToolbarCreation
private

◆ m_eDockOperation

DockingOperation framework::ToolbarLayoutManager::m_eDockOperation
private

Definition at line 269 of file toolbarlayoutmanager.hxx.

Referenced by docking(), and endDocking().

◆ m_ePreviewDetection

PreviewFrameDetection framework::ToolbarLayoutManager::m_ePreviewDetection
private

Definition at line 270 of file toolbarlayoutmanager.hxx.

Referenced by isPreviewFrame(), and reset().

◆ m_pAddonOptions

std::unique_ptr<AddonsOptions> framework::ToolbarLayoutManager::m_pAddonOptions
private

Definition at line 272 of file toolbarlayoutmanager.hxx.

Referenced by implts_createAddonsToolBars(), and ~ToolbarLayoutManager().

◆ m_pGlobalSettings

std::unique_ptr<GlobalSettings> framework::ToolbarLayoutManager::m_pGlobalSettings
private

Definition at line 273 of file toolbarlayoutmanager.hxx.

Referenced by implts_readWindowStateData(), and ~ToolbarLayoutManager().

◆ m_pParentLayouter

LayoutManager* framework::ToolbarLayoutManager::m_pParentLayouter
private

◆ m_xContainerWindow

css::uno::Reference< css::awt::XWindow2 > framework::ToolbarLayoutManager::m_xContainerWindow
private

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > framework::ToolbarLayoutManager::m_xContext
private

Definition at line 255 of file toolbarlayoutmanager.hxx.

Referenced by implts_readWindowStateData(), and setParentWindow().

◆ m_xDocCfgMgr

css::uno::Reference< css::ui::XUIConfigurationManager > framework::ToolbarLayoutManager::m_xDocCfgMgr
private

◆ m_xDockAreaWindows

css::uno::Reference< css::awt::XWindow > framework::ToolbarLayoutManager::m_xDockAreaWindows[DOCKINGAREAS_COUNT]
private

◆ m_xFrame

css::uno::Reference< css::frame::XFrame > framework::ToolbarLayoutManager::m_xFrame
private

◆ m_xModuleCfgMgr

css::uno::Reference< css::ui::XUIConfigurationManager > framework::ToolbarLayoutManager::m_xModuleCfgMgr
private

◆ m_xPersistentWindowState

css::uno::Reference< css::container::XNameAccess > framework::ToolbarLayoutManager::m_xPersistentWindowState
private

◆ m_xUIElementFactoryManager

css::uno::Reference< css::ui::XUIElementFactory > framework::ToolbarLayoutManager::m_xUIElementFactoryManager
private

Definition at line 259 of file toolbarlayoutmanager.hxx.

Referenced by createToolbar(), and implts_createAddonsToolBars().


The documentation for this class was generated from the following files: