LibreOffice Module framework (master) 1
|
#include <toolbarlayoutmanager.hxx>
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< UIElement > | UIElementVector |
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) |
UIElement & | impl_findToolbar (std::u16string_view aName) |
css::uno::Reference< css::awt::XWindow > | implts_getXWindow (std::u16string_view aName) |
vcl::Window * | implts_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 |
LayoutManager * | m_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< GlobalSettings > | m_pGlobalSettings |
bool | m_bComponentAttached |
bool | m_bLayoutDirty |
bool | m_bGlobalSettings |
bool | m_bDockingInProgress |
bool | m_bLayoutInProgress |
bool | m_bToolbarCreation |
Definition at line 45 of file toolbarlayoutmanager.hxx.
|
private |
Definition at line 160 of file toolbarlayoutmanager.hxx.
anonymous enum |
Enumerator | |
---|---|
DOCKINGAREAS_COUNT |
Definition at line 50 of file toolbarlayoutmanager.hxx.
|
private |
Enumerator | |
---|---|
DOCKOP_BEFORE_COLROW | |
DOCKOP_ON_COLROW | |
DOCKOP_AFTER_COLROW |
Definition at line 153 of file toolbarlayoutmanager.hxx.
Enumerator | |
---|---|
PREVIEWFRAME_UNKNOWN | |
PREVIEWFRAME_NO | |
PREVIEWFRAME_YES |
Definition at line 52 of file toolbarlayoutmanager.hxx.
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.
|
overridevirtual |
Definition at line 76 of file toolbarlayoutmanager.cxx.
References m_pAddonOptions, and m_pGlobalSettings.
|
overridevirtualnoexcept |
Definition at line 84 of file toolbarlayoutmanager.cxx.
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 | ||
) |
Definition at line 363 of file toolbarlayoutmanager.cxx.
References m_bComponentAttached, m_xDocCfgMgr, m_xFrame, m_xModuleCfgMgr, m_xPersistentWindowState, reset(), and xFrame.
void framework::ToolbarLayoutManager::childWindowEvent | ( | VclSimpleEvent const * | pEvent | ) |
Definition at line 905 of file toolbarlayoutmanager.cxx.
References aCommand, ToolBox::GetCurItemId(), VclSimpleEvent::GetId(), ToolBox::GetItemCommand(), framework::getToolboxPtr(), i, implts_findToolbar(), implts_isToolbarCreationActive(), implts_setLayoutDirty(), m_aUIElements, framework::UIElement::m_bFloating, m_pParentLayouter, framework::UIElement::m_xUIElement, nCount, nId, framework::LayoutManager::requestLayout(), and framework::retrieveToolbarNameFromHelpURL().
Referenced by framework::IMPL_LINK().
|
overridevirtual |
Definition at line 3712 of file toolbarlayoutmanager.cxx.
References aName, destroyToolbar(), implts_writeWindowStateData(), m_aUIElements, m_bLayoutDirty, m_pParentLayouter, and framework::LayoutManager::requestLayout().
void framework::ToolbarLayoutManager::createStaticToolbars | ( | ) |
Definition at line 395 of file toolbarlayoutmanager.cxx.
References implts_createAddonsToolBars(), implts_createCustomToolBars(), implts_createNonContextSensitiveToolBars(), implts_sortUIElements(), and resetDockingArea().
Referenced by framework::LayoutManager::setDockingAreaAcceptor().
bool framework::ToolbarLayoutManager::createToolbar | ( | const OUString & | rResourceURL | ) |
Definition at line 435 of file toolbarlayoutmanager.cxx.
References bVisible, VclPtr< class reference_type >::get(), ToolBox::GetMenuType(), VCLUnoHelper::GetWindow(), impl_findToolbar(), implts_findToolbar(), implts_insertToolbar(), implts_readWindowStateData(), implts_setElementData(), implts_setLayoutDirty(), implts_setToolbarCreation(), implts_sortUIElements(), SvtCommandOptions::LookupDisabled(), framework::UIElement::m_aName, framework::UIElement::m_bFloating, framework::UIElement::m_bVisible, m_xContainerWindow, m_xFrame, framework::UIElement::m_xUIElement, m_xUIElementFactoryManager, comphelper::makePropertyValue(), ToolBox::SetMenuType(), UIRESOURCETYPE_TOOLBAR, and xFrame.
Referenced by elementInserted(), implts_createCustomToolBar(), and requestToolbar().
bool framework::ToolbarLayoutManager::destroyToolbar | ( | std::u16string_view | rResourceURL | ) |
Definition at line 563 of file toolbarlayoutmanager.cxx.
References implts_setLayoutDirty(), implts_sortUIElements(), m_aUIElements, o3tl::starts_with(), and u.
Referenced by closed(), and elementRemoved().
void framework::ToolbarLayoutManager::destroyToolbars | ( | ) |
Definition at line 642 of file toolbarlayoutmanager.cxx.
References implts_getUIElementVectorCopy(), m_aUIElements, and m_bLayoutDirty.
Referenced by framework::LayoutManager::implts_destroyElements(), reset(), and setParentWindow().
|
overridevirtual |
Definition at line 107 of file toolbarlayoutmanager.cxx.
References aEvent, implts_destroyDockingAreaWindows(), m_xFrame, and reset().
bool framework::ToolbarLayoutManager::dockAllToolbars | ( | ) |
Definition at line 879 of file toolbarlayoutmanager.cxx.
References dockToolbar(), i, m_aUIElements, nCount, and SAL_MAX_INT32.
Referenced by framework::LayoutManager::dockAllWindows().
|
overridevirtual |
Definition at line 3273 of file toolbarlayoutmanager.cxx.
References AWTPoint(), AWTSize(), ToolBox::CalcWindowSizePixel(), tools::Rectangle::Contains(), DOCKOP_ON_COLROW, VclPtr< class reference_type >::get(), ToolBox::GetFloatingLines(), tools::Rectangle::getOpenHeight(), tools::Rectangle::getOpenWidth(), VCLUnoHelper::GetWindow(), implts_calcDockingPosSize(), implts_calcHotZoneRect(), framework::isToolboxHorizontalAligned(), framework::UIElement::m_aDockedData, m_aDockUIElement, framework::UIElement::m_aFloatingData, framework::FloatingData::m_aPos, framework::FloatingData::m_aSize, m_bDockingInProgress, framework::UIElement::m_bFloating, framework::FloatingData::m_bIsHorizontal, m_eDockOperation, framework::DockedData::m_nDockedArea, framework::FloatingData::m_nLines, m_xContainerWindow, m_xDockAreaWindows, tools::Rectangle::SetPos(), tools::Rectangle::TopLeft(), VCLPoint(), Point::X(), and Point::Y().
bool framework::ToolbarLayoutManager::dockToolbar | ( | std::u16string_view | rResourceURL, |
css::ui::DockingArea | eDockingArea, | ||
const css::awt::Point & | aPos | ||
) |
Definition at line 795 of file toolbarlayoutmanager.cxx.
References ToolBox::CalcWindowSizePixel(), vcl::Window::GetSizePixel(), vcl::Window::GetType(), VCLUnoHelper::GetWindow(), framework::hasDefaultPosValue(), framework::ImplConvertAlignment(), implts_findNextDockingPos(), implts_findToolbar(), implts_setLayoutDirty(), implts_setToolbar(), implts_sortUIElements(), implts_writeWindowStateData(), framework::isDefaultPos(), framework::UIElement::m_aDockedData, framework::DockedData::m_aPos, framework::UIElement::m_bVisible, framework::DockedData::m_nDockedArea, framework::UIElement::m_xUIElement, and ToolBox::SetAlign().
Referenced by dockAllToolbars(), and framework::LayoutManager::dockWindow().
void framework::ToolbarLayoutManager::doLayout | ( | const ::Size & | aContainerSize | ) |
Definition at line 204 of file toolbarlayoutmanager.cxx.
References DOCKINGAREAS_COUNT, i, implts_calcWindowPosSizeOnSingleRowColumn(), implts_getDockingAreaElementInfos(), implts_setDockingAreaWindowSizes(), framework::isReverseOrderDockingArea(), m_aDockingArea, m_bLayoutDirty, m_bLayoutInProgress, nCount, nIndex, and framework::putRectangleValueToAWT().
|
overridevirtual |
Definition at line 3765 of file toolbarlayoutmanager.cxx.
References aUIName, createToolbar(), getToolbar(), framework::getWindowFromXUIElement(), implts_findToolbar(), m_xDocCfgMgr, framework::UIElement::m_xUIElement, framework::parseResourceURL(), vcl::Window::SetText(), and showToolbar().
|
overridevirtual |
Definition at line 3827 of file toolbarlayoutmanager.cxx.
References destroyToolbar(), implts_findToolbar(), m_xContainerWindow, m_xDocCfgMgr, m_xModuleCfgMgr, and framework::UIElement::m_xUIElement.
|
overridevirtual |
Definition at line 3874 of file toolbarlayoutmanager.cxx.
References implts_findToolbar(), framework::UIElement::m_bFloating, m_bLayoutDirty, m_pParentLayouter, framework::UIElement::m_xUIElement, and framework::LayoutManager::requestLayout().
|
overridevirtual |
Definition at line 3444 of file toolbarlayoutmanager.cxx.
References ToolBox::CalcWindowSizePixel(), DOCKOP_ON_COLROW, VclPtr< class reference_type >::get(), VCLUnoHelper::GetWindow(), impl_findToolbar(), framework::ImplConvertAlignment(), implts_renumberRowColumnData(), implts_sortUIElements(), implts_writeWindowStateData(), framework::UIElement::m_aDockedData, m_aDockUIElement, framework::UIElement::m_aFloatingData, framework::UIElement::m_aName, framework::FloatingData::m_aPos, framework::FloatingData::m_aSize, m_bDockingInProgress, framework::UIElement::m_bFloating, framework::FloatingData::m_bIsHorizontal, m_bLayoutDirty, framework::UIElement::m_bUserActive, m_eDockOperation, framework::DockedData::m_nDockedArea, m_pParentLayouter, framework::UIElement::m_xUIElement, framework::LayoutManager::requestLayout(), ToolBox::SetAlign(), and DockingWindow::SetOutputSizePixel().
|
overridevirtual |
Definition at line 3759 of file toolbarlayoutmanager.cxx.
bool framework::ToolbarLayoutManager::floatToolbar | ( | std::u16string_view | rResourceURL | ) |
Definition at line 3948 of file toolbarlayoutmanager.cxx.
References implts_findToolbar(), implts_setLayoutDirty(), implts_setToolbar(), implts_writeWindowStateData(), framework::UIElement::m_bFloating, and framework::UIElement::m_xUIElement.
Referenced by framework::LayoutManager::floatWindow().
awt::Rectangle framework::ToolbarLayoutManager::getDockingArea | ( | ) |
Definition at line 117 of file toolbarlayoutmanager.cxx.
References implts_calcDockingArea(), isLayoutDirty(), m_aDockingArea, and framework::putRectangleValueToAWT().
uno::Reference< ui::XUIElement > framework::ToolbarLayoutManager::getToolbar | ( | std::u16string_view | aName | ) |
Definition at line 3921 of file toolbarlayoutmanager.cxx.
References aName, implts_findToolbar(), and framework::UIElement::m_xUIElement.
Referenced by elementInserted(), framework::LayoutManager::getElement(), and implts_createCustomToolBar().
awt::Point framework::ToolbarLayoutManager::getToolbarPos | ( | std::u16string_view | rResourceURL | ) |
Definition at line 4069 of file toolbarlayoutmanager.cxx.
References implts_findToolbar(), implts_getXWindow(), framework::UIElement::m_aDockedData, framework::DockedData::m_aPos, and framework::UIElement::m_bFloating.
Referenced by framework::LayoutManager::getElementPos().
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().
awt::Size framework::ToolbarLayoutManager::getToolbarSize | ( | std::u16string_view | rResourceURL | ) |
Definition at line 4052 of file toolbarlayoutmanager.cxx.
References vcl::Window::GetSizePixel(), Size::Height(), implts_getWindow(), and Size::Width().
Referenced by framework::LayoutManager::getElementSize().
bool framework::ToolbarLayoutManager::hideToolbar | ( | std::u16string_view | rResourceURL | ) |
Definition at line 692 of file toolbarlayoutmanager.cxx.
References framework::getWindowFromXUIElement(), implts_findToolbar(), implts_setLayoutDirty(), implts_setToolbar(), implts_writeWindowStateData(), framework::UIElement::m_bFloating, framework::UIElement::m_bVisible, framework::UIElement::m_xUIElement, and vcl::Window::Show().
Referenced by framework::LayoutManager::hideElement().
|
private |
Definition at line 1607 of file toolbarlayoutmanager.cxx.
References aName, and m_aUIElements.
Referenced by createToolbar(), endDocking(), implts_findToolbar(), implts_setToolbar(), refreshToolbarsVisibility(), and requestToolbar().
|
private |
Definition at line 251 of file toolbarlayoutmanager.cxx.
References DOCKINGAREAS_COUNT, VCLUnoHelper::GetWindow(), i, framework::isHorizontalDockingArea(), m_aUIElements, nCount, tools::Rectangle::SetBottom(), tools::Rectangle::setHeight(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), tools::Rectangle::SetTop(), and tools::Rectangle::setWidth().
Referenced by getDockingArea().
|
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().
|
private |
Definition at line 2559 of file toolbarlayoutmanager.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), and tools::Rectangle::AdjustTop().
Referenced by docking().
|
private |
Definition at line 2989 of file toolbarlayoutmanager.cxx.
References tools::Rectangle::Bottom(), tools::Rectangle::getOpenHeight(), VCLUnoHelper::GetWindow(), Height, implts_getTopBottomDockingAreaSizes(), framework::isHorizontalDockingArea(), framework::UIElement::m_aDockedData, m_aDockingAreaOffsets, framework::DockedData::m_aPos, m_xContainerWindow, m_xDockAreaWindows, vcl::Window::ScreenToOutputPixel(), tools::Rectangle::setHeight(), tools::Rectangle::SetPos(), tools::Rectangle::setWidth(), tools::Rectangle::Top(), Width, and Point::Y().
Referenced by implts_calcDockingPosSize().
|
private |
Definition at line 2374 of file toolbarlayoutmanager.cxx.
References framework::ToolbarLayoutManager::SingleRowColumnWindowData::aRowColumnSpace, framework::ToolbarLayoutManager::SingleRowColumnWindowData::aRowColumnWindows, framework::ToolbarLayoutManager::SingleRowColumnWindowData::aRowColumnWindowSizes, VclPtr< class reference_type >::get(), VCLUnoHelper::GetWindow(), Size::Height(), i, implts_getTopBottomDockingAreaSizes(), Size::IsEmpty(), framework::isHorizontalDockingArea(), m_xDockAreaWindows, nCount, framework::ToolbarLayoutManager::SingleRowColumnWindowData::nSpace, framework::ToolbarLayoutManager::SingleRowColumnWindowData::nStaticSize, framework::ToolbarLayoutManager::SingleRowColumnWindowData::nVarSize, and Size::Width().
Referenced by doLayout().
|
private |
Definition at line 1065 of file toolbarlayoutmanager.cxx.
References VclPtr< class reference_type >::get(), VCLUnoHelper::GetWindow(), i, implts_findToolbar(), implts_generateGenericAddonToolbarTitle(), implts_insertToolbar(), implts_readWindowStateData(), implts_setElementData(), implts_writeWindowStateData(), isPreviewFrame(), framework::UIElement::m_aName, framework::UIElement::m_aUIName, framework::UIElement::m_bFloating, m_pAddonOptions, m_xFrame, framework::UIElement::m_xUIElement, m_xUIElementFactoryManager, nCount, ToolBox::SetMenuType(), and xFrame.
Referenced by createStaticToolbars().
|
private |
Definition at line 1295 of file toolbarlayoutmanager.cxx.
References createToolbar(), getToolbar(), framework::getWindowFromXUIElement(), SAL_WARN, and vcl::Window::SetText().
|
private |
Definition at line 1178 of file toolbarlayoutmanager.cxx.
References implts_createCustomToolBars(), isPreviewFrame(), m_bComponentAttached, m_xDocCfgMgr, m_xFrame, m_xModuleCfgMgr, and xFrame.
Referenced by createStaticToolbars(), and implts_createCustomToolBars().
|
private |
|
private |
Definition at line 1208 of file toolbarlayoutmanager.cxx.
References aName, implts_findToolbar(), implts_insertToolbar(), implts_readWindowStateData(), isPreviewFrame(), framework::UIElement::m_aName, m_bComponentAttached, framework::UIElement::m_bContextSensitive, framework::UIElement::m_bVisible, m_xFrame, m_xPersistentWindowState, framework::parseResourceURL(), and requestToolbar().
Referenced by createStaticToolbars().
|
private |
Definition at line 1511 of file toolbarlayoutmanager.cxx.
References m_xDockAreaWindows.
Referenced by disposing().
|
private |
Definition at line 2950 of file toolbarlayoutmanager.cxx.
References DOCKOP_AFTER_COLROW, DOCKOP_BEFORE_COLROW, DOCKOP_ON_COLROW, framework::isHorizontalDockingArea(), Point::X(), and Point::Y().
Referenced by implts_calcDockingPosSize().
|
private |
Definition at line 2174 of file toolbarlayoutmanager.cxx.
References framework::ToolbarLayoutManager::SingleRowColumnWindowData::aRowColumnSpace, framework::ToolbarLayoutManager::SingleRowColumnWindowData::aRowColumnWindows, framework::ToolbarLayoutManager::SingleRowColumnWindowData::aRowColumnWindowSizes, framework::ToolbarLayoutManager::SingleRowColumnWindowData::aUIElementNames, tools::Rectangle::getOpenWidth(), i, implts_getDockingAreaElementInfoOnSingleRowCol(), framework::isHorizontalDockingArea(), tools::Rectangle::Move(), and nCount.
Referenced by implts_calcDockingPosSize().
|
private |
Definition at line 1707 of file toolbarlayoutmanager.cxx.
References AWTPoint(), VCLUnoHelper::GetWindow(), m_aUIElements, m_xContainerWindow, m_xDockAreaWindows, and VCLPoint().
Referenced by implts_setElementData(), and toggleFloatingMode().
|
private |
Definition at line 2235 of file toolbarlayoutmanager.cxx.
References framework::ToolbarLayoutManager::SingleRowColumnWindowData::aRowColumnSpace, framework::ToolbarLayoutManager::SingleRowColumnWindowData::aRowColumnWindowSizes, vcl::Window::GetOutputSizePixel(), VCLUnoHelper::GetWindow(), Size::Height(), i, implts_getDockingAreaElementInfos(), implts_getTopBottomDockingAreaSizes(), framework::isHorizontalDockingArea(), m_xDockAreaWindows, nCount, framework::ToolbarLayoutManager::SingleRowColumnWindowData::nRowColumn, framework::ToolbarLayoutManager::SingleRowColumnWindowData::nSpace, framework::ToolbarLayoutManager::SingleRowColumnWindowData::nStaticSize, framework::ToolbarLayoutManager::SingleRowColumnWindowData::nVarSize, and Size::Width().
Referenced by dockToolbar(), implts_setElementData(), and toggleFloatingMode().
|
private |
|
private |
Definition at line 1621 of file toolbarlayoutmanager.cxx.
References aName, and impl_findToolbar().
Referenced by childWindowEvent(), createToolbar(), dockToolbar(), elementInserted(), elementRemoved(), elementReplaced(), floatToolbar(), getToolbar(), getToolbarPos(), hideToolbar(), implts_createAddonsToolBars(), implts_createNonContextSensitiveToolBars(), implts_insertToolbar(), lockToolbar(), prepareToggleFloatingMode(), setToolbarPos(), setToolbarSize(), showToolbar(), startDocking(), toggleFloatingMode(), unlockToolbar(), and windowResized().
|
private |
Definition at line 1054 of file toolbarlayoutmanager.cxx.
References FwkResId(), vcl::I18nHelper::GetNum(), Application::GetSettings(), and AllSettings::GetUILocaleI18nHelper().
Referenced by implts_createAddonsToolBars().
|
private |
Definition at line 2018 of file toolbarlayoutmanager.cxx.
References framework::ToolbarLayoutManager::SingleRowColumnWindowData::aRowColumnSpace, framework::ToolbarLayoutManager::SingleRowColumnWindowData::aRowColumnWindows, framework::ToolbarLayoutManager::SingleRowColumnWindowData::aRowColumnWindowSizes, framework::ToolbarLayoutManager::SingleRowColumnWindowData::aUIElementNames, VCLUnoHelper::GetWindow(), framework::isHorizontalDockingArea(), framework::lcl_checkUIElement(), framework::UIElement::m_aDockedData, framework::UIElement::m_aName, framework::DockedData::m_aPos, m_aUIElements, framework::UIElement::m_xUIElement, nCount, framework::ToolbarLayoutManager::SingleRowColumnWindowData::nRowColumn, framework::ToolbarLayoutManager::SingleRowColumnWindowData::nSpace, framework::ToolbarLayoutManager::SingleRowColumnWindowData::nStaticSize, and framework::ToolbarLayoutManager::SingleRowColumnWindowData::nVarSize.
Referenced by implts_determineFrontDockingRect().
|
private |
Definition at line 1806 of file toolbarlayoutmanager.cxx.
References vcl::Window::GetDockingManager(), DockingManager::GetFloatingWindow(), VCLUnoHelper::GetWindow(), implts_setToolbar(), implts_writeWindowStateData(), framework::isHorizontalDockingArea(), framework::lcl_checkUIElement(), framework::UIElement::m_aDockedData, framework::UIElement::m_aFloatingData, framework::UIElement::m_aName, framework::DockedData::m_aPos, framework::FloatingData::m_aPos, m_aUIElements, m_xDockAreaWindows, framework::UIElement::m_xUIElement, nCount, nIndex, framework::ToolbarLayoutManager::SingleRowColumnWindowData::nRowColumn, and SystemWindow::UpdatePositionData().
Referenced by doLayout(), implts_calcDockingPosSize(), and implts_findNextDockingPos().
|
private |
Definition at line 1786 of file toolbarlayoutmanager.cxx.
References m_xDockAreaWindows, Size::setHeight(), and Size::setWidth().
Referenced by implts_calcDockingPosSize(), implts_calcTrackingAndElementRect(), implts_calcWindowPosSizeOnSingleRowColumn(), and implts_findNextDockingPos().
|
private |
Definition at line 1780 of file toolbarlayoutmanager.cxx.
References m_aUIElements.
Referenced by destroyToolbars(), refreshToolbarsVisibility(), setFloatingToolbarsVisibility(), and setVisible().
|
private |
Definition at line 1665 of file toolbarlayoutmanager.cxx.
References aName, VCLUnoHelper::GetWindow(), and implts_getXWindow().
Referenced by getToolbarSize().
|
private |
Definition at line 2126 of file toolbarlayoutmanager.cxx.
References framework::ToolbarLayoutManager::SingleRowColumnWindowData::aRowColumnWindows, framework::ToolbarLayoutManager::SingleRowColumnWindowData::aUIElementNames, tools::Rectangle::Contains(), VCLUnoHelper::GetWindow(), i, m_xContainerWindow, m_xDockAreaWindows, nCount, tools::Rectangle::SetPos(), and tools::Rectangle::TopLeft().
Referenced by implts_calcDockingPosSize().
|
private |
Definition at line 1648 of file toolbarlayoutmanager.cxx.
References aName, and m_aUIElements.
Referenced by getToolbarPos(), implts_getWindow(), isToolbarFloating(), isToolbarLocked(), isToolbarVisible(), setToolbarPos(), and setToolbarSize().
|
private |
Definition at line 1673 of file toolbarlayoutmanager.cxx.
References implts_findToolbar(), framework::UIElement::m_aName, and m_aUIElements.
Referenced by createToolbar(), implts_createAddonsToolBars(), and implts_createNonContextSensitiveToolBars().
|
private |
Definition at line 241 of file toolbarlayoutmanager.cxx.
References bVisible, and m_xContainerWindow.
Referenced by implts_setElementData().
|
private |
Definition at line 1378 of file toolbarlayoutmanager.cxx.
References m_bToolbarCreation.
Referenced by childWindowEvent().
|
private |
Definition at line 1533 of file toolbarlayoutmanager.cxx.
References aName, m_bGlobalSettings, m_pGlobalSettings, m_xContext, m_xPersistentWindowState, and framework::LayoutManager::readWindowStateData().
Referenced by createToolbar(), implts_createAddonsToolBars(), implts_createNonContextSensitiveToolBars(), refreshToolbarsVisibility(), and requestToolbar().
|
private |
Definition at line 3078 of file toolbarlayoutmanager.cxx.
References framework::isDefaultPos(), framework::isHorizontalDockingArea(), framework::UIElement::m_aDockedData, framework::UIElement::m_aName, framework::DockedData::m_aPos, m_aUIElements, m_xPersistentWindowState, WINDOWSTATE_PROPERTY_DOCKINGAREA, and WINDOWSTATE_PROPERTY_DOCKPOS.
Referenced by endDocking().
|
private |
Definition at line 1315 of file toolbarlayoutmanager.cxx.
References VCLUnoHelper::GetWindow(), m_aUIElements, m_xContainerWindow, and m_xDockAreaWindows.
Referenced by setParentWindow().
|
private |
Definition at line 140 of file toolbarlayoutmanager.cxx.
References tools::Rectangle::GetHeight(), m_aDockingAreaOffsets, m_xContainerWindow, and m_xDockAreaWindows.
Referenced by doLayout().
|
private |
Definition at line 1384 of file toolbarlayoutmanager.cxx.
References AWTSize(), ToolBox::CalcFloatingWindowSizePixel(), ToolBox::CalcWindowSizePixel(), DockingWindow::GetFloatStyle(), vcl::Window::GetStyle(), vcl::Window::GetText(), vcl::Window::GetType(), VCLUnoHelper::GetWindow(), framework::hasDefaultPosValue(), vcl::Window::Hide(), framework::ImplConvertAlignment(), implts_findNextCascadeFloatingPos(), implts_findNextDockingPos(), implts_isParentWindowVisible(), implts_writeWindowStateData(), framework::isDefaultPos(), framework::UIElement::m_aDockedData, framework::UIElement::m_aFloatingData, framework::DockedData::m_aPos, framework::FloatingData::m_aPos, framework::FloatingData::m_aSize, framework::UIElement::m_aUIName, framework::UIElement::m_bFloating, framework::DockedData::m_bLocked, framework::UIElement::m_bMasterHide, framework::UIElement::m_bNoClose, framework::UIElement::m_bVisible, framework::DockedData::m_nDockedArea, framework::UIElement::m_nStyle, ToolBox::SetAlign(), ToolBox::SetButtonType(), DockingWindow::SetFloatStyle(), ToolBox::SetLineCount(), DockingWindow::SetOutputSizePixel(), vcl::Window::SetStyle(), vcl::Window::SetText(), vcl::Window::Show(), WB_CLOSEABLE, Point::X(), and Point::Y().
Referenced by createToolbar(), and implts_createAddonsToolBars().
|
private |
Definition at line 2547 of file toolbarlayoutmanager.cxx.
References m_bLayoutDirty.
Referenced by childWindowEvent(), createToolbar(), destroyToolbar(), dockToolbar(), floatToolbar(), hideToolbar(), lockToolbar(), refreshToolbarsVisibility(), setVisible(), showToolbar(), toggleFloatingMode(), unlockToolbar(), and windowResized().
|
private |
Definition at line 2553 of file toolbarlayoutmanager.cxx.
References m_bLayoutInProgress.
Referenced by toggleFloatingMode().
|
private |
Definition at line 1693 of file toolbarlayoutmanager.cxx.
References impl_findToolbar(), framework::UIElement::m_aName, and m_aUIElements.
Referenced by dockToolbar(), floatToolbar(), hideToolbar(), implts_getDockingAreaElementInfos(), lockToolbar(), prepareToggleFloatingMode(), setToolbarPos(), setToolbarSize(), setVisible(), showToolbar(), toggleFloatingMode(), and unlockToolbar().
|
private |
Definition at line 1372 of file toolbarlayoutmanager.cxx.
References m_bToolbarCreation.
Referenced by createToolbar().
|
private |
Definition at line 3068 of file toolbarlayoutmanager.cxx.
References framework::isHorizontalDockingArea(), tools::Rectangle::SetPos(), Point::setX(), Point::setY(), and tools::Rectangle::TopLeft().
Referenced by implts_calcDockingPosSize().
|
private |
Definition at line 1769 of file toolbarlayoutmanager.cxx.
References m_aUIElements.
Referenced by createStaticToolbars(), createToolbar(), destroyToolbar(), dockToolbar(), endDocking(), setToolbarPos(), setToolbarSize(), showToolbar(), and toggleFloatingMode().
|
private |
Definition at line 1539 of file toolbarlayoutmanager.cxx.
References aName, framework::UIElement::m_aDockedData, framework::UIElement::m_aFloatingData, framework::UIElement::m_aName, framework::DockedData::m_aPos, framework::FloatingData::m_aPos, framework::FloatingData::m_aSize, framework::UIElement::m_aUIName, framework::UIElement::m_bFloating, framework::DockedData::m_bLocked, framework::UIElement::m_bVisible, framework::DockedData::m_nDockedArea, framework::UIElement::m_nStyle, m_xPersistentWindowState, framework::UIElement::m_xUIElement, comphelper::makePropertyValue(), WINDOWSTATE_PROPERTY_DOCKED, WINDOWSTATE_PROPERTY_DOCKINGAREA, WINDOWSTATE_PROPERTY_DOCKPOS, WINDOWSTATE_PROPERTY_LOCKED, WINDOWSTATE_PROPERTY_POS, WINDOWSTATE_PROPERTY_SIZE, WINDOWSTATE_PROPERTY_STYLE, WINDOWSTATE_PROPERTY_UINAME, and WINDOWSTATE_PROPERTY_VISIBLE.
Referenced by closed(), dockToolbar(), endDocking(), floatToolbar(), hideToolbar(), implts_createAddonsToolBars(), implts_getDockingAreaElementInfos(), implts_setElementData(), lockToolbar(), setToolbarPos(), setToolbarSize(), showToolbar(), toggleFloatingMode(), unlockToolbar(), and windowResized().
|
inline |
Definition at line 81 of file toolbarlayoutmanager.hxx.
References m_bLayoutDirty.
Referenced by framework::LayoutManager::dockAllWindows(), framework::LayoutManager::dockWindow(), framework::LayoutManager::floatWindow(), getDockingArea(), framework::LayoutManager::hideElement(), framework::LayoutManager::implts_updateUIElementsVisibleState(), framework::LayoutManager::lockWindow(), framework::LayoutManager::setElementPos(), framework::LayoutManager::setElementPosSize(), framework::LayoutManager::setElementSize(), framework::LayoutManager::showElement(), and framework::LayoutManager::unlockWindow().
bool framework::ToolbarLayoutManager::isPreviewFrame | ( | ) |
Definition at line 381 of file toolbarlayoutmanager.cxx.
References framework::impl_getModelFromFrame(), framework::implts_isPreviewModel(), m_ePreviewDetection, m_xFrame, PREVIEWFRAME_NO, PREVIEWFRAME_UNKNOWN, PREVIEWFRAME_YES, xFrame, and xModel.
Referenced by implts_createAddonsToolBars(), implts_createCustomToolBars(), implts_createNonContextSensitiveToolBars(), and requestToolbar().
bool framework::ToolbarLayoutManager::isToolbarDocked | ( | std::u16string_view | rResourceURL | ) |
Definition at line 4041 of file toolbarlayoutmanager.cxx.
References isToolbarFloating().
Referenced by framework::LayoutManager::isElementDocked().
bool framework::ToolbarLayoutManager::isToolbarFloating | ( | std::u16string_view | rResourceURL | ) |
Definition at line 4035 of file toolbarlayoutmanager.cxx.
References implts_getXWindow().
Referenced by framework::LayoutManager::isElementFloating(), and isToolbarDocked().
bool framework::ToolbarLayoutManager::isToolbarLocked | ( | std::u16string_view | rResourceURL | ) |
Definition at line 4046 of file toolbarlayoutmanager.cxx.
References implts_getXWindow().
Referenced by framework::LayoutManager::isElementLocked().
bool framework::ToolbarLayoutManager::isToolbarVisible | ( | std::u16string_view | rResourceURL | ) |
Definition at line 4029 of file toolbarlayoutmanager.cxx.
References implts_getXWindow().
Referenced by framework::LayoutManager::isElementVisible().
bool framework::ToolbarLayoutManager::lockToolbar | ( | std::u16string_view | rResourceURL | ) |
Definition at line 3975 of file toolbarlayoutmanager.cxx.
References implts_findToolbar(), implts_setLayoutDirty(), implts_setToolbar(), implts_writeWindowStateData(), framework::UIElement::m_aDockedData, framework::DockedData::m_bLocked, and framework::UIElement::m_xUIElement.
Referenced by framework::LayoutManager::lockWindow().
|
overridevirtual |
Definition at line 3542 of file toolbarlayoutmanager.cxx.
References AWTPoint(), AWTSize(), VclPtr< class reference_type >::get(), ToolBox::GetFloatingLines(), DockingWindow::GetOutputSizePixel(), DockingWindow::GetPosPixel(), VCLUnoHelper::GetWindow(), implts_findToolbar(), implts_setToolbar(), framework::isToolboxHorizontalAligned(), framework::UIElement::m_aFloatingData, framework::UIElement::m_aName, framework::FloatingData::m_aPos, framework::FloatingData::m_aSize, m_bDockingInProgress, framework::FloatingData::m_bIsHorizontal, and framework::FloatingData::m_nLines.
|
overridevirtual |
Definition at line 94 of file toolbarlayoutmanager.cxx.
References a.
void framework::ToolbarLayoutManager::refreshToolbarsVisibility | ( | bool | bAutomaticToolbars | ) |
Definition at line 713 of file toolbarlayoutmanager.cxx.
References impl_findToolbar(), implts_getUIElementVectorCopy(), implts_readWindowStateData(), implts_setLayoutDirty(), framework::UIElement::m_aName, and framework::UIElement::m_bVisible.
Referenced by framework::LayoutManager::setFastPropertyValue_NoBroadcast().
|
overridevirtualnoexcept |
Definition at line 89 of file toolbarlayoutmanager.cxx.
bool framework::ToolbarLayoutManager::requestToolbar | ( | const OUString & | rResourceURL | ) |
Definition at line 404 of file toolbarlayoutmanager.cxx.
References createToolbar(), impl_findToolbar(), implts_readWindowStateData(), isPreviewFrame(), framework::UIElement::m_aName, framework::UIElement::m_aType, framework::UIElement::m_bMasterHide, framework::UIElement::m_bVisible, framework::UIElement::m_xUIElement, showToolbar(), and UIRESOURCETYPE_TOOLBAR.
Referenced by implts_createNonContextSensitiveToolBars(), and framework::LayoutManager::requestElement().
void framework::ToolbarLayoutManager::reset | ( | ) |
Definition at line 349 of file toolbarlayoutmanager.cxx.
References destroyToolbars(), m_bComponentAttached, m_ePreviewDetection, m_xDocCfgMgr, m_xModuleCfgMgr, PREVIEWFRAME_UNKNOWN, and resetDockingArea().
Referenced by attach(), and disposing().
void framework::ToolbarLayoutManager::resetDockingArea | ( | ) |
Definition at line 985 of file toolbarlayoutmanager.cxx.
References m_xDockAreaWindows.
Referenced by createStaticToolbars(), reset(), framework::LayoutManager::setDockingAreaAcceptor(), setParentWindow(), and setVisible().
void framework::ToolbarLayoutManager::setDockingArea | ( | const css::awt::Rectangle & | rDockingArea | ) |
Definition at line 133 of file toolbarlayoutmanager.cxx.
References m_aDockingArea, m_bLayoutDirty, and framework::putAWTToRectangle().
void framework::ToolbarLayoutManager::setDockingAreaOffsets | ( | const ::tools::Rectangle & | rOffsets | ) |
Definition at line 1047 of file toolbarlayoutmanager.cxx.
References m_aDockingAreaOffsets, and m_bLayoutDirty.
void framework::ToolbarLayoutManager::setFloatingToolbarsVisibility | ( | bool | bVisible | ) |
Definition at line 740 of file toolbarlayoutmanager.cxx.
References bVisible, framework::getWindowFromXUIElement(), implts_getUIElementVectorCopy(), and vcl::Window::Show().
Referenced by framework::LayoutManager::implts_toggleFloatingUIElementsVisibility().
void framework::ToolbarLayoutManager::setParentWindow | ( | const css::uno::Reference< css::awt::XVclWindowPeer > & | xParentWindow | ) |
Definition at line 1004 of file toolbarlayoutmanager.cxx.
References framework::createToolkitWindow(), destroyToolbars(), VCLUnoHelper::GetWindow(), implts_reparentToolbars(), m_xContainerWindow, m_xContext, m_xDockAreaWindows, and resetDockingArea().
Referenced by framework::LayoutManager::disposing(), and framework::LayoutManager::implts_reparentChildWindows().
void framework::ToolbarLayoutManager::setToolbarPos | ( | std::u16string_view | rResourceURL, |
const css::awt::Point & | aPos | ||
) |
Definition at line 4106 of file toolbarlayoutmanager.cxx.
References implts_findToolbar(), implts_getXWindow(), implts_setToolbar(), implts_sortUIElements(), implts_writeWindowStateData(), framework::UIElement::m_aFloatingData, and framework::FloatingData::m_aPos.
Referenced by framework::LayoutManager::setElementPos(), and setToolbarPosSize().
void framework::ToolbarLayoutManager::setToolbarPosSize | ( | std::u16string_view | rResourceURL, |
const css::awt::Point & | aPos, | ||
const css::awt::Size & | aSize | ||
) |
Definition at line 4122 of file toolbarlayoutmanager.cxx.
References setToolbarPos(), and setToolbarSize().
Referenced by framework::LayoutManager::setElementPosSize().
void framework::ToolbarLayoutManager::setToolbarSize | ( | std::u16string_view | rResourceURL, |
const css::awt::Size & | aSize | ||
) |
Definition at line 4090 of file toolbarlayoutmanager.cxx.
References implts_findToolbar(), implts_getXWindow(), implts_setToolbar(), implts_sortUIElements(), implts_writeWindowStateData(), framework::UIElement::m_aFloatingData, and framework::FloatingData::m_aSize.
Referenced by framework::LayoutManager::setElementSize(), and setToolbarPosSize().
void framework::ToolbarLayoutManager::setVisible | ( | bool | bVisible | ) |
Definition at line 762 of file toolbarlayoutmanager.cxx.
References bVisible, framework::getWindowFromXUIElement(), vcl::Window::Hide(), implts_getUIElementVectorCopy(), implts_setLayoutDirty(), implts_setToolbar(), resetDockingArea(), and vcl::Window::Show().
Referenced by framework::LayoutManager::implts_updateUIElementsVisibleState().
bool framework::ToolbarLayoutManager::showToolbar | ( | std::u16string_view | rResourceURL | ) |
Definition at line 661 of file toolbarlayoutmanager.cxx.
References framework::getWindowFromXUIElement(), implts_findToolbar(), implts_setLayoutDirty(), implts_setToolbar(), implts_sortUIElements(), implts_writeWindowStateData(), framework::UIElement::m_bFloating, framework::UIElement::m_bVisible, framework::UIElement::m_xUIElement, framework::AddonsToolBarWrapper::populateImages(), and vcl::Window::Show().
Referenced by elementInserted(), requestToolbar(), and framework::LayoutManager::showElement().
|
overridevirtual |
Definition at line 3233 of file toolbarlayoutmanager.cxx.
References VclPtr< class reference_type >::get(), ToolBox::GetFloatingLines(), VCLUnoHelper::GetWindow(), implts_findToolbar(), framework::isToolboxHorizontalAligned(), m_aDockUIElement, framework::UIElement::m_aFloatingData, framework::FloatingData::m_aPos, framework::FloatingData::m_aSize, m_bDockingInProgress, framework::FloatingData::m_bIsHorizontal, framework::UIElement::m_bUserActive, framework::FloatingData::m_nLines, and framework::UIElement::m_xUIElement.
|
overridevirtual |
Definition at line 3582 of file toolbarlayoutmanager.cxx.
References AWTSize(), ToolBox::CalcFloatingWindowSizePixel(), ToolBox::CalcWindowSizePixel(), vcl::Window::GetOutputSizePixel(), vcl::Window::GetSizePixel(), vcl::Window::GetType(), VCLUnoHelper::GetWindow(), framework::hasDefaultPosValue(), framework::hasEmptySize(), framework::ImplConvertAlignment(), implts_findNextCascadeFloatingPos(), implts_findNextDockingPos(), implts_findToolbar(), implts_setLayoutDirty(), implts_setLayoutInProgress(), implts_setToolbar(), implts_sortUIElements(), implts_writeWindowStateData(), framework::isDefaultPos(), framework::UIElement::m_aDockedData, m_aDockUIElement, framework::UIElement::m_aFloatingData, framework::UIElement::m_aName, framework::DockedData::m_aPos, framework::FloatingData::m_aPos, framework::FloatingData::m_aSize, m_bDockingInProgress, framework::UIElement::m_bFloating, framework::FloatingData::m_bIsHorizontal, framework::UIElement::m_bUserActive, framework::DockedData::m_nDockedArea, framework::FloatingData::m_nLines, m_pParentLayouter, framework::LayoutManager::requestLayout(), ToolBox::SetAlign(), and ToolBox::SetLineCount().
bool framework::ToolbarLayoutManager::unlockToolbar | ( | std::u16string_view | rResourceURL | ) |
Definition at line 4002 of file toolbarlayoutmanager.cxx.
References implts_findToolbar(), implts_setLayoutDirty(), implts_setToolbar(), implts_writeWindowStateData(), framework::UIElement::m_aDockedData, framework::DockedData::m_bLocked, and framework::UIElement::m_xUIElement.
Referenced by framework::LayoutManager::unlockWindow().
void framework::ToolbarLayoutManager::updateToolbarsTips | ( | ) |
Definition at line 3907 of file toolbarlayoutmanager.cxx.
References m_aUIElements.
|
overridevirtual |
Definition at line 3227 of file toolbarlayoutmanager.cxx.
|
overridevirtual |
Definition at line 3219 of file toolbarlayoutmanager.cxx.
|
overridevirtual |
Definition at line 3170 of file toolbarlayoutmanager.cxx.
References aEvent, bVisible, implts_findToolbar(), implts_setLayoutDirty(), implts_writeWindowStateData(), framework::UIElement::m_aFloatingData, framework::FloatingData::m_aPos, framework::FloatingData::m_aSize, m_bDockingInProgress, framework::UIElement::m_bFloating, m_bLayoutInProgress, framework::UIElement::m_bVisible, m_pParentLayouter, framework::UIElement::m_xUIElement, and framework::LayoutManager::requestLayout().
|
overridevirtual |
Definition at line 3223 of file toolbarlayoutmanager.cxx.
|
private |
Definition at line 267 of file toolbarlayoutmanager.hxx.
Referenced by doLayout(), getDockingArea(), and setDockingArea().
|
private |
Definition at line 268 of file toolbarlayoutmanager.hxx.
Referenced by implts_calcDockingPosSize(), implts_calcTrackingAndElementRect(), implts_setDockingAreaWindowSizes(), and setDockingAreaOffsets().
|
private |
Definition at line 266 of file toolbarlayoutmanager.hxx.
Referenced by docking(), endDocking(), startDocking(), and toggleFloatingMode().
|
private |
Definition at line 265 of file toolbarlayoutmanager.hxx.
Referenced by childWindowEvent(), closed(), destroyToolbar(), destroyToolbars(), dockAllToolbars(), getToolbars(), impl_findToolbar(), implts_calcDockingArea(), implts_findNextCascadeFloatingPos(), implts_getDockingAreaElementInfoOnSingleRowCol(), implts_getDockingAreaElementInfos(), implts_getUIElementVectorCopy(), implts_getXWindow(), implts_insertToolbar(), implts_renumberRowColumnData(), implts_reparentToolbars(), implts_setToolbar(), implts_sortUIElements(), and updateToolbarsTips().
|
private |
Definition at line 275 of file toolbarlayoutmanager.hxx.
Referenced by attach(), implts_createCustomToolBars(), implts_createNonContextSensitiveToolBars(), and reset().
|
private |
Definition at line 278 of file toolbarlayoutmanager.hxx.
Referenced by docking(), endDocking(), prepareToggleFloatingMode(), startDocking(), toggleFloatingMode(), and windowResized().
|
private |
Definition at line 277 of file toolbarlayoutmanager.hxx.
Referenced by implts_readWindowStateData().
|
private |
Definition at line 276 of file toolbarlayoutmanager.hxx.
Referenced by closed(), destroyToolbars(), doLayout(), elementReplaced(), endDocking(), implts_setLayoutDirty(), isLayoutDirty(), setDockingArea(), and setDockingAreaOffsets().
|
private |
Definition at line 279 of file toolbarlayoutmanager.hxx.
Referenced by doLayout(), implts_setLayoutInProgress(), and windowResized().
|
private |
Definition at line 280 of file toolbarlayoutmanager.hxx.
Referenced by implts_isToolbarCreationActive(), and implts_setToolbarCreation().
|
private |
Definition at line 269 of file toolbarlayoutmanager.hxx.
Referenced by docking(), and endDocking().
|
private |
Definition at line 270 of file toolbarlayoutmanager.hxx.
Referenced by isPreviewFrame(), and reset().
|
private |
Definition at line 272 of file toolbarlayoutmanager.hxx.
Referenced by implts_createAddonsToolBars(), and ~ToolbarLayoutManager().
|
private |
Definition at line 273 of file toolbarlayoutmanager.hxx.
Referenced by implts_readWindowStateData(), and ~ToolbarLayoutManager().
|
private |
Definition at line 263 of file toolbarlayoutmanager.hxx.
Referenced by childWindowEvent(), closed(), elementReplaced(), endDocking(), toggleFloatingMode(), and windowResized().
|
private |
Definition at line 257 of file toolbarlayoutmanager.hxx.
Referenced by createToolbar(), docking(), elementRemoved(), implts_calcDockingPosSize(), implts_calcTrackingAndElementRect(), implts_findNextCascadeFloatingPos(), implts_getWindowRectFromRowColumn(), implts_isParentWindowVisible(), implts_reparentToolbars(), implts_setDockingAreaWindowSizes(), and setParentWindow().
|
private |
Definition at line 255 of file toolbarlayoutmanager.hxx.
Referenced by implts_readWindowStateData(), and setParentWindow().
|
private |
Definition at line 261 of file toolbarlayoutmanager.hxx.
Referenced by attach(), elementInserted(), elementRemoved(), implts_createCustomToolBars(), and reset().
|
private |
Definition at line 258 of file toolbarlayoutmanager.hxx.
Referenced by docking(), implts_calcDockingPosSize(), implts_calcTrackingAndElementRect(), implts_calcWindowPosSizeOnSingleRowColumn(), implts_destroyDockingAreaWindows(), implts_findNextCascadeFloatingPos(), implts_findNextDockingPos(), implts_getDockingAreaElementInfos(), implts_getTopBottomDockingAreaSizes(), implts_getWindowRectFromRowColumn(), implts_reparentToolbars(), implts_setDockingAreaWindowSizes(), resetDockingArea(), and setParentWindow().
|
private |
Definition at line 256 of file toolbarlayoutmanager.hxx.
Referenced by attach(), createToolbar(), disposing(), implts_createAddonsToolBars(), implts_createCustomToolBars(), implts_createNonContextSensitiveToolBars(), and isPreviewFrame().
|
private |
Definition at line 260 of file toolbarlayoutmanager.hxx.
Referenced by attach(), elementRemoved(), implts_createCustomToolBars(), and reset().
|
private |
Definition at line 262 of file toolbarlayoutmanager.hxx.
Referenced by attach(), implts_createNonContextSensitiveToolBars(), implts_readWindowStateData(), implts_renumberRowColumnData(), and implts_writeWindowStateData().
|
private |
Definition at line 259 of file toolbarlayoutmanager.hxx.
Referenced by createToolbar(), and implts_createAddonsToolBars().