22#include <com/sun/star/awt/XVclWindowPeer.hpp>
23#include <com/sun/star/uno/XComponentContext.hpp>
24#include <com/sun/star/frame/XFrame.hpp>
25#include <com/sun/star/ui/XUIElement.hpp>
26#include <com/sun/star/awt/Rectangle.hpp>
27#include <com/sun/star/ui/DockingArea.hpp>
28#include <com/sun/star/awt/Point.hpp>
35#define UIRESOURCETYPE_MENUBAR "menubar"
51bool equalRectangles(
const css::awt::Rectangle& rRect1,
const css::awt::Rectangle& rRect2 );
52bool lcl_checkUIElement(
const css::uno::Reference< css::ui::XUIElement >& xUIElement,css::awt::Rectangle& _rPosSize, css::uno::Reference< css::awt::XWindow >& _xWindow);
53css::uno::Reference< css::awt::XVclWindowPeer >
createToolkitWindow(
const css::uno::Reference< css::uno::XComponentContext >& rxContext,
const css::uno::Reference< css::awt::XVclWindowPeer >& rParent,
const char* pService );
56void parseResourceURL( std::u16string_view aResourceURL, OUString& aElementType, OUString& aElementName );
59css::uno::Reference< css::frame::XModel >
impl_getModelFromFrame(
const css::uno::Reference< css::frame::XFrame >& rFrame );
62void impl_setDockingWindowVisibility(
const css::uno::Reference< css::uno::XComponentContext>& rxContext,
const css::uno::Reference< css::frame::XFrame >& rFrame, std::u16string_view rDockingWindowName,
bool bVisible );
63void impl_addWindowListeners(
const css::uno::Reference< css::uno::XInterface >& xThis,
const css::uno::Reference< css::ui::XUIElement >& xUIElement );
constexpr OUStringLiteral UIRESOURCETYPE_TOOLBAR
constexpr OUStringLiteral UIRESOURCE_URL
css::awt::Rectangle putRectangleValueToAWT(const ::tools::Rectangle &rRect)
WindowAlign ImplConvertAlignment(ui::DockingArea aAlignment)
void parseResourceURL(std::u16string_view aResourceURL, OUString &aElementType, OUString &aElementName)
OUString retrieveToolbarNameFromHelpURL(vcl::Window *pWindow)
bool isHorizontalDockingArea(const ui::DockingArea &nDockingArea)
ToolBox * getToolboxPtr(vcl::Window *pWindow)
uno::Reference< awt::XVclWindowPeer > createToolkitWindow(const uno::Reference< uno::XComponentContext > &rxContext, const uno::Reference< awt::XVclWindowPeer > &rParent, const char *pService)
void impl_addWindowListeners(const css::uno::Reference< css::uno::XInterface > &xThis, const css::uno::Reference< css::ui::XUIElement > &xUIElement)
::tools::Rectangle putAWTToRectangle(const css::awt::Rectangle &rRect)
bool isToolboxHorizontalAligned(ToolBox const *pToolBox)
SystemWindow * getTopSystemWindow(const uno::Reference< awt::XWindow > &xWindow)
vcl::Window * getWindowFromXUIElement(const uno::Reference< ui::XUIElement > &xUIElement)
uno::Reference< frame::XModel > impl_getModelFromFrame(const uno::Reference< frame::XFrame > &rFrame)
void impl_setDockingWindowVisibility(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::frame::XFrame > &rFrame, std::u16string_view rDockingWindowName, bool bVisible)
std::u16string_view getElementTypeFromResourceURL(std::u16string_view aResourceURL)
bool implts_isPreviewModel(const uno::Reference< frame::XModel > &xModel)
bool hasEmptySize(const css::awt::Size &rSize)
bool implts_isFrameOrWindowTop(const uno::Reference< frame::XFrame > &xFrame)
bool equalRectangles(const css::awt::Rectangle &rRect1, const css::awt::Rectangle &rRect2)
bool isReverseOrderDockingArea(const sal_Int32 nDockArea)
bool lcl_checkUIElement(const uno::Reference< ui::XUIElement > &xUIElement, awt::Rectangle &_rPosSize, uno::Reference< awt::XWindow > &_xWindow)
bool isDefaultPos(const css::awt::Point &rPos)
bool hasDefaultPosValue(const css::awt::Point &rPos)